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