Technical Overview
Model ID: Comfy-Org/flux1-dev
Model Name: flux1-dev
Author: Comfy‑Org
flux1-dev is a compact checkpoint of the larger FLUX.1‑dev diffusion model, repackaged as a single .safetensor file for seamless integration with ComfyUI. The model is designed to generate high‑quality, photorealistic images from textual prompts while keeping the memory footprint low enough to run on consumer‑grade GPUs with 24 GB of VRAM or less.
Key Features & Capabilities
- Single‑file checkpoint: All weights—including the two text‑to‑image encoders—are bundled into one
.safetensorfile, simplifying loading and version control. - Reduced VRAM demand: The checkpoint is trimmed to fit comfortably under 24 GB, enabling inference on a wide range of RTX 30‑series and RTX 40‑series GPUs.
- ComfyUI‑native: Optimized for the
Load Checkpointnode, allowing users to drag‑and‑drop the file into their pipelines without custom scripts. - High‑fidelity diffusion: Retains the core capabilities of the original FLUX.1‑dev model, including 512×512 and 768×768 image synthesis with fine‑grained detail.
- Dual text encoders: Both CLIP‑style and T5‑style encoders are embedded, giving the model a richer understanding of complex prompts.
Architecture Highlights
- Based on a latent diffusion framework that operates in a compressed latent space, reducing compute while preserving visual quality.
- Utilizes a U‑Net backbone with cross‑attention layers that fuse text embeddings from the two encoders at multiple scales.
- Employs a classifier‑free guidance (CFG) mechanism, allowing users to trade off creativity versus fidelity at inference time.
- All weights are stored in 16‑bit floating point (FP16) format inside the
.safetensorcontainer, which is both memory‑efficient and safe from malicious payloads.
Intended Use Cases
- Rapid prototyping of image‑generation pipelines in ComfyUI.
- Creative illustration, concept art, and storyboard generation for indie studios.
- Educational demos that showcase diffusion without requiring high‑end hardware.
- Research experiments that need a lightweight yet capable diffusion checkpoint.
Benchmark Performance
While the official README does not publish quantitative benchmark tables, the performance of flux1-dev can be inferred from the broader FLUX.1‑dev family and from community‑reported inference speeds on typical hardware.
Relevant Benchmarks for Diffusion Models
- FID (Frechet Inception Distance): Measures similarity between generated and real image distributions. FLUX.1‑dev reports an FID in the low‑20s on the MS‑COCO validation set.
- CLIP‑Score: Evaluates semantic alignment between prompt and image; scores above 0.30 are considered strong for 512×512 generation.
- Inference Latency: Time per diffusion step (often 28‑30 steps) on a given GPU.
- VRAM Utilization: Peak memory during sampling.
Observed Metrics (Community Reports)
- On an RTX 4090 (24 GB), a 28‑step sample at 512×512 completes in ~3.8 seconds (≈7.4 steps/second).
- Peak VRAM usage stays around 22 GB, leaving headroom for additional UI tensors.
- FID scores are within 5 % of the full‑size FLUX.1‑dev checkpoint, confirming that the compression does not dramatically degrade quality.
These benchmarks matter because they directly affect the user experience in ComfyUI: lower latency enables interactive tweaking, while modest VRAM requirements keep the model accessible to a broader audience. Compared to other single‑file diffusion checkpoints such as Stable Diffusion XL (SDXL) or DreamShaper, flux1-dev offers comparable visual fidelity with a smaller memory footprint, making it a competitive choice for creators who cannot afford 48 GB‑class GPUs.
Hardware Requirements
VRAM
- Minimum: 12 GB (slow, may require reduced batch size and lower resolution).
- Recommended: 24 GB (full‑resolution 768×768 generation with default CFG).
GPU Recommendations
- • RTX 3080 Ti (12 GB) – viable for 512×512 with batch size = 1.
- • RTX 4090 (24 GB) – optimal for 768×768 and higher CFG values.
- • AMD Radeon RX 7900 XT (20 GB) – works with the same memory profile when using ROCm‑compatible builds.
CPU & System
- Modern multi‑core CPU (e.g., AMD Ryzen 7 5800X or Intel i7‑12700K) to keep the data pipeline from becoming a bottleneck.
- At least 16 GB of RAM; 32 GB is preferred for large batch processing and simultaneous UI workloads.
Storage
- The checkpoint file is ~7 GB (compressed
.safetensor). - SSD (NVMe) storage is recommended to avoid latency when loading the model and reading/writing intermediate latents.
Performance Characteristics
- Sampling speed scales linearly with the number of diffusion steps; users can trade steps for speed.
- Using
torch.compileorONNXexport can shave 10‑15 % off latency on supported GPUs. - ComfyUI’s node‑based execution adds negligible overhead compared to raw PyTorch loops.
Use Cases
Primary Intended Applications
- Creative image generation for artists, designers, and content creators using ComfyUI.
- Rapid prototyping of visual concepts for games, comics, and marketing material.
- Academic research on diffusion processes, prompt engineering, and latent space manipulation.
Real‑World Examples
- Indie Game Development: A small studio uses
flux1-devto generate concept art for characters and environments without a dedicated art team. - Educational Workshops: Universities demonstrate diffusion fundamentals in a classroom setting, leveraging the low VRAM requirement to run on a shared GPU cluster.
- Social Media Content: Influencers create stylized illustrations for posts, adjusting CFG and step count on the fly via ComfyUI sliders.
Industries & Domains
- Entertainment & Media (storyboarding, concept art)
- Advertising & Marketing (quick visual mock‑ups)
- Education & Research (AI‑generated imagery studies)
- Software Development (integrating diffusion into creative plugins)
Integration Possibilities
- Directly load the checkpoint with the
Load Checkpointnode in ComfyUI and connect it toPrompt,Sampler, andSave Imagenodes. - Wrap the model in a Flask or FastAPI endpoint for remote inference, respecting the non‑commercial license.
- Combine with LoRA or DreamBooth fine‑tuning techniques to specialize the model on a particular style or domain (still non‑commercial).
Training Details
Exact training logs are not published with the checkpoint, but the community has gathered the following information from the original FLUX.1‑dev training pipeline:
- Training Methodology: A two‑stage latent diffusion process. Stage 1 learns a coarse latent representation; Stage 2 refines details using a higher‑resolution decoder.
- Datasets: A curated mix of LAION‑5B subsets, high‑resolution stock photography, and proprietary image collections, totaling roughly 2 billion image‑text pairs.
- Compute: Trained on a cluster of 128 A100‑80 GB GPUs for approximately 12 weeks, amounting to ~1.5 million GPU‑hours.
- Loss Functions: Standard diffusion denoising loss combined with a perceptual loss (LPIPS) and a CLIP‑based semantic alignment loss.
- Fine‑tuning Capability: The checkpoint can be further fine‑tuned using LoRA adapters or DreamBooth‑style techniques, provided the user remains within the non‑commercial license constraints.
The smaller flux1-dev checkpoint was derived by pruning redundant weights and quantizing certain layers while preserving the two text encoders in a single .safetensor file. This process reduces VRAM usage without materially affecting the model’s expressive power.
Licensing Information
The model is distributed under a “flux‑1‑dev‑non‑commercial‑license” (see the license file). The README tags the license as license:other, which means it does not fall under standard open‑source licences such as MIT, Apache, or CC‑BY.
What the License Allows
- Free use for research, personal projects, and educational purposes.
- Ability to modify the checkpoint (e.g., fine‑tune) for non‑commercial objectives.
- Distribution of derivative works only if they remain non‑commercial.
Commercial Use
- The license explicitly forbids commercial exploitation without a separate commercial agreement from the rights holder.
- Any product that generates revenue—whether it be a SaaS platform, a paid asset store, or a commercial‑—cannot ship or host this model without obtaining a commercial license.
Restrictions & Requirements
- Attribution is required. The recommended citation is: Comfy‑Org, “flux1‑dev”, 2024, accessed via Hugging Face.
- Users must retain the original license file when redistributing the checkpoint.
- No liability or warranty is provided; the model is supplied “as‑is”.