simone-papicchio commited on
Commit
e993e1b
·
1 Parent(s): 7e9dee7

fix: pipeline does not have 'to'

Browse files
Files changed (1) hide show
  1. prediction.py +1 -1
prediction.py CHANGED
@@ -28,8 +28,8 @@ pipeline = hf_pipeline(
28
  "text-generation",
29
  model="meta-llama/Meta-Llama-3.1-8B-Instruct",
30
  model_kwargs={"torch_dtype": 'bfloat16'},
 
31
  )
32
- pipeline.to('cuda')
33
 
34
 
35
  class ModelPrediction:
 
28
  "text-generation",
29
  model="meta-llama/Meta-Llama-3.1-8B-Instruct",
30
  model_kwargs={"torch_dtype": 'bfloat16'},
31
+ device_map="auto",
32
  )
 
33
 
34
 
35
  class ModelPrediction: