File size: 628 Bytes
09d423b
 
 
 
8ba09aa
 
 
09d423b
8ba09aa
 
09d423b
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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)

from transformers import AutoConfig

config = AutoConfig.from_pretrained("silver/chatglm-6b-int4-qe-slim",trust_remote_code=True)


# # Push the config to your namespace with the name "my-finetuned-bert".
config.push_to_hub("silver/chatglm-6b-int4-qe-slim")
#
# # Push the config to an organization with the name "my-finetuned-bert".
# config.push_to_hub("huggingface/my-finetuned-bert")