Spaces:
Runtime error
Runtime error
dreamerdeo
commited on
Commit
•
e0504bf
1
Parent(s):
5dbbd83
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,7 @@ import torch
|
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer
|
5 |
from threading import Thread
|
6 |
|
7 |
-
model_path = '
|
8 |
-
# model_path = 'sail/Sailor-0.5B-Chat'
|
9 |
|
10 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
11 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
|
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer
|
5 |
from threading import Thread
|
6 |
|
7 |
+
model_path = 'sail/Sailor2-1B-Chat'
|
|
|
8 |
|
9 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|