Samuel Thomas commited on
Commit
8792b9a
·
1 Parent(s): fe1bd6e
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -102,7 +102,7 @@ def create_llm_pipeline():
102
  return pipeline(
103
  "text-generation",
104
  model=model_id,
105
- device_map="auto",
106
  torch_dtype=torch.float16,
107
  max_new_tokens=1024,
108
  temperature=0.05,
 
102
  return pipeline(
103
  "text-generation",
104
  model=model_id,
105
+ device_map="cpu",
106
  torch_dtype=torch.float16,
107
  max_new_tokens=1024,
108
  temperature=0.05,