/ Модель

Характеристики

Лицензия
Своя лицензия
Базовая модель
flux-3-image-klein
Библиотека
mlx
Опубликована
18 окт 2026

flux-3-image-klein-bf16

Преобразование изображенийИзображение, текст → изображение3 профессии
64скачиваний за 30 дней0лайковвеса обновлены18 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дистиллированная модель FLUX 3 для генерации и редактирования изображений по текстовым промптам и визуальным референсам на Apple Silicon через Swift/MLX.

mlx-community/flux-3-image-klein-bf16 — копия весов FLUX 3 Image Klein от Black Forest Labs, подготовленная mlx-community для запуска через Swift/MLX на Apple Silicon. Согласно README, файлы побайтно совпадают с upstream-версией; это независимый порт, не официальный продукт и не одобренный Black Forest Labs релиз. Модель поддерживает генерацию изображений по тексту, редактирование изображения по одному референсу и композицию по нескольким референсам — до десяти. Она также умеет учитывать координаты объектов в промпте и выводить текст на изображении.

Основа модели — дистиллированный DiT на 5,55 млрд параметров с 16 шагами генерации без CFG; текстовые признаки извлекаются из Qwen3-VL-4B-Instruct, используя только текстовый тракт. Для декодирования используется VAE FLUX.2. Репозиторий содержит веса bf16 в safetensors; при загрузке порт может дополнительно применять режимы int8 и int4. README сообщает о хорошем воспроизведении английского текста на изображениях, но о слабом качестве китайского текста. Для больших изображений и референсов требуются значительные объёмы памяти. Применение весов регулируется FLUX Kommunity License; код Swift/MLX-порта распространяется по MIT.

Сценарии применения

  • создание изображений по подробному текстовому описанию сцены
  • редактирование изображения по одному референсу
  • создание композиции по нескольким изображениям-референсам
  • генерация изображений с объектами, размещёнными по координатам
  • создание изображений с английскими надписями

Ограничения

Китайский текст на изображениях распознаётся и воспроизводится заметно хуже английского. Генерация изображений высокого разрешения и работа с несколькими референсами требуют значительного объёма памяти.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

mlx-community/flux-3-image-klein-bf16

This FLUX Model is licensed by Black Forest Labs Inc. under the FLUX Kommunity License. Copyright Black Forest Labs Inc. IN NO EVENT SHALL BLACK FOREST LABS INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.

This repo is an Apple Silicon copy of black-forest-labs/flux-3-image-klein for the Swift/MLX port flux3-klein-swift.

  • The files are unmodified. Every file here is byte-identical to upstream revision 33733762 (sha256 checked). MLX loads these bf16 safetensors directly, and the int8 / int4 tiers are made when the model loads.
  • It is an independent port. It is not an official Black Forest Labs product, and BFL has not endorsed or validated it.

Licence: read it before you use this model

The DiT and autoencoder are under the FLUX Kommunity License v1.0:

  • Non-commercial use is permitted.
  • Commercial use of outputs is permitted only for a "Qualifying User": under US$5M gross annualized revenue, affiliates included. You must also filter content (or review outputs) and disclose AI generation where the law requires it (§2(a), §2(e)).
  • No training on outputs: you may not use the model, its derivatives or its outputs to improve any other AI model that performs a similar function (§4(b)).

Read the full licence for the other restrictions and for termination. For any other commercial use, see bfl.ai/licensing. The text encoder (text_encoder/, byte-identical to Qwen/Qwen3-VL-4B-Instruct) is Apache-2.0 (text_encoder/LICENSE).

Model

FLUX 3 Image Klein does text-to-image, single-reference editing and multi-reference composition (up to 10 references) in one model. Bounding-box layout goes in the prompt, and the model renders text.

  • DiT (5.55B): each mode (image, references, text) has its own 5-block stack; then come 28 shared single-stream blocks with per-token modulation. It is a flow-map distill: 16 steps, no CFG.
  • Conditioner: 8 hidden-state taps (layers 4…32) of Qwen3-VL-4B-Instruct, text only, giving 20480-d features.
  • Autoencoder: the FLUX.2 VAE, the same weights as FLUX.2 [klein]. vae/ is the diffusers form the port loads; ae.safetensors is BFL's native form.
FileWhat
model.safetensors, config.json, manifest.jsonthe distilled DiT, bf16, in BFL's native key names (359 tensors)
text_encoder/Qwen3-VL-4B-Instruct, bf16
vae/, ae.safetensorsthe autoencoder, fp32
LICENSE.md, NOTICE.mdthe FLUX Kommunity License and BFL's attribution notice

