Skip to content

Studio: restore the CLI help text the comment passes had trimmed - #10622

Merged
danielhanchen merged 1 commit into
mainfrom
studio-restore-cli-help
Sep 9, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-restore-cli-help

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Follow-up to #10604. Two commits in that PR were meant to be comment-only passes, but in unsloth_cli/commands/studio.py they also rewrote docstrings of Typer-decorated functions. Typer renders those docstrings as --help, so the trimming was a user-visible loss.

What was lost

unsloth studio run --help, before:

 Unknown flags pass through to llama-server (GGUF only). Unsloth
 rejects managed flags with HTTP 400: model identity, network
 (--host/--port/--path/--api-prefix/--reuse-port), auth/TLS
 (--api-key/--ssl-*), single-model UI (--ui/--models-*/--webui),
 and parallel slots (use --parallel above). Full denylist in
 studio/backend/core/inference/llama_server_args.py. Other knobs
 (-c, -ngl, --jinja, --flash-attn, -t, ...) pass through and
 last-wins-override Unsloth's auto-set value.

 Example:
     unsloth studio run --model unsloth/Qwen3-1.7B-GGUF --gguf-variant UD-Q4_K_XL
     unsloth studio run --model unsloth/Qwen3-1.7B-GGUF --temperature 0.7 --seed 42 --parallel 8
     unsloth studio run --model some-model --chat-template-file /path/to/tpl.jinja
     unsloth studio run --model unsloth/Qwen3-27B-GGUF --gguf-variant Q8_0 --tensor-parallel

after:

 Unknown flags pass through to llama-server (GGUF only). Unsloth rejects managed flags with
 HTTP 400: model identity, network, auth/TLS, single-model UI, and parallel slots (use
 --parallel). Full denylist in studio/backend/core/inference/llama_server_args.py.

     unsloth studio run --model unsloth/Qwen3-1.7B-GGUF --gguf-variant UD-Q4_K_XL
     unsloth studio run --model unsloth/Qwen3-1.7B-GGUF --temperature 0.7 --parallel 8
     unsloth studio run --model unsloth/Qwen3-27B-GGUF --gguf-variant Q8_0 --tensor-parallel

Users lost the concrete list of rejected flag families, the --chat-template-file example, the --seed example, the "Example:" label, and the sentence saying pass-through knobs last-wins-override the auto-set value.

A second effect: collapsing a docstring to one paragraph makes Click's short help swallow the whole paragraph, so unsloth studio --help listed stop, verify-install and reset-password with three wrapped lines each instead of one summary line.

What is restored

Docstrings restored verbatim from the tree before the first pass (aa83fc5f2^), code untouched:

  • run (unsloth studio run)
  • stop (unsloth studio stop)
  • verify_install (unsloth studio verify-install)
  • reset_password (unsloth studio reset-password)
  • studio_default (the @studio_app.callback(), whose docstring had been deleted outright)

Docstrings of plain internal helpers are left as main has them.

Verification

  • Dumped unsloth studio --help plus --help for all eight subcommands (run, stop, setup, update, verify-install, reset-password, desktop-capabilities, provision-desktop-auth, enumerated from the app so hidden ones are included) from this branch and from aa83fc5f2^. The diff is empty.
  • No help= string on any typer.Option / typer.Argument was changed by the two passes, so none needed restoring.
  • pytest unsloth_cli/tests -q -k "not inference_chat": 1276 passed, 9 skipped.
  • python scripts/run_ruff_format.py unsloth_cli/commands/studio.py clean.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 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-09-09T15:31:25.969390Z 5cc7b4d 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 5cc7b4d882

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

@danielhanchen
danielhanchen merged commit 3f2c895 into main Sep 9, 2026
11 of 85 checks passed
@danielhanchen
danielhanchen deleted the studio-restore-cli-help branch September 9, 2026 15:32
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