Skip to content

fix(studio): point denied --parallel extra args at the n_parallel load field - #9512

Merged
oobabooga merged 4 commits into
unslothai:mainfrom
yzxcj797:fix/parallel-extra-arg-guidance-9510
Aug 24, 2026
Merged

oobabooga merged 4 commits into
unslothai:mainfrom
yzxcj797:fix/parallel-extra-arg-guidance-9510

Conversation

@yzxcj797

Copy link
Copy Markdown
Contributor

What

When validate_extra_args rejects the parallel slot family (--parallel / -np / --n-parallel), the error now names the supported knob: set n_parallel on the load request (parallel decode slots) instead. Every other denylisted flag keeps the original terse message.

Why (refs #9510)

From the issue's API feedback: a local-model user hitting slow TPS from too many concurrent predictions tried --parallel 1 in the model's extra args and got "--parallel is managed by Unsloth and cannot be passed here." — a dead end. The slot count is user-settable (LoadRequest.n_parallel, range-pinned by PARALLEL_SLOTS_MIN/PARALLEL_SLOTS_MAX), but the refusal gave no pointer, so the workaround was undocumented env hacks.

(The issue's other asks — auto-start on first request, LAN auto-start, remote-password visibility, GPU re-detection — are larger features I'm deliberately not bundling here.)

Testing

  • New cases in test_llama_extra_args_compatibility.py: all three spellings of the parallel flag raise with n_parallel named in the message, and an unrelated denial (--model) still ends at "cannot be passed as an extra arg" without the guidance.
  • Diff-verified: with only the llama_server_args.py change stashed, the three guidance tests fail; with it applied the file passes 47/47.

Refs #9510

…d field

The parallel slot count is user-settable, but only through the load
request's n_parallel; refusing --parallel with no pointer sent users to
undocumented workarounds.

Refs unslothai#9510
@danielhanchen

Copy link
Copy Markdown
Member

Confirmed the denial at studio/backend/core/inference/llama_server_args.py:284 still gives no pointer to LoadRequest.n_parallel, and this names it for all three spellings while leaving other denials terse. Will get this reviewed.

@oobabooga

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 895ef01180

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

@oobabooga

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: fe1dac147b

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

@oobabooga

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 581348da62

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

@oobabooga

Copy link
Copy Markdown
Member

Thanks @yzxcj797. The API error now tells callers to use n_parallel. I added the UI side so Studio points users to Parallel Slots when they try --parallel, --n-parallel, or -np. I verified the inline error, and the focused frontend and backend tests pass.

@oobabooga
oobabooga merged commit 759e54a into unslothai:main Aug 24, 2026
39 of 41 checks passed
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.

3 participants