Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
|
@@ -15,8 +15,8 @@ model_id = "acbdkk/SupaMATH3"
|
|
| 15 |
device = "cpu"
|
| 16 |
|
| 17 |
|
| 18 |
-
model = AutoModelForCausalLM.from_pretrained(model_id,
|
| 19 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 20 |
|
| 21 |
def get_prompt(message: str, chat_history: list[tuple[str, str]],
|
| 22 |
system_prompt: str) -> str:
|
|
|
|
| 15 |
device = "cpu"
|
| 16 |
|
| 17 |
|
| 18 |
+
model = AutoModelForCausalLM.from_pretrained(model_id,hf=True)
|
| 19 |
+
tokenizer = AutoTokenizer.from_pretrained("acbdkk/SupaMATH3")
|
| 20 |
|
| 21 |
def get_prompt(message: str, chat_history: list[tuple[str, str]],
|
| 22 |
system_prompt: str) -> str:
|