- Posted on
- Featured Image
A bash-first Linux guide to prevent CUDA out-of-memory by improving VRAM hygiene: monitor usage (nvidia-smi, nvtop, radeontop, intel_gpu_top), hunt and kill ghost processes, auto-select the freest GPU, and tame pre-allocation/fragmentation via TF/JAX/PyTorch env vars; add cache clears, persistence mode, and optional MIG. Includes one-liners, install quick-reference, and a reusable preflight script.