katielink commited on
Commit
65debe0
1 Parent(s): d2cfd80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ print(f"Is CUDA available: {torch.cuda.is_available()}")
12
  print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
13
 
14
  pipe_biogpt = pipeline("text-generation", model="microsoft/biogpt")
15
- pipe_biomedlm = pipeline("text-generation", model="stanford-crfm/BioMedLM", device="cuda:0")
16
- pipe_galactica = pipeline("text-generation", model="facebook/galactica-1.3b", device="cuda:0")
17
 
18
  title = "Compare generative biomedical LLMs!"
19
  description = "**Disclaimer:** this demo was made for research purposes only and should not be used for medical purposes."
 
12
  print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
13
 
14
  pipe_biogpt = pipeline("text-generation", model="microsoft/biogpt")
15
+ pipe_biomedlm = pipeline("text-generation", model="stanford-crfm/BioMedLM", device="cuda:0", model_kwargs={"torch_dtype":torch.bfloat16})
16
+ pipe_galactica = pipeline("text-generation", model="facebook/galactica-1.3b", device="cuda:0", model_kwargs={"torch_dtype":torch.bfloat16})
17
 
18
  title = "Compare generative biomedical LLMs!"
19
  description = "**Disclaimer:** this demo was made for research purposes only and should not be used for medical purposes."