Spaces:
Running
Running
nicholasKluge
commited on
Commit
•
399af28
1
Parent(s):
e1163a8
Update app.py
Browse files
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")
|
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)
|