initial commit d17f53d
Zhengxiao Du commited on
How to use zai-org/chatglm2-6b with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("zai-org/chatglm2-6b", trust_remote_code=True, device_map="auto")