mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Update convert_llama_weights_to_hf.py (#22525)
This commit is contained in:
parent
c612628045
commit
db803b6919
@ -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, LlamaForTokenizer
|
||||
from transformers import LlamaForCausalLM, LlamaTokenizer
|
||||
|
||||
model = LlamaForCausalLM.from_pretrained("/output/path")
|
||||
tokenizer = LlamaTokenizer.from_pretrained("/output/path")
|
||||
|
Loading…
Reference in New Issue
Block a user