Repository navigation
fix(studio): point denied --parallel extra args at the n_parallel load field - #9512
Conversation
…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
|
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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
|
@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". |
|
@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". |
|
Thanks @yzxcj797. The API error now tells callers to use |
What
When
validate_extra_argsrejects 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 1in 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 byPARALLEL_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
test_llama_extra_args_compatibility.py: all three spellings of the parallel flag raise withn_parallelnamed in the message, and an unrelated denial (--model) still ends at "cannot be passed as an extra arg" without the guidance.llama_server_args.pychange stashed, the three guidance tests fail; with it applied the file passes 47/47.Refs #9510