chatglm-6b-int4 / demo_call_api.py
NewBreaker's picture
auto git
0076f81
raw
history blame
233 Bytes
from transformers import AutoModel,AutoTokenizer
model = AutoModel.from_pretrained("NewBreaker/chatglm-6b-int4",trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("NewBreaker/chatglm-6b-int4", trust_remote_code=True)