Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -48,11 +48,11 @@ def initialize_model():
|
|
48 |
|
49 |
model = AutoModelForCausalLM.from_pretrained(
|
50 |
MODEL_ID,
|
51 |
-
device_map="
|
52 |
quantization_config=quantization_config,
|
53 |
torch_dtype=torch.bfloat16,
|
54 |
trust_remote_code=True
|
55 |
-
)
|
56 |
|
57 |
return model, tokenizer
|
58 |
|
|
|
48 |
|
49 |
model = AutoModelForCausalLM.from_pretrained(
|
50 |
MODEL_ID,
|
51 |
+
device_map="cuda",
|
52 |
quantization_config=quantization_config,
|
53 |
torch_dtype=torch.bfloat16,
|
54 |
trust_remote_code=True
|
55 |
+
).to("cuda")
|
56 |
|
57 |
return model, tokenizer
|
58 |
|