Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
|
@@ -38,10 +38,11 @@ print(client.list_collections())
|
|
| 38 |
jina_ef=JinaEmbeddingFunction()
|
| 39 |
embeddingModel=jina_ef
|
| 40 |
|
|
|
|
| 41 |
#mod="mistralai/Mixtral-8x7b-instruct-v0.1"
|
| 42 |
#tok=AutoTokenizer.from_pretrained(mod) #,token="hf_...")
|
| 43 |
#cha=[{"role":"system","content":"A"},{"role":"user","content":"B"},{"role":"assistant","content":"C"}]
|
| 44 |
-
cha=[{"role":"user","content":"U1"},{"role":"assistant","content":"A1"},{"role":"user","content":"U2"},{"role":"assistant","content":"A2"}]
|
| 45 |
#res=tok.apply_chat_template(cha)
|
| 46 |
#print(tok.decode(res))
|
| 47 |
|
|
|
|
| 38 |
jina_ef=JinaEmbeddingFunction()
|
| 39 |
embeddingModel=jina_ef
|
| 40 |
|
| 41 |
+
myModel="mistralai/Mixtral-8x7b-instruct-v0.1"
|
| 42 |
#mod="mistralai/Mixtral-8x7b-instruct-v0.1"
|
| 43 |
#tok=AutoTokenizer.from_pretrained(mod) #,token="hf_...")
|
| 44 |
#cha=[{"role":"system","content":"A"},{"role":"user","content":"B"},{"role":"assistant","content":"C"}]
|
| 45 |
+
#cha=[{"role":"user","content":"U1"},{"role":"assistant","content":"A1"},{"role":"user","content":"U2"},{"role":"assistant","content":"A2"}]
|
| 46 |
#res=tok.apply_chat_template(cha)
|
| 47 |
#print(tok.decode(res))
|
| 48 |
|