nkanungo commited on
Commit
5076d6b
·
1 Parent(s): d2c504e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
7
  model = AutoModelForCausalLM.from_pretrained(
8
  "microsoft/phi-2",
9
  torch_dtype=torch.float32,
10
- device_map="auto",
11
  trust_remote_code=True
12
  )
13
  model.load_adapter('checkpoint-960')
 
7
  model = AutoModelForCausalLM.from_pretrained(
8
  "microsoft/phi-2",
9
  torch_dtype=torch.float32,
10
+ device_map="cpu",
11
  trust_remote_code=True
12
  )
13
  model.load_adapter('checkpoint-960')