Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
import accelerate
|
5 |
|
6 |
model_path = "01-ai/Yi-6B-200K"
|
7 |
-
model = AutoModelForCausalLM.from_pretrained(model_path,
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
9 |
|
10 |
def respond_to_input(user_input):
|
|
|
4 |
import accelerate
|
5 |
|
6 |
model_path = "01-ai/Yi-6B-200K"
|
7 |
+
model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype="auto")
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
9 |
|
10 |
def respond_to_input(user_input):
|