THUDM / GLM-4

GLM-4 series: Open Multilingual Multimodal Chat LMs | 开源多语言多模态对话模型
Apache License 2.0
3.28k stars 235 forks source link

闲聊报错,没有图片的参数 #232

Closed whk6688 closed 6 days ago

whk6688 commented 6 days ago

System Info / 系統信息

a100

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

Reproduction / 复现过程

query = '你好' inputs = tokenizer.apply_chat_template([{"role": "user", "image": None, "content": query}], add_generation_prompt=True, tokenize=True, return_tensors="pt", return_dict=True) # chat mode

Expected behavior / 期待表现

回答 您好。。。