-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TypeError: ChatGLMTokenizer._pad() got an unexpected keyword argument 'padding_side' #1324
Comments
@zRzRzRzRzRzRzR 辛苦花点时间看下这个问题,glm4也存在类似问题,非常感谢~ |
import torch from yijian_community.defense import InternVL2ImageDefense, ThuCoaiShieldLM def txt2img_zh_usage_example(txt2img_zh_model="/mnt/public/lqz/prompt_attack/Kolors-diffusers"):
txt2img_zh_usage_example() kolor文本好像用的是chaglm3,现在也会报错: 环境: accelerate 0.34.2 |
kolors也使用了chatglm也存在这个问题,把transformers库的版本下降到Version: 4.34.0可以解决这个问题 |
|
4.43.0 应该可以解决这个问题。 |
modelscope上说了是chatglm不支持最新版本 |
已经收到这个问题,预计节后投入人力解决 |
Hi, I ran into the same error in the context of llama.cpp trying to convert https://huggingface.co/THUDM/glm-4-9b-chat to Error
Workaround Downgrade the pip uninstall transformers -y; pip install transformers==4.44.2 It seems as if this bug is introduced with the transformers release v4.45.0. I hope this helps someone 😉 |
降低版本到4.40.2,可以了 |
Can Transformers 4.45.0 run without errors now? If not, any plan to address this? |
换成4.40会出现新的错误,怎么办? |
换4.42 |
Hi guys I have the same issue recently, even though i mainly use FLUX, I recently switched to KOLORS, which is literally MJV6.1 killer with lower CFG and samplers, But I have this issue of the GLM thing, I tried everything and its not working! pls help! |
please!!!!! |
Same as this issue? |
unfortunately it didn't help bro! thank you though |
System Info / 系統信息
torch==2.4.0
transformers==4.45.0
Who can help? / 谁可以帮助到您?
No response
Information / 问题信息
Reproduction / 复现过程
Step1
升级到transformers到
4.45.0
Step2
运行如下代码:
Expected behavior / 期待表现
应该需要更新HF仓库中的:ChatGLMTokenizer._pad 的参数
The text was updated successfully, but these errors were encountered: