Skip to content

[Feature] FLUX2 klein-9b-KV #1341

Open
Open

Description

@GreenShadows

Feature Summary

FLUX.2 [klein] 9B-KV is an optimized variant of FLUX.2 [klein] 9B with KV-cache support for accelerated multi-reference editing.

Detailed Description

https://huggingface.co/black-forest-labs/FLUX.2-klein-9b-kv

**FLUX.2 [klein] 9B-KV is an optimized variant of FLUX.2 [klein] 9B with KV-cache support for accelerated multi-reference editing.**This variant caches key-value pairs from reference images during the first denoising step, eliminating redundant computation in subsequent steps for significantly faster multi-image editing workflows.

- Key Features

KV-Cache Optimization: Reference image KV pairs are computed once and cached, reducing computation and speeding up inference by up to 2.5 times for multi-reference editing tasks.
All capabilities of FLUX.2 [klein] 9B: sub-second generation, text-to-image, and multi-reference editing in a single unified model.

Ideal for interactive applications and real-time editing pipelines where the same reference images are used across multiple generations.
9B flow model with 8B Qwen3 text embedder, step-distilled to 4 inference steps.
Available for non-commercial use.
How KV-Caching Works
In standard image editing, reference image tokens are processed at every denoising step. With KV-caching:

Step 0: Full forward pass processes reference tokens and extracts their key-value pairs into a cache.
Steps 1-3: Cached KV pairs are reused, skipping redundant reference token computation.
This is particularly beneficial when:

Editing with multiple reference images
Generating variations with the same references
Building interactive editing applications

Alternatives you considered

No response

Additional context

No response

Activity

  1. added
    enhancement
    on Mar 13, 2026
  2. stduhpf commented on Mar 13, 2026

    @stduhpf
    Contributor

    I wonder why they needed to update weights for that. The architecture seems unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions