Skip to content

Studio Hub: Newest and Recently updated list more than Unsloth models under Recommended - #13632

Merged
danielhanchen merged 5 commits into
mainfrom
studio-hub-newest-recommended
Oct 14, 2026
Merged

danielhanchen merged 5 commits into
mainfrom
studio-hub-newest-recommended

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Fixes #13613 (the "Load more does nothing" and "only Unsloth models" part; the filter layout ideas are a separate feature request).

Problem

With the Hub on the default Recommended format, sorting by Newest (or Recently updated) only ever showed Unsloth models, even with the owner scope on All, and Load more fetched pages that added no rows.

Recommended keeps a row only if it is a GGUF (or an FP8 / NVFP4 checkpoint the GPU runs) and its owner has a provider logo or the repo has at least 30 likes. Only Unsloth re-uploads and Meta's orgs resolve a logo, and under a creation-date sort no fresh upload has 30 likes yet, so every non-Unsloth row was dropped. On top of that the listing was not narrowed to GGUF on the Hub side, so most of each 48-row page was non-GGUF and dropped too.

Live Hub, default Recommended, All scope, no FP8 GPU (rows visible after each page, from the real filter modules):

View main, pages 1-4 this PR, pages 1-4
Newest, 2B-7B params 3, 3, 3, 3 (all unsloth/) 48, 96, 144, 192 (172 not unsloth/)
Newest 0, 0, 0, 0 48, 96, 144, 192
Recently updated 0, 0, 0, 1 48, 96, 144, 192
Trending, 2B-7B params 21, 26, 34, 42 41, 67, 81, 97

Change

  1. Under Newest / Recently updated in the sorted or filtered Discover list, Recommended no longer applies the likes floor (it still keeps only GGUFs and the FP8 / NVFP4 checkpoints this GPU runs). Popularity sorts (Trending, Most downloaded, Most liked), the feed and channel lists keep the floor as before.
  2. When the format filter can only show GGUF rows (GGUF, or Recommended on a GPU without FP8 / NVFP4), the no-query listing asks the Hub for gguf-tagged repos, so each page is filled with rows the filter keeps. Typed searches, the feed and channel lists are unchanged; on FP8 / NVFP4 GPUs Recommended still lists every format because it shows those checkpoints.
  3. A Discover sort browse with owners on All now lists Unsloth repos first under every sort, as a typed search and a filtered browse already did (up to 20 unsloth/ rows, then the rest of the Hub, deduplicated). Before, a plain Newest browse had no Unsloth phase, so unsloth/ repos either never showed or sat mid-list. Only Hub Discover opts in; the chat, export, settings and train pickers keep their own listings.

The gguf tag drops nothing Recommended would have shown: under Trending with the 2B-7B filter all 42 rows main showed are also listed by this branch, in the same order.

Tests

  • tests/hub-recommended-format.test.ts: the likes floor applies only to popularity sorts, and the listing tags per format and GPU.
  • npm test: 12058 pass, 0 fail. npm run typecheck clean.

Before / after

Model Hub, Discover, sort Newest, format Recommended, owners All, two fresh Studio installs (main at c77695d vs this branch at b51f676) on a B200, so FP8 / NVFP4 checkpoints also count as Recommended here. Before: no rows after 384 scanned, and Load more adds none. After: 15 unsloth/ rows first and none below another publisher's row, then 11 rows from other publishers, and Load more adds rows.

Hub Newest under Recommended, before and after

Without FP8 (the gguf-tagged listing), live Hub, two pages of Newest: 20 unsloth/ rows first, 0 unsloth/ rows below another publisher's row, 76 rows from other publishers.

Cross-platform: tests/hub-recommended-format.test.ts 9/9 on ubuntu-latest, macos-15 and windows-latest staging legs, Studio Playwright smoke green.

@danielhanchen danielhanchen self-assigned this Oct 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-14T12:40:07.572026Z b51f676 Manual request
🔒 Security Review ⚠️ Failed 2026-10-13T16:21:15.464215Z ce3ab79 PR opened
ℹ️ 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: ce3ab79494

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

@Rafael-Silva-Oliveira

Copy link
Copy Markdown
Contributor

Thanks for the crazy speed on tackling this issue! Superb work

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@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: b51f676ab7

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

Comment on lines +106 to +108
return formatFilter === "gguf" ||
(formatFilter === "recommended" && checkpointQuantFormats.length === 0)
? GGUF_LISTING_TAGS

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 Preserve GGUF repositories without the Hub tag

When a no-query GGUF browse, or Recommended on a GPU without checkpoint-quant support, reaches this branch, the server-side gguf filter permanently excludes repositories that lack that tag. This is narrower than the existing format detection in makeMapModel, which deliberately treats a -GGUF repository name or expanded gguf metadata as GGUF even without the tag, so those models were previously visible but can no longer be found under these views. Keep a fallback listing for untagged GGUFs or otherwise align the server-side restriction with the client's accepted GGUF signals.

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.

Checked on the live Hub: of 1270 repos returned for a gguf search (newest, most downloaded, trending), 11 lack the gguf tag and none of them holds a .gguf file, while no repo carries gguf metadata without the tag. The Hub tags every repo that has GGUF weights, so the server-side filter only drops repos with nothing to download, which the variant expander would answer with No GGUF variants found.

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 14, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: b51f676ab7

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

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.

[Bug] New Model Hub filters do not work as expected + suggested improvements

2 participants