Spaces:
Running
on
Zero
Running
on
Zero
Update model.py
Browse files
model.py
CHANGED
@@ -52,7 +52,7 @@ class Rank1:
|
|
52 |
# Load AWQ model on CPU initially
|
53 |
self.model = AutoModelForCausalLM.from_pretrained(
|
54 |
model_name_or_path,
|
55 |
-
device_map="
|
56 |
trust_remote_code=True,
|
57 |
attn_implementation="flash_attention_2"
|
58 |
)
|
|
|
52 |
# Load AWQ model on CPU initially
|
53 |
self.model = AutoModelForCausalLM.from_pretrained(
|
54 |
model_name_or_path,
|
55 |
+
device_map="auto",
|
56 |
trust_remote_code=True,
|
57 |
attn_implementation="flash_attention_2"
|
58 |
)
|