#115115th of 135 in Image and videoFor image, video and design, image and design

flux2

Reference inference code for FLUX.2 image generation and editing models

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Releases and problems feed (RSS)

Stars
2.9k
License
Apache-2.0
Last commit
Mar 2026
Language
Python
Stars, last 30 weeks+740
26 Apr 2026: 2,158 stars3 May 2026: 2,196 stars10 May 2026: 2,240 stars17 May 2026: 2,268 stars24 May 2026: 2,303 stars31 May 2026: 2,320 stars7 Jun 2026: 2,352 stars14 Jun 2026: 2,372 stars21 Jun 2026: 2,390 stars28 Jun 2026: 2,422 stars5 Jul 2026: 2,451 stars12 Jul 2026: 2,478 stars19 Jul 2026: 2,498 stars26 Jul 2026: 2,531 stars2 Aug 2026: 2,570 stars9 Aug 2026: 2,588 stars16 Aug 2026: 2,603 stars23 Aug 2026: 2,617 stars30 Aug 2026: 2,634 stars6 Sept 2026: 2,644 stars13 Sept 2026: 2,659 stars20 Sept 2026: 2,682 stars27 Sept 2026: 2,695 stars4 Oct 2026: 2,705 stars11 Oct 2026: 2,717 stars18 Oct 2026: 2,784 stars25 Oct 2026: 2,808 stars1 Nov 2026: 2,830 stars8 Nov 2026: 2,860 stars15 Nov 2026: 2,878 stars22 Nov 2026: 2,898 stars

2,158 on 26 Apr 20262,898 on 22 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Minimal Python inference code and an interactive CLI for Black Forest Labs' FLUX.2 open-weight models: text-to-image, single-reference and multi-reference editing. It covers the 32B FLUX.2 [dev] and the smaller [klein] 4B and 9B family, including distilled 4-step and 50-step base variants. Weights are fetched automatically or loaded from local paths set by environment variables.

Who it is for: Engineers running or fine-tuning FLUX.2 image models on their own GPUs

Strengths

  • Text-to-image, single-reference and multi-reference editing in one model family
  • Klein 4B is Apache-2.0 and fits in about 8GB VRAM
  • Base variants provided for LoRA training and fine-tuning
  • Optional prompt upsampling via local Mistral-Small-3.2-24B or OpenRouter

Weaknesses

  • FLUX.2 [dev] and klein 9B models use a non-commercial license
  • FLUX.2 [dev] full script needs H100-class VRAM; quantized setup is in a separate guide
  • Only a CLI is provided; no web UI or server API
  • Tested only on GB200 with CUDA 12.9 and Python 3.12

What it needs

  • GPU required
  • Needs PyTorch (CUDA 12.9), Hugging Face model weights, OpenRouter (optional, prompt upsampling)
  • Models: FLUX.2 [dev] 32B, FLUX.2 [klein] 4B, FLUX.2 [klein] 9B, FLUX.2 [klein] 9B KV, FLUX.2 [klein] 4B Base

Also in Image and video

See all 135
Also in Image and video
RankProjectScore
#113waifu2x-ncnn-vulkanCommand-line waifu2x image upscaler and denoiser using ncnn and Vulkan3.5k starsMIT26 out of 100
#114comfyui-to-python-extensionExports ComfyUI node workflows as standalone runnable Python scripts2.4k starsMIT26 out of 100
#116splatvizDesktop viewer and live editor for 3D Gaussian Splatting scenes Live demo ↗ (opens in a new tab)1.6k starsMIT25 out of 100
#117cogvideoOpen-weight text-to-video and image-to-video diffusion models with inference and LoRA code Live demo ↗ (opens in a new tab)13.2k stars+145 (+1.1%) in 30 daysApache-2.0no commits in a year24 out of 100
#118gen3cCamera-controlled video generation from images or video using a 3D point-cloud cache1.5k starsApache-2.024 out of 100