Repository navigation
[Feature] Unsloth Studio / Desktop: Export page splits LLM, Diffusion LoRA and Q4NX into tabs - #17717
Conversation
Main's Q4NX picker card and its summary now live in the Q4NX tab, which gets its own Export summary card, so the click-tracking that switched the shared summary between flows is dropped. The NPU gate test counts the gated Q4NX tab trigger and panel.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
… the subtitle only with one [skip ci]
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
# Conflicts: # studio/frontend/src/features/export/export-page.tsx [skip ci]
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
The Export page stacked its flows as cards (Source, Export method, "Export an image LoRA", "Convert a GGUF to Q4NX (AMD NPU)"), so the image LoRA and Q4NX flows sat below the whole LLM form. This puts each flow behind its own tab under the page header.
What changed
Tabscomponent (components/ui/tabs.tsx):q4nxselection falls back to LLM.TabsContent,forceMount), hidden while inactive rather than unmounted, so a running export or conversion keeps its state when you switch tabs.?imageLora=deep link from a finished training run opens on the Diffusion LoRA tab. Starting the guided tour switches to the LLM tab, since the tour only walks that flow.exportTabsi18n keys inen.tsand every overlay (npm run i18n:check:strictpasses).Merge of main
Merged main at
d2d8823325(the NPU phase PRs had landed and the page conflicted). Main's Q4NX picker card (#17515) and the NPU-and-FastFlowLM gate (#17522) are kept as is. Main switched one shared summary card between the LLM flow and the Q4NX card by tracking which card you last clicked; with tabs that tracking has nothing to do, so it's dropped and the Q4NX tab renders its own summary from the card'sonSummary. The loading and error fallback that rendered both extra cards above the LLM form is gone too, since each card now lives in its own tab regardless of checkpoint state.tests/export-q4nx-npu-gate.test.tsnow counts the gated Q4NX tab trigger and panel instead of two<Q4nxConvertCard>sites.Tests
All at
5b74aa2973. Codex: "Didn't find any major issues" at this commit on the mirror, LeoBorcherding#886 (comment).tsc -b: cleantsc -p tsconfig.test.json --noEmit: cleannpm run i18n:check:strict: all overlays passtests/export-page-tabs.test.ts(tab fallback without an NPU, one trigger and one panel per tab, each card rendered once, image LoRA deep link opens its tab)tests/export-*.test.ts,image-lora-export-handoff,finetune-export-branches,reload-snapshot,chat-only-full-install): 123/123 passnpm test): 16456 pass, 0 fail, 1 skippedTested on a Strix Halo NPU
X2-LA03-S04-D04: Ryzen AI MAX+ 395, Radeon 8060S, XDNA2 NPU, 124 GiB7.0.0-43-genericamdxdna2.25.260102.56, NPU firmware 1.1.2.655b74aa2973, installed withinstall.sh --localWhat ran, headless Chromium at 1440x1000, mint theme, glass on, light mode, no chats:
unsloth/Qwen3-0.6Bpicked from the Hugging Face source and GGUF Q4_K_M selected: summary reads Ready, ~343 MB.unsloth/Qwen3-0.6B-GGUF, fileQwen3-0.6B-Q4_1.gguf, original modelQwen/Qwen3-0.6B. It finished in under 30 s and wroteq4nx/Qwen3-0.6B-Q4_1-q4nx(model.q4nx,tokenizer.json,tokenizer_config.json).model.q4nxis byte-identical to FastFlowLM's own publishedQwen3-0.6B-NPU2/model.q4nx(both sha256db8dec4d…53fa667, 683,820,832 bytes). Unsloth Studio only loads NPU models from FastFlowLM's catalog, so the job copied the converted files into that catalog folder (a no-op, same bytes), loadedqwen3-0.6b-FLMon the NPU from Unsloth Studio, and asked one question from the chat page with temperature forced to 0 (the UI's 0.6 rewritten on the request). Reply: "The capital of France is Paris.", 112.6 tok/s. The folder's hash was unchanged after the chat.Not covered here: Q4_0 conversion (still broken on main), Q4_K_M re-quantization, Windows, and the NVIDIA path (the tab is hidden there by main's gate, which the unit test covers).
Screenshots
LLM, Hugging Face model picked

Diffusion LoRA

Convert to Q4NX, nothing picked

Convert to Q4NX, Q4_1 picked, convert settings open

Converting

Done

The result loaded on the NPU and chatting (temperature 0)

Before / after on a host without an AMD NPU
Main at the merge base (
d2d8823325) vs this PR (729950ad5f), two isolated Studio installs, Chromium at 1440x1000. No NPU on this host, so the Q4NX tab and the AMD NPU subtitle clause stay hidden on both sides.LLM flow: the page now opens on the LLM tab, with "LLM" and "Diffusion LoRA" as the only tabs.
Image LoRA flow: stacked under the LLM form before, its own tab after.