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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
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()
 
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()