Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse filesReplace model with more capable model.
app.py
CHANGED
@@ -9,7 +9,7 @@ import re
|
|
9 |
|
10 |
# Load the SmolLM model and tokenizer
|
11 |
# model_name = "HuggingFaceTB/SmolLM2-360M-Instruct"
|
12 |
-
model_name = "HuggingFaceTB/SmolLM2-1.7B-Instruct"
|
13 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
15 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
9 |
|
10 |
# Load the SmolLM model and tokenizer
|
11 |
# model_name = "HuggingFaceTB/SmolLM2-360M-Instruct"
|
12 |
+
model_name = "HuggingFaceTB/SmolLM3-3B" # "HuggingFaceTB/SmolLM2-1.7B-Instruct"
|
13 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
15 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|