bstraehle commited on
Commit
186a997
1 Parent(s): 9ae3ad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def prompt_model(model_id, system_prompt, user_prompt):
37
  {"role": "assistant", "content": ""}
38
  ]
39
 
40
- output = pipe(messages, device="cuda")
41
 
42
  return output[0]["generated_text"][-1]["content"]
43
 
 
37
  {"role": "assistant", "content": ""}
38
  ]
39
 
40
+ output = pipe(messages, model_kwargs={"torch_dtype": torch.bfloat16}, device="cuda")
41
 
42
  return output[0]["generated_text"][-1]["content"]
43