Skip to content

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

Merged
shimmyshimmer merged 1 commit into
mainfrom
revert-13632-studio-hub-newest-recommended
Oct 14, 2026
Merged

shimmyshimmer merged 1 commit into
mainfrom
revert-13632-studio-hub-newest-recommended

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Reverts #13632

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T15:42:02.440331Z a583e4a 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: a583e4a250

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

@@ -1058,7 +1050,6 @@ export function ModelsPage() {
// search and every other format show all matches.
(effectiveDiscoverFormat !== "recommended" ||
hasQuery ||

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 Bypass the likes floor for date-sorted results

When a user selects Newest or Recently updated while the default Recommended format is active and the query is empty, this predicate now still requires an unknown publisher to have at least 30 likes. Fresh third-party uploads generally cannot satisfy that threshold, so these date-based views hide exactly the new or recently changed models they are meant to show and largely collapse to recognized publishers; retain the popularity gate only for popularity-based sorts.

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.

Not changing: this PR is an exact revert of #13632 (its diff is the inverse line for line), so the likes floor under Newest and Recently updated is the behaviour from before #13632, restored on purpose.

pinUnslothFirst &&
!unslothOnly
) {
if (hasFilters && pinUnslothFirst && !unslothOnly) {

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 Keep Unsloth prefetching enabled for unfiltered browse

For the default ownerScope="all" browse with no metadata filters, this condition now skips mergedModelIterator even though Discover passes pinUnslothFirst: true. The fallback only reorders Unsloth repositories that happen to occur in the global page, so date-sorted pages whose initial Hub results contain none no longer surface any Unsloth models first, contrary to the hook's documented all-scope behavior; the merge must also run for the Discover browse.

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.

Not changing: restoring the pre-#13632 browse path, which skips the Unsloth merge for the unfiltered all-scope listing, is what this revert is for.

Comment on lines +792 to +795
search: {
...(unslothOnly ? { owner: "unsloth" } : {}),
...(task ? { task } : {}),
},

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 Pass format tags into the plain browse request

In an unqueried sorted browse with the GGUF format selected, or with Recommended on hardware that only admits GGUF, this request now asks the Hub for every format and applies the format predicate only after pagination. Each 48-row batch therefore fills with unrelated checkpoints, and Discover stops automatic empty-page filling after five attempts, so a sparse ordering can display “No matches yet” and require repeated manual loads even though matching GGUF repositories exist later; retain the server-side gguf tag for listings whose accepted format is GGUF-only.

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.

Not changing: the plain browse request without the server-side gguf tag is the pre-#13632 behaviour this revert restores.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 14, 2026
@shimmyshimmer
shimmyshimmer merged commit aad900e into main Oct 14, 2026
@shimmyshimmer
shimmyshimmer deleted the revert-13632-studio-hub-newest-recommended branch October 14, 2026 15:39

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

ℹ️ 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 1051 to 1054
(effectiveDiscoverFormat !== "recommended" ||
hasQuery ||
(mode === "search" && !recommendedNeedsLikes(effectiveSort)) ||
resolveOwnerProviderLogo(row.owner, row.repo) !== null ||
(row.result.likes ?? 0) >= MIN_ICONLESS_MODEL_LIKES) &&

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 fresh third-party models in date sorts

When Discover uses the default Recommended format with Newest (createdAt) or Recently updated (lastModified), hasQuery is false and newly published models generally have fewer than 30 likes, so this predicate now removes every model whose owner lacks a hard-coded provider logo. This makes those date-sorted views dominated by Unsloth and other logo-backed publishers instead of showing the newest compatible models; retain the date-sort exception to the likes floor.

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.

Not changing: same as the previous round, this is the pre-#13632 behaviour that this exact revert restores on purpose.

Comment on lines 781 to 784
signal,
filterRange,
filterPriority,
browseTags,
);

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 Honor Unsloth-first ordering for plain Discover browses

When the default ownerScope="all" is used with an empty query and no advanced filters, this condition is false even though useDiscoverSearch passes pinUnslothFirst: true; execution falls through to the globally sorted listModels iterator. As a result, changing the Discover sort no longer floats any Unsloth models first, contrary to the option's documented "all" behavior, and popularity-based sorts can omit Unsloth from the initial viewport entirely.

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.

Not changing: same as the previous round, this is the pre-#13632 behaviour that this exact revert restores on purpose.

Comment on lines +791 to +795
// Unsloth-only scope restricts the plain sort browse to the org.
search: {
...(unslothOnly ? { owner: "unsloth" } : {}),
...(task ? { task } : {}),
},

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 Keep GGUF-only browse filtering on the Hub request

For a no-query sort browse with the GGUF filter, or Recommended on hardware that admits only GGUF, this request now fetches the unfiltered Hub listing and applies the format predicate only later in hub-page.tsx. Each pagination batch therefore consumes 48 arbitrary models, while the page permits only five consecutive automatic fetches that add no visible rows; if the first 288 entries for the selected sort contain no GGUF model, the view appears empty and switches to manual loading even though matching models exist farther down the Hub listing. Preserve the gguf tag in the server-side search for these formats.

Useful? React with 👍 / 👎.

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