Spaces:
Runtime error
Runtime error
0x7o
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ from threading import Thread
|
|
7 |
|
8 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
9 |
tokenizer = AutoTokenizer.from_pretrained("0x7194633/fialka-13B-v3.1")
|
10 |
-
model = AutoModelForCausalLM.from_pretrained("0x7194633/fialka-13B-v3.1", load_in_8bit=True)
|
|
|
11 |
|
12 |
|
13 |
# Defining a custom stopping criteria class for the model's text generation.
|
|
|
7 |
|
8 |
# Loading the tokenizer and model from Hugging Face's model hub.
|
9 |
tokenizer = AutoTokenizer.from_pretrained("0x7194633/fialka-13B-v3.1")
|
10 |
+
model = AutoModelForCausalLM.from_pretrained("0x7194633/fialka-13B-v3.1", load_in_8bit=True)
|
11 |
+
model.to("cuda:0")
|
12 |
|
13 |
|
14 |
# Defining a custom stopping criteria class for the model's text generation.
|