unsloth/studio/frontend/src/components
Michael Han ac6ba96f9e
Add a fits-on-device filter to the model selects (#6802)
* Add a shared fits-on-device filter to the model selects

The chat model selector gains an Only show models that fit on this
device tick under its filter row, and the Hub page gains a matching
Fits device pill next to the sort menu. Both read one persisted
preference (unsloth_models_fit_on_device_only), so toggling either
applies to both.

The filter reuses the Recommended sort's existing fit math, extracted
into hfModelFitsDevice: size from safetensors metadata, GGUF param
count, or the repo name, against the 0.7 GPU + 0.7 RAM budget, with
unsizable models hidden. In the chat selector it extends the fit
filtering to the Trending and Recent sorts and to search results;
downloaded models stay visible regardless. An unknown device budget
keeps everything. The preference is cleared by Reset all local
preferences like the other picker toggles.

* Move the device-fit toggle into the sort dropdowns

* Tighten sort menu footer spacing and shorten the label

* Align the footer checkbox with the option text

* Make the footer checkbox circular with a smaller tick

* Clear menu highlight when the pointer leaves the options

* Address review: fit filter coverage and sizing

Exempt on-disk models from the Hub fit filter, apply it to the feed
trending rows and curated search results, size safetensors and MLX rows
by the quantized load estimate instead of checkpoint bytes, and replace
the native title hint with the app Tooltip.

* Make the whole device-fit row toggle the filter
2026-07-02 02:18:20 -07:00
..
assistant-ui Add a fits-on-device filter to the model selects (#6802) 2026-07-02 02:18:20 -07:00
layout Update license headers 2026-03-12 17:23:10 +00:00
markdown Update license headers 2026-03-12 17:23:10 +00:00
tauri Polish Studio desktop chrome (#6332) 2026-06-24 17:56:25 -07:00
ui Studio: restyle export source selector (#6562) 2026-06-22 03:52:11 -07:00
web Tidy update banner and auth button spacing (#6279) 2026-06-12 20:01:18 -07:00
app-sidebar.tsx fix: remove sidebar update dev override (#6746) 2026-06-29 16:17:16 +02:00
example.tsx Update license headers 2026-03-12 17:23:10 +00:00
llama-update-banner.tsx Tighten comments for PR #6493 (#6539) 2026-06-21 05:49:07 -07:00
mascot-img.tsx Studio: mascot images degrade gracefully instead of showing alt text (#6146) 2026-06-10 08:22:17 -07:00
navbar.tsx Polish Studio desktop chrome (#6332) 2026-06-24 17:56:25 -07:00
section-card.tsx Update license headers 2026-03-12 17:23:10 +00:00
shutdown-dialog.tsx Studio frontend: reduce and tighten code comments (#6099) 2026-06-08 23:10:35 -07:00