Image and Video Model VRAM Calculator
Estimates the peak GPU memory an open image or video diffusion model needs: denoiser weights at the chosen precision, text encoders if they stay on the GPU, the VAE and working memory. Sizes come from each model's Hugging Face files. Working memory is a published peak, measured by the model's authors or Hugging Face's Diffusers team, minus that run's weights, scaled by width × height × frames × batch; unmeasured models borrow the nearest measured figure.
Pick an image or video model, the precision its denoiser runs at and where its text encoders live, then the size you want to generate. The calculator adds up what sits in GPU memory at the peak of a run (the denoiser's weights, the text encoders, the VAE and the working memory the run itself needs) and shows which of eleven graphics cards hold it. Language models size up differently, and the LLM VRAM calculator covers them. Everything runs in your browser.
How the estimate works
Weights come from each model's own files on Hugging Face. A denoiser with N parameters takes N × bits ÷ 8 bytes. Text encoders take 2 bytes a parameter on the GPU, 1 in 8-bit and none in system RAM, and the VAE takes 2.
VRAM = parameters × bits ÷ 8 + encoder parameters × encoder bytes + VAE parameters × 2 + working memory per pixel × width × height × frames × batch
Working memory is the part no file listing shows: activations, attention, the VAE decode and whatever PyTorch's allocator holds on to. From each published run's peak it subtracts the weights it would count for that run's settings, then divides the remainder by the run's width × height × frames × batch, so at the measured settings it returns the published peak exactly. The Working memory basis line reads Measured at the size of the published run, Scaled at any other size, and Estimated for models with no published run, which borrow the per-pixel figure of the nearest measured model.
Scaling with pixels and frames holds up where it can be checked: from the Wan authors' Wan 2.2 A14B run at 832 × 480, the calculator predicts 60.2 GB at 1280 × 720, and they measured 59.8 GB. GB here means 230 bytes, as in the Diffusers team's scripts, which divide PyTorch's byte counts by 1024³; Wan's tables do not say, and are read the same way. Hugging Face lists files in decimal units, a 7% gap the data storage converter explains.
Where the working memory comes from
| Model | Working memory | Measured at | Measured by |
|---|---|---|---|
| SDXL 1.0 | 15.3 GB | 1024 × 1024, batch of 4 | Diffusers team, A100 40GB |
| FLUX.1 dev | 4.7 GB | 1024 × 1024 | Diffusers team, H100 |
| FLUX.3 Image Klein | 2.0 GB | 1024 × 1024 | Diffusers team, H100 |
| Wan 2.1 1.3B | 2.7 GB | 832 × 480, 81 frames | Wan's authors, RTX 4090 |
| Wan 2.1 14B | 15.6 GB | 1280 × 720, 81 frames | Wan's authors, one GPU |
| Wan 2.2 5B | 12.3 GB | 1280 × 704, 121 frames | Wan's authors, RTX 4090 |
| Wan 2.2 A14B | 14.4 GB | 832 × 480, 81 frames | Wan's authors, one GPU |
| HunyuanVideo | 21.6 GB | 768 × 512, 121 frames | Diffusers team, A100 80GB |
| LTX-Video 2B | 4.5 GB | 768 × 512, 121 frames | Diffusers team, A100 80GB |
The Diffusers runs kept every component on the GPU. The Wan runs used the authors' flags: --t5_cpu kept the text encoder in system RAM for the 1.3B and 5B, and --offload_model moved it off the GPU before denoising in the 14B runs, so no encoder is subtracted. Wan 2.1's code keeps the denoiser in the FP32 its files are stored in, and Wan 2.2's --convert_model_dtype casts it to BF16. Wan 2.1 14B and each Wan 2.2 A14B expert have the same 14,288,491,584 parameters, yet their runs leave different working memory, and each keeps its own.
Seven models have no published run. SD 1.5 borrows SDXL's figure; their VAE configs share one decoder layout, but SDXL's sets force_upcast and decodes in FP32, so the borrowed figure errs high. SD 3.5 Medium and Large, FLUX.1 schnell and Qwen-Image borrow FLUX.1 dev's. The two FLUX.2 models borrow FLUX.3 Image Klein's, which the Diffusers team says uses the same VAE architecture as FLUX.2. The FLUX.1 figure counts memory PyTorch reserved and the FLUX.3 one memory it allocated, so FLUX.1's runs higher.
Bigger models, bigger outputs
In December 2021 Robin Rombach and colleagues moved diffusion models out of pixel space into the latent space of a pretrained autoencoder, "significantly reducing computational requirements". Stable Diffusion's model card calls it that kind of latent diffusion model, which is why every model here ships a VAE. Stable Diffusion 1.5's UNet has 859,520,964 parameters. SDXL, in July 2023, used a UNet three times larger and a second text encoder. The March 2024 paper behind Stable Diffusion 3 replaced the UNet with a transformer that keeps separate weights for image and text, and the SD 3.5 files carry three text encoders, the largest a T5-XXL encoder of 4.76 billion parameters.
Video multiplied the problem. Tencent described HunyuanVideo, in December 2024, as having over 13 billion parameters, "the largest among all open-source models". Wan 2.1 arrived on 25 February 2025 with a 1.3B model its authors measured at 8.19 GB, and LTX-Video packs 32 × 32 × 8 pixels into each token so its transformer can attend across the whole clip. Image models kept growing: Qwen-Image is a 20B transformer, and FLUX.2 dev, released on 25 November 2025, pairs a 32-billion-parameter transformer with Mistral Small 3.2 24B as its text encoder. The Diffusers team found the pair needs more than 80 GB without offloading.
Worked example: FLUX.1 dev
The defaults load FLUX.1 dev in BF16 with both text encoders on the GPU and make one 1024 × 1024 image. The transformer's 11,901,408,320 parameters at 2 bytes come to 22.2 GB. The T5-XXL and CLIP encoders, 4,885,371,136 parameters between them, add 9.1 GB and the VAE 0.2 GB. The Diffusers team measured a 36.166 GB peak for this run on an H100, leaving 4.7 GB of working memory, and the total is 36.2 GB. That is more than a 32 GB RTX 5090 holds, so the smallest card in the table that fits is the 48 GB RTX PRO 5000.
Two changes bring it to a desktop card. Leaving the text encoders in system RAM drops it to 27.1 GB, inside a 5090 with 4.9 GB to spare. A GGUF Q4_K_S transformer on top drops it to 11.1 GB, inside a 12 GB RTX 5070. As a check, the same team's GGUF Q8_0 run, with the T5 still in BF16 on the GPU, peaked at 25.973 GB, and the calculator gives 25.8 GB for those settings.
Precision, GGUF and FP8
| Precision | Bits per weight | FLUX.1 dev transformer |
|---|---|---|
| FP32 | 32 | 44.3 GB |
| BF16 / FP16 | 16 | 22.2 GB |
| FP8 | 8 | 11.1 GB |
| GGUF Q8_0 | 8.5 | 11.8 GB |
| GGUF Q6_K | 6.5625 | 9.1 GB |
| GGUF Q5_K_S | 5.5 | 7.6 GB |
| GGUF Q4_K_S | 4.5 | 6.2 GB |
| GGUF Q3_K_S | 3.4375 | 4.8 GB |
GGUF stores weights in fixed blocks whose sizes llama.cpp's ggml source sets: Q8_0 packs 32 weights into 34 bytes, 8.5 bits each, and the K-quants pack 256 weights into 210 bytes for Q6_K, 176 for Q5_K, 144 for Q4_K and 110 for Q3_K. The calculator applies those rates to every weight. Converted files keep a few small tensors at higher precision and run slightly larger: the FLUX.1 dev Q8_0 file in city96's repository, which the Diffusers team's GGUF example loads from, is 12.71 GB in Hugging Face's decimal units, against 12.65 GB at a flat 8.5 bits.
FP8 here means every weight in one byte. Diffusers' FP8 layerwise casting skips normalisation and modulation weights, so FLUX.1 dev took 23.68 GB after loading in the Diffusers team's test, against the 20.3 GB this calculator counts for the same components.
Offloading, tiling and what is left out
Diffusers' documentation describes two ways to keep components off the GPU. Model offloading puts each whole model, such as the text encoder, denoiser or VAE, on the GPU only while it runs. Sequential CPU offloading moves individual layers, which "dramatically reduces memory usage" but is "extremely slow". Text encoders run once per image, before denoising, so keeping them in system RAM leaves the denoising steps untouched.
VAE tiling decodes the output in overlapping tiles. In the Diffusers team's HunyuanVideo test it cut the peak from 60.10 GB to 43.58 GB at the same 768 × 512 and 121 frames. HunyuanVideo's own script tiles by default, and its authors list 60 GB for 1280 × 720 with 129 frames, where this calculator, untiled with the encoders in system RAM, gives 78.2 GB.
Wan 2.2 A14B splits denoising between a high-noise and a low-noise expert. Its authors say the design keeps "GPU memory nearly unchanged", and their code moves one expert onto the GPU at a time, so the calculator counts one. A pipeline that loads both at once needs another 26.6 GB in BF16.
Reference images, ControlNets, LoRAs and upscalers add memory the estimate leaves out: in FLUX.3's case, each 1024 × 1024 reference adds 4,096 tokens to every transformer call. If no card you own fits, the GPU cloud cost calculator prices renting one, and the image and video API cost calculator prices paying per output.
Figures are planning estimates, not guarantees: real memory use depends on the software, its settings, the driver and anything else using the GPU. This site is not affiliated with any model or hardware maker named above. See the site disclaimer.
Frequently asked questions
How much VRAM does FLUX.1 dev need?
36.2 GB for one 1024 × 1024 image in BF16 with both text encoders on the GPU, which is the peak Hugging Face's Diffusers team measured. Leaving the text encoders in system RAM brings it to 27.1 GB, inside a 32 GB RTX 5090. A GGUF Q4_K_S transformer with the encoders in system RAM needs 11.1 GB, inside a 12 GB card.
Can Wan 2.2 run on a 24 GB GPU?
The 5B model can: Wan's authors measured a 22.9 GB peak on an RTX 4090 at 1280 × 704 with 121 frames, with the text encoder on the CPU and offloading turned on. The A14B model peaked at 41.3 GB at 832 × 480 with one BF16 expert on the GPU and the text encoder moved off it. With a GGUF Q4_K_S expert and the text encoder in system RAM, the calculator estimates 22.2 GB at that size.
Why does video need so much more memory than images?
Working memory grows with width × height × frames, and a video has dozens of frames. In the Diffusers team's tests, HunyuanVideo needed 21.6 GB of working memory for 121 frames at 768 × 512, against 4.7 GB for one 1024 × 1024 FLUX.1 dev image.
Should I keep the text encoders on the GPU?
Only if they fit. They run once per image, before denoising starts, so moving them off the GPU does not slow the denoising steps. SD 3.5 Large carries 10.4 GB of text encoders: with them on the GPU it needs 30.5 GB, and with them in system RAM 20.1 GB, which fits a 24 GB card.
Why do guides give different VRAM figures for the same model?
Because they measure different settings. HunyuanVideo's authors list 60 GB for 1280 × 720 with 129 frames, using a script that tiles the VAE by default. The Diffusers team measured 60.10 GB at a smaller 768 × 512 with 121 frames and no tiling, and 43.58 GB for the same video with tiling.
What does GB mean on this page?
2^30 bytes, as in the Diffusers team's measurement scripts, and each card's rated memory is compared on the same scale. Hugging Face file listings use decimal units, so FLUX.1 dev's 23.80 GB transformer download is 22.2 GB here.
Sources
- Wan2.1: Computational Efficiency on Different GPUs, Wan-Video (GitHub), 2025
- Wan2.2: Computational Efficiency on Different GPUs, Wan-Video (GitHub), 2025
- State of open video generation models in Diffusers, Hugging Face, 2025
- Exploring Quantization Backends in Diffusers, Hugging Face, 2025
- Exploring simple optimizations for SDXL, Hugging Face, 2023
- Welcome FLUX.3 Image Klein in Diffusers, Hugging Face, 2026
- Reduce memory usage, Hugging Face Diffusers documentation
- HunyuanVideo: A Systematic Framework For Large Video Generation Model, Tencent Hunyuan (GitHub), 2024
- High-Resolution Image Synthesis with Latent Diffusion Models, arXiv, 2021
- ggml-common.h: quantization block formats, ggml-org/llama.cpp (GitHub)