The Resources dataclass defines compute requirements for processing stages.
requires_gpuCheck if any GPU resources are requested.
Use gpu_memory_gb for stages that need a fraction of a GPU:
The system automatically calculates the GPU fraction based on available GPU memory.
Use gpus for stages that need one or more full GPUs:
Use entire_gpu: True to allocate a full GPU regardless of memory:
You cannot specify both gpus and gpu_memory_gb. Choose one:
gpu_memory_gb for single-GPU stages (< 1 GPU)gpus for multi-GPU stages (>= 1 GPU)Use with_() to override resource configurations: