Skip to content

fix: auto-add unofficial-run precision so ATOM/MTP overlay renders#413

Closed
Oseltamivir wants to merge 1 commit into
masterfrom
claude/issue-412-20260601-1916
Closed

fix: auto-add unofficial-run precision so ATOM/MTP overlay renders#413
Oseltamivir wants to merge 1 commit into
masterfrom
claude/issue-412-20260601-1916

Conversation

@Oseltamivir
Copy link
Copy Markdown
Contributor

@Oseltamivir Oseltamivir commented Jun 1, 2026

Fixes #412.

Summary

When ?unofficialrun=<id> loaded a run whose precision was outside the default i_prec=fp4, ScatterGraph silently filtered every overlay point out. The ATOM/MTP nightly run 26744033059 is fp8-only on mi355x, which is why this surfaced now.

Added computeAutoAddPrecisionDecision to augment selectedPrecisions with the first run precision when the user's filter doesn't intersect the overlay's. Mirrors the existing computeAutoSwitchDecision for model. URL-pinned i_prec is respected.

Test plan

  • pnpm typecheck && pnpm lint && pnpm fmt && pnpm test:unit clean
  • 7 new unit tests for the helper (no-op, auto-add, URL pin, intersect, no-data, post-deselect, re-arm, deterministic order)
  • Verified locally with Playwright MCP at /inference?unofficialRun=26744033059 - overlay now renders with FP4+FP8 both active
  • &i_prec=fp4 correctly suppresses the auto-add (URL intent respected)

🤖 Generated with Claude Code


Note

Low Risk
Client-side filter UX only; mirrors existing unofficial model auto-switch with URL respect and dedupe, covered by unit tests.

Overview
Fixes unofficial-run overlays disappearing when the loaded run’s precision doesn’t match the active filter (e.g. default fp4 while the run is fp8-only), so chart points were filtered out even after model auto-switch.

Adds computeAutoAddPrecisionDecision alongside the existing model auto-switch helper: when an unofficial run is active for the current model/sequence and selectedPrecisions doesn’t overlap the run’s precisions, it picks one run precision (sorted, deterministic) for the UI to merge in. URL-pinned i_prec, empty overlays, no matching model/seq, and post-deselect dedupe behave like the model path.

GlobalFilterContext wires a new effect with a dedupe ref so auto-add runs once per overlay set and doesn’t undo manual precision removal. Unit tests cover the regression and edge cases.

Reviewed by Cursor Bugbot for commit 8d6820d. Bugbot is set up for automated code reviews on this repo. Configure here.

When `?unofficialrun=<id>` loads a run whose precision is outside the default
`i_prec=fp4`, ScatterGraph silently filtered every overlay point out — the
chart shape on the existing run rendered fine, but no overlay was visible.
The ATOM/MTP nightly is fp8-only on mi355x, which is why this surfaced now.

Model is already auto-switched on overlay load (`computeAutoSwitchDecision`).
This adds a sibling `computeAutoAddPrecisionDecision` that augments
`selectedPrecisions` with the first run precision when the user's filter and
the run's precisions don't intersect. URL-pinned `i_prec` is respected and
manual deselects after auto-add aren't undone (same dedupe-ref pattern as
the model switch).

Verified locally for issue #412 run 26744033059: overlay renders with FP4+FP8
active by default, and `&i_prec=fp4` correctly suppresses the auto-add.

Co-authored-by: Bryan Shan <Oseltamivir@users.noreply.github.com>
@Oseltamivir Oseltamivir requested a review from adibarra as a code owner June 1, 2026 19:46
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

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

Project Deployment Actions Updated (UTC)
inferencemax-app Ready Ready Preview, Comment Jun 1, 2026 7:46pm

Request Review

@Oseltamivir Oseltamivir closed this Jun 1, 2026
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.

ATOM MTP not showing up

1 participant