-
Notifications
You must be signed in to change notification settings - Fork 253
[Klaud Cold] minimaxm3-fp4-b200-vllm-agentic-mtp: long-prefill-token-threshold 512 / 设置 long-prefill-token-threshold 512 #2538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,6 +194,7 @@ VLLM_CMD=( | |
| --max-cudagraph-capture-size 512 | ||
| --max-num-batched-tokens 16384 | ||
| --stream-interval 20 | ||
| --long-prefill-token-threshold 512 \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 This PR adds Extended reasoning...The This PR adds Concretely, walking through it: (1) read the B200 header's claim that engine flags are identical to B300; (2) grep both scripts' The existing code doesn't prevent this because there's no automated check tying the two scripts' engine-flag lists together — the guarantee is purely documentary, enforced by convention and by whoever reviews future diffs against the stated header contract. Nothing stops a flag from being added to one script and not the other; that's exactly what happened here. Impact is a documentation/consistency issue rather than a runtime failure: the benchmark will still run correctly on B200, but the two SKU curves are no longer running exactly comparable engine configurations for long-prefill chunking, and the header comment now asserts something untrue, which could mislead a future contributor who reads it and assumes parity holds. Recommended fix: either mirror |
||
| --trust-remote-code | ||
| --speculative-config "$SPEC_CONFIG" | ||
| "${OFFLOAD_ARGS[@]}" | ||
|
Comment on lines
194
to
200
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 This PR adds Extended reasoning...The bug: pull_request:
branches: [main]
types: [ready_for_review, synchronize, labeled, unlabeled]
paths:
- "perf-changelog.yaml"GitHub Actions evaluates a Why this matters here specifically: AGENTS.md's 'Updating Docker images'/engine-param section (line 156) is explicit that changing a script's engine params requires appending a The concrete failure mode — step by step:
Why nothing else catches this: there's no separate required-status-check enforcing 'sweep ran'; the whole mechanism relies on the The fix: append a |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Line 197 in the new
VLLM_CMD=(...)entry has a stray trailing backslash (--long-prefill-token-threshold 512 \) — every other flag in the array has no line-continuation. It's harmless (the whitespace still splits--trust-remote-codeinto its own array element), but it's a copy-paste artifact; remove the backslash for consistency.Extended reasoning...
The newly added line
--long-prefill-token-threshold 512 \inside theVLLM_CMD=(...)array carries a trailing line-continuation backslash. Every other flag in this array (lines ~178-200, e.g.--stream-interval 20,--trust-remote-code,--speculative-config "$SPEC_CONFIG") is a plain array element with no trailing backslash, so this new line stands out stylistically.Why it's harmless: In bash, inside an array literal, a trailing
\followed by a newline is a line continuation — it removes the backslash and the newline character, but any actual whitespace on either side of the join point is untouched. Here the line ends with512 \(a space before the backslash) and the next line begins with leading indentation before--trust-remote-code. After the continuation is processed, the effective text is512 --trust-remote-code— word-splitting on that leftover whitespace still produces separate array elements512and--trust-remote-code. I confirmed this behavior directly:Four elements, not three — so the flag and value are not accidentally merged with
--trust-remote-code, and the server will still receive--long-prefill-token-threshold 512 --trust-remote-codeas intended. No functional regression.Why it should still be fixed: The backslash reads as if it were meant to merge this line with the next one (e.g., a leftover from an edit where the two flags were intended to be joined, or copy-pasted from a context that used
\for continuation), which is misleading to future readers and inconsistent with the rest of the array's formatting. Since it's cosmetic rather than a correctness issue, this doesn't block merging.Fix: simply drop the trailing backslash so the line reads
--long-prefill-token-threshold 512like its neighbors.