Skip to main content
VRAM DIFFUSIONVRAM STUDIO // FLUX.1 & WAN2.2 OFFLOAD + GPU BATCH STUDIO FP8 + SAGEATTN | VULTR $300 GPU CREDIT | XIAOMI MIMO OFFLOAD | BASELINE 2026-10-13
ComfyUIFluxGPU
ComfyUIFluxGPU Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
GPU & Model Presets

Docker + NVIDIA Container Toolkit (CUDA 12.4 + PyTorch 2.5) Preset

Containerize ComfyUI on Ubuntu 24.04 Vultr GPU nodes with --gpus all, shared /dev/shm sizing, and persistent NVMe model mounts.

--shm-size=16g · CUDA 12.4 · Persistent extra_model_paths.yaml

Docker + NVIDIA Container Toolkit (CUDA 12.4 + PyTorch 2.5) Preset
VRAM & offload baseline verified 2026-10-13 by DiffusionVRAM Studio.

Fixing the Silent 64 MB /dev/shm Docker Trap

Docker defaults /dev/shm to 64 MB, causing bus errors (SIGBUS) as soon as ComfyUI offloads T5-XXL or video tensors to shared host memory. Always mount --shm-size=16g or 32g.

Decoupling Weights With extra_model_paths.yaml

Mount models read-only from /mnt/nvme/comfyui-models and point extra_model_paths.yaml there so upgrading ComfyUI takes seconds without re-downloading 30 GB checkpoints.

Measured Thresholds & ComfyUI Configuration Matrix

Parameter / SettingRecommended ValueOperational Reason
Shared Memory (--shm-size)16g to 32gDefault 64 MB Docker /dev/shm crashes PyTorch pinned RAM
CUDA & PyTorch BaseCUDA 12.4 + PyTorch 2.5+ cu124Required for SageAttention and Ada FP8 matmul kernels
Model Volume Mount-v /mnt/nvme/models:/opt/models:roPersists 40+ GB Flux/Wan2.2 weights across container rebuilds
Allocator EnvPYTORCH_CUDA_ALLOC_CONFPassed via docker run -e for expandable CUDA segments
--shm-size=16g · CUDA 12.4 · Persistent extra_model_paths.yaml Claim $300 GPU CreditXiaomi MiMo API