What FLUX.1 dev and schnell are
FLUX.1 [dev] and FLUX.1 [schnell] from Black Forest Labs are both 12 billion parameter rectified flow transformers for text-to-image generation. They share the same architecture and size; the difference is training and license. Dev is guidance-distilled and its card example runs 50 steps at guidance 3.5. Schnell was trained with latent adversarial diffusion distillation and generates in 1 to 4 steps with guidance 0.
Licenses differ. Schnell is Apache 2.0. Dev uses the FLUX.1 [dev] Non-Commercial License, and the same license covers the 12B Fill, Kontext and Krea dev variants; the dev card states that generated outputs can be used for personal, scientific and commercial purposes, so read the license itself before building a paid service. Black Forest Labs has since released FLUX.2 models with different sizes; this guide covers FLUX.1.
For the general question of picking a card for diffusion work, see GPU for image generation. This page is the FLUX.1-specific memory budget.
| Property | FLUX.1 [dev] | FLUX.1 [schnell] |
|---|---|---|
| Transformer parameters | 11.9B (12B class) | 11.9B (12B class) |
| Distillation | Guidance-distilled | Latent adversarial diffusion distillation |
| Card example steps | 50 | 4 |
| Guidance scale | 3.5 | 0 |
| Max text sequence | 512 tokens | 256 tokens |
| License | FLUX.1 [dev] Non-Commercial | Apache 2.0 |
References: FLUX.1 [dev] model card · FLUX.1 [schnell] model card · Diffusers documentation: Flux pipeline · FLUX.1 Kontext [dev] model card
The four components and their sizes
A FLUX.1 pipeline is four models. Hugging Face lists the transformer at 11.9 billion BF16 parameters, stored in three shards totalling about 23.8 GB. The T5-XXL text encoder (text_encoder_2) is two shards totalling about 9.5 GB in BF16. CLIP-L (text_encoder) is about 0.25 GB and the VAE about 0.17 GB.
So the weights alone are about 33.7 GB in BF16. Diffusers’ Flux page puts it plainly: Flux requires about 50 GB of RAM or VRAM to load all the modeling components, which is why most recipes use some mix of offloading and lower precision. Activations for one 1024 × 1024 image add a few gigabytes on top of the weights, and batches multiply that part.
| Component | BF16 | FP8 | 4-bit NF4 (approx.) |
|---|---|---|---|
| Transformer (11.9B) | ≈23.8 GB | ≈11.9 GB | ≈6 GB |
| T5-XXL encoder | ≈9.5 GB | ≈4.9 GB | ≈2.4 GB |
| CLIP-L encoder | ≈0.25 GB | ≈0.25 GB | ≈0.25 GB |
| VAE | ≈0.17 GB | ≈0.17 GB | ≈0.17 GB |
| Total weights | ≈33.7 GB | ≈17.2 GB | ≈8.8 GB |
References: FLUX.1 [dev] repository files · Diffusers documentation: Flux pipeline · FLUX.1 [dev] model card
FLUX.1 GPU requirements by precision
BF16 is the reference: about 34 GB of weights resident plus activations, so plan on a 48 GB card or larger to keep every component on the GPU. FP8 storage roughly halves the transformer and T5. Diffusers’ layerwise casting stores weights as float8_e4m3fn and upcasts each layer to BF16 for compute, skipping normalization and modulation layers that degrade in FP8. ComfyUI users commonly load the separate FP8 T5 file, which is 4.89 GB.
Four-bit NF4 through bitsandbytes is the smallest common option. Diffusers published a Flux benchmark on an RTX 4090 with the transformer and text encoder quantized: 14.95 GB of memory at 32.6 seconds per image, 25.8 seconds with torch.compile, and 12.24 GB at 32.3 seconds with compile plus model CPU offloading. Check quality on your own prompts before committing to 4-bit.
The VRAM calculator handles the arithmetic for weights at each precision if you are mixing models in one service.
References: Diffusers documentation: Reduce memory usage · Diffusers documentation: Compiling and offloading quantized models · ComfyUI Flux text encoder files
Offloading: what each option saves and costs
enable_model_cpu_offload() moves whole components between CPU and GPU, so the text encoders run, then leave room for the transformer. It is the option in both model card examples. Diffusers says its savings are smaller than sequential offloading but it avoids the heavy communication overhead. With BF16 weights, the GPU must still hold the 23.8 GB transformer plus activations, which overfills a 24 GB card.
enable_sequential_cpu_offload() moves submodules one at a time. Diffusers calls it extremely slow, often impractical, and its Flux page lists it for GPUs with between 4 and 32 GB, alongside VAE slicing and tiling. Group offloading sits between the two, but Diffusers notes it is less effective for image generation than for video. Its single-file FP8 example runs Flux in under 16 GB of VRAM.
| Method | What moves | Memory saved | Speed cost (per Diffusers) |
|---|---|---|---|
| enable_model_cpu_offload() | Whole components | Moderate | Low; recommended for images |
| Group offloading | Blocks of layers, can stream | Large | Medium; less effective for images |
| enable_sequential_cpu_offload() | Individual submodules | Largest | Extremely slow |
| VAE slicing and tiling | Decode work | Peak at decode | Small |
References: Diffusers documentation: Reduce memory usage · Diffusers documentation: Flux pipeline · Diffusers documentation: Compiling and offloading quantized models
Which GPU for which setup
Match the setup to card memory. A 24 GB RTX 4090 runs FLUX.1 with 4-bit weights (published at about 15 GB) or FP8 weights with model offloading. A 32 GB RTX 5090 holds the FP8 pipeline fully, or the BF16 transformer with the text encoders offloaded. A 48 GB L40S holds the full BF16 pipeline with room for small batches, and 80 GB A100 or H100 cards and the 96 GB RTX PRO 6000 leave room for larger batches or several LoRAs.
FP8 compute runs natively on Ada, Hopper and Blackwell cards. A100 has no FP8 tensor cores, so on A100 FP8 storage saves memory but computes in BF16. The RTX 5090 vs RTX 4090 comparison covers the consumer choice in more depth.
| GPU | Memory | Practical FLUX.1 setup |
|---|---|---|
| RTX 4090 | 24 GB | NF4 or FP8, model offloading |
| RTX 5090 | 32 GB | FP8 fully resident, or BF16 transformer with offload |
| L40S | 48 GB | Full BF16 pipeline, small batches |
| A100 80 GB / H100 | 80 GB | Full BF16, larger batches, LoRAs |
| RTX PRO 6000 | 96 GB | Full BF16 with headroom for several models |
References: NVIDIA GeForce RTX 4090 specifications · NVIDIA GeForce RTX 5090 specifications · NVIDIA L40S specifications · NVIDIA A100 specifications · NVIDIA H100 specifications · NVIDIA RTX PRO 6000 Blackwell specifications · Diffusers documentation: Compiling and offloading quantized models
Run it: Diffusers and ComfyUI
The card example loads FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16), calls pipe.enable_model_cpu_offload(), and generates at height 1024, width 1024, guidance_scale 3.5, num_inference_steps 50 and max_sequence_length 512. The card comment says to remove the offload call if you have enough GPU memory, which on a 48 GB or larger card you do. Schnell uses guidance_scale 0.0, 4 steps and max_sequence_length 256.
For 4-bit, Diffusers passes a PipelineQuantizationConfig with quant_backend "bitsandbytes_4bit", NF4 and components_to_quantize ["transformer", "text_encoder_2"]. Both repositories are gated on Hugging Face, so accept the terms and set a token first. If you prefer a node-based workflow, the dev card notes FLUX.1 is available in ComfyUI; see run ComfyUI on a cloud GPU.
References: FLUX.1 [dev] model card · FLUX.1 [schnell] model card · Diffusers documentation: Compiling and offloading quantized models
Illustrative cost framing
These figures are illustrative. They assume $0.50 per GPU-hour for an RTX 4090 and use the Diffusers RTX 4090 4-bit latency of 32.6 seconds per image, published with its own settings. Your latency will differ with steps, resolution and software, so measure before you budget.
Steps drive cost: schnell’s 4 steps against dev’s 50 in the card examples means about one twelfth of the transformer passes per image, before quality is considered. Current NeuraMesh rates are on GPU prices.
| Item (illustrative) | Value |
|---|---|
| Seconds per image (published, NF4, RTX 4090) | 32.6 |
| Images per GPU-hour | ≈110 |
| Assumed rate | $0.50 per GPU-hour |
| Cost per 1,000 images | ≈$4.53 |
| With torch.compile (25.8 s) | ≈$3.58 per 1,000 |
References: Diffusers documentation: Compiling and offloading quantized models · FLUX.1 [dev] model card · FLUX.1 [schnell] model card
Checklist and next step
Pick dev or schnell and confirm the license fits your use. Decide precision: BF16 on 48 GB or more, FP8 on 32 GB, 4-bit on 24 GB. Prefer model offloading over sequential. Enable VAE slicing for batches. Time a fixed prompt set on the target card and compute cost per accepted image before scaling.
NeuraMesh rents these GPUs by the hour: choose a GPU, a plan, GPU count, hours and region on rent GPUs, or start from L40S rental for a full BF16 pipeline, and you receive a confirmed quotation, typically within one business day, with nothing charged until you approve. Unsure which card fits? Ask the compute advisor.
NeuraMesh prices for these GPUs
| GPU | Memory | Data center | Value |
|---|---|---|---|
| RTX 4090 | 24 GB | $0.46 | $0.40 |
| L40S | 48 GB | $1.26 | $0.54 |
| A100 | 80 GB | $1.56 | $0.98 |
| H100 | 80 GB | $2.88 | $2.00 |
Every order is confirmed in a quotation before you pay. See all GPU prices.
Questions readers ask
What are the minimum FLUX.1 GPU requirements?
With 4-bit weights and offloading, Diffusers measured 12.24 GB on an RTX 4090, and its FP8 single-file example runs in under 16 GB. Sequential offloading goes lower but is extremely slow. For the full BF16 pipeline without offloading, plan on 48 GB.
Can FLUX.1 dev run on an RTX 4090?
Yes, with lower precision or offloading. The BF16 transformer alone is about 23.8 GB, so full BF16 does not fit in 24 GB with activations. Diffusers published 4-bit NF4 results on an RTX 4090 at about 15 GB.
Does FLUX.1 schnell need less VRAM than dev?
No. Both are the same 12B architecture with the same text encoders, so memory is about the same. Schnell needs fewer steps, 1 to 4 against about 50 in the dev example, so it uses less GPU time per image.
How much VRAM does the T5 text encoder use?
The T5-XXL encoder in the FLUX.1 repository is about 9.5 GB in BF16. ComfyUI’s FP8 version is 4.89 GB. Model offloading lets it run first and leave the GPU before the transformer starts.
Can I use FLUX.1 dev commercially?
The weights are under the FLUX.1 [dev] Non-Commercial License. The card says outputs can be used commercially, but running the model in a paid service is a separate question, so read the license or use Apache 2.0 schnell.
Sources and editorial notes
- FLUX.1 [dev] model card
- FLUX.1 [schnell] model card
- Diffusers documentation: Flux pipeline
- FLUX.1 Kontext [dev] model card
- FLUX.1 [dev] repository files
- Diffusers documentation: Reduce memory usage
- Diffusers documentation: Compiling and offloading quantized models
- ComfyUI Flux text encoder files
- NVIDIA GeForce RTX 4090 specifications
- NVIDIA GeForce RTX 5090 specifications
- NVIDIA L40S specifications
- NVIDIA A100 specifications
- NVIDIA H100 specifications
- NVIDIA RTX PRO 6000 Blackwell specifications
Primary documentation reviewed November 24, 2026. Provider descriptions reflect published documentation. Recommendations are our analysis; worked figures are illustrative unless explicitly stated otherwise. No independent provider benchmark or uptime ranking is claimed.
Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.


