Skip to content

Tighten Gemma 4 MTP smoke and speculative decoding coverage - #2465

Merged
leehack merged 3 commits into
mainfrom
t3/0cdbee18
Nov 30, 2026
Merged

leehack merged 3 commits into
mainfrom
t3/0cdbee18

Conversation

@leehack

@leehack leehack commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Changelog

  • [core] Make the local Gemma 4 MTP smoke fail with a typed JSON report when the drafter runs but proposes zero tokens.

Production-readiness scope

  • User-facing scope: Performance tuning guidance and the maintainer smoke CLI.
  • Supported platforms/paths: Native llama.cpp Gemma 4 GGUF with an external or embedded drafter.
  • Unsupported or intentionally unavailable paths: An unsupported MTP turn still exits 1 and reports its original exception type and message.
  • Out of scope / follow-ups: None.

Completeness checklist

  • Scope implemented.
  • Existing unsupported-path diagnostics preserved.
  • Performance guide and smoke matrix documentation updated.
  • Added regression tests and verified that the original smoke behavior and four exception type mutations fail.
  • Validation inventory N/A. Public capabilities are unchanged.
  • The smoke diagnostic contains a fixed message and adds no model data or paths.
  • No follow-up issues required.

PR type guidance

  • Bugfix: A completed speculative turn could return 0 after the drafter proposed zero tokens. Check the draft-attempt and proposed-token counters and report the failure through the existing JSON output.

Test Plan

  • dart run tool/prepare_workspace.dart with Flutter 3.47.1.
  • Repository format, analyze, platform boundaries, docs build and link check, and full Chrome suite.
  • Full local VM suite stopped after 1,338 passes with No space left on device (errno 28). Focused VM suites passed independently.
  • Coverage-lib N/A. Library behavior is unchanged.
  • Verified that four subtype mutations fail the targeted exception assertions, and that the new zero-proposal test fails before the smoke change.

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
static-format-analyze Format, analyzer, import boundaries macOS arm64 PASS Flutter 3.47.1
root-vm Exception types, smoke runner, and tooling macOS arm64 PASS focused 833 passed, 3 skipped. Full local suite blocked by disk exhaustion. Four subtype mutations and the before-fix smoke failed as expected.
root-chrome Browser-compatible suites macOS Chrome PASS 5,422 passed, 1 skipped
docs-site Website build and links macOS arm64 PASS ./tool/docs/build_site.sh completed its build and link check
gemma4-mtp-smoke External drafter and missing-drafter refusal Gemma 4 E2B Q4_K_S / Metal PASS External drafter proposed 8 tokens and accepted 7, exit 0. Missing drafter returned the typed initialization error, exit 1. A one-token turn made zero draft attempts and exited 0.
high-risk-exact-head-independent-qa Independent review PR head and current base Passed Independent Opus audit at b985029daf0e26a6fd47e0e7b44a2d2d59834e5c vs main aabe6fba9b: no blocking findings; report in pr-2465/audit.md

Review Notes

  • Independent review status: Passed, no P1/P2/P3.
  • CI status / head SHA: 7 successful, 19 skipped, 12 pending, 0 failed at b985029daf0e26a6fd47e0e7b44a2d2d59834e5c.

High-risk regression review

  • Classification: high-risk (regressionPolicy).
  • Implementation task: Follow-ups from Speed up strict grammar sampling on large vocabularies #2459 and Fail the Gemma 4 smoke when the MTP turn fails #2462.
  • Independent blocking QA task: Passed at b985029daf0e26a6fd47e0e7b44a2d2d59834e5c; non-blocking notes only.
  • Exact head / base at submission: b985029daf0e26a6fd47e0e7b44a2d2d59834e5c / aabe6fba9bf1969985f34dee4ccb2c7f9d2149e1.
  • Production-branch deletion, bypass, or miswire proof: The old smoke exited 0 in the new zero-proposal fixture. Changing the missing API, thinking-budget, bundled loadMtp, and topLogprobs paths to the subtype each failed its exact-type assertion.
  • Affected-family real-model/artifact evidence: Gemma 4 E2B with the external MTP drafter on Metal.
  • Explicit unavailable-family or other N/A evidence: The zero-proposal result is injected in a VM fixture. The available native Gemma 4 target uses external MTP.
  • Known PR-caused P1 regressions: 0 known.
  • Unresolved review threads: 0 at submission.

@leehack
leehack marked this pull request as ready for review November 30, 2026 15:04
@leehack
leehack merged commit dc7edf1 into main Nov 30, 2026
84 of 86 checks passed
@leehack
leehack deleted the t3/0cdbee18 branch November 30, 2026 16:50
@github-actions

Copy link
Copy Markdown
Contributor

Chat app preview removed for leehack/llamadart-chat-pr-2465.

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.

1 participant