Skip to content

Studio: point Desktop Chat only users at Repair installation on the Export page - #14438

Merged
danielhanchen merged 6 commits into
unslothai:mainfrom
oobabooga:studio-export-repair-hint
Oct 21, 2026
Merged

danielhanchen merged 6 commits into
unslothai:mainfrom
oobabooga:studio-export-repair-hint

Conversation

@oobabooga

@oobabooga oobabooga commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

On a Desktop install where the user ticked "Chat only (GGUF)", the Export page says:

This install was set up without the training stack (--no-torch), so export is disabled. Reinstall Unsloth Studio without --no-torch to enable export.

The user never typed --no-torch, and the app has no way to reinstall without it. The fix that works from inside the app is Settings > Repair installation, which the Train tooltip in the sidebar already recommends.

Cause

#14245 made a Windows or Linux Chat only install report no_torch instead of no_gpu. That sends Desktop users to the backend's no_torch export message, which was written for CLI install.sh --no-torch users. ExportPage shows it unchanged in the banner and in the tooltip on the greyed method cards. The same PR gave the Train hint a Desktop variant, but Export did not get one.

Fix

exportUnsupportedText() in studio/frontend/src/features/export/lib/unsupported-text.ts (lazy Export chunk, not the startup bundle) decides the page's text. When the reason is no_torch and a Repair action is available (the Train hint's canRepair check), it returns "Export was left out of this install (Chat only). Use Repair installation in Settings to add it." Otherwise it returns the backend message as before. Web users, CLI users and a Desktop attached to a terminal-started backend have no Repair action, so they keep the --no-torch advice. After a successful Repair, the Desktop also drops the cached hardware verdict, so Export re-reads the new backend instead of staying disabled. There are no backend, API or locale changes.

Verification

  • tests/export-unsupported-text.test.ts covers no_torch with and without Repair available, other reasons, no backend message, and that a successful repair invalidates the cached hardware verdict before the backend restarts. The full frontend suite, typecheck and lint show no new failures.
  • A/B in the Desktop app on Windows 11 (AMD Radeon 8060S), using one Chat only install opened with debug builds of the base commit (BEFORE) and the base plus this change (AFTER).
pair_00_export_banner pair_01_card_tooltip

Following the new text, Settings > Repair installation installed torch 2.11.0+rocm7.14.0:

after_repair_export

The web UI and an external-server Desktop were not tested live. Only the unit test covers them.

Web parity check

Web Studio built from the merge base (BEFORE) and from this branch (AFTER), Chromium, with /api/system/hardware returning the backend's no_torch export verdict on both sides. The web build has no Repair action, so both keep the --no-torch advice and neither shows the Repair installation text.

Export page, BEFORE vs AFTER, web Studio with a no_torch verdict

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T08:14:22.580413Z 51303e2 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.

@oobabooga

Copy link
Copy Markdown
Member Author

Reached Codex review convergence at oobabooga#399.

@danielhanchen danielhanchen self-assigned this Oct 21, 2026
@Lyxot Lyxot self-assigned this Oct 21, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 51303e2ac7

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants