Spaces:
Paused
Paused
tomato
commited on
Commit
•
34c4693
1
Parent(s):
4301845
revoke model change, fix requirements crash
Browse files- app.py +1 -1
- requirements.txt +2 -2
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import re
|
3 |
from transformers import AutoTokenizer, AutoModel
|
4 |
|
5 |
-
MODEL_NAME = "
|
6 |
|
7 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME, trust_remote_code=True)
|
8 |
model = AutoModel.from_pretrained(MODEL_NAME, trust_remote_code=True).half().cpu()
|
|
|
2 |
import re
|
3 |
from transformers import AutoTokenizer, AutoModel
|
4 |
|
5 |
+
MODEL_NAME = "silver/chatglm-6b-int4-slim"
|
6 |
|
7 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME, trust_remote_code=True)
|
8 |
model = AutoModel.from_pretrained(MODEL_NAME, trust_remote_code=True).half().cpu()
|
requirements.txt
CHANGED
@@ -3,7 +3,7 @@ torch
|
|
3 |
tqdm
|
4 |
transformers
|
5 |
sentencepiece
|
6 |
-
protobuf
|
7 |
-
transformers
|
8 |
icetk
|
9 |
cpm_kernels
|
|
|
3 |
tqdm
|
4 |
transformers
|
5 |
sentencepiece
|
6 |
+
protobuf
|
7 |
+
transformers
|
8 |
icetk
|
9 |
cpm_kernels
|