orionweller commited on
Commit
776166c
·
verified ·
1 Parent(s): b5f72c9

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
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="cpu",
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
  )