Skip to content

Commit

Permalink
Update model path
Browse files Browse the repository at this point in the history
  • Loading branch information
duzx16 committed Apr 6, 2023
1 parent cc4be39 commit 40d83f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_demo3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import gradio as gr
import mdtex2html

tokenizer = AutoTokenizer.from_pretrained("/mnt/vepfs/workspace/zxdu/chatglm_6b", trust_remote_code=True)
model = AutoModel.from_pretrained("/mnt/vepfs/workspace/zxdu/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()

"""Override Chatbot.postprocess"""
Expand Down

0 comments on commit 40d83f3

Please sign in to comment.