// RUN โ€” FITS

Can the NVIDIA L40S 48GB run Stable Diffusion XL (SDXL)?

Yes โ€” here's how fast and up to what context, with real measured numbers.

Stable Diffusion XL (SDXL) on the NVIDIA L40S 48GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 547k 92.8-110.5 t/s ~4.3-5.1 (slow)
Q8 yes 599k 185.5-221.1 t/s ~8.6-10.2 (slow)
Q4 yes 622k 331.3-394.8 t/s ~15.3-18.3 (slow)

Estimate (memory-bound). Beyond "max context" the KV cache spills to system RAM offload (depends on your system RAM) and speed drops to the "beyond" figure.

FAQ

Can the NVIDIA L40S 48GB run Stable Diffusion XL (SDXL)?โ–ถ

Yes. At Q4 it generates ~331.3-394.8 tok/s and fits up to 622k context; beyond that it spills to system RAM offload (depends on your system RAM) and slows to ~15.3-18.3 tok/s.

How much context fits?โ–ถ

At Q4, up to about 622k tokens stay in fast memory; longer context spills to system RAM offload (depends on your system RAM) and throughput collapses.