Repository navigation
Unsloth Studio: name and order the composer picker's NPU models like the Hub - #18059
danielhanchen merged 7 commits into
Conversation
…the Hub The composer picker labelled NPU rows with FastFlowLM's -FLM id and kept the backend's alphabetical order. Build them with npuDisplayName and npuRowsFor, the same helpers the Hub's NPU list uses; the row still loads by its lemonade: path.
NPU rows have no date, so the Recent sort's tie-break re-sorted them by name. Ranked rows now break that tie by their curated rank first.
Comparing rank only between two ranked rows mixed rank and name ordering, so an NPU row could land out of the Hub's order next to undated local rows. Unranked rows now rank last, giving one (date, rank, name) key order.
|
Codex review on the fork mirror (LeoBorcherding/unsloth#918) is clean at Two earlier rounds found real issues, both fixed:
Typecheck and the full frontend suite pass (16471 pass, 0 fail). |
…e requires [skip ci]
[skip ci]
|
@codex review |
1 similar comment
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
1 similar comment
|
@codex review |
|
pre-commit.ci run |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
# Conflicts: # studio/frontend/src/components/assistant-ui/composer-model-picker/composer-model-picker.tsx [skip ci]
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The composer model picker's NPU section listed FastFlowLM's internal ids (
d3-edge-FLM,gemma4-it-e4b-FLM, ...) in the backend's alphabetical order. The Hub's NPU list already shows Hugging Face names (Qwen3.6-35B-A3B-NPU2) in the curated order from #17513. #17610 renamed the old picker and the Hub, but the composer picker from #17517 builds its own NPU rows, so it kept the raw ids.The picker now builds its NPU rows with the Hub's own helpers,
npuRowsForandnpuDisplayName, so both lists match. Rows still load by thelemonade:<id>-FLMpath, and sizes show as before. On Device's default Recent sort kept re-sorting never-loaded NPU rows by name, so device rows carry an optionalrankand the sort breaks date ties by date, then rank, then name. Name and Size sorts are unchanged.Tests.
tests/composer-npu-rows.test.tscovers names, order, the-FLMload path, and the Recent sort with mixed inventories. Typecheck and the full frontend suite pass (16471 pass, 0 fail).Screenshots. Composer picker, Discover tab, NPU section, light mint theme, with
/api/npuanswers mocked in the browser (the change is frontend only). The "Couldn't reach Hugging Face" banner is the mock having no Hub feed.