Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ model_name = "yasserrmd/SmolLM2-156M-synthetic-dlp"
|
|
7 |
model = AutoModelForCausalLM.from_pretrained(
|
8 |
model_name,
|
9 |
load_in_8bit=True,
|
10 |
-
|
11 |
)
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
13 |
|
|
|
7 |
model = AutoModelForCausalLM.from_pretrained(
|
8 |
model_name,
|
9 |
load_in_8bit=True,
|
10 |
+
device_map ="cuda"
|
11 |
)
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
13 |
|