/ Модель

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

Размер весов
9,4 ГБ
Лицензия
Своя лицензия
Базовая модель
FLUX.2-klein-9B
Библиотека
diffusers
Опубликована
14 фев 2026

FLUX.2-klein-9b-INT8-transformer

Генерация изображенийТекст → изображение4 профессии

FLUX.2 [klein] 9B INT8 — это квантизированный чекпойнт трансформера базовой модели black-forest-labs/FLUX.2-klein-9B, разработанный vistralis на основе модели Black Forest Labs.

1 715скачиваний за 30 дней5лайковвеса обновлены16 фев 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображения» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели сгенерируют результат по каждой задаче. Опубликованный тест появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Модель предназначена для генерации изображений по текстовому описанию, а также для сценариев редактирования изображений и композиции. Она интегрируется с библиотекой Diffusers и содержит только веса трансформера; текстовый энкодер, VAE, токенизатор и scheduler загружаются из базовой модели.

Модель имеет около 9 млрд параметров и использует INT8-квантизацию весов и активаций в формате W8A8, выполненную с помощью NVIDIA TensorRT Model Optimizer. Заявлено примерно двукратное сжатие по сравнению с BF16. Основные слои хранятся в INT8 с масштабами float32, а embedder-слои и выходная проекция сохранены в BF16. Квантизация рассчитана на снижение требований к памяти и может быть альтернативой FP8 для оборудования без нативной поддержки FP8. В README не указаны поддерживаемые языки и максимальная длина контекста.

По внутренней оценке на 48 промптах INT8 показала CLIP Score 0,6422 против 0,6426 у BF16-базовой модели; LPIPS составил 0,0615, PSNR — 22,34 дБ, FID — 32,27. Эти результаты указывают на близкое соответствие тексту и высокую схожесть с BF16-выводом, однако выборка небольшая и служит лишь ориентиром. Лицензия — flux-non-commercial-license; коммерческое использование, вероятно, ограничено условиями этой лицензии.

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

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

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

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

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

Открыть на Hugging Face

FLUX.2 [klein] 9B (step-distilled) — INT8 (W8A8) Transformer

Quantized transformer checkpoint for FLUX.2 [klein] 9B (step-distilled).

INT8 weight and activation quantization via NVIDIA ModelOpt with calibrated input scales.

Note: This repo contains only the quantized transformer weights. The text encoder, VAE, tokenizer, and scheduler are loaded from the base model: black-forest-labs/FLUX.2-klein-9B.

Model Details

PropertyValue
Base Modelblack-forest-labs/FLUX.2-klein-9B
Parameters9B
Quantization FormatINT8 (W8A8)
Quantization TypeWeight + Activation (W8A8)
Compression~2x vs BF16
Weight dtypeint8
Scale dtypefloat32
Key formatSingle-file safetensors
Checkpointflux-2-klein-9b-int8.safetensors

Quantization Details

PropertyValue
FrameworkNVIDIA TensorRT Model Optimizer (ModelOpt)
Calibration MethodNVIDIA ModelOpt max (per-channel max abs)
Calibration Dataset256 samples from 768 diverse prompts (256 T2I, 256 editing, 256 composition)
Denoising Steps (calibration)4 per sample
Weight QuantizationPer-channel symmetric (axis=0)
Activation QuantizationPer-tensor via baked input_scale / weight_scale tensors
Preserved LayersEmbedder layers (time_embed, context_embedder, x_embedder) and output projection kept in BF16

Evaluation

Evaluated on 48 prompts (T2I (16 each), editing (16 each), composition (16 each)). Both BF16 baseline and INT8 outputs are generated with identical prompts and seeds, then scored independently.

We report two categories of metrics:

Text-Image Alignment — measures output quality independently:

  • CLIP Score ↑: Uses OpenAI's CLIP model to score how well each generated image matches its text prompt. Both BF16 and quantized models are evaluated independently against the same prompts — this is not a comparison between the two outputs, but an independent quality measure for each. Higher is better (typical range: 0.25–0.35).

