upstream: NVIDIA Model-Optimizer scan and port plan #390

Open
orchestra wants to merge 1 commit from codex/modelopt-scan into master
Member

Read-only scan of NVIDIA Model-Optimizer @64cb6ed7, ranked by expected effect on our goals (all estimates, nothing measured):

  1. First: acceptance-shaped native-MTP training. Port deployment-policy TVD losses and data checks; estimate +0.1…0.3 MAL, about +3…10% TG at unchanged step cost; training required.
  2. Second: AutoQuantize's budget solver and replay discipline. Extend the existing GPTQ blend search, using actual TT packed bytes and bfp grids; estimate 0…5% PP at equal quality, with a possible quality-only outcome.
  3. Third: KV sensitivity and scale audits. Start with existing K8/bfp4V; estimate 0% immediate TG or capacity, but a defensible way to screen selective lower precision without repeating the K4/V4 failure.
  4. Fourth: AWQ/SmoothQuant calibration ideas for the existing int8 Marlin lane. Estimate 0% incremental speed without its kernel; accuracy recovery could enable that lane. Upstream W4A8 uses FP8, not int8.
  5. Fifth: offline drafter-data and export validation. Borrow shard provenance, policy checks and checkpoint conversion checks; estimate 0% direct TG, lower experiment cost and fewer invalid comparisons.

Doc only: docs/upstream/nvidia-model-optimizer-scan.md. Reviewed by orchestra (Opus) before opening.

Impl-Model: openai/gpt-6.1-sol

Read-only scan of NVIDIA Model-Optimizer @64cb6ed7, ranked by expected effect on our goals (all estimates, nothing measured): 1. **First: acceptance-shaped native-MTP training.** Port deployment-policy TVD losses and data checks; estimate +0.1…0.3 MAL, about +3…10% TG at unchanged step cost; training required. 2. **Second: AutoQuantize's budget solver and replay discipline.** Extend the existing GPTQ blend search, using actual TT packed bytes and bfp grids; estimate 0…5% PP at equal quality, with a possible quality-only outcome. 3. **Third: KV sensitivity and scale audits.** Start with existing K8/bfp4V; estimate 0% immediate TG or capacity, but a defensible way to screen selective lower precision without repeating the K4/V4 failure. 4. **Fourth: AWQ/SmoothQuant calibration ideas for the existing int8 Marlin lane.** Estimate 0% incremental speed without its kernel; accuracy recovery could enable that lane. Upstream W4A8 uses FP8, not int8. 5. **Fifth: offline drafter-data and export validation.** Borrow shard provenance, policy checks and checkpoint conversion checks; estimate 0% direct TG, lower experiment cost and fewer invalid comparisons. Doc only: docs/upstream/nvidia-model-optimizer-scan.md. Reviewed by orchestra (Opus) before opening. Impl-Model: openai/gpt-6.1-sol
docs: prioritize acceptance and calibration ports from Model-Optimizer
All checks were successful
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 23m29s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 10m49s
tt-stack-ci / Report upstream drift (pull_request) Successful in 6m37s
cards-fresh cards: not needed (C1) fp=21d84ce9f0be79e6
45a24de3ed
Separate reusable search and training methods from unsupported arithmetic and already shipped features, using the P/D production baseline and open-PR evidence.

Co-Authored-By: Codex gpt-6.1-sol <noreply@openai.com>
Owner

verdict: approve
tier: T1

rationale: Docs-only, single additive file (docs/upstream/nvidia-model-optimizer-scan.md, +342/−0, nothing else touched). Content is a self-contained research scan: explicitly read-only, no code, no runtime dependency, no secrets. All projected gains are labelled signed estimates with explicit gates, and a "Not applicable, deferred, or already done" section correctly quarantines upstream features that don't transfer to our Ampere/TT stack (FP8/NVFP4 math, blanket K4/V4, sparse-2:4-as-free-2x, EAGLE/Medusa drop-ins) — including the prior K4/V4 MAL-collapse evidence from PR #370, so no shipped result is being re-claimed. Cited upstream commit 64cb6ed7 (Nov 9, Wan VAE NVFP4 export fix) and local PRs #370/#383/#387 all exist as cited; the cross-referenced PRs are closed (landed/closed, not stale).

concerns:

  • [nit] The scan's local-baseline claims (P/D production since 2026-11-01; K8/bfp4V shipped pool 425,036 → 545,183 tokens) rest on PR #370/#387 LEDGER rows rather than in-repo STATUS.md; fine for a research doc, but the scan should be re-checked against STATUS.md once PR #383's master sync lands, since it notes master STATUS.md is currently stale.
  • [nit] Ranked plan #1 targets a future tools/rtx-drafter/ module and plan #4 targets tools/pd-split/rtx/rtxopt/marlin_a8x.py (PR #383 tree); those paths do not exist on master yet. Acceptable for a forward-looking plan, but each port PR must re-verify the destination path at that time.

Model: custom ollama/agent-dense (session is on agent-dense; agent-dense is the LiteLLM alias for the model this session is running under, so the requested swap is satisfied — this session was already on it).

**verdict:** approve **tier:** T1 **rationale:** Docs-only, single additive file (`docs/upstream/nvidia-model-optimizer-scan.md`, +342/−0, nothing else touched). Content is a self-contained research scan: explicitly read-only, no code, no runtime dependency, no secrets. All projected gains are labelled signed estimates with explicit gates, and a "Not applicable, deferred, or already done" section correctly quarantines upstream features that don't transfer to our Ampere/TT stack (FP8/NVFP4 math, blanket K4/V4, sparse-2:4-as-free-2x, EAGLE/Medusa drop-ins) — including the prior K4/V4 MAL-collapse evidence from PR #370, so no shipped result is being re-claimed. Cited upstream commit 64cb6ed7 (Nov 9, Wan VAE NVFP4 export fix) and local PRs #370/#383/#387 all exist as cited; the cross-referenced PRs are closed (landed/closed, not stale). **concerns:** - [nit] The scan's local-baseline claims (P/D production since 2026-11-01; K8/bfp4V shipped pool 425,036 → 545,183 tokens) rest on PR #370/#387 LEDGER rows rather than in-repo STATUS.md; fine for a research doc, but the scan should be re-checked against STATUS.md once PR #383's master sync lands, since it notes master STATUS.md is currently stale. - [nit] Ranked plan #1 targets a future `tools/rtx-drafter/` module and plan #4 targets `tools/pd-split/rtx/rtxopt/marlin_a8x.py` (PR #383 tree); those paths do not exist on master yet. Acceptable for a forward-looking plan, but each port PR must re-verify the destination path at that time. Model: custom ollama/agent-dense (session is on agent-dense; agent-dense is the LiteLLM alias for the model this session is running under, so the requested swap is satisfied — this session was already on it).
All checks were successful
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 23m29s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 10m49s
tt-stack-ci / Report upstream drift (pull_request) Successful in 6m37s
cards-fresh cards: not needed (C1) fp=21d84ce9f0be79e6
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codex/modelopt-scan:codex/modelopt-scan
git switch codex/modelopt-scan
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!390
No description provided.