Luigi commited on
Commit
1242438
·
1 Parent(s): 2882063

bugfix: set device to xpu by mistake

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,7 +70,7 @@ def load_pipeline(model_name):
70
  tokenizer=tokenizer,
71
  trust_remote_code=True,
72
  torch_dtype=dtype,
73
- device_map="xpu"
74
  )
75
  PIPELINES[model_name] = pipe
76
  return pipe
@@ -82,7 +82,7 @@ def load_pipeline(model_name):
82
  model=repo,
83
  tokenizer=tokenizer,
84
  trust_remote_code=True,
85
- device_map="xpu"
86
  )
87
  PIPELINES[model_name] = pipe
88
  return pipe
 
70
  tokenizer=tokenizer,
71
  trust_remote_code=True,
72
  torch_dtype=dtype,
73
+ device_map="auto"
74
  )
75
  PIPELINES[model_name] = pipe
76
  return pipe
 
82
  model=repo,
83
  tokenizer=tokenizer,
84
  trust_remote_code=True,
85
+ device_map="auto"
86
  )
87
  PIPELINES[model_name] = pipe
88
  return pipe