Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ print(f"Loading model: {model_name} with quantization")
|
|
42 |
model = AutoModelForCausalLM.from_pretrained(
|
43 |
model_name,
|
44 |
quantization_config=quantization_config_4bit, # Comment out if not using quantization
|
45 |
-
device_map="
|
46 |
)
|
47 |
|
48 |
print(f"Loading tokenizer: {model_name}")
|
|
|
42 |
model = AutoModelForCausalLM.from_pretrained(
|
43 |
model_name,
|
44 |
quantization_config=quantization_config_4bit, # Comment out if not using quantization
|
45 |
+
device_map="cuda",
|
46 |
)
|
47 |
|
48 |
print(f"Loading tokenizer: {model_name}")
|