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
db803b69
Unverified
Commit
db803b69
authored
Apr 03, 2023
by
kevinpro
Committed by
GitHub
Apr 03, 2023
Browse files
Update convert_llama_weights_to_hf.py (#22525)
parent
c6126280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/llama/convert_llama_weights_to_hf.py
src/transformers/models/llama/convert_llama_weights_to_hf.py
+1
-1
No files found.
src/transformers/models/llama/convert_llama_weights_to_hf.py
View file @
db803b69
...
...
@@ -34,7 +34,7 @@ python src/transformers/models/llama/convert_llama_weights_to_hf.py \
Thereafter, models can be loaded via:
```py
from transformers import LlamaForCausalLM, Llama
For
Tokenizer
from transformers import LlamaForCausalLM, LlamaTokenizer
model = LlamaForCausalLM.from_pretrained("/output/path")
tokenizer = LlamaTokenizer.from_pretrained("/output/path")
...
...
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