for transformers 4.47 a954550 verified
zR commited on
How to use zai-org/chatglm2-6b-int4 with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("zai-org/chatglm2-6b-int4", trust_remote_code=True, dtype="auto")