Media generation: image, video, music¶
One of the Hardware comparison for local AI benchmark pages.
Diffusion models are the opposite workload from LLM decode. A denoising step is a dense matmul over the whole network, every step, so media generation is compute-bound, not bandwidth-bound. This is why the M5 Ultra's Neural Accelerators moved image generation 4x over the M3 Ultra while decode only moved 1.5x (NetworkChuck measured both on the same box), and why the DGX Spark — decent tensor cores, but only 273 GB/s and a small GPU — falls ~2x behind a 5090 on the only image models it has published numbers for.
Image generation¶
Four models worth comparing in late 2026: FLUX.2 klein 4B (the small distilled family member — fp8, ~4 GB), FLUX.2 klein 9B (the bigger sibling — note it's 9B, not 12B; the 12B-class model is FLUX.2 [dev], which is much heavier), Qwen-Image 2.1 (7B DiT + Qwen3-VL 8B encoder, open weights, native 2K and alpha), and Z-Image Turbo (Alibaba's 6B Apache-2.0 distilled model — 8-9 steps, tiny, fast, and the community's go-to for interactive generation). Flux.1 dev is kept as the legacy anchor because it's the most cross-published number. All times are 1024x1024 unless noted. Every cell now states the quant and the measured peak memory where the source recorded it — footprint is what decides whether a card can run a model at all, and it varies hugely by quant: Qwen-Image 2.1 is 30.9 GB in bf16, 21.3 GB peak at 8-bit, 15.2 GB at 4-bit.
| Machine | Bandwidth | FLUX.2 klein 4B | FLUX.2 klein 9B | Qwen-Image 2.1 | Z-Image Turbo | Flux.1 dev (legacy) | Source |
|---|---|---|---|---|---|---|---|
| RTX 5090 | 1.79 TB/s, 32 GB | no direct published number | ~2 s distilled / ~35 s base (fp8; ~14 GB peak class) | 19.3 s fp8 (21.3 GB peak) / 19.2 s nf4 (15.2 GB peak), 40 steps | ~3.3 s/image nvfp4, 9 steps (shares VRAM with a resident 27B LLM; only 233 MB free at the tightest config) | ~8 s warm, FP4 Nunchaku (5090-mobile) | lucasgraphic · kgptalkie · wsjwong |
| RTX 4090 | 1,008 GB/s, 24 GB | ~1 s, fp8, 4 steps | ~3.7 s, FP16, 28 steps (site estimate; FP16 needs 29 GB — offload; fp8 fits at 14 GB) | no published run; 4-bit peaks at 15.4 GB so it fits | ~2.3 s, BF16, 8 steps (~13 GB peak) | 11.3 s warm, fp8, 20 steps | localaimaster · willitrunai · smeltcore · ComfyUI #9002 |
| RTX 3090 | 936 GB/s, 24 GB | — | — | — | 6.7 s, BF16, 7 steps (3090 Ti, steady-state) | ~26 s warm, fp8, 20 steps | miroleon benchmark · ComfyUI #9002 · GIGAGPU |
| DGX Spark (GB10) | 273 GB/s, 128 GB | — | — | no published number (original Qwen-Image: 98 s) | — | — | float16.cloud |
| Mac Studio M5 Ultra | 1.2 TB/s, 96/256 GB | 1.77 s, mflux, 4 steps (22.5 GB peak) | — | — | 9.25 s, mflux, 9 steps (37.0 GB peak) | no direct measurement (see head-to-head below) | NetworkChuck repo |
| Mac Studio M5 Max | 614 GB/s, 36 GB | — | — | 109 s Q8 (14 GB proc peak) / 157 s Q4 (11 GB), 40 steps, GGUF | — | ~28 s, 8-bit, 28 steps | kgptalkie · Contra Collective |
| Mac Studio M3 Ultra | 819 GB/s, 512 GB | 7.0 s, mflux, 4 steps (22.5 GB peak) | — | — | 27.9 s, mflux, 9 steps (37.0 GB peak) | 88 s cold | NetworkChuck repo · Olares |
| Mac Studio M4 Max | 546 GB/s | — | — | — | — | 136 s cold | Olares |
| Ryzen AI Halo (Strix Halo) | ~256 GB/s, 96/128 GB | — | — | — | — | ran, poorly (partial pass) | Olares |
The memory column is where the Mac pitch actually lives. Z-Image Turbo peaks at 37 GB — a 24 GB card can only run it quantized or offloaded, while a 96 GB Mac Studio holds it next to a resident 40-50 GB LLM with room to spare. Qwen-Image 2.1 tells the same story in quant form: 30.9 GB bf16, 21.3 GB at 8-bit, 15.2 GB at 4-bit — the 4-bit version fits a 4090 and runs at nearly 8-bit speed on CUDA, but on Apple Silicon the quant math inverts (see below).
Read the step count before comparing rows — mflux's defaults are 4 steps for klein 4B and 9 for Z-Image Turbo, kgptalkie's Qwen-Image 2.1 runs use 40 steps, the ComfyUI Flux templates use 20, willitrunai's klein estimate uses 28, and localaimaster's 4090 klein number is a 4-step distilled run. And note the Mac quirk kgptalkie measured: Q4 is slower than Q8 on Apple Silicon (157 s vs 109 s) because the GPU repacks 4-bit weights every step — the opposite of the CUDA world, where 4-bit is nearly free.
Video generation is its own story (it's MiniMax H3 now, and the bottleneck flips from compute to capacity) — see the dedicated section below. Music generation has no honest cross-hardware benchmark yet: YuE2, MusicGen, ACE-Step and Stable Audio Open are the same compute-bound shape as image gen, CUDA is where they're optimized, and from running YuE2 and MusicGen on a 5090 box a full song is a minutes-scale job — expect the Spark ~2x slower and Macs slower still, but that's reasoning, not measurement.
Three things to read out of the image table:
The Spark's LLM strength does not transfer to image gen. It wins or ties on vision-language and prefill because those are batched matmuls it has tensor-core throughput for, but a diffusion loop is a serial chain of matmuls on a small GPU — 2.1x behind the 5090 on every image test. Its 128 GB does help where the 5090 has to block-swap, but "fits without offload" is not the same as "fast". Video is the exception: H3 is capacity-bound, and there the Spark's memory is the whole story (below).
The M5 Ultra is the one Mac that takes image gen seriously. 1.77 s for a FLUX.2 klein 4B image is genuinely interactive — that's the Neural Accelerators doing dense matmuls, exactly the workload they were added for. But note the model: klein 4B is a small distilled model. On the same-class heavy models (Flux.1 dev), the Macs are still minutes behind CUDA boxes.
(Older video models for reference: LTX-2.5 ran 17.8 s on the M5 Ultra vs 48.4 s on the M3 Ultra — but H3 is the model that matters now.)
Video gen in 2026 is MiniMax H3¶
The model that actually separates hardware now is MiniMax H3 — open weights (Aug 2026), a 33B omni-transformer plus a full Qwen3-VL-32B encoder plus video and audio VAEs, generating video with native stereo sound in one pass (model card). It matters for this comparison because it's a capacity monster: the full pipeline is ~100 GB+ resident in BF16, ~42.5 GB of files even after INT8/NVFP4 repacking. That's a different bottleneck than compute, and it reshuffles the ranking:
| Hardware | Runtime | Workload | Time (type) | Source |
|---|---|---|---|---|
| 8x B300 | SGLang BF16 | 5.17 s @ 1344x768, 50 steps, warm | 19.0 s (latency) | SGLang cookbook |
| 4x H100 | SGLang TP2+Ulysses2 | 5 s @ 1344x768 (topology comparison) | 13.3 s (pipeline latency, not E2E) | SGLang cookbook |
| 4x H200 | SGLang Ulysses4 | 5 s @ 1344x768, 50 steps, warm | 74.4 s (E2E) | SGLang cookbook |
| 2x RTX 5090 | SGLang layerwise offload (26.3 GiB/GPU) | 5 s @ 1344x768, 50 steps | 559.7 s (E2E) | SGLang cookbook |
| DGX Spark (128 GB) | Diffusers INT8 + group offload | 5.17 s @ 768x576 | ~543 s (optimized avg) | community report |
| L40S (48 GB) | optimized raw weights | 10 s @ 960x544 | ~7.2 min | community report |
| RTX 4090 Laptop (16 GB) | ComfyUI repack, 20 steps | 5 s @ 960x540 | 182 s (E2E) | community report |
| Mac Studio M5 Ultra 96 GB | — | repack path (INT8 + offload) fits in unified memory; the open question is MPS throughput, not capacity | no published run | — |
| Mac Studio M5 Ultra 256 GB | — | repack path fits with room; no MLX port, Diffusers-on-MPS is the only path | no published run | — |
Read the workload and the measurement type before the number. The H100's 13.3 s is a pipeline-latency topology comparison, not an end-to-end run, so it is not directly comparable to the H200's 74.4 s E2E even though both are "4 cards at 1344x768" — SGLang itself flags them as different measured paths. The Spark's ~543 s is at 768x576 while the dual-5090's 560 s is at 1344x768, so they're not the same job either.
And note what the community numbers actually represent: the normal way to run H3 on consumer hardware is the ComfyUI repack path — INT8/NVFP4 weights with dynamic loading, which fits a 16 GB laptop GPU and runs comfortably on a 32 GB 5090 or 24 GB 4090. The multi-GPU SGLang recipes are for serving at full BF16 quality, not the desktop experience. So the practical ranking is: any decent CUDA card runs it (the 4090-laptop 182 s at 960x540 is the floor, a desktop 5090 is faster), the Spark runs it at ~543 s with light offload, and the question for each machine is throughput and resolution headroom, not whether it fits. The L40S report is the one to learn from: component placement (keeping the text encoder out of the way during denoise, not streaming the VAE leaf-by-leaf) mattered more than raw card speed.
For the Mac column: no published H3 numbers on Apple Silicon yet. Capacity isn't the blocker on either tier — the repack path is ~42.5 GB of files and unified memory holds it on 96 GB with offload, comfortably on 256 GB. The open question is throughput: no MLX port, Diffusers-on-MPS is the only path, and MPS was marginal for video even on M3/M4 Ultra in Olares' matrix. If H3 matters to your video workflow, that's a real question mark for the Mac and a real point for the Spark and every CUDA box.
The one comparison nobody has run: RTX 3090 vs M5 Ultra¶
There's no published head-to-head, but the pieces line up surprisingly close. Flux.1 dev fp8 at 1024², 20 steps: the 3090 does it in ~26 s warm (ComfyUI #9002, corroborated by GIGAGPU's 0.82 it/s). For the Mac side there's still no direct M5 Ultra Flux.1 dev measurement, but the best anchor is the same generation: an M5 Max does Flux.1 dev 8-bit in ~28 s warm at 28 steps (Contra Collective) — call it ~20 s at 20 steps, and the M5 Ultra's 2x bandwidth plus Neural Accelerators should beat that. (The older M3 Ultra took 88 s cold under MPS (Olares), and the M5 Ultra's measured image-gen speedup over the M3 Ultra is 4.0x (NetworkChuck) — both routes land in the same 15-25 s window.) So: roughly a tie on the same model, with the M5 Ultra pulling ahead on small distilled models (1.77 s on FLUX.2 klein 4B, 9.25 s on Z-Image Turbo — both faster than any 3090 result I can find) and the 3090 pulling ahead on anything that uses CUDA-only tricks — Nunchaku 4-bit, TensorRT, TeaCache — and on video, where H3's repack path is CUDA-only for now. The 3090 is also a third of the price.