chatglm-6b-int4 / demo_update_config.py
NewBreaker's picture
auto git
8ba09aa
raw
history blame
366 Bytes
from transformers import AutoConfig
config = AutoConfig.from_pretrained(".\\",trust_remote_code=True)
print("config:", config)
# 将配置推送到名为“my-finetuned-bert”的命名空间。
config.push_to_hub( "NewBreaker/chatglm-6b-int4" )
config = AutoConfig.from_pretrained("NewBreaker/chatglm-6b-int4",trust_remote_code=True)
print("config:", config)