Commit
·
22e9595
1
Parent(s):
baf47ca
Reverted model upgrade. Hardware availible cant handle it.
Browse files
app.py
CHANGED
|
@@ -6,8 +6,8 @@ import torch
|
|
| 6 |
from duckduckgo_search import DDGS
|
| 7 |
|
| 8 |
# Load the SmolLM model and tokenizer
|
| 9 |
-
|
| 10 |
-
model_name = "HuggingFaceTB/SmolLM2-1.7B-Instruct"
|
| 11 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 6 |
from duckduckgo_search import DDGS
|
| 7 |
|
| 8 |
# Load the SmolLM model and tokenizer
|
| 9 |
+
model_name = "HuggingFaceTB/SmolLM2-360M-Instruct"
|
| 10 |
+
# model_name = "HuggingFaceTB/SmolLM2-1.7B-Instruct"
|
| 11 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|