[patch_mfft_tiny] Crash report
Browse files
runs/patch_mfft_tiny/logs/crash.log
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Crash on patch_mfft_tiny at 2026-10-20T23:58:24.530049+00:00:
|
| 2 |
+
|
| 3 |
+
Traceback (most recent call last):
|
| 4 |
+
File "/tmp/ipykernel_23/3889735120.py", line 27, in <cell line: 0>
|
| 5 |
+
tr_loss, tr_acc = train_epoch(model, train_loader, optimizer, scheduler, scaler, DEVICE, CONFIG["gradient_accumulation_steps"])
|
| 6 |
+
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 7 |
+
File "/tmp/ipykernel_23/3470172129.py", line 20, in train_epoch
|
| 8 |
+
loss_loc = criterion_loc(pred_masks, masks)
|
| 9 |
+
File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1779, in _wrapped_call_impl
|
| 10 |
+
return self._call_impl(*args, **kwargs)
|
| 11 |
+
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
|
| 12 |
+
File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/module.py", line 1790, in _call_impl
|
| 13 |
+
return forward_call(*args, **kwargs)
|
| 14 |
+
File "/usr/local/lib/python3.13/dist-packages/torch/nn/modules/loss.py", line 710, in forward
|
| 15 |
+
return F.binary_cross_entropy(
|
| 16 |
+
~~~~~~~~~~~~~~~~~~~~~~^
|
| 17 |
+
input, target, weight=self.weight, reduction=self.reduction
|
| 18 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 19 |
+
)
|
| 20 |
+
^
|
| 21 |
+
File "/usr/local/lib/python3.13/dist-packages/torch/nn/functional.py", line 3574, in binary_cross_entropy
|
| 22 |
+
return torch._C._nn.binary_cross_entropy(input, target, weight, reduction_enum)
|
| 23 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 24 |
+
RuntimeError: torch.nn.functional.binary_cross_entropy and torch.nn.BCELoss are unsafe to autocast.
|
| 25 |
+
Many models use a sigmoid layer right before the binary cross entropy layer.
|
| 26 |
+
In this case, combine the two layers using torch.nn.functional.binary_cross_entropy_with_logits
|
| 27 |
+
or torch.nn.BCEWithLogitsLoss. binary_cross_entropy_with_logits and BCEWithLogits are
|
| 28 |
+
safe to autocast.
|
| 29 |
+
|