Browse Source

Fix typo

pull/19/head
OedoSoldier 2 years ago committed by GitHub
parent
commit
fb94fe80a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cli_demo.py

4
cli_demo.py

@ -2,8 +2,8 @@ import os
import platform
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("chatglm-6b", trust_remote_code=True)
model = AutoModel.from_pretrained("chatglm-6b", trust_remote_code=True).half().cuda()
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()
model = model.eval()
os_name = platform.system()

Loading…
Cancel
Save