Skip to content

Default served Gemma QAT to exact MTP acceptance - #1563

Draft
jonathan308 wants to merge 2 commits into
devfrom
codex/gemma-gpqa-regression
Draft

jonathan308 wants to merge 2 commits into
devfrom
codex/gemma-gpqa-regression

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

When gemma-4-26b-qat-4bit has no explicit MTP acceptance setting, the provider currently selects lossy typical acceptance. This change selects exact acceptance for that served profile. Explicit per-model and global settings retain their existing precedence; other model defaults remain unchanged.

The change addresses an observed sampled-reasoning repetition failure. On one preselected local GPQA case, latest-master typical acceptance reached the 32,768-token cap without answering; exact acceptance stopped at 20,629 tokens with the correct answer. This is evidence for a mitigation, not proof of the full October hosted GPQA regression or performance parity. Keep this draft until expanded quality and fixed-work performance gates settle.

Follow-up diagnostic: a broader reasoning-enabled run found two capped repetitive outputs with exact acceptance too. That run was interrupted to investigate the failures and is excluded from aggregate accuracy and qualification claims. This policy change is not yet demonstrated to fix the full regression. Matched MTP-off, math-setting and historical-release controls are in progress.

Before

flowchart LR
    A["MTP acceptance request"] --> B{"Explicit setting?"}
    B -->|"Yes"| C["Per-model, then global override"]
    B -->|"No: Gemma QAT"| D["Typical acceptance"]
    D --> E["Sampled output may change"]
    classDef input fill:#17375e,color:#fff,stroke:#7bb5f2;
    classDef policy fill:#5d430a,color:#fff,stroke:#e9bf55;
    classDef outcome fill:#663333,color:#fff,stroke:#e6a2a2;
    class A input;
    class B,C,D policy;
    class E outcome;
Loading

After

flowchart LR
    A["MTP acceptance request"] --> B{"Explicit setting?"}
    B -->|"Yes"| C["Per-model, then global override"]
    B -->|"No: Gemma QAT"| D["Exact acceptance"]
    D --> E["Retain target sampling rule"]
    classDef input fill:#17375e,color:#fff,stroke:#7bb5f2;
    classDef policy fill:#5d430a,color:#fff,stroke:#e9bf55;
    classDef outcome fill:#22553d,color:#fff,stroke:#80cba1;
    class A input;
    class B,C,D policy;
    class E outcome;
Loading

The resolver is shared by provider, standalone serving and engine factory paths. This patch changes the default policy, its tests and canonical documentation; it does not change the drafter, verifier, attention kernels or cache implementation. No configuration migration is required. An explicit typical override continues to opt into that behavior.

Validation:

  • GitHub CI at commit 78589e9: provider unit tests, provider SDK tests, prompt parity, docs, release integrity, signatures and CodeQL passed.
  • Native debug MTPAcceptanceConfigTests: 7 passed, including missing settings, per-model/global precedence, explicit overrides, invalid-value handling and other model defaults. Post-refactor rerun: 7 passed.
  • Isolated native release build: PASS; candidate --version reports 0.10.0. Production-configuration model startup remains pending. The retained baseline binary is unchanged.
  • Dedicated independent refactor review: PASS. Final reviewer changes only clarified comments and refreshed documentation dates; executable behavior/tests remained unchanged.
  • git diff --check, docs-impact and changelog checks: PASS.
  • Full make docs-check: PASS after fetching complete commit history and materializing the checked documentation evidence. The earlier 13 shallow-history link failures are resolved without changing the checker or historical documents.
  • Local model controls use native paged KV/checkpoints, enabled prefix caching and verified 8,192-token full/partial prefix reuse. Contiguous KV and disabled-cache runs do not qualify this change.

Outstanding gates: expanded reasoning-enabled GPQA, repeated question/cache restoration, fixed-work latency/throughput and memory comparisons, and production-configuration startup on the final candidate binary. Exact acceptance can reduce speculative throughput; no performance non-regression claim is made. Historical hosted request bodies and per-request artifact identities are not fully known. This PR does not publish weights, register models, release a provider or deploy changes.

Related: open PR #1379 proposes a broader exact-default policy. Reconcile policy ownership before merging; this draft is intentionally scoped to the current Gemma QAT profile.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Error Error Nov 8, 2026 7:59am UTC
d-inference-console-ui-dev Error Error Nov 8, 2026 7:59am UTC
d-inference-landing Ready Ready Preview Nov 8, 2026 7:59am UTC
darkbloom-status Ready Ready Preview Nov 8, 2026 7:59am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 8, 2026 7:59am UTC

Request Review

jonathan308 and others added 2 commits November 7, 2026 23:57
Shard 3 failed in DistributedQwenMediaLifetimeTests.cancelledSubmitStillWaitsForProducerAndNative, which this branch does not touch and which flaked the same way on #1665. d-inference CI is not re-run in place, because Release Integrity fails on a second run attempt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308
jonathan308 force-pushed the codex/gemma-gpqa-regression branch from f9d9888 to 30ac8e5 Compare November 8, 2026 07:57
@jonathan308
jonathan308 changed the base branch from master to dev November 8, 2026 07:57

This branch had an error being deployed

2 failed and 3 active deployments
Preview – eigen-homepages-darkbloom — 30ac8e5a Deployed Nov 8, 2026 by vercel[bot]
Preview – d-inference-landing — 30ac8e5a Deployed Nov 8, 2026 by vercel[bot]
Preview – darkbloom-status — 30ac8e5a Deployed Nov 8, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 30ac8e5a Deployed Nov 8, 2026 by vercel[bot]
Preview – d-inference — 30ac8e5a Deployed Nov 8, 2026 by vercel[bot]
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