Skip to content

Commit

Permalink
Add unit test for llama2 w/o chat template set
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Dec 16, 2023
1 parent d9b63ae commit ec4d0c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/generate_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"llama": [
'hf-internal-testing/llama-tokenizer', # Special tokens: normalized=true
'Xenova/llama2-tokenizer', # Special tokens: normalized=false
'Xenova/llama2-chat-tokenizer', # Special tokens: normalized=false
'hf-internal-testing/llama-code-tokenizer',
],
'mpt': [
Expand Down Expand Up @@ -163,6 +164,11 @@
'system',
'system + assistant',
],
'Xenova/llama2-chat-tokenizer': [
'basic',
'system',
'system + assistant',
],

# TODO: add llama (v1) tokenizer once bug in transformers is fixed
# https://github.com/huggingface/transformers/pull/26678
Expand Down

0 comments on commit ec4d0c6

Please sign in to comment.