Luigi commited on
Commit
cc12a51
·
1 Parent(s): cb16ac6

revert device_map to audo

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ def load_pipeline(model_name):
78
  tokenizer=tokenizer,
79
  trust_remote_code=True,
80
  torch_dtype=dtype,
81
- device_map="xpu"
82
  )
83
  PIPELINES[model_name] = pipe
84
  return pipe
@@ -90,7 +90,7 @@ def load_pipeline(model_name):
90
  model=repo,
91
  tokenizer=tokenizer,
92
  trust_remote_code=True,
93
- device_map="xpu"
94
  )
95
  PIPELINES[model_name] = pipe
96
  return pipe
 
78
  tokenizer=tokenizer,
79
  trust_remote_code=True,
80
  torch_dtype=dtype,
81
+ device_map="auto"
82
  )
83
  PIPELINES[model_name] = pipe
84
  return pipe
 
90
  model=repo,
91
  tokenizer=tokenizer,
92
  trust_remote_code=True,
93
+ device_map="auto"
94
  )
95
  PIPELINES[model_name] = pipe
96
  return pipe