Upload modeling_chatglm.py

#2
  1. use glm-4-9b-chat->modeling_chatglm->ChatGLMForConditionalGeneration._update_model_kwargs_for_generation
  2. dtype and device should be torch.dtype and torch.device

这样现有代码可以兼容新版本的transformers

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment