add pull_model.py

pull/275/head
regmiao 2023-03-28 17:52:19 +08:00
parent 9addb875ca
commit 8798563db9
1 changed files with 2 additions and 0 deletions

2
pull_model.py Normal file
View File

@ -0,0 +1,2 @@
from transformers import AutoModel
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()