Skip to content

docs(cascade): state that cascade decode was measured and rejected - #2970

Merged
inureyes merged 1 commit into
lablup:mainfrom
hephaex:docs/1676-cascade-measured-and-rejected
Nov 15, 2026
Merged

inureyes merged 1 commit into
lablup:mainfrom
hephaex:docs/1676-cascade-measured-and-rejected

Conversation

@hephaex

@hephaex hephaex commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Summary

The cascade-attention docs and doc comments still described the feature as unmeasured and said the default stays off "until a benchmark file exists". The benchmark exists: the M1 Ultra layer-level run of 2026-08-03 found cascade decode slower than the flat launch in all eight measurements (0.356x to 0.784x, contexts 2048/8192, batches 4/8). After #2949 consolidated the benchmark results, it is recorded at docs/benchmark_results/versions/v0.5.0.md#cascade-attention-m1ultra-2026-08-03.

This PR updates the prose to "measured and rejected":

  • docs/cascade-attention.md: the status line now states the measured result and links the archive section; "Measuring it" no longer tells readers to create a file that already exists, and the stale docs/benchmark_results/cascade-attention-<hw>-<date>.md path is replaced with the retention rules in benchmarks.md.
  • docs/environment-variables.md: the MLXCEL_CASCADE_ATTENTION row no longer says the benefit "has not been measured".
  • src/lib/mlxcel-core/src/paged_v2/cascade.rs: module doc section "Thresholds are unmeasured" becomes "Measured and rejected: default off"; the DEFAULT_CASCADE_ENABLED doc says to flip it only after a recorded run finds a winning configuration.

What is kept as-is on purpose: the thresholds (16 shared pages, 2 members) are still reasoned rather than tuned, and no serving-level run is recorded. Both are stated explicitly instead of being dropped.

Risk

Documentation and comments only. DEFAULT_CASCADE_ENABLED is still false; no code path, constant or environment-variable behaviour changes.

Test plan

  • rustfmt --edition 2024 --check src/lib/mlxcel-core/src/paged_v2/cascade.rs: clean.
  • Checked that the new link targets exist on upstream/main: the cascade-attention-m1ultra-2026-08-03 anchor in docs/benchmark_results/versions/v0.5.0.md and the ## Result retention and release consolidation heading in docs/benchmarks.md.
  • Grepped docs/, src/lib/mlxcel-core/src/paged_v2/, examples/ and tests/ for the remaining "not measured / unmeasured / until a benchmark exists" cascade wording; the only other hits are unrelated ("unmeasured warmup steps").
  • cargo check was not run: the change touches doc comments only, and local builds of this checkout are not feasible in my environment (build scripts get killed), so compilation is left to CI.

Closes #1676

The cascade-attention prose still said throughput had not been measured and
that the default stays off "until a benchmark file exists". The M1 Ultra
layer-level run of 2026-08-03 already exists and shows cascade slower than the
flat launch in all eight measurements (0.356x to 0.784x); after the benchmark
consolidation (lablup#2949) it lives in docs/benchmark_results/versions/v0.5.0.md.

Update the stale wording in docs/cascade-attention.md, the
MLXCEL_CASCADE_ATTENTION row of docs/environment-variables.md, and the module
and DEFAULT_CASCADE_ENABLED doc comments in paged_v2/cascade.rs, and point the
"record results" instruction at the current archive location. The thresholds
(16 shared pages, 2 members) are still reasoned rather than tuned, and no
serving-level run is recorded; both stay stated as such.

Documentation and comments only. DEFAULT_CASCADE_ENABLED remains false.

Closes lablup#1676
@inureyes

Copy link
Copy Markdown
Member

Reviewed PR #2970 against #1676 and the current source references. The archived M1 Ultra measurements support the slowdown statement. The serving-level caveat remains explicit and DEFAULT_CASCADE_ENABLED remains false.

git diff --check passed. No correctness, security or performance defect found in this bounded documentation/configuration change; no production execution path is added. No follow-up code changes required. Merge remains conditional on the PR checks completing successfully.

@inureyes
inureyes merged commit 8ec989b into lablup:main Nov 15, 2026
31 checks passed
@inureyes inureyes added status:done Completed and removed status:review Under review labels Nov 15, 2026
@hephaex
hephaex deleted the docs/1676-cascade-measured-and-rejected branch November 15, 2026 11:44
@inureyes inureyes added this to the 0.9 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority status:done Completed type:docs Documentation improvements or additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: update cascade-attention prose from "benchmark missing" to "measured and rejected"

2 participants