nicholasKluge commited on
Commit
399af28
1 Parent(s): e1163a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ rewardmodel_id = "nicholasKluge/RewardModel"
38
  toxicitymodel_id = "nicholasKluge/ToxicityModel"
39
 
40
  # specify the device (cuda if available)
41
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu") # "cuda" if torch.cuda.is_available() else "cpu"
42
 
43
  # load the models (chatbot, reward model, toxicity model)
44
  model = AutoModelForCausalLM.from_pretrained(model_id)
 
38
  toxicitymodel_id = "nicholasKluge/ToxicityModel"
39
 
40
  # specify the device (cuda if available)
41
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
42
 
43
  # load the models (chatbot, reward model, toxicity model)
44
  model = AutoModelForCausalLM.from_pretrained(model_id)