Repository navigation
docs(cascade): state that cascade decode was measured and rejected - #2970
Merged
inureyes merged 1 commit intoNov 15, 2026
Merged
Conversation
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
Closed
4 tasks
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.
|
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.
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 staledocs/benchmark_results/cascade-attention-<hw>-<date>.mdpath is replaced with the retention rules inbenchmarks.md.docs/environment-variables.md: theMLXCEL_CASCADE_ATTENTIONrow 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"; theDEFAULT_CASCADE_ENABLEDdoc 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_ENABLEDis stillfalse; 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.upstream/main: thecascade-attention-m1ultra-2026-08-03anchor indocs/benchmark_results/versions/v0.5.0.mdand the## Result retention and release consolidationheading indocs/benchmarks.md.docs/,src/lib/mlxcel-core/src/paged_v2/,examples/andtests/for the remaining "not measured / unmeasured / until a benchmark exists" cascade wording; the only other hits are unrelated ("unmeasured warmup steps").cargo checkwas 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