Fix typo in LlamaTokenizerFast docstring example (#25018)

This commit is contained in:
Sören Brunk 2023-07-24 15:37:58 +02:00 committed by GitHub
parent 3b734f5042
commit 8f1f0bf50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ class LlamaTokenizerFast(PreTrainedTokenizerFast):
```
from transformers import LlamaTokenizerFast
tokenizer = LlaTokenizerFast.from_pretrained("hf-internal-testing/llama-tokenizer")
tokenizer = LlamaTokenizerFast.from_pretrained("hf-internal-testing/llama-tokenizer")
tokenizer.encode("Hello this is a test")
>>> [1, 15043, 445, 338, 263, 1243]
```