Skip to content

feat: add better default precision selection#471

Merged
adibarra merged 1 commit into
masterfrom
feat/better-precision-select
Jun 18, 2026
Merged

feat: add better default precision selection#471
adibarra merged 1 commit into
masterfrom
feat/better-precision-select

Conversation

@adibarra

@adibarra adibarra commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Changes first-load chart data and share-link precision semantics for users who relied on implicit FP4; logic is isolated and covered by tests but affects core global filter behavior.

Overview
Precision filters no longer always open on FP4. When the user has not explicitly chosen precisions (props, i_prec, preset, or toggle), GlobalFilterContext now derives effective precisions from availability curve counts via new helpers in default-precisions.ts: prefer the densest precision when every option has enough curves (≥4), otherwise show all precisions so sparse options (e.g. MiniMax M3 FP4) are not hidden. Loaded unofficial-run precisions are merged in so overlays stay visible.

A precisionExplicit flag tracks explicit vs auto mode. Manual/setSelectedPrecisions and URL i_prec set it true; auto mode omits i_prec from URL sync so shared links keep following per-model defaults. url-state.ts changes PARAM_DEFAULTS.i_prec from fp4 to '' so an explicit FP4 choice is not stripped on reload.

Unit tests cover counting, default picking, and resolveEffectivePrecisions (explicit honor, unofficial merge, loading fallback).

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

@adibarra adibarra marked this pull request as ready for review June 18, 2026 05:44
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
inferencemax-app Ready Ready Preview, Comment Jun 18, 2026 5:45am

Request Review

@adibarra adibarra merged commit d0ccc65 into master Jun 18, 2026
24 checks passed
@adibarra adibarra deleted the feat/better-precision-select branch June 18, 2026 05:47
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