TUNING 01
Prevent Linux SIGKILL crashes during Flux.1 prompt encoding by sizing host RAM for T5-XXL (4.9-9.8 GB) and dropping to FP8 or Q5_K_M GGUF.
BF16 T5: 9.8 GB · FP8 T5: 4.9 GB · Q5_K_M: 3.6 GB
TUNING 02
Benchmark exact step-time penalties when ComfyUI streams DiT transformer blocks across PCIe Gen4 x16 under --lowvram versus --normalvram.
--normalvram: +8% vs --highvram · --lowvram: +42% · --novram: 4x slower
TUNING 03
Eliminate end-of-workflow CUDA OOM crashes during high-resolution Flux VAE decode and Wan2.2 81-frame 3D VAE decoding using 512px tiles.
Un-tiled 1536px Spike: ~6.4 GB · 512px Tiled: ~1.7 GB (-73%)
TUNING 04
Benchmark INT8-quantized QK attention in SageAttention (--use-sage-attention) versus FlashAttention-2 and PyTorch SDPA on L4 and L40S.
1.8x-2.3x Video Speedup · -14% Activation VRAM · Ada/Ampere
TUNING 05
Set expandable_segments:True and max_split_size_mb:256 to eliminate false CUDA Out-of-Memory errors when nvidia-smi shows 3+ GB free.
Reclaims 1.5-3.2 GB Fragmented VRAM · Zero Perf Penalty
TUNING 06
Calculate host RAM and NVMe swap floors for --lowvram and --normalvram workflows so pinned safetensors never trigger Linux OOM kills.
64 GB RAM Safe Floor · 16-32 GB NVMe Swap · --shm-size=16g
TUNING 07
Unlock native 4th-gen Tensor Core FP8 accumulation on NVIDIA L4 and L40S GPUs while avoiding slow emulation on Ampere A16/A40/A100 cards.
+22% Speed on L4/L40S · Disable on Ampere A16/A40/A100
TUNING 08
Serialize concurrent webhook requests into single-GPU ComfyUI queues with deterministic seed tracking, timeout watchdogs, and asset upload.
100% Serialized GPU Access · Zero Race OOMs · <40ms Enqueue
TUNING 09
Cut 30 GB Flux + Wan2.2 safetensors cold-load latency from 45 seconds to under 6 seconds using local PCIe NVMe and extra_model_paths.yaml.
3.5+ GB/s NVMe Read · 400 GB Model Pool · mmap Zero-Copy
TUNING 10
Balance workflow switch speed against RAM exhaustion across multi-LoRA jobs using --cache-lru N and --cache-classic memory flags.
--cache-lru 2 (32-64 GB RAM) · --cache-lru 4 (128 GB+ RAM)
TUNING 11
Replace local 7B-14B LLM/VLM prompt-rewriter nodes inside ComfyUI with Xiaomi MiMo API calls so 24 GB GPUs stay 100% dedicated to Flux & Wan2.2.
Saves 5.5-8.2 GB VRAM · Zero Model Swapping · Free Token Grant