Repository navigation
Update dependency cache_dit to v1.5.6 - #33
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
February 2, 2026 05:23
9463dfe to
fd0ef19
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
February 10, 2026 08:50
fd0ef19 to
c65665d
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
February 26, 2026 08:32
c65665d to
376529f
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
March 11, 2026 12:52
376529f to
8e12ad4
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
March 25, 2026 09:55
8e12ad4 to
90ea7f3
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
March 26, 2026 13:02
90ea7f3 to
7f6b76d
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
March 27, 2026 05:24
7f6b76d to
ba50475
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
March 30, 2026 10:15
ba50475 to
0b1a44a
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
May 11, 2026 05:43
0b1a44a to
1ce318c
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
May 12, 2026 09:11
1ce318c to
28fa8b8
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
May 25, 2026 14:11
28fa8b8 to
9ea5b4b
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
May 27, 2026 04:30
9ea5b4b to
302b19a
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
June 4, 2026 10:34
302b19a to
92bb116
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
June 9, 2026 05:33
92bb116 to
3b5d57c
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
June 16, 2026 08:45
3b5d57c to
8b1494c
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
September 1, 2026 09:55
8b1494c to
0bf2938
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
September 7, 2026 14:50
0bf2938 to
013e37c
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
October 15, 2026 08:25
013e37c to
6f51d99
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
November 18, 2026 04:25
6f51d99 to
d361509
Compare
renovate
Bot
force-pushed
the
renovate/cache_dit-1.x
branch
from
November 20, 2026 10:47
d361509 to
2d3cc55
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
==1.1.10→==1.5.6Release Notes
vipshop/cache-dit (cache_dit)
v1.5.6Compare 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
sigma, while preserving the existing TaylorSeer 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
QuantizeConfig.fp8_fused_mlpor--fp8-fused-mlp.QuantizeConfig.fp4_fused_mlpor--fp4-fused-mlp.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
--mxfp4ormxfp4_weight_only; activations remain in the model dtype.4. 🧰 Unified Calibrator Configuration
#1366 standardizes algorithm selection on:
Python and YAML calibrator configuration remain supported.
--taylorseer,--dmd, and--foca, along with algorithm-specific option aliases, have been removed. Migrate to--calibratorand--calibrator-params.🙏 Contributors
Thanks to @DefTruth and @tridu33 for contributing to this release.
Full Changelog: v1.5.5...v1.5.6
v1.5.5Compare 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_opsextension with no backend-selection layer), the distributed refactor (communicate/parallelsplit), 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.0to0.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.head_dim_C_ops -> cache_dit::modelskernel familyBuilt-in pipelines (those beyond 🤗Diffusers) are listed in the README with their minimum cache-dit version.
2. ⚡ Kernel & Quantization Stack
💎 SVDQuant W4A4
runtime+lora_layout), split-K producer with rank/M dispatch, a simplified FP4 mainloop, and a tuned row-major LoRA schedule.write_dense), producer-side SwiGLU on both producer families, androw_majoras a first-class fused path.kFuseDownspecialization, 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.runtime_kernel="flashinfer+cute-dsl"or"flashinfer+cutlass-sm120"; ranks the chain cannot cover are rejected instead of silently downgraded. Replacing the exactamax(x * smooth)global scale with a safe upper bound cuts the per-layer cost from 127 µs to 48 µs.--svdq-lora-layoutis exposed in thegenerateCLI.🎛️ FP8
torch.compile.fp8_quantize_gemm. Theuse_wsknob is gone — CUTLASS selects the mainloop and the warp specialization;use_native=Falsestill selects thetorch._scaled_mmreference for the shapes it supports.🔢 FP4
torch._scaled_mmas the default GEMM, an SM120 CuTe GEMM family and a native NVFP4 Linear.use_wswere removed, entry points renamed tofp4_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:
--cache3.78 → 3.17 s;qk_norm_rope28.0 µs at 83.5% of DRAM peak vs inductor's 75.2 µs at 71.8%Every fused-op family is controlled by one switch,
CACHE_DIT_FUSED_OPS(#1301).📦 One extension, one backend
_C_opsmodule (#1288) with one pybind entry point and per-family registrars; the build has one source list, one arch predicate (>=sm89, excludingsm90) and the default arch set("89", "120a").kernels/backend.py,kernels/cuda/,kernels/triton/,kernels/cutedsl/andkernels/ops.pywere removed. CUDA is the only implementation, and there is no runtime choice between Triton, CuTe DSL and CUDA.svdq_extension_is_availablewas shortened tosvdq_is_available.3. 🔀 Distributed Module Refactor
distributed/core/was split by responsibility and deleted, with no compatibility shim (#1290):communicate/primitives.pyowns 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/uspand the diffusers bridge. Call sites import fromdistributed.parallelordistributed.communicateby symbol ownership.async_ulyssesmoved underdistributed/transformers/, which is the only place it ever patched.csrc/kernels/ulyssesasulysses_fp8_*, read-only NUMA topology diagnostics, and Ring K/V receive buffers reused.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) andtaylor(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.
ema(β 0.9)taylor(order 1)taylor(order 1, τ 0.999)For production use
--calibrator taylorseer(ordmd).Calibrator selection is now unified:
--calibrator {taylorseer,dmd,foca,svd}plus--calibrator-params "k=v,k=v". The legacy--taylorseer/--dmd/--focaflags remain as aliases, and conflicting selections fail instead of silently winning.5. 🧰 CLI and Package Layout
src/cache_dit/_utilsis nowsrc/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.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
[tool.setuptools_scm]table was removed frompyproject.toml(it silently lost tosetup.py) (#1317); the release tools share one workspace preparation step and one wheel inspector.cache_dit._utils→cache_dit.clicache_dit.attention.interface,cache_dit.attention.backend_selector, …)_C_ops.sois not compatiblekernels/backend.pyand the Triton / CuTe DSL backends were removedsvdq_extension_is_available→svdq_is_availablefp8_gemm(..., use_ws=...)was removedfp4_gemm_cutlass_2x/fp4_gemm_cutlass_1xdistributed/core/deleteddistributed.communicate/distributed.parallelsm_89+sm_120a, under one floor predicate (>=sm89,sm90excluded)sm_80/sm_86) and Hopper (sm_90) no longer load the CUDA operators; addsm_100withCACHE_DIT_CUDA_ARCH_LISTwhen building--taylorseer/--dmd/--focastill parse, but conflicting selections now fail--calibrator--calibrator taylorseerordmd📦 Install
The CUDA channel carries the local version
+cu13(cache-dit==1.5.5+cu13) for CPython 3.11–3.14, built forsm_89andsm_120a. Those wheels aremanylinux_2_34_x86_64(the floor dropped from2_38because the extension no longer needs the newer GLIBC symbols).v1.5.3Compare 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 forGQA models on 4-way context parallelism;
torchaoint8 quantization was unusable on AmpereGPUs and on
torchao0.18; the DMD calibrator silently reused the last snapshot on CPU; andthe DBCache continuous-cache streak counter could run past
max_continuous_cached_steps. TheFFPA attention backend now accepts
attn_maskand runs onsm_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
+cu13and served from our own index, so asingle command installs either build.
Affected Components
src/cache_dit/distributed/core/_distributed_primitives.pysrc/cache_dit/attention/backends/register.pyenable_gqaonce at import instead of per dispatchsrc/cache_dit/attention/backends/ffpa.py,src/cache_dit/_utils/utils.pyattn_masksupport andsm_89admissionsrc/cache_dit/quantization/torchao/quantize_ao.pysrc/cache_dit/caching/cache_contexts/cache_context.py,cache_manager.pysrc/cache_dit/caching/cache_contexts/calibrators/dmd.pydriver="gesvd"only on CUDAtools/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.shdocs/user_guide/INSTALL.md,docs/user_guide/ATTENTION.md,docs/user_guide/QUANTIZATION.md,docs/user_guide/LOAD_CONFIGS.md,README.mdBreaking Changes
None. The retired
cache-dit-cu13distribution installs the samecache_dit/package ascache-dit==1.5.3+cu13, so uninstall it before switching (see Packaging).New Features
FFPA attention backend:
attn_maskandsm_89support (#1119): the FFPA backend nowaccepts
attn_mask-- 1-D and 2-D masks are expanded to[B, 1, 1, Nkv], 3-D and 4-D maskspass 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;fp4and the NHD fast path remainsm_120-only. 70 test cases cover mask parity against SDPA and the arch matrix.Unified CUDA wheels:
cache-dit==1.5.3+cu13from our own index (#1120, releaseengineering): the CUDA build of this release is published under the
cache-ditname with thelocal 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_sequenceat world == group size (#1115):gather_replicated_kv_for_local_qskipped the per-window KV head selection whenever theglobal 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=4gives every rank 7 local Q heads, coincidentallyequal 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 rejectsdriver=for non-CUDA inputs, and
_dmd_fit_oneswallowed the error and returnedNone, so on CPU theDMD 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 threeprecision 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 streaklimits are now applied per timestep. Regression tests in
tests/api/test_refresh_context.pycover interleaved warmup, dynamic computation masks, both CFG orders and repeated cache checks.
Fix
torchaoquantization on Ampere GPUs and ontorchao0.18 (#1118): two defects._basic_filter_fn/_fallback_filter_fntookquant_ctx: QuantizeAOContext = QuantizeAOContext(), a default built at import time whosequant_typedefaults tofloat8_per_row-- so__post_init__asserted ansm89+GPU on import, and everytorchaoquant 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. Thecontext is now a required argument (every caller already passed it through
partial), andrequesting FP8 on such a GPU still fails with the same assertion. Second,
int8_per_row/int8_per_tensorbuiltInt8DynamicActivationInt8WeightConfig(granularity= (PerRow(), PerRow())), whichtorchao0.18 rejects with "Invalid granularity type"; a singlegranularity 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 wronglibrary if it happens to exist there. The release tooling now rewrites it to
$ORIGINandrefuses to publish a wheel that is not relocatable. The wheels published as
cache-dit-cu13carry 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:cache-dit-cu13distribution (last release1.5.2) is retired. Both names ship thesame
cache_dit/package, so uninstall the old one before switching:pip uninstall cache-dit-cu13.manylinux_2_38_x86_64(the floor follows the GLIBC symbolsthe extension needs) and the
sm_80,sm_86,sm_89,sm_120a,sm_121aarchitectures.--index-url: it holdscache-ditalone, with nodependencies, so PyPI has to stay the index those come from.
uvsearches extra indexes beforethe default one, so the command above resolves the CUDA build there too; naming PyPI as the
extra index instead leaves
uvconsidering the PyPI release alone.torch and cover
CUDA >= 13.0.Performance Improvements
torch.compilegraph breaks from theenable_gqaprobe (#1115):_supports_enable_gqa()raninspect.signatureon every attention dispatch, which dynamocannot fold away (
lru_cachewrappers,id()-based pseudo signatures for C builtins), so theprobe 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 offcache-dit-cu13, anda maintainer section covering the release flow (profiles, publish, verification).
docs/user_guide/QUANTIZATION.md,docs/user_guide/LOAD_CONFIGS.md: install commands synced.Dependencies
torchao0.17 and 0.18 are both supported.Testing
tests/parallelism/test_ulysses_gqa_multirank.py(multi-rank GQAreplication),
tests/api/test_dmd_svd_precision.py(SVD driver per precision), and expansionsto
tests/api/test_refresh_context.py(streak accounting) andtests/api/test_ffpa_backend.py(mask parity and arch matrix).
fullprofile builds all five CPython wheels end to end(cp310-cp314,
manylinux_2_38_x86_64, 13 cubins per architecture per arch set), the indexpublisher 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'), andimport cache_dit._C_svdquantloads.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.2Compare 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
--cacheis combined with context parallelism(
--parallel ulysses/ring), aNameErrorin theimage_rewardmetric, a layerwise-offloadcorrectness bug for models with tied (weight-shared) parameters, and a cache-setup failure for
multi-transformer pipelines. It also adds an
extra_parallel_kwargsescape hatch formodel-specific context-parallel options and fixes async-Ulysses wrapper gating.
Affected Components
src/cache_dit/caching/cache_blocks/pattern_base.pysrc/cache_dit/caching/cache_adapters/cache_adapter.py_is_cachedcheck for multi-transformer pipessrc/cache_dit/distributed/config.py,.../dispatch.pyextra_parallel_kwargspassthrough for transformer & controlnetsrc/cache_dit/distributed/async_ulysses/*ulysses_async; flux2 comm ops as eager boundaries fortorch.compilesrc/cache_dit/offload/layerwise.pysrc/cache_dit/metrics/metrics.pyimage_rewardNameErrortests/api/,tests/quantization/Breaking Changes
None.
New Features
extra_parallel_kwargsfor model-specific context-parallel options (#1110):ParallelismConfignow accepts anextra_parallel_kwargsdict (distinct from the deprecatedparallel_kwargs, which maps to standard config fields). Entries are opaque to cache-dit andforwarded to
_ContextParallelConfig.extra_kwargson both transformer and controlnet dispatch,letting downstream model hooks read custom toggles
Bug Fixes
Fix crash when
--cacheis combined with--parallel ulysses/ring(#1113, fixes #1094):the cache Fn-blocks residual (
_get_Fn_residual) subtracted a full-sequenceoriginal_hidden_statesfrom the already context-parallel-shardedhidden_states, raising ashape-mismatch error (e.g.
1280vs640, ratio == CP size). The CP-enabled guard onlyinspected diffusers' native
_diffusers_hookregistry, while cache-dit's own Ulysses/Ringruntime attaches split hooks to the vendored
_cache_dit_hookregistry, so the guard was alwaysFalsefor the built-in CP backend. The fix detects split hooks in both registries andre-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|ringruns with real cache hits (~2xspeedup at 49 steps) and structurally-identical output.
Fix
image_rewardmetric raisingNameError(#1112):cache-dit-metrics image_reward ...always died with
NameError: name 'compute_reward_score' is not definedbecause the call siteunpacked the directory-level
compute_reward_scorewhich was never imported (only the unusedcompute_reward_score_imgwas bound). The correct helper is now imported and bound, matchingthe working
clip_scoresibling.Fix layerwise offload corruption for tied (weight-shared) parameters (#1111): weight tying
(e.g.
lm_head.weightsharingembed_tokens.weight, Qwen3-4B) made two offload targets referencethe 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_cachedon the pipe class while_context_manageris set on the instance. Fordual/multi-DiT models that call
enable_cacheonce per transformer over freshFakeDiffusionPipelineinstances sharing one class, the first setup flipped the class-level flagand 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 instanceactually 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 > 1alone. Because the class-level patch is process-wide, a secondinstance of the same processor with CP enabled but
ulysses_async=False(e.g. klein-ht andklein-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_All2AllCommsend/wait()calls induced graph breaks that pushed surrounding fp8torchaoLinear calls into nested resume frames, crashing dynamo ("Polyfill handler does nothave a traceable function"). The comm operations are now kept as eager boundaries.
Performance Improvements
#1113 delivers the expected DBCache speedups under context parallelism (~2x measured on
Wan2.2-T2V at 49 steps).
Documentation
Dependencies
Testing
tests/api/test_multi_transformer_is_cached.py(multi-transformer cachesetup),
tests/quantization/test_layerwise_offload.py(tied-weight offload parity).--cachewith--parallel ulyssesandringacross 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.1Compare 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). Theenable_fp8 + enable_fp4combination 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-Dtensor_layoutfast 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 |
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.