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

模型加载问题 #57

Open
447428054 opened this issue Mar 18, 2023 · 4 comments
Open

模型加载问题 #57

447428054 opened this issue Mar 18, 2023 · 4 comments

Comments

@447428054
Copy link

447428054 commented Mar 18, 2023

@zzy14 @t1101675 模型加载代码似乎微调模型必须有latest_checkpointed_iteration文件,此外加载的也是pt,想要微调huggingface的bin文件该怎么做呢

image

@t1101675
Copy link
Contributor

可以使用 huggingface 版本的 checkpoint https://huggingface.co/TsinghuaAI/CPM-Generate 然后直接用 huggingface 的框架加载、微调

@t1101675
Copy link
Contributor

也可以从新的下载链接下载模型 https://model.baai.ac.cn/model-detail/100017

@447428054
Copy link
Author

可以使用 huggingface 版本的 checkpoint https://huggingface.co/TsinghuaAI/CPM-Generate 然后直接用 huggingface 的框架加载、微调

你好,请问huggingface微调的代码链接方便贴一下吗,我看CPM的tokenizer编码处理过程与一般的GPT2是不一样的

@t1101675
Copy link
Contributor

higgingface 实现了 CPM 的模型和编码 https://huggingface.co/docs/transformers/model_doc/cpm 其他部分和 GPT2 微调是一样的

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

2 participants