Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert hf weight of 70b to lit-lamma weights? #469

Open
sfarzi opened this issue Nov 10, 2023 · 0 comments
Open

How to convert hf weight of 70b to lit-lamma weights? #469

sfarzi opened this issue Nov 10, 2023 · 0 comments

Comments

@sfarzi
Copy link

sfarzi commented Nov 10, 2023

I would like to fine-tune (adapt v2) of 70B parameters.
when I tried to convert weights, I came across by an error.
Error
File "/scripts/convert_hf_checkpoint.py", line 42, in convert_hf_checkpoint
config = LLaMAConfig.from_name(model_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lit-llama/lit_llama/model.py", line 38, in from_name
return cls(**llama_configs[name])
~~~~~~~~~~~~~^^^^^^
KeyError: '70B'

the command :

python /scripts/convert_hf_checkpoint.py --output_dir /lit-llama/checkpoints/lit-llama/70B --model_size 70B --checkpoint_dir Llama-2-70b-hf

Any help would be appreciated.

@carmocca carmocca transferred this issue from Lightning-AI/litgpt Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant