tokenizer_vocab.py 377 B

123456789101112131415
  1. from evaluator import *
  2. DESCRIPTION = "This test case is designed to check if the model can print out the tokens in a AutoTokenizer's vocabulary."
  3. TAGS = ['explain', 'python']
  4. question = """
  5. How do I get all tokens in a AutoTokenizer?
  6. """
  7. TestGetVocab = question >> LLMRun() >> SubstringEvaluator("get_vocab")
  8. if __name__ == "__main__":
  9. print(run_test(TestGetVocab))