Skip to content

Studio: model picker ranks Recommended by the Model hub's Latest ranking - #13993

Merged
shimmyshimmer merged 2 commits into
mainfrom
studio-picker-latest-ranking
Oct 16, 2026
Merged

shimmyshimmer merged 2 commits into
mainfrom
studio-picker-latest-ranking

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

What changed

The model picker's Recommended list (Select model in a new chat) now defaults to Latest, the same ranking as the Model hub's Latest Unsloth Models list: Hugging Face trending weighed against release age, with a repo kept private until launch dated by when it went public (#13969). Before, it defaulted to the raw Hugging Face trending score, so a two-month-old hit outranked this week's releases and a model that just went public could sit low.

Trending (raw trending score) and Recent (last updated) stay in the sort menu. A typed search with Latest selected keeps the search path, newest first, as in the hub.

Verification

  • npm run typecheck, npm run build, full npm test (all pass). New tests/model-picker-latest-sort.test.ts.
  • Isolated Studio: Select model > Recommended shows Latest and lists Muse-Spark-Open-816B-A42B-GGUF, NVIDIA-Nemotron-3.5-Bolt-74B-A9B-GGUF, NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-GGUF, LFM2.5-24B-A2B-GGUF first, matching the hub.

Not tested here

The task-scoped pickers (audio) use the same ranking through the per-task pools; not exercised from this host.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T12:07:14.487902Z f914af8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 67b6abd7dc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

// Recommended section: a live unsloth listing sorted by the dropdown, the same sort that drives search results.
const [recommendedSort, setRecommendedSort] =
useState<RecommendedSortKey>("trendingScore");
useState<RecommendedSortKey>("fresh");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate the search-only Latest request until a query exists

When the Recommended tab opens with an empty query, this default makes both the results hook and recommendedSearch independently enter freshChannelIterator; each prefetches 100 newest and 100 trending entries before yielding. The browse UI consumes recommendedSearch, so the other hook duplicates both Hub listings on every picker open, increasing latency and rate-limit pressure. Enable the search-only hook only once debouncedQuery is nonempty, as is already done for communityQuerySearch.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f914af8: the search-only listing is enabled only with a query (its rows render only then), so opening Recommended fetches Latest's pools once.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: f914af8c28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@shimmyshimmer
shimmyshimmer merged commit bcf7c81 into main Oct 16, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-picker-latest-ranking branch October 16, 2026 12:12
danielhanchen added a commit that referenced this pull request Oct 16, 2026
## Summary

`Frontend build + bundle sanity` is red on main again (for example on
#13986, based on a1d4daa): `over the startup budget: transfer 1997.6
KB > 1996.8 KB, raw 6641.9 KB > 6639.0 KB`.

Measured commit by commit (one machine and build, Node 24, `rm -rf dist`
before each build, 95 chunks throughout):

| commit | raw B | transfer B |
|---|---|---|
| 4ebc263~1 | 6,798,138 | 2,044,534 |
| 4ebc263 (#13999) | 6,798,175 | 2,044,556 |
| bcf7c81 (#13993) | 6,798,217 | 2,044,592 |
| d4e005e (#13998) | 6,801,255 | 2,045,592 |

Nearly all of it is #13998 (searching a model maker in the Model hub
lists Unsloth's uploads of its models): +3,038 B raw / +1,000 B
transfer. Its owner-to-uploads search was added to
`use-hub-model-search`, a hook the startup screen already loads, so
there is no separate module to lazy-load without restructuring that
hook.

## Change

The budget is raised by the growth (3,117 B raw / 1,058 B transfer),
keeping main's margin, with the per-commit numbers recorded beside the
limits as in the earlier raises.

## Testing

- `npm run build && npm run bundle:check` on main with this change:
within budget (0.2 KB transfer, 0.2 KB raw to spare). Without it: over
by the amounts above.
- `tests/bundle-budget-cli.test.ts` and
`tests/bundle-budget-closure.test.ts`: 43 passed.
- `prettier --check scripts/check-bundle-budget.ts`: clean.
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