Spaces:
Running
on
Zero
Running
on
Zero
dreamerdeo
commited on
Commit
•
265b4a4
1
Parent(s):
d1c980d
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import torch
|
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer
|
5 |
from threading import Thread
|
6 |
|
7 |
-
model_path = 'dreamerdeo/Sailor2-0.8B-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)
|
|
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer
|
5 |
from threading import Thread
|
6 |
|
7 |
+
# model_path = 'dreamerdeo/Sailor2-0.8B-Chat'
|
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)
|