Samuel Thomas commited on
Commit
f2a058a
·
1 Parent(s): 5948f01

move to cpu

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -83,7 +83,7 @@ def create_llm_pipeline():
83
  "text-generation",
84
  model=model_id,
85
  tokenizer = tokenizer,
86
- device_map="auto",
87
  torch_dtype=torch.float16,
88
  max_new_tokens=1024,
89
  temperature=0.1
 
83
  "text-generation",
84
  model=model_id,
85
  tokenizer = tokenizer,
86
+ device_map="cpu",
87
  torch_dtype=torch.float16,
88
  max_new_tokens=1024,
89
  temperature=0.1