Upload modeling_chatglm.py
#2
by
bigmoyan
- opened
- use glm-4-9b-chat->modeling_chatglm->ChatGLMForConditionalGeneration._update_model_kwargs_for_generation
- dtype and device should be torch.dtype and torch.device
这样现有代码可以兼容新版本的transformers