Prompting. The model expects a full scene caption (medium, scene, lighting, each subject's colours, materials and position). Run a prompt upsampler first: BFL's Apache-2.0 flux-3-image-klein-pup, or any LLM given its system_prompts.json. Layout boxes go after the caption as a JSON list on a 0–1000 grid; see the upstream card.

Sampling

SettingValue
Samplerflow-map Euler; t′ = α·t / (1 + (α − 1)·t) over linspace(1, 0, 17)
Steps16
α6.93 (config.json). BFL's reference CLI defaults to 16.0, which does not reproduce BFL's example renders (35.8 vs 23.1 dB on the knitted example)
Guidancenone

Parity (Swift/MLX port vs BFL's reference code, fp32)

ComponentResult
DiT, one forward, all stages (t2i, 1 ref, 3 refs)cos ≥ 0.9999998, relMax ≤ 2.1e-5
DiT, 16-step 512² trajectoryrelMax ≤ 1.7e-4 at every step
Conditioner (8 taps, real and padded rows)cos ≥ 0.99998
VAE encode / decodecos 0.999999 / 0.9999999
Reference prep (fit, pad, crop)byte-identical
bf16 end to end vs BFL's own example PNGs (same noise)35.9 / 39.8 / 52.7 / 30.9 dB; BFL's code on MPS scores 35.8 / 42.5 / 56.2

Quant tiers, text fidelity and memory (M5 Max 128 GB)

The DiT tiers are made when the model loads: affine, group 64, block by block from the bf16 file. Embeddings, timestep MLPs, modulations and the final layer stay bf16.

  • int4 keeps every block's attention projections at 8 bits. Plain int4 drifted too far from bf16.
  • The text encoder loads text-only (the vision tower is never read). It can also be int8.

Text fidelity (an OCR gate: 20 long-text EN/ZH prompts × 2 seeds per lane, Apple Vision OCR, Δ against bf16 with a 95 % bootstrap CI; tolerance pre-registered at ΔCER ≤ +1 pp):

DiT + encoderCERΔCER vs bf16exact stringsVerdict
bf16 + bf163.00 % (EN 0.19 %)—68.7 % (EN 95.8 %)baseline
int8 + bf162.61 %−0.39 pp [−0.85, −0.05]72.4 %within tolerance
int4 (8-bit attn) + bf163.10 %+0.10 pp [−0.69, +0.91]71.6 %within tolerance
bf16 + int82.95 %−0.05 pp [−0.32, +0.21]69.4 %within tolerance
int8 + int83.05 %+0.05 pp [−0.33, +0.46]68.7 %within tolerance

English text is excellent; Chinese is weak in every tier (12 % CER). int4 keeps text, but at a given seed it is a visibly different render from bf16 (21.9–35.5 dB on BFL's examples, against 31–50 dB for int8).

Memory (MLX with a 2 GB buffer-pool cap, phys_footprint peak of the whole process):

DiT + encoderResident (MLX)Peak, 1024² T2I or editPeak, encoder dropped after encoding
bf16 + bf1619.5 GB31.8 GB (4 refs: 32.2 GB)24.1 GB
int8 + bf1614.5 GB26.9 GB—
int4 (8-bit attn) + bf1612.7 GB25.1 GB—
bf16 + int816.1 GB28.4 GB—
int8 + int811.1 GB23.5 GB18.8 GB
  • About 11 GB of each 1024² peak is the fp32 VAE decode.
  • A single reference at the 4 MP cap (2048² canvas and output) peaks at 51–58 GB. It needs a 64 GB Mac.

Speed (16 steps, the same in every tier):

RequestTime
T2I~1.0–1.2 s per step
One reference~2.3 s per step
Four references~10 s per step
4 MP single reference at 2048²~20 s per step

Use (Swift)

import Flux3Klein

let pipe = try await Flux3KleinPipeline.load(snapshot: snapshotURL, quant: .bf16)   // or .int8 / .int4
let result = try pipe.generate(.init(prompt: caption, references: [try Flux3RGBImage.read(url: photoURL)]))
try result.image.write(to: outURL)

Code: https://github.com/xocialize/flux3-klein-swift (Swift/MLX port, MIT; the weights stay under the FLUX Kommunity License).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · mlx

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
d1fc305

0 моделей