Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
8f1f0bf5
Unverified
Commit
8f1f0bf5
authored
Jul 24, 2023
by
Sören Brunk
Committed by
GitHub
Jul 24, 2023
Browse files
Fix typo in LlamaTokenizerFast docstring example (#25018)
parent
3b734f50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/llama/tokenization_llama_fast.py
src/transformers/models/llama/tokenization_llama_fast.py
+1
-1
No files found.
src/transformers/models/llama/tokenization_llama_fast.py
View file @
8f1f0bf5
...
...
@@ -58,7 +58,7 @@ class LlamaTokenizerFast(PreTrainedTokenizerFast):
```
from transformers import LlamaTokenizerFast
tokenizer = LlaTokenizerFast.from_pretrained("hf-internal-testing/llama-tokenizer")
tokenizer = Lla
ma
TokenizerFast.from_pretrained("hf-internal-testing/llama-tokenizer")
tokenizer.encode("Hello this is a test")
>>> [1, 15043, 445, 338, 263, 1243]
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment