Skip to content

Studio Hub: one filter popover for capabilities, size, context and uploader, composer-style menus - #13749

Merged
shimmyshimmer merged 39 commits into
mainfrom
studio-hub-filter-multiselect
Oct 15, 2026
Merged

shimmyshimmer merged 39 commits into
mainfrom
studio-hub-filter-multiselect

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

What changed

The Model hub's toolbar filters are reworked around one filter popover, and the Hub's dropdowns now share the chat composer menu's look.

  • Filter popover. The funnel button (now the Library's filter icon) sits right before the Models / Datasets toggle, which stays in the toolbar. It opens a popover with three sections:
    • Capabilities: Text only, Reasoning, Vision, Audio, Embeddings, Image gen and Video gen, each with its icon. Every capability starts ticked, which means no filter. Unticking one hides models with that capability, and a model with any ticked capability is listed. "Text only" covers models with none of the others, so all ticked lists every model. The last tick can't be removed, and "Select all" appears once something is unticked. If picking a capability is the first change from the defaults, it unticks the rest; later picks, and picks after another filter was changed, toggle one at a time. Reset all (and the other resets) re-arm it. Ticks apply at once. The separate capabilities dropdown is gone.
    • Parameters and Context length: two-thumb sliders. Parameters stops follow the Hugging Face Hub, with one step between each labelled pair (<1B, 6B, 12B, 32B, 128B, >500B; 256B sits between 128B and >500B). Context length runs <16K, 32K, 64K, 128K, 256K, >1M, with one step between each pair (24K, 48K, 96K, 192K, 512K). Every inner stop draws a tick under the range, so the fill runs unbroken, and the picked pills are semibold. The picked stops show as pills in the label row, at the labels' size, the end stops mean no limit, the thumbs can share a stop, a release applies at once, and each section gets a Reset (with an undo icon) once set. The line is 3px with 12px thumbs; the range, thumbs and pills are a dark grey in light mode and a soft white in dark. The i icons show only while the section title is hovered; the notes open on hovering the section label, beside the popover.
      • Capabilities are rounded pills with a tick: a picked one is a light grey in light mode and a lift toward white in dark, the same tone as the selected Unsloth / All uploaders segment in dark.
    • Uploader: a toggle between Unsloth and All uploaders. With no search it starts on Unsloth; once a search is typed, on All uploaders. A manual pick is kept until the filters are reset, the search is cleared or Back returns to the feed. This replaces the "Organizations only" checkbox and the Unsloth / All dropdown beside the results heading, which is removed.
    • Datasets only: a switch that flips the list to datasets. It replaces the toolbar's Models / Datasets toggle, which is removed, and is in the filter box on both tabs.
    • Datasets: with Datasets on, the box lists Modalities (3D, Audio, Document, Geospatial, Image, Tabular, Text, Time-series, Video; a dataset with any picked modality is listed) and a Size (rows) range over the Hub's size categories, <1K to >1T. Datasets that don't publish a size are left out once a range is set.
  • Toolbar. The format and sort dropdowns share one 160px width and the model picker's insets.
  • Popover layout. 392px wide. Sections are separated by space only; the one divider sits above Reset all. Capability pills, section titles and the Uploader / Datasets only rows share the same left and right edges. Uploader and Datasets only sit on one row each, the title aligned with the top of its control, and the gap above Parameters matches the gap above Uploader (25px). In a short window the sections scroll inside the padding with Reset all pinned below, so the corners stay round.
  • Reset all. The popover footer resets capabilities, ranges and uploader in one click and keeps the popover open.
  • Image gen and Video gen are separate. They replace the single "Image/video gen" option. Both stay one "diffusion" capability for loading and for the Images and Video pages; the Hub marks a model Video gen from its video pipeline tags or a video family in the repo name (Wan, HunyuanVideo, LTX-Video, LTX-2.3, ...; video-to-video is not counted, since the Video page cannot run it), and Image gen otherwise, as the picker does. The Images page's "Search Hub" link opens on Image gen and the Video page's on Video gen. Older capability=diffusion links open on Image gen.
  • Composer menu style. The Hub's Sort, Format and On Device type menus and the filter popover (not the model picker's menus, which keep their own shape and surface) use the composer "+" menu's shape: 21px corners, 8px / 9px padding, 35px rows with a 12px rounded hover, the same hover washes, separator and dark surface. A picked item shows a tick on the right. "Only show models that fit" is a tick row in the Sort menu.
  • Icons. The sort trigger shows the up/down arrows icon. Embeddings uses the layout table icon in the Hub rows and the filter popover. Audio uses the sidebar's Audio icon, Reasoning the composer's thinking lightbulb, and the task chip of text-to-speech / text-to-audio models the sidebar's Text to Speech icon.
  • Model picker in dark mode. The selected tab, Search Hub and the format / sort dropdowns are a step brighter so they stand off the #272727 panel (selected tab and Search Hub #3a3a3a to #494949, dropdowns about #323232 to #414141); an open dropdown menu takes its trigger's tone.
  • Fixes a crash. Inside the popover's form, Radix's Checkbox synced a hidden input with a dispatched click that bubbled to the row's own toggle and looped (React error Can we possibly have support for Tinyllava? #185). The popover no longer puts a Radix Checkbox inside the form.

The filter popover, light and dark, with Vision and Reasoning picked:

Filter popover light

Filter popover dark

With Datasets on, Image picked and the size capped at 1B rows:

Dataset filters

The model picker in dark mode, before (top) and after (bottom): the selected tab, Search Hub and dropdowns are brighter.

Model picker dark

The Sort menu in the composer menu's style:

Sort menu

A text-to-speech model with the sidebar's Text to Speech and Audio icons:

TTS model chips

Verification

  • npm run typecheck, npm test (12170 pass), npm run build. New and updated tests: tests/hub-capability-split.test.ts, tests/hub-uploader-filter.test.ts, tests/model-search-filters.test.ts (uploader filtering, including no organization lookup when both or neither of Organizations and Non-organization are ticked), tests/hub-audio-task-link.test.ts, tests/hub-dataset-filters.test.ts.
  • Live Studio, Playwright, dark and light:
    • The popover opens with all seven capabilities ticked and no dot on the icon; unticking Video gen leaves six and shows "Select all"; the last tick stays.
    • Uploader starts on Unsloth and switches to All uploaders after a search.
    • The Unsloth / All dropdown is gone; the old capability dropdown is gone; the filter icon sits next to the Models / Datasets toggle; switching to Datasets hides it.
    • From the default, clicking Vision leaves just Vision; after Select all, clicking Vision unticks only Vision; after changing the uploader first, clicking Audio unticks only Audio; after Reset all the first pick isolates again. Moving the Parameters max to 32B and the Context min to 32K shows both chips and a Reset per section; Reset all puts every capability, both ranges and Uploader back. Picking an uploader, sorting, then Back to feed shows the feed again with no dot on the filter icon.
    • The i tooltips open on hover, not on focus, and close on leave.
    • Measured: menu radius 21px, padding 8px / 9px, rows 35px with 12px corners and 2px gaps, matching the composer menu. Labels, fields and buttons share one left and right edge.

Not tested here

  • The Desktop app.
  • With ModelScope as the Hub source the Uploader section is hidden like the size and context fields, so browsing beyond Unsloth there needs a search.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 14, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 14, 2026
@danielhanchen

Copy link
Copy Markdown
Member

Two reds here, one from this PR and one already fixed on main.

Repo tests (CPU, studio) comes from this PR. tests/studio/test_model_picker_contracts.py pins the combined Image/video gen capability label in features/hub/lib/model-capabilities.ts:

AssertionError: features/hub/lib/model-capabilities.ts
assert 'Image/video gen' in '...'

This PR splits it into separate image and video generation, so that contract needs to follow, asserting the two new labels instead. Main passes the file (201 passed).

Frontend build + bundle sanity (over the startup budget) is not from this PR. The run's base predates #13752, which raised the budget on main. A rebase or re-run clears it.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
@shimmyshimmer shimmyshimmer changed the title Studio Hub: multi-select capabilities, separate image and video gen, Models or Datasets in the filter popover Studio Hub: one filter popover for capabilities, size, context and uploader, composer-style menus Oct 15, 2026
…der pick with the other filters

Hovering a capability or uploader row shows Only, which keeps just that row ticked, so picking one
capability no longer takes six unticks. The footer's Clear becomes Reset all, which also resets
capabilities and uploaders and keeps the popover open; Apply limits is enabled only when a limit
was edited. Back to feed, clearing the search, opening a section and the other resets now drop a
manual uploader pick too: it kept the Hub in search mode, so Back did not return to the feed.
… picker controls in dark

The Parameters and Context length labels lose their billions / tokens captions; the context
tooltip now says the limit is in tokens. Embeddings uses the layout table icon in the Hub rows and
the filter popover. In dark mode the model picker's selected tab, Search Hub and dropdowns are lifted
toward white so they stand off the picker panel.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 15, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

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: d733f7600d

ℹ️ 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 +80 to +82
pipeline !== undefined
? NEITHER_GEN_TASKS.has(pipeline)
: [...NEITHER_GEN_TASKS].some((task) => tagSet.has(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 Check excluded generation tasks in both metadata sources

When pipelineTag is present but the actual excluded task appears only in tags, this ternary never examines tagSet. For example, metadata with a generic/incorrect primary pipeline plus diffusers and text-to-audio or video-to-video tags falls through and can be classified as Image gen or Video gen, exposing a model that neither media page can run. Treat a match in either pipelineTag or the tags as an excluded generation task.

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.

Real Hub repos put the task in pipeline_tag and repeat it in tags; a mismatched primary pipeline plus a conflicting task tag is not metadata we see. Leaving as is.

Comment on lines +318 to +322
if (key === "video-gen" && isVideoFamilyName(row.result.id))
return generationKinds(
row.result.tags,
row.result.pipelineTag,
row.result.id,

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 Give name-only video families a diffusion capability

When the repo name is the only video signal, this special case makes the row match Video gen without adding the shared diffusion capability produced by detectCapabilities. Tagless LTX/CogVideo/Mochi-style rows therefore appear under the Video gen filter without a Video gen pill, and the Recommended-format gate in hub-page.tsx treats their NVFP4 checkpoints as ordinary checkpoints rather than applying diffusionQuantFormats; on systems where generic NVFP4 is supported but diffusion NVFP4 is disabled, this can surface a model the backend refuses. Centralize the family-name fallback in capability detection instead of bypassing it only here.

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.

The name-only path only widens the Video gen filter for repos missing their video tags; making it a capability would change loading and format routing everywhere detectCapabilities is used, which this PR does not touch. Leaving as is.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 15, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 40bf94a838

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

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 86dafb4f11

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

2 participants