Fidelity — measures how closely the quantized output matches the BF16 baseline:

  • LPIPS ↓ (Learned Perceptual Image Patch Similarity): Uses a neural network to judge perceptual similarity the way a human would. Unlike pixel-level metrics, LPIPS captures structural and textural differences. 0 = perceptually identical, 1 = completely different. Values below 0.1 indicate very high fidelity.
  • PSNR ↑ (Peak Signal-to-Noise Ratio): Measures pixel-level accuracy in decibels. Higher values mean less error. 20–30 dB is typical for quantized model comparisons; 30+ dB is excellent.
  • FID ↓ (Fréchet Inception Distance): Compares the statistical distribution of all generated images (not individual pairs). Lower means the quantized model produces images from the same visual distribution as BF16. Sensitive to sample size — our 48-image evaluation provides a directional signal rather than a definitive score.

Text-Image Alignment (CLIP Score ↑)

CLIP score measures how well the generated image matches the text prompt (higher = better). Both models are evaluated independently:

ModelCLIP Score
BF16 (baseline)0.6426
INT80.6422

Fidelity vs BF16 Baseline

These metrics measure how closely the quantized output matches the BF16 reference:

MetricValueDescription
LPIPS ↓0.0615Perceptual distance (0 = identical)
PSNR ↑22.34 dBSignal-to-noise ratio
FID ↓32.27Distribution distance

Per-Task Breakdown

TaskCLIP ↑LPIPS ↓PSNR ↑
Text-to-Image0.65490.045022.71 dB
Editing0.62790.076321.95 dB
Composition0.64400.063322.36 dB

Comparison with FP8 (Reference)

Black Forest Labs officially provides FP8 quantized checkpoints for FLUX.2 Klein. However, FP8 (float8_e4m3fn) requires hardware support introduced with NVIDIA Ada Lovelace (RTX 40-series / L4 / L40). INT8 offers a quantized alternative at the same ~2× compression ratio for GPUs that lack native FP8 support (e.g., Ampere, Turing, or non-NVIDIA hardware with INT8 acceleration).

The table below compares both formats against the same BF16 baseline (CLIP 0.6426), evaluated with identical prompts and seeds:

MetricINT8FP8
CLIP ↑0.64220.6419
LPIPS ↓0.06150.0559
PSNR ↑22.34 dB23.14 dB
FID ↓32.2728.91

Per-Task Breakdown

TaskINT8 CLIP ↑FP8 CLIP ↑INT8 LPIPS ↓FP8 LPIPS ↓INT8 PSNR ↑FP8 PSNR ↑
Text-to-Image0.65490.65470.04500.045222.71 dB22.85 dB
Editing0.62790.62970.07630.059821.95 dB23.04 dB
Composition0.64400.64150.06330.062722.36 dB23.53 dB

Visual Comparison (BF16 vs INT8)

All images generated with identical prompts and seeds (4 denoising steps, 1024×1024).

Text-to-Image

"Oil painting of a stormy seascape in the style of J.M.W. Turner, violent waves crashing against rocks, ship barely visible in mist, thick impasto texture"

Text-to-Image: BF16 vs INT8

Image Editing

Base: "A red sports car parked in a garage" Edit: "Change the car color to yellow and make the garage look like a futuristic space hangar"

Image Editing: BF16 vs INT8

Multi-Reference Composition (2 references)

Ref 1: "A weathered bronze statue of a Greek philosopher" Ref 2: "A lush tropical rainforest canopy" Compose: "The statue is being reclaimed by the jungle, with vines and flowers growing over its features"

Multi-Reference Composition (2 references): BF16 vs INT8

INT8 Performance Benchmarks

Measured on NVIDIA RTX 5090 with PyTorch 2.10.0+cu130 and CUDA 13.0. Full INT8 stack (INT8 transformer + INT8 text encoder). Resolution: 1024×1024.

torch.compile speedup: 2.5× (klein-4b), 3.4× (klein-base-4b), 2.8× (klein-9b), 3.3× (klein-base-9b)

Why the large speedup? Our pipeline loads INT8 weights using TorchAO, which represents linear layers as W8A8 quantized tensors. In eager mode, each quantized matmul dispatches separate CUDA kernels for dequantization and computation. With torch.compile, the full graph is traced and these operations are fused into optimized Triton kernels that perform dequantize + matmul in a single pass, eliminating kernel launch overhead and intermediate memory traffic.

Usage

🚧 Code release coming soon. A pip-installable loader library is in preparation.

Compatibility

This checkpoint uses the official FLUX.2 single-file safetensors format — the same key layout and structure used by Black Forest Labs for their official FP8 and NVFP4 quantized models. Any loader that supports quantized FLUX.2 single-file checkpoints can load this INT8 checkpoint.

License

This model inherits the license from the base model: FLUX Non-Commercial.

Acknowledgments

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

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

0 моделей