Skip to content

Update dependency cache_dit to v1.5.6 - #33

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cache_dit-1.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cache_dit-1.x

Conversation

@renovate

@renovate renovate Bot commented Jan 16, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
cache_dit ==1.1.10 → ==1.5.6 age confidence

Release Notes

vipshop/cache-dit (cache_dit)

v1.5.6

Compare Source

🚀 Cache-DiT v1.5.6 Release Notes

Release Date: 2026-11-20
Comparison: v1.5.5...v1.5.6

📋 Overview

Cache-DiT v1.5.6 focuses on new cache forecasting/probing algorithms and opt-in fused MLP operators across native FP8, native FP4, and SVDQ. It also adds a native MXFP4 weight-only backend and consolidates calibrator configuration on a common CLI.

✨ Core Highlights

1. 🧠 New Cache Algorithms
  • HiCache (#​1359): adds the damped-Hermite extrapolation basis to DBCache, with configurable order and damping sigma, while preserving the existing TaylorSeer path.
  • BRACE (#​1368): adds experimental barycentric rational forecasting with Chebyshev enhancement, non-uniform full-compute anchors, independent named streams, and numerical fallback guards.
  • BeziCast (#​1369): adds experimental forecasting over non-uniform anchors using Bernstein equivalent weights and Tikhonov stabilization. The optional equivalent-weight guardrail remains disabled by default.
  • SeaCache probe (#​1370): adds an opt-in, model-agnostic SEA/Wiener-filtered probe inside DBCache. It supports image/video and flow/VP/AB schedules, including CP/TP configurations, without introducing a new cache type or changing the default path.

The new predictors and SeaCache are opt-in. Their validation includes model-level experiments, but results are workload- and configuration-dependent rather than a universal speed/quality ranking.

2. ⚡ Fused MLP Operators
  • Native FP8 (#​1371): adds exact/tanh GELU epilogues for per-row, per-tensor, and per-block GEMMs, plus a SwiGLU producer that fuses gating, amax, and E4M3 quantization. Enable with QuantizeConfig.fp8_fused_mlp or --fp8-fused-mlp.
  • Native FP4 (#​1373): adds exact/tanh GELU epilogues for both NVFP4 scale paths and a fused SwiGLU producer for separate-gate and half-split inputs. Enable with QuantizeConfig.fp4_fused_mlp or --fp4-fused-mlp.
  • SVDQ correctness and coverage (#​1377, #​1379): adds runtime-specific geometry and pass guardrails, broader standalone gated/nested-GELU detection, stable hit/skip statistics, and safe fallback behavior.
  • SVDQ activation variants (#​1381): native and CuTe producers now support SiLU, tanh-GELU, and exact-GELU gate activation, explicit gate-first/value-first ordering, standalone GEGLU, and FLUX.2/FLUX.3 standalone FFNs.

Fused MLP remains opt-in and retains the existing numerical/layout contracts. Actual benefit depends on model, runtime, and shape; unsupported structures continue through the unfused path.

3. 🧮 Native MXFP4 Weight-Only Quantization

#​1367 adds cache-dit's native OCP MXFP4 backend: E2M1 packed weights with E8M0 group-of-32 scales, regional quantization, layer exclusion, and configurable packing device. It does not require Blackwell NVFP4 tensor cores. Use --mxfp4 or mxfp4_weight_only; activations remain in the model dtype.

4. 🧰 Unified Calibrator Configuration

#​1366 standardizes algorithm selection on:

--calibrator <name> --calibrator-params key=value,key=value

Python and YAML calibrator configuration remain supported.

⚠️ Upgrade Notes

  • DBPrune has been removed, including its public symbols, configuration, and dedicated CLI surface (#​1366).
  • Legacy calibrator selector flags such as --taylorseer, --dmd, and --foca, along with algorithm-specific option aliases, have been removed. Migrate to --calibrator and --calibrator-params.
  • The pure-Python package and CUDA-extension package are published from the same commit:
# Default PyPI package
pip install -U cache-dit

# CUDA 13 extension build (requires a compatible CUDA 13 PyTorch stack)
pip install -U cache-dit --extra-index-url https://vipshop.github.io/cache-dit/whl/cu13/

🙏 Contributors

Thanks to @​DefTruth and @​tridu33 for contributing to this release.

Full Changelog: v1.5.5...v1.5.6

v1.5.5

Compare Source

🚀 Cache-DiT v1.5.5 Release Notes

Release Date: 2026-11-18
Comparison: v1.5.3...v1.5.5 (187 commits)
Full Changelog: GitHub Releases

📋 Overview

Cache-DiT v1.5.5 spans a month (2026-10-15 ~ 2026-11-18) and is organized around five threads: model support (25 new pipeline families, 🤗Diffusers coverage up to 0.43.0), the kernel and quantization stack (SVDQuant CuTe/NVFP4 with fused MLP, native FP8 and FP4 on CUTLASS collectives, fused memory-bound block operators, one _C_ops extension with no backend-selection layer), the distributed refactor (communicate / parallel split), SVD-Cache, and the CLI / package layout cleanup (_utils → cli).

✨ Core Highlights

1. 🧩 Model Support: 🤗Diffusers up to 0.43.0 and Built-in Pipelines

Model coverage now spans 🤗Diffusers releases from 0.12.0 to 0.43.0 (see the pipeline matrix in the README), plus built-in pipelines for models that have no 🤗Diffusers implementation. Every entry was ported with the full capability matrix — Cache, CP/TP, quantization and offload — and validated end to end.

Modality Model Notes
Video MiniMax-H3 (T2VA / FL2VA / Ref2VA) cache, CP, TP, AdaLN host residency
Video Fast-H3 few-step DMD2 students with VSA
Video SANA-Video 2.0 (720p) 5B
Video SANA-Video 2B (T2V/I2V) cache, CP, TP, quantization
Video SANA-WM (I2V) camera-controlled
Video LingBot-Video Dense 1.3B vendored 5-file pipeline
Video LongLive 2.0 (5B) cache, CP, TP, quantization
Video LongCat-Video-Avatar 1.5 (A2V/AI2V) cache, CP/TP, quantization
Video MAGI-2 Preview 114B MoE audio-video DiT, cache, CP/TP, offload, decoders
Video MOVA 360p (T2VA/I2VA) cache, CP, TP
Video HY-Nomas segment-AR camera-controlled, cache, CP, TP
Video Wan-Animate-2 base + distilled
Video Pika H3 Flex (T2VA/FL2VA/REF2VA) cache, CP, TP, fp8; plus a diffusers-native modular pipeline
Video CausVid-Wan Wan2.1-T2V-1.3B causal student
Video LTX-2.5 cache, TP, CP, fp8/SVDQuant, compile
Image HiDream-O1-Image dense CP mask, vision-conditioned
Image Ming-Image 0.1 design variants, MLLM condition extraction
Image PRXPixel cache, CP, TP, TE-P, quantization, compile
Image FireRed-Image-Edit 1.1 also fixes the Qwen-Image 1.x TP head_dim
Image Boogu-Image native, on the _C_ops -> cache_dit::models kernel family
Image MiniMax-H3-Image (T2I/Edit) exact AdaLN plan memoization
Image P-H3-Image (T2I/Edit) 8-step MiniMax-H3 based
Image FLUX.3 diffusers modular pipelines
Audio Stable Audio 3 text-to-audio
Audio LongCat-AudioDiT TTS, plus audio metrics

Built-in pipelines (those beyond 🤗Diffusers) are listed in the README with their minimum cache-dit version.

2. ⚡ Kernel & Quantization Stack
💎 SVDQuant W4A4
  • CuTe NVFP4 grew into a first-class path next to the native one: a unified runtime API (runtime + lora_layout), split-K producer with rank/M dispatch, a simplified FP4 mainloop, and a tuned row-major LoRA schedule.
  • Fused MLP and SwiGLU (#​1332): a fused epilogue (qout/oscales, both D layouts, write_dense), producer-side SwiGLU on both producer families, and row_major as a first-class fused path.
  • Chain-level tuning (#​1343, #​1344): vectorized and paired fused-quantize stores, pipelined B-operand loads in the D epilogue, kFuseDown specialization, and a geometry-gated large-K fc2 path. Full-M fc2 now reaches 0.948x / 0.965x of the native kernel at M=4096 / 8192.
  • FlashInfer chain, opt-in (#​1308, #​1310): runtime_kernel="flashinfer+cute-dsl" or "flashinfer+cutlass-sm120"; ranks the chain cannot cover are rejected instead of silently downgraded. Replacing the exact amax(x * smooth) global scale with a safe upper bound cuts the per-layer cost from 127 µs to 48 µs.
  • --svdq-lora-layout is exposed in the generate CLI.
🎛️ FP8
  • Native FP8 backend (#​1302): CUDA quantize plus a warp-specialized GEMM with split row/tensor kernels, and activation quantize fused through torch.compile.
  • CUTLASS SM120 collectives for every mode: per-row, per-tensor and per-block now share one mainloop with automatic padding/depad and a unified fp8_quantize_gemm. The use_ws knob is gone — CUTLASS selects the mainloop and the warp specialization; use_native=False still selects the torch._scaled_mm reference for the shapes it supports.
🔢 FP4
  • Native NVFP4 backend with torch._scaled_mm as the default GEMM, an SM120 CuTe GEMM family and a native NVFP4 Linear.
  • Then CUTLASS 4.8.1 collectives only: the hand-written FP4 GEMM and its use_ws were removed, entry points renamed to fp4_gemm_cutlass_2x (two stages quantize) / fp4_gemm_cutlass_1x (one stage quantize), with automatic padding for unsupported shapes.
🧬 Memory-bound block-operator fusion

Second-pass pipelines that keep the diffusers modules and state dict, and rebind only the block/attention seams to fused CUDA operators:

Model Measured (RTX PRO 5000, CUDA events)
FLUX.2-Klein (#​1298) eager 228.79 → 196.44 ms/step (−14.1%), compile −0.3%; fused+compile vs stock+compile 46.75 dB / 0.9970 against compile's own drift of 46.70 dB / 0.9971
FLUX.3-Klein (#​1299) eager 290.5 → 241.1 ms (−17.0%), compile ±0; e2e 4.83 → 4.03 s, --cache 3.78 → 3.17 s; qk_norm_rope 28.0 µs at 83.5% of DRAM peak vs inductor's 75.2 µs at 71.8%
Qwen-Image 2.1 (#​1274) eager 403.0 → 355.3 ms/step (−11.8%), CP2 −7.3%; 43.74 dB / 0.9920 vs stock+compile

Every fused-op family is controlled by one switch, CACHE_DIT_FUSED_OPS (#​1301).

📦 One extension, one backend
  • The four CUDA extensions were merged into a single _C_ops module (#​1288) with one pybind entry point and per-family registrars; the build has one source list, one arch predicate (>=sm89, excluding sm90) and the default arch set ("89", "120a").
  • The backend-selection layer is gone: kernels/backend.py, kernels/cuda/, kernels/triton/, kernels/cutedsl/ and kernels/ops.py were removed. CUDA is the only implementation, and there is no runtime choice between Triton, CuTe DSL and CUDA.
  • svdq_extension_is_available was shortened to svdq_is_available.
3. 🔀 Distributed Module Refactor
  • distributed/core/ was split by responsibility and deleted, with no compatibility shim (#​1290): communicate/primitives.py owns the all-to-all / Ring p2p collectives, head pad-unpad helpers, comm metadata and the FP8 comm kernel bindings; parallel/ owns the CP config/plan types, the hook registry, the CP runtime, ulysses/ring/usp and the diffusers bridge. Call sites import from distributed.parallel or distributed.communicate by symbol ownership.
  • async_ulysses moved under distributed/transformers/, which is the only place it ever patched.
  • Ulysses communication: per-chunk 16-byte alignment for the FP8 and BF16 all-to-all paths, the FP8 O-permute fused with quantize/dequantize, K-FP8 turned into an explicit opt-in, the communication kernels reorganized under csrc/kernels/ulysses as ulysses_fp8_*, read-only NUMA topology diagnostics, and Ring K/V receive buffers reused.
  • BF16 alignment padding is computed from the last dimension alone, so the common aligned case costs no list traversal.
4. 🧠 SVD-Cache Calibrator

A subspace-split calibrator (#​1340): the cached block tensor is decomposed in the token × channel plane into a low-rank principal part and a high-frequency residual, the principal part is smoothed across steps and the residual is frozen. The basis is fitted online from the first full-compute feature of the current inference, so there is no offline calibration artifact (arXiv:2601.07396).

Two predictors are available: ema (the paper's per-step smoothing) and taylor (SVD plus Taylor extrapolation).

Measured status (FLUX.1-dev, 1024², 28 steps, seed 0, RTX PRO 5000) — treat SVD-Cache as reproduction/experimental support: on this harness neither predictor beats plain reuse often enough to recommend it.

Configuration (rdt 0.12, 14/28 cached, ~1.9x) latency PSNR (dB) SSIM
DBCache (plain reuse) 8.85 s 23.11 0.8848
+ TaylorSeer 8.86 s 24.21 0.9123
+ DMD 8.91 s 23.49 0.9074
+ SVD-Cache ema (β 0.9) 9.48 s 20.62 0.8051
+ SVD-Cache taylor (order 1) 9.47 s 23.38 0.8882
+ SVD-Cache taylor (order 1, τ 0.999) 9.51 s 23.81 0.8990

For production use --calibrator taylorseer (or dmd).

Calibrator selection is now unified: --calibrator {taylorseer,dmd,foca,svd} plus --calibrator-params "k=v,k=v". The legacy --taylorseer / --dmd / --foca flags remain as aliases, and conflicting selections fail instead of silently winning.

5. 🧰 CLI and Package Layout
  • src/cache_dit/_utils is now src/cache_dit/cli (#​1291): argument parsing, example factories, example registration and the entrypoint. The old name hid the command-line surface behind a generic private name.
  • Module and package names lost their leading underscores (#​1292, #​1293) — for example attention/_interface.py → attention/interface.py, attention/_backend_selector.py → attention/backend_selector.py. Class-level _{NAME} naming is untouched: it still marks "subclass of diffusers' NAME".

🔧 Other Enhancements

  • Profiler: windowed Torch/Nsight collection plus NVTX stage scopes and module hooks, wired into the MiniMax-H3 steps (#​1326).
  • Metrics: PSNR inputs are cast to float64, so a uint8 tensor no longer wraps around (#​1335). Audio metrics were added with LongCat-AudioDiT.
  • Quantization: opt-in per-layer accuracy observers (#​1216).
  • Registry: owned adapters are scoped to cache-dit's own pipelines, so a foreign adapter cannot be claimed (#​1320).
  • Build: the redundant [tool.setuptools_scm] table was removed from pyproject.toml (it silently lost to setup.py) (#​1317); the release tools share one workspace preparation step and one wheel inspector.
  • Docs and skills: a usage guide for the built-in pipelines, a model-integration runbook, the downstream-compatibility audit skill, the cache-algorithm integration skill, and an operator reference for the FP8/FP4 contracts.

⚠️ Upgrade Notes

Area Change Action
Package cache_dit._utils → cache_dit.cli update imports
Package leading underscores dropped from module/package names update imports (cache_dit.attention.interface, cache_dit.attention.backend_selector, …)
Extension four CUDA extensions merged into one _C_ops rebuild or reinstall the extension; a stale .so is not compatible
Kernels kernels/backend.py and the Triton / CuTe DSL backends were removed CUDA is the only implementation; drop backend selection
Kernels svdq_extension_is_available → svdq_is_available rename
FP8 fp8_gemm(..., use_ws=...) was removed drop the kwarg; CUTLASS selects the mainloop
FP4 hand-written GEMM removed use fp4_gemm_cutlass_2x / fp4_gemm_cutlass_1x
Distributed distributed/core/ deleted import from distributed.communicate / distributed.parallel
Extension the CUDA targets are now sm_89 + sm_120a, under one floor predicate (>=sm89, sm90 excluded) Ampere (sm_80/sm_86) and Hopper (sm_90) no longer load the CUDA operators; add sm_100 with CACHE_DIT_CUDA_ARCH_LIST when building
CLI --taylorseer / --dmd / --foca still parse, but conflicting selections now fail migrate to --calibrator
Cache SVD-Cache is experimental prefer --calibrator taylorseer or dmd

📦 Install

pip install -U cache-dit                       # PyPI, pure Python
pip install -U cache-dit --extra-index-url https://vipshop.github.io/cache-dit/whl/cu13/   # +cu13, with the CUDA extension

The CUDA channel carries the local version +cu13 (cache-dit==1.5.5+cu13) for CPython 3.11–3.14, built for sm_89 and sm_120a. Those wheels are manylinux_2_34_x86_64 (the floor dropped from 2_38 because the extension no longer needs the newer GLIBC symbols).

v1.5.3

Compare Source

Release Notes: cache-dit v1.5.3

Release Date: 2026-10-15
Comparison: v1.5.2...v1.5.3 (10 commits)
Type: Feature + bugfix release

Summary

v1.5.3 fixes four correctness bugs and adds one feature. A silent GQA corruption in the
Ulysses KV replication path (replicate_kv_sequence) could turn outputs into pure noise for
GQA models on 4-way context parallelism; torchao int8 quantization was unusable on Ampere
GPUs and on torchao 0.18; the DMD calibrator silently reused the last snapshot on CPU; and
the DBCache continuous-cache streak counter could run past max_continuous_cached_steps. The
FFPA attention backend now accepts attn_mask and runs on sm_89 (Ada) GPUs.

This release also unifies the CUDA (SVDQuant) wheels with the PyPI release: they are now the
same distribution, told apart by the local version +cu13 and served from our own index, so a
single command installs either build.

Affected Components

Component Path Change
Distributed (Ulysses/GQA) src/cache_dit/distributed/core/_distributed_primitives.py Per-window KV head selection at world == group size (fix #​1115)
Attention (backend registry) src/cache_dit/attention/backends/register.py Probe enable_gqa once at import instead of per dispatch
Attention (FFPA backend) src/cache_dit/attention/backends/ffpa.py, src/cache_dit/_utils/utils.py attn_mask support and sm_89 admission
Quantization (torchao) src/cache_dit/quantization/torchao/quantize_ao.py Import on pre-Ada GPUs; single granularity for int8 configs
Caching (contexts/manager) src/cache_dit/caching/cache_contexts/cache_context.py, cache_manager.py Continuous-cache streak accounting
DMD calibrator src/cache_dit/caching/cache_contexts/calibrators/dmd.py driver="gesvd" only on CUDA
Release tooling tools/build_releases.sh, tools/release_workspace.py, tools/repair_wheel_platform_tag.py, tools/inspect_release_wheel.py, tools/make_index.py, tools/publish_index.sh Unified CUDA channel, relocatable RPATH, artifact assertions, index generation and publish
Docs docs/user_guide/INSTALL.md, docs/user_guide/ATTENTION.md, docs/user_guide/QUANTIZATION.md, docs/user_guide/LOAD_CONFIGS.md, README.md Install command, FFPA matrix, release flow

Breaking Changes

None. The retired cache-dit-cu13 distribution installs the same cache_dit/ package as
cache-dit==1.5.3+cu13, so uninstall it before switching (see Packaging).

New Features

  • FFPA attention backend: attn_mask and sm_89 support (#​1119): the FFPA backend now
    accepts attn_mask -- 1-D and 2-D masks are expanded to [B, 1, 1, Nkv], 3-D and 4-D masks
    pass through, and a masked call forces the HND route (the NHD fast path is mask-free by
    design). sm_89 (Ada) is admitted for fp16 and fp8; fp4 and the NHD fast path remain
    sm_120-only. 70 test cases cover mask parity against SDPA and the arch matrix.

  • Unified CUDA wheels: cache-dit==1.5.3+cu13 from our own index (#​1120, release
    engineering): the CUDA build of this release is published under the cache-dit name with the
    local version +cu13, so installing it is one command and needs no second distribution name.
    See Packaging below.

Bug Fixes

  • Fix silent GQA corruption in replicate_kv_sequence at world == group size (#​1115):
    gather_replicated_kv_for_local_q skipped the per-window KV head selection whenever the
    global KV head count equaled the local Q head count. For GQA models this is not an identity:
    Boogu (28 Q / 7 KV) with Ulysses world=4 gives every rank 7 local Q heads, coincidentally
    equal to the 7 global KV heads, so every rank skipped the GQA mapping, attended with the wrong
    KV heads and produced pure-noise outputs. The shortcut now only applies to global MHA.
    Regression test: tests/parallelism/test_ulysses_gqa_multirank.py.

  • Fix dmd_svd_precision="high" silently falling back on CPU (#​1116):
    torch.linalg.svd(..., driver="gesvd") was passed on every device. PyTorch rejects driver=
    for non-CUDA inputs, and _dmd_fit_one swallowed the error and returned None, so on CPU the
    DMD calibrator reused the last snapshot without a word. The driver is now selected per device,
    matching svdquant/lowrank.py. Test: tests/api/test_dmd_svd_precision.py (all three
    precision levels on CPU).

  • Fix the DBCache continuous-cache streak accounting (#​1114): the streak counter was not
    restarted after a compute step, non-adjacent cache hits did not reset it, and the cap was reset
    in redundant places, so a run could exceed max_continuous_cached_steps; DBPrune's streak
    limits are now applied per timestep. Regression tests in tests/api/test_refresh_context.py
    cover interleaved warmup, dynamic computation masks, both CFG orders and repeated cache checks.

  • Fix torchao quantization on Ampere GPUs and on torchao 0.18 (#​1118): two defects.
    _basic_filter_fn / _fallback_filter_fn took quant_ctx: QuantizeAOContext = QuantizeAOContext(), a default built at import time whose quant_type defaults to
    float8_per_row -- so __post_init__ asserted an sm89+ GPU on import, and every torchao
    quant type, int8 and int4 included, failed on A100/A800 with "FP8 requires Ada or newer GPUs
    (>=sm89), but got (8, 0)"; on CPU-only hosts the import raised NotImplementedError. The
    context is now a required argument (every caller already passed it through partial), and
    requesting FP8 on such a GPU still fails with the same assertion. Second,
    int8_per_row/int8_per_tensor built Int8DynamicActivationInt8WeightConfig(granularity= (PerRow(), PerRow())), which torchao 0.18 rejects with "Invalid granularity type"; a single
    granularity applies to both activation and weight in 0.17 and 0.18. Test:
    tests/quantization/test_torchao_int8.py.

  • Fix the CUDA wheels' RPATH (part of #​1120): the extension carried the build environment's
    lib directory (.../envs/py312/lib), a path that means nothing on a user's machine and a wrong
    library if it happens to exist there. The release tooling now rewrites it to $ORIGIN and
    refuses to publish a wheel that is not relocatable. The wheels published as cache-dit-cu13
    carry the old path, so this removes an existing wart rather than fixing a regression.

Packaging and Installation

The CUDA (SVDQuant) wheels are now the same distribution as the PyPI release, distinguished by
the local version of the wheel (1.5.3+cu13) and served from a static PEP 503 index:

pip install -U cache-dit --extra-index-url https://vipshop.github.io/cache-dit/whl/cu13/
pip install "cache-dit==1.5.3+cu13" --extra-index-url https://vipshop.github.io/cache-dit/whl/cu13/  # pinned
  • The former cache-dit-cu13 distribution (last release 1.5.2) is retired. Both names ship the
    same cache_dit/ package, so uninstall the old one before switching:
    pip uninstall cache-dit-cu13.
  • Wheels cover CPython 3.10-3.14, manylinux_2_38_x86_64 (the floor follows the GLIBC symbols
    the extension needs) and the sm_80, sm_86, sm_89, sm_120a, sm_121a architectures.
  • Add our index as an extra index, not as --index-url: it holds cache-dit alone, with no
    dependencies, so PyPI has to stay the index those come from. uv searches extra indexes before
    the default one, so the command above resolves the CUDA build there too; naming PyPI as the
    extra index instead leaves uv considering the PyPI release alone.
  • Install torch first, from the PyTorch index you normally use. The wheels link against a CUDA 13
    torch and cover CUDA >= 13.0.

Performance Improvements

  • torch.compile graph breaks from the enable_gqa probe (#​1115):
    _supports_enable_gqa() ran inspect.signature on every attention dispatch, which dynamo
    cannot fold away (lru_cache wrappers, id()-based pseudo signatures for C builtins), so the
    probe stayed visible to the recorder. The answer cannot change within a process, so it is now
    resolved once at import: measured on fast-boogu (single card, B=1, flash-varlen backend),
    this removed the last source of graph breaks in the compile cell, 56 -> 0.

Documentation

  • README.md: installation instructions, refreshed.
  • docs/user_guide/ATTENTION.md: the FFPA mask and arch matrix.
  • docs/user_guide/INSTALL.md: the CUDA install command, the migration off cache-dit-cu13, and
    a maintainer section covering the release flow (profiles, publish, verification).
  • docs/user_guide/QUANTIZATION.md, docs/user_guide/LOAD_CONFIGS.md: install commands synced.

Dependencies

  • No dependency version changes. torchao 0.17 and 0.18 are both supported.

Testing

  • New regression tests: tests/parallelism/test_ulysses_gqa_multirank.py (multi-rank GQA
    replication), tests/api/test_dmd_svd_precision.py (SVD driver per precision), and expansions
    to tests/api/test_refresh_context.py (streak accounting) and tests/api/test_ffpa_backend.py
    (mask parity and arch matrix).
  • Release verification: the full profile builds all five CPython wheels end to end
    (cp310-cp314, manylinux_2_38_x86_64, 13 cubins per architecture per arch set), the index
    publisher passes 23 synthetic cases (sha256 anchors, merge, re-release, refusals) and the
    resulting wheels install from a local index -- cache_dit.__version__ == 1.5.3+cu13,
    version_tuple == (1, 5, 3, 'cu13'), and import cache_dit._C_svdquant loads.

Contributors

Thank you to everyone who contributed to v1.5.3:

Full Changelog

v1.5.2...v1.5.3

Pull requests: #​1114, #​1115, #​1116, #​1118, #​1119, #​1120

v1.5.2

Compare Source

Release Notes: cache-dit v1.5.2

Release Date: 2026-09-07
Comparison: v1.5.1...v1.5.2 (5 commits)
Type: Hotfix release

Summary

v1.5.2 is a hotfix release focused on stability of the caching + distributed-parallelism
combination. It fixes a crash when --cache is combined with context parallelism
(--parallel ulysses/ring), a NameError in the image_reward metric, a layerwise-offload
correctness bug for models with tied (weight-shared) parameters, and a cache-setup failure for
multi-transformer pipelines. It also adds an extra_parallel_kwargs escape hatch for
model-specific context-parallel options and fixes async-Ulysses wrapper gating.

Affected Components

Component Path Change
Caching (DBCache blocks) src/cache_dit/caching/cache_blocks/pattern_base.py Fn-residual sharding under CP (fix #​1094)
Caching (adapter) src/cache_dit/caching/cache_adapters/cache_adapter.py Per-instance _is_cached check for multi-transformer pipes
Distributed (config/dispatch) src/cache_dit/distributed/config.py, .../dispatch.py extra_parallel_kwargs passthrough for transformer & controlnet
Async Ulysses src/cache_dit/distributed/async_ulysses/* Gate wrappers on ulysses_async; flux2 comm ops as eager boundaries for torch.compile
Layerwise offload src/cache_dit/offload/layerwise.py Dedupe tied weights across offload targets
Metrics CLI src/cache_dit/metrics/metrics.py Fix image_reward NameError
Tests tests/api/, tests/quantization/ Regression tests for multi-transformer cache & tied-weight offload

Breaking Changes

None.

New Features

  • extra_parallel_kwargs for model-specific context-parallel options (#​1110):
    ParallelismConfig now accepts an extra_parallel_kwargs dict (distinct from the deprecated
    parallel_kwargs, which maps to standard config fields). Entries are opaque to cache-dit and
    forwarded to _ContextParallelConfig.extra_kwargs on both transformer and controlnet dispatch,
    letting downstream model hooks read custom toggles

Bug Fixes

  • Fix crash when --cache is combined with --parallel ulysses/ring (#​1113, fixes #​1094):
    the cache Fn-blocks residual (_get_Fn_residual) subtracted a full-sequence
    original_hidden_states from the already context-parallel-sharded hidden_states, raising a
    shape-mismatch error (e.g. 1280 vs 640, ratio == CP size). The CP-enabled guard only
    inspected diffusers' native _diffusers_hook registry, while cache-dit's own Ulysses/Ring
    runtime attaches split hooks to the vendored _cache_dit_hook registry, so the guard was always
    False for the built-in CP backend. The fix detects split hooks in both registries and
    re-shards the full-sequence tensor via the block's own split hook before subtracting (with an
    explicit shape guard and a safe proxy fallback). The non-CP path is unchanged.
    Verified on Wan2.2-T2V: --cache --parallel ulysses|ring runs with real cache hits (~2x
    speedup at 49 steps) and structurally-identical output.

  • Fix image_reward metric raising NameError (#​1112): cache-dit-metrics image_reward ...
    always died with NameError: name 'compute_reward_score' is not defined because the call site
    unpacked the directory-level compute_reward_score which was never imported (only the unused
    compute_reward_score_img was bound). The correct helper is now imported and bound, matching
    the working clip_score sibling.

  • Fix layerwise offload corruption for tied (weight-shared) parameters (#​1111): weight tying
    (e.g. lm_head.weight sharing embed_tokens.weight, Qwen3-4B) made two offload targets reference
    the same live parameter with independent pinned mirrors and onload/offload state machines — one
    target's CPU rebind poisoned the other's GPU residency bookkeeping, and async prefetch exposed
    half-copied tensors (torn embedding reads / device-mismatch crashes). Shared states are now
    owned by their first target (duplicates dropped as bookkeeping-only transports), owners are
    forced persistent, and prefetch residency bytes are recomputed after dedupe. Verified
    bitwise-equal to the GPU-resident baseline across sync / async / async+prefetch.

  • Fix cache setup failure for multi-transformer pipelines (#​1102): CachedAdapter.create_context()
    set _is_cached on the pipe class while _context_manager is set on the instance. For
    dual/multi-DiT models that call enable_cache once per transformer over fresh
    FakeDiffusionPipeline instances sharing one class, the first setup flipped the class-level flag
    and every sibling was then reported as already cached (without its own context manager),
    asserting in create_context(). Context creation is now skipped only when that specific instance
    actually has a context manager. A regression test was added.

  • Fix async-Ulysses wrapper gating (part of #​1110): all async Ulysses processor wrappers
    (flux, flux2, qwen_image, zimage, zimage_controlnet, ovis_image, longcat_image) entered the async
    path on ulysses_degree > 1 alone. Because the class-level patch is process-wide, a second
    instance of the same processor with CP enabled but ulysses_async=False (e.g. klein-ht and
    klein-fit in one worker) was forced onto the async path once any instance opted in. Wrappers now
    also require ulysses_async=True, restoring per-instance opt-in.

  • Keep flux2 async comm ops as eager boundaries for torch.compile (part of #​1110): inline
    _All2AllComm send/wait() calls induced graph breaks that pushed surrounding fp8
    torchao Linear calls into nested resume frames, crashing dynamo ("Polyfill handler does not
    have a traceable function"). The comm operations are now kept as eager boundaries.

Performance Improvements

  • No standalone performance work in this release; the cache + Ulysses/Ring combination restored by
    #​1113 delivers the expected DBCache speedups under context parallelism (~2x measured on
    Wan2.2-T2V at 49 steps).

Documentation

  • No documentation changes in this release.

Dependencies

  • No dependency version changes.

Testing

  • New regression tests: tests/api/test_multi_transformer_is_cached.py (multi-transformer cache
    setup), tests/quantization/test_layerwise_offload.py (tied-weight offload parity).
  • End-to-end verification on Wan2.2-T2V (A14B): --cache with --parallel ulysses and ring
    across 2 GPUs; cache-hit correctness and structural (non-garbled) output confirmed; non-CP path
    byte-for-byte unchanged.

Contributors

Thank you to everyone who contributed to v1.5.2:

Full Changelog

v1.5.1...v1.5.2

Pull requests: #​1113, #​1112, #​1111, #​1110, #​1102 · Issue fixed: #​1094

v1.5.1

Compare Source

🚀 Cache-DiT v1.5.1 Release Notes

Release Date: 2026-09-01
Comparison: v1.5.0...v1.5.1 (45 commits, 43 PRs, 7 contributors)

📋 Overview

Cache-DiT v1.5.1 is a feature release spanning ~2.5 months (2026-06-16 ~ 2026-09-01), covering 43 PRs. The headline feature is the FFPA CUDA attention backends (fp16/fp8/fp4) for Blackwell GPUs with native zero-copy NHD layouts. The release also adds 7 new model integrations (boogu-image, ernie-image, Joy-Image-Edit, AnyFlow & AnyFlow-FAR, Krea-2, Bria-Fibo, Cosmos3 Omni), a Sage3 Blackwell attention backend, torchao NVFP4 dynamic quantization, an alternating SVD refinement option for SVDQuant, the hyper-parameter-free FoCa calibrator, Context-Parallelism communication optimization for boogu-image, and Ascend NPU profiling support.

✨ Core Highlights

1. ⚡ FFPA CUDA Attention Backends

New attention backends built on ffpa-attn (Flash Prefill Attention), delivering quantized CuTe TMA kernels for sm_120 (Blackwell) GPUs — forward inference only, Context Parallelism compatible:

• --attn ffpa: CuTe TMA fp16/bf16 kernels
• --attn ffpa_fp8: FP8 quantized attention, defaults to the highest-precision quant config (int8 QK MMA + fp16 PV accumulation, per-thread Q/K + per-channel V scales on consumer GPUs)
• --attn ffpa_fp4: NVFP4 quantized attention
• --attn ffpa_fp8_per_block: per-block quantized FP8 variant (fastest, lower precision)

Fine-grained CLI controls: --ffpa-hybrid (hybrid fp16 early-rows stage, default off for every backend), --ffpa-hybrid-n-early, --ffpa-fp8-hadamard / --ffpa-fp4-hadamard (Hadamard pre-rotation). The enable_fp8 + enable_fp4 combination is explicitly rejected with a clear error.

Native NHD layouts (#​1104–#​1107): all CuTe families (fp16/fp8/fp4) now consume NHD ([B, H, N, D]) inputs natively — both packed and strided — through the fp8 persist-D tensor_layout fast path, eliminating the BHSD↔NHD permute + .contiguous() materialization overhead on every forward.

Performance (FLUX.1-dev, 2048×2048, single RTX PRO 5000, 28 steps; E2E latency / PSNR / SSIM vs BF16 baseline, measured before the NHD fast path landed):

| Backend | Latency |

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 9463dfe to fd0ef19 Compare February 2, 2026 05:23
@renovate renovate Bot changed the title Update dependency cache_dit to v1.2.0 Update dependency cache_dit to v1.2.1 Feb 2, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from fd0ef19 to c65665d Compare February 10, 2026 08:50
@renovate renovate Bot changed the title Update dependency cache_dit to v1.2.1 Update dependency cache_dit to v1.2.2 Feb 10, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from c65665d to 376529f Compare February 26, 2026 08:32
@renovate renovate Bot changed the title Update dependency cache_dit to v1.2.2 Update dependency cache_dit to v1.2.3 Feb 26, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 376529f to 8e12ad4 Compare March 11, 2026 12:52
@renovate renovate Bot changed the title Update dependency cache_dit to v1.2.3 Update dependency cache_dit to v1.3.0 Mar 11, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 8e12ad4 to 90ea7f3 Compare March 25, 2026 09:55
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.0 Update dependency cache_dit to v1.3.1 Mar 25, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 90ea7f3 to 7f6b76d Compare March 26, 2026 13:02
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.1 Update dependency cache_dit to v1.3.3 Mar 26, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 7f6b76d to ba50475 Compare March 27, 2026 05:24
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.3 Update dependency cache_dit to v1.3.4 Mar 27, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from ba50475 to 0b1a44a Compare March 30, 2026 10:15
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.4 Update dependency cache_dit to v1.3.5 Mar 30, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 0b1a44a to 1ce318c Compare May 11, 2026 05:43
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.5 Update dependency cache_dit to v1.3.6 May 11, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 1ce318c to 28fa8b8 Compare May 12, 2026 09:11
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.6 Update dependency cache_dit to v1.3.7 May 12, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 28fa8b8 to 9ea5b4b Compare May 25, 2026 14:11
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.7 Update dependency cache_dit to v1.3.8 May 25, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 9ea5b4b to 302b19a Compare May 27, 2026 04:30
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.8 Update dependency cache_dit to v1.3.9 May 27, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 302b19a to 92bb116 Compare June 4, 2026 10:34
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.9 Update dependency cache_dit to v1.3.11 Jun 4, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 92bb116 to 3b5d57c Compare June 9, 2026 05:33
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.11 Update dependency cache_dit to v1.3.12 Jun 9, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 3b5d57c to 8b1494c Compare June 16, 2026 08:45
@renovate renovate Bot changed the title Update dependency cache_dit to v1.3.12 Update dependency cache_dit to v1.5.0 Jun 16, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 8b1494c to 0bf2938 Compare September 1, 2026 09:55
@renovate renovate Bot changed the title Update dependency cache_dit to v1.5.0 Update dependency cache_dit to v1.5.1 Sep 1, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 0bf2938 to 013e37c Compare September 7, 2026 14:50
@renovate renovate Bot changed the title Update dependency cache_dit to v1.5.1 Update dependency cache_dit to v1.5.2 Sep 7, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 013e37c to 6f51d99 Compare October 15, 2026 08:25
@renovate renovate Bot changed the title Update dependency cache_dit to v1.5.2 Update dependency cache_dit to v1.5.3 Oct 15, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from 6f51d99 to d361509 Compare November 18, 2026 04:25
@renovate renovate Bot changed the title Update dependency cache_dit to v1.5.3 Update dependency cache_dit to v1.5.5 Nov 18, 2026
@renovate
renovate Bot force-pushed the renovate/cache_dit-1.x branch from d361509 to 2d3cc55 Compare November 20, 2026 10:47
@renovate renovate Bot changed the title Update dependency cache_dit to v1.5.5 Update dependency cache_dit to v1.5.6 Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants