Hi,
On this card
lspci | grep NVIDIA
21:00.0 VGA compatible controller: NVIDIA Corporation TU117 [GeForce GTX 1650] (rev a1)
21:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
with this SMI
nvidia-smi
Fri Nov 4 09:36:22 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 470.141.03 Driver Version: 470.141.03 CUDA Version: 11.4 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … Off | 00000000:21:00.0 Off | N/A |
| 30% 32C P8 4W / 75W | 73MiB / 3911MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 3207 G /usr/lib/xorg/Xorg 9MiB |
| 0 N/A N/A 3383 G /usr/bin/gnome-shell 2MiB |
| 0 N/A N/A 5130 C python 57MiB |
±----------------------------------------------------------------------------+
I get this error, when failing to allocate 20 Megabytes - so I don’t think it is related to the reatively weak GPU
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
File "<string>", line 119, in fallback_cuda_fuser
def backward(grad_output):
input_sigmoid = torch.sigmoid(self)
return grad_output * (input_sigmoid * (1 + self * (1 - input_sigmoid)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
return result, backward
RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.82 GiB total capacity; 897.88 MiB already allocated; 20.25 MiB free; 3.06 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
It reads as if TorchScript (part of PyTorch) doesn’t have access to the memory reserved by PyTorch?