Spaces:
Build error
Build error
rishabhjain16
commited on
Commit
•
9ee91e6
1
Parent(s):
2eff9a6
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from transformers import StoppingCriteria, StoppingCriteriaList, TextIteratorStr
|
|
5 |
from threading import Thread
|
6 |
|
7 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained("CohereForAI/c4ai-command-r-v01")
|
9 |
-
model = AutoModelForCausalLM.from_pretrained("CohereForAI/c4ai-command-r-v01")
|
10 |
|
11 |
# using CUDA for an optimal experience
|
12 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
5 |
from threading import Thread
|
6 |
|
7 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained("CohereForAI/c4ai-command-r-v01-4bit")
|
9 |
+
model = AutoModelForCausalLM.from_pretrained("CohereForAI/c4ai-command-r-v01-4bit")
|
10 |
|
11 |
# using CUDA for an optimal experience
|
12 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|