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

convert a tencentpretrain llama model to huggingface? #36

Open
jamestch opened this issue Apr 6, 2023 · 3 comments
Open

convert a tencentpretrain llama model to huggingface? #36

jamestch opened this issue Apr 6, 2023 · 3 comments

Comments

@jamestch
Copy link

jamestch commented Apr 6, 2023

How to convert a tencentpretrain llama model to huggingface? can u share the script?
Thanks a lot!

@baketbek
Copy link

你有找到这个方法吗

@csho
Copy link

csho commented May 10, 2023

去scripts/ 文件夹下找convert_tencentpretrain_to_llama.py,用这个转换。
python convert_tencentpretrain_to_llama.py --input_model_path 输入模型路径/input_model.bin --output_model_path 输出模型路径/pytorch_model.bin --layers_num 32
7B的模型层数是32

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

4 participants