rphrp1985 commited on
Commit
a080ae2
1 Parent(s): 86a70f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_id, token= token)
27
  model = AutoModelForCausalLM.from_pretrained(model_id, token= token, torch_dtype=torch.bfloat16,
28
  # attn_implementation="flash_attention_2",
29
  low_cpu_mem_usage=True,
30
- device_map="cuda"
31
  )
32
 
33
 
 
27
  model = AutoModelForCausalLM.from_pretrained(model_id, token= token, torch_dtype=torch.bfloat16,
28
  # attn_implementation="flash_attention_2",
29
  low_cpu_mem_usage=True,
30
+ device_map="auto"
31
  )
32
 
33