mirror of
https://github.com/Comfy-Org/comfy-quants.git
synced 2026-11-04 23:37:27 +00:00
[PR #6] [MERGED] Add FLUX.1 / FLUX.2 / LTX-Video / LTX-2.3 / Ideogram 4.0 adapters and the stock-ComfyUI int8_tensorwise format #9
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-quants#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-quants/pull/6
Author: @HK416-TYPED
Created: 6/26/2026
Status: ✅ Merged
Merged: 7/3/2026
Merged by: @alexisrolland
Base:
main← Head:main📝 Commits (10+)
67b4e30Add shared stock-DiT contract framework for new model familiesc6e5237Add FLUX.1 model-family adapter (FP8/MXFP8/NVFP4)88620b4Add FLUX.2 model-family adapter with mixed-precision recipe (FP8/MXFP8/NVFP4)39c00b8Add LTX-Video model-family adapter (FP8/MXFP8/NVFP4)fc5ed61Add Ideogram 4.0 model-family adapter (FP8/MXFP8/NVFP4)fc6f3e0docs: list flux/flux2/ltxv/ideogram4 in the doc indexes16c6449Address review: fix nvfp4-mixed size note and the bf16 transcode hopff6263fPreserve source safetensors metadata and the qwen 2511 sentinel in all whole-checkpoint writers2b30d74Add LTX-2 (LTX-2.3) model-family adapter and stock-ComfyUI int8_tensorwise format6b18620Address review: dedupe writer metadata/sentinel logic, trim configs, clarify docs📊 Changes
77 files changed (+4504 additions, -26 deletions)
View changed files
➕
configs/flux2_fp8.yaml(+34 -0)➕
configs/flux2_fp8_e5m2.yaml(+34 -0)➕
configs/flux2_fp8_mixed.yaml(+39 -0)➕
configs/flux2_int8_tensorwise.yaml(+34 -0)➕
configs/flux2_mxfp8.yaml(+34 -0)➕
configs/flux2_mxfp8_mixed.yaml(+39 -0)➕
configs/flux2_nvfp4.yaml(+34 -0)➕
configs/flux2_nvfp4_mixed.yaml(+40 -0)➕
configs/flux_fp8.yaml(+34 -0)➕
configs/flux_fp8_e5m2.yaml(+34 -0)➕
configs/flux_mxfp8.yaml(+34 -0)➕
configs/flux_nvfp4.yaml(+34 -0)➕
configs/ideogram4_fp8.yaml(+33 -0)➕
configs/ideogram4_fp8_e5m2.yaml(+33 -0)➕
configs/ideogram4_mxfp8.yaml(+33 -0)➕
configs/ideogram4_nvfp4.yaml(+33 -0)➕
configs/ltx2_fp8.yaml(+38 -0)➕
configs/ltx2_fp8_e5m2.yaml(+38 -0)➕
configs/ltx2_int8_tensorwise.yaml(+39 -0)➕
configs/ltx2_int8_w8a8.yaml(+39 -0)...and 57 more files
📄 Description
Adds four new stock-ComfyUI-native model families on top of the existing Qwen/Anima support:
FLUX.1, FLUX.2, LTX-Video (LTXV), and Ideogram 4.0. Each reuses the existing
FP8 / MXFP8 / NVFP4 export pipeline — only the per-family adapters/contracts are new.
What's added
stock_dit_contractframework — generic block-group contract + graph buildersupporting N repeated block groups (e.g. FLUX's double + single streams).
plus an official-
fp8mixed-aligned mixed-precision recipe that keeps attention bf16 → 128) ·LTX-Video (Lightricks video DiT, 280; released checkpoint uses a
model.diffusion_model.key prefix) · Ideogram 4.0 (open-weight NextDiT/Lumina2, 204).
docs/quantization/{flux,flux2,ltxv,ideogram4}.md+ index updates.Appended: LTX-2 (LTX-2.3) family + stock-ComfyUI
int8_tensorwiseformatltx2adapter — LTX-2.3 22B audio-video DiT (48 blocks × 34 Linears incl. the 2.3gated-attention
to_gate_logits); selection reproduces the official Lightricks recipe(blocks 2–45 → 1,496 layers, string-identical to the official fp8/nvfp4 releases);
single-file bundle passthrough (vae/audio_vae/vocoder/text_embedding_projection).
int8_tensorwise— new format/algorithm/writer/CLI vertical producing checkpoints forstock ComfyUI ≥ 0.27
QUANT_ALGOS["int8_tensorwise"](SM ≥ 7.5): int8 weight +fp32
[out,1]scale + ConvRot (regular Hadamard, group 256); marker byte-equal to thestock save path; quant math bit-faithful to comfy-kitchen ≥ 0.2.15. Family configs for
ltx2 / flux2 / qwen trio, selection locked to each family's official recipe by test.
__metadata__(stock ComfyUI builds the LTX-2 architecture from
__metadata__["config"]) and emit theqwen-2511
__index_timestep_zero__sentinel beyond the FP8 writer.Validation
published checkpoint headers — FLUX.1 304/304, FLUX.2 160/160, LTXV 280/280, Ideogram4 204/204,
LTX-2.3 1,632/1,632 (selection 1,496/1,496 vs the official quantized releases).
test for the int8 quant math (48/48 bit-exact vs comfy-kitchen 0.2.16).
LTX-2.3 int8_tensorwise = 45.4 dB video PSNR vs bf16, 1.15× sampling speed, −28% VRAM;
FLUX.2 int8_tensorwise = 32.6 dB (vs 20.1 dB for fp8 on this distilled model).
Commits are split per family (framework → flux → flux2 → ltxv → ideogram4 → docs →
writer fixes → ltx2 + int8_tensorwise).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.