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

纠正一些错误 #394

Open
Peaceuai opened this issue Mar 29, 2025 · 1 comment
Open

纠正一些错误 #394

Peaceuai opened this issue Mar 29, 2025 · 1 comment

Comments

@Peaceuai
Copy link

Peaceuai commented Mar 29, 2025

(1)以下链接文件中,实例代码导入的包名字有误

https://github.com/datawhalechina/self-llm/blob/master/models/CharacterGLM/04-CharacterGLM-6B%20Lora%E5%BE%AE%E8%B0%83.md

Image

(2)以下链接代码文件中,有个地方示例代码错误会导致后面报错pert model保存的时候报错,报错信息为:TypeError: Object of type set is not JSON serializable

https://github.com/datawhalechina/self-llm/blob/master/models/CharacterGLM/04-CharacterGLM-6B-Lora%E5%BE%AE%E8%B0%83.py

Image

需要将{}改为[],这样json就可以序列化,因为set集合是无序的,我看到issues里面有几个遇到这种错误信息的,不知道有没有帮你们解决这个问题

@KMnO4-zx
Copy link
Contributor

好的,感谢!近期会修改一下~

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