Skip to content

fix(gates): supply split prefill referee cache origin - #370

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
Burntgogi:fix/flash-split-first-key
Oct 16, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
Burntgogi:fix/flash-split-first-key

Conversation

@Burntgogi

@Burntgogi Burntgogi commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Current main cca9beaef0180caf5fed247ac53a74617a868007 does not pass GPU-feature test metadata checking: prefill_split supplies six arguments to the now-seven-argument judge_prefill (E0061 at gate_qwen3moe_flash.rs:1776). This independently blocked the dense follow-up and combined source-correctness verification.

Decision

Supply first = 0, matching the unsplit seeded clause. This caller passes complete cache planes beginning at key zero; p0 controls each query's prefix length, not a sliced first key. Update the split clause's existing rustdoc to record that distinction. No kernel, numeric formula, band, case selector or reference input changes.

Exercised checks

  • Fail-first: fresh, isolated full-feature test metadata checks on both current-main-based diagnostic and integration trees fail with the same missing seventh argument.
  • Actual-source host smoke at 5c84771d79fdf5219618fb42e32cc00347f4ff72: the real judge_prefill and HostCache, with the normal host library's callees, accept within-band rows at counts 64/65/66 and reject a NaN output with an infinite measured/bound ratio. This does not execute or emulate a GPU kernel.

Actual NVIDIA split-prefill execution remains unrun: the available device is AMD RX7900GRE and the configured default remote destination ws is not resolvable. No GPU acceptance or performance result is claimed.

Integrated compile-after evidence

Current-main integration 3498be4b562669e507c904111dd45d1ee9900e84, including this exact caller migration, passes cargo fmt --all -- --check, cargo check --workspace --all-targets, and cargo check -p bloomery-gpu-gates --all-features --tests. Full recipe checks also pass: 784 card tests, 61 tool self-tests and 2,717 owned tests.

Immutable full integration log · actual-source host referee output.

@github-actions github-actions Bot added gpu The card engine: crates/gpu*, crates/app needs-gpu Changes code a card must check, and carries no gate run on a card labels Oct 16, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: The added zero origin matches the full cache planes and supplies the referee's required seventh argument.

Checked

Duplicates: 0 new items; all five referee call sites checked; no duplicate introduced. No dryer pairs supplied.
Complexity: crapper flagged no functions; the change adds one argument and no branches.
Silent failure: 0 new sites; NaN output fails the band check and propagates to a failing gate exit.
Tests: static inspection shows that removing the added argument leaves six arguments for a seven-parameter function. Runtime assertions are unchanged; no build or gate executed during review.
Gates: no bands, thresholds or cases changed; crates/gpu-gates/src/bin/gate_qwen3moe_flash.rs:1784 supplies the zero origin required by the full cache fixture, including nonzero prefixes.
Escape catalog: no patterns matched.

Notes

Dryer did not run; diagnostics reported no changed Rust file under crates, although the changed file is there.
The PR reports host smoke checks but no NVIDIA gate execution or qualifying GPU evidence.

Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen3moe_flash.rs and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator

@Burntgogi Thanks for the contribution. The review is done, so I'm merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gpu The card engine: crates/gpu*, crates/app needs-gpu Changes code a card must check, and carries no gate run on a card

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants