long1111 commited on
Commit
d13781a
·
1 Parent(s): ab6589b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -1,5 +1,3 @@
1
- !pip install protobuf==3.20.0 transformers==4.27.1 icetk cpm_kernels
2
-
3
  from transformers import AutoTokenizer, AutoModel
4
  tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
5
  model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()
 
 
 
1
  from transformers import AutoTokenizer, AutoModel
2
  tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
3
  model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()