-
Notifications
You must be signed in to change notification settings - Fork 9
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
Guideline for generating correct lit_model.pth #9
Comments
@mkeya013 Thanks for your question.
To see all the available checkpoints for Vicuna, run: python scripts/download.py | grep vicuna which will print
In order to use a specific Vicuna checkpoint, for instance vicuna-7b-v1.5, download the weights and convert the checkpoint to the lit-gpt format: pip install huggingface_hub
python scripts/download.py --repo_id lmsys/vicuna-7b-v1.5
python scripts/convert_hf_checkpoint.py --checkpoint_dir checkpoints/lmsys/vicuna-7b-v1.5 By default, the convert_hf_checkpoint step will use the data type of the HF checkpoint's parameters. In cases where RAM You're done! To execute the model just run: pip install sentencepiece
python chat/base.py --checkpoint_dir checkpoints/lmsys/vicuna-7b-v1.5 This is the vicuna version I used. You can also follow the latest official guideline and revise it to vicuna-7b-1.5. |
It worked. Thank you. |
@CMY-CTO sry for this. plz revise as
|
@LinghaoChan 你好,我按照这个流程操作的时候报错 |
@ransheng11 需要按照README所说下载vicuna-1.5-7B的model哦~~~ |
Dear Author, is it possible to provide correct lit_model.pth file? Or a guideline to generate correct lit_model.pth file would be a great help.
Thank you.
The text was updated successfully, but these errors were encountered: