Spaces:
Build error
Build error
PeteBleackley commited on
Commit ·
e973c2b
1
Parent(s): 7758fd9
Diagnostics
Browse files- scripts.py +1 -0
scripts.py
CHANGED
|
@@ -125,6 +125,7 @@ def train_models(path,progress=gradio.Progress(track_tqdm=True)):
|
|
| 125 |
tokenizer)
|
| 126 |
|
| 127 |
trainer.to(device)
|
|
|
|
| 128 |
loss_fn = CombinedLoss()
|
| 129 |
loss_fn.cuda()
|
| 130 |
optimizer = torch.optim.NAdam(trainer.parameters(),lr=5.0e-5)
|
|
|
|
| 125 |
tokenizer)
|
| 126 |
|
| 127 |
trainer.to(device)
|
| 128 |
+
trainer.devices()
|
| 129 |
loss_fn = CombinedLoss()
|
| 130 |
loss_fn.cuda()
|
| 131 |
optimizer = torch.optim.NAdam(trainer.parameters(),lr=5.0e-5)
|