Add application file
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ from sentence_transformers import util
|
|
11 |
from local_database import db_operate
|
12 |
from prompt import table_schema, embedder,corpus_embeddings, corpus,In_context_prompt, query_template
|
13 |
|
14 |
-
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b-
|
15 |
-
model = AutoModel.from_pretrained("THUDM/chatglm-6b-
|
16 |
model = model.eval()
|
17 |
|
18 |
|
|
|
11 |
from local_database import db_operate
|
12 |
from prompt import table_schema, embedder,corpus_embeddings, corpus,In_context_prompt, query_template
|
13 |
|
14 |
+
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b-int4", trust_remote_code=True)
|
15 |
+
model = AutoModel.from_pretrained("THUDM/chatglm-6b-int4",trust_remote_code=True).float()
|
16 |
model = model.eval()
|
17 |
|
18 |
|