Skip to content

fix(studio): use resolved public id in embeddings/completions monitor - #9346

Merged
danielhanchen merged 4 commits into
unslothai:mainfrom
Souravrajvi0:feat/monitor-active-model-embeddings-3820
Oct 1, 2026
Merged

danielhanchen merged 4 commits into
unslothai:mainfrom
Souravrajvi0:feat/monitor-active-model-embeddings-3820

Conversation

@Souravrajvi0

@Souravrajvi0 Souravrajvi0 commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Split out from #9306 per review.

/v1/embeddings and /v1/completions API monitor rows now prefer _monitor_active_model() (resolved public id + quant when known) instead of echoing the raw client model field (e.g. UNSLOTH-bge-m3 vs bge-m3:q8_0).

Test plan

  • Behaviour test: embeddings request with alias UNSLOTH-bge-m3 while loaded public id is bge-m3:q8_0 → monitor row records bge-m3:q8_0

Before / after

API monitor after calling /v1/completions as my-completer (Qwen3-0.6B Q4_K_M loaded) and /v1/embeddings as my-embedder (Qwen3-Embedding-0.6B Q8_0 loaded). Merge base c0a60448e vs head 3837ed2ba, both requests return 200 on both sides. Before, the rows echo the client alias; after, they name the loaded model and quant.

API monitor rows before and after

@Souravrajvi0

Copy link
Copy Markdown
Contributor Author

@danielhanchen — split the monitor-id change out here per your #9306 feedback.

  • /v1/embeddings and /v1/completions now prefer _monitor_active_model() for API monitor rows (resolved public id + quant) instead of echoing the raw client model field.
  • Replaced the inspect.getsource assertion with a behaviour test: request alias UNSLOTH-bge-m3 while loaded as bge-m3:q8_0 → monitor records bge-m3:q8_0.

Dedupe-only work stays in #9306.

@danielhanchen

Copy link
Copy Markdown
Member

Confirmed the raw client model is still what lands in the monitor rows in studio/backend/routes/inference.py for /v1/completions and /v1/embeddings, and this puts the resolved id plus quant there instead; noted your sequencing request ahead of #9306.

Souravrajvi0 and others added 2 commits September 14, 2026 14:36
Prefer _monitor_active_model() for API monitor rows on /v1/embeddings and
/v1/completions so the UI shows the loaded public id (with quant) instead of
echoing a raw client alias like UNSLOTH-bge-m3.
@Souravrajvi0
Souravrajvi0 force-pushed the feat/monitor-active-model-embeddings-3820 branch from f78c205 to 43932a0 Compare September 14, 2026 14:36
@danielhanchen danielhanchen self-assigned this Oct 1, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member

Review record for #9346, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#286.

Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found.

Round 1: reviewed mirror 68a76b2b38 (this PR's 3837ed2ba)

chatgpt-codex-connector[bot] (on the mirror)

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 68a76b2b38

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror 68a76b2b38 (this PR's 3837ed2ba).

This is the review as it stood at that commit. Anything pushed to this PR afterwards was not part of it.

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
@danielhanchen
danielhanchen merged commit acc0c89 into unslothai:main Oct 1, 2026
7 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants