Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Studio images: MOSS-Image batches streamed requests on an A100 80GB
Measured on an A100-SXM4-80GB with the DiT streamed by block-level group
offload (bf16 eager, 1024 px, 10 steps, 3 ABBA repeats): one layer-major call
for N=2 runs 1.98x and for N=4 2.42x faster than N serial renders (95% CI
lower bounds 1.98x and 2.40x), with block uploads per step dropping from 336
to 84 at N=4. Every batched latent equals its own solo render (G2c n=24,
upper bound 0.0; row 0 identical at N=2 and N=4), so this card gets a serving
verdict. Resident loads measured 0.997x and keep rendering one at a time.
  • Loading branch information
danielhanchen committed Nov 27, 2026
commit 1d3aff370ec55f52d41c6cd7bda244a0740f798e
8 changes: 7 additions & 1 deletion studio/backend/core/inference/diffusion_moss_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,13 @@ def layer_major_refusal(transformer) -> Optional[str]:
# Measured Auto verdicts for the layer-major batch: card name -> evidence, with ``serves`` True only when the paired
# G2c bound (24 pairs, LPIPS upper <= +0.01), the row-0 gate and the speed gate (lower bound >= 1.05x serial, p95
# <= +3%) all passed there. Any other card keeps rendering concurrent MOSS requests one at a time.
MEASURED_BATCH_WINS: dict = {}
MEASURED_BATCH_WINS: dict = {
# bf16 eager, diffusers block-level group offload (one block per group, streams), 1024 px, 10 steps, CFG 2.5,
# 3 ABBA repeats; torch 2.14.1, diffusers 0.42.1. Batched vs serial: N=2 1.98x (95% CI 1.98-1.99), N=4 2.42x
# (2.40-2.43), batched p95 0.41-0.50x of serial; 336 -> 84 block uploads per step at N=4. G2c n=24 upper bound
# 0.0 (all 24 batched latents equal their solo renders); row 0 equal to its solo render at N=2 and N=4.
"NVIDIA A100-SXM4-80GB": {"serves": True, "speed_lo": 1.98, "g2c_upper": 0.0, "g2c_n": 24},
}


def coalesce_key(pipe) -> Optional[tuple]:
Expand Down