Diagnose and Fix GPU Memory Issues
The agent identifies the root cause of GPU errors such as CUDA OOM or zombie processes, and executes fixes like killing processes or suggesting configuration changes to restore normal training or inference performance.
How it works
The agent first uses list_instances to locate the problematic server. It then uses ssh_execute to run diagnostic commands like nvidia-smi to check GPU memory and utilization, and tail to inspect log files for specific errors like CUDA OutOfMemoryError. If zombie processes are identified as the cause, the agent can execute kill commands to free up VRAM. For other issues, it analyzes system resources (RAM, disk) to provide concrete remediation steps.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
My training script is crashing with CUDA OOM. Can you check what’s happening? Also, check if there are any zombie processes eating GPU memory on my dev-box.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Use MCP tools to diagnose CUDA out-of-memory errors, check GPU utilization, inspect logs, and get fix suggestions: all through conversation.Debug GPU Issues with AI Agents - Runcrate