Diagnosing PyTorch CUDA Out-of-Memory Errors on a Single GPU
Distinguish allocated from reserved CUDA memory, inspect fragmentation with memory_summary(), and apply targeted fixes such as gradient checkpointing or allocator configuration.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Distinguish allocated from reserved CUDA memory, inspect fragmentation with memory_summary(), and apply targeted fixes such as gradient checkpointing or allocator configuration.
Turn on GPU hardware acceleration in Kaggle Notebooks, verify CUDA with nvidia-smi, and manage session, storage, and weekly compute limits.
torch.compile can speed up PyTorch 2.x training, but cold-start latency and graph breaks make it the wrong choice for short scripts and dynamic models.
Learn how to import a TensorFlow SSD MobileNet v2 model into OpenCV’s DNN module, run inference on CPU or CUDA GPU, and verify performance and compatibility.
GPU training with DataLoader(num_workers>0) carries a start-method decision PyTorch leaves to the user. Python's long-standing Linux default, fork , starts workers almost instantly and lets them inherit parent memory, including CUDA state. spawn isolates each worker in a fresh interpreter, re-importing the module and re-initializing CUDA per worker. That