mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #2078] kt run splits string advanced.sglang_args into single-character argv entries #1268
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VectorPeak on GitHub (Jul 7, 2026).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/2078
## Problem
kt runappends configuredadvanced.sglang_argsdirectly to the SGLang launch argv withcmd.extend(extra_args).When users configure this value as a natural command-line string, for example:
_parse_value()keeps the value as a string. Since Python strings are iterable,cmd.extend(extra_args)expands it into single-character argv entries such as'-', '-', 'l', 'o', ...instead of the intended['--log-level', 'warning'].Impact
The configuration appears to save successfully, but the generated launch command is silently malformed. Users may only see the failure later when
sglang.launch_serverreceives the broken argv.Expected behavior
kt runshould normalize configured SGLang args into real argv tokens, or reject unsupported config types with a clear error, before extending the launch command.