-
Notifications
You must be signed in to change notification settings - Fork 253
[Klaud Cold] minimaxm3-fp4-b300-vllm-agentic-mtp: long-prefill-token-threshold 512 / 设置 long-prefill-token-threshold 512 #2539
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
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 105 has a stray trailing backslash inside the
VLLM_CMDarray literal after--long-prefill-token-threshold 512. It's harmless since bash array elements are already newline-separated (the surviving whitespace still splits512and--trust-remote-codeinto separate words), but it's an unneeded copy-paste artifact inconsistent with the rest of the array — remove it for consistency.Extended reasoning...
What the bug is
Line 105 of
minimaxm3_fp4_b300_mtp.shadds a new array element toVLLM_CMD:--long-prefill-token-threshold 512 \ --trust-remote-codeThe trailing backslash at the end of the new line is a line-continuation character. It has no functional purpose here because
VLLM_CMDis a bash array literal — array elements are already delimited by newlines/whitespace, not by continuation. None of the other ~20 elements in this array (lines 89-108) use a trailing backslash.Why it appears harmless (and the proof)
Backslash-newline in bash is spliced out, effectively joining line 105 and 106 into one logical line before word-splitting occurs. But the space before the backslash and the leading whitespace of line 106 both survive the splice, so the tokenizer still sees two distinct words:
$ arr=( a 20 b 512 \ c ) $ declare -p arr declare -a arr=([0]="a" [1]="20" [2]="b" [3]="512" [4]="c")512and--trust-remote-code/cremain separate array elements either way. So the actualvllm serveinvocation (verified via the script's ownprintf '%q ' "${VLLM_CMD[@]}"dump) is unaffected — this is not a functional bug.Why it looks like a mistake anyway
The file does legitimately use backslash-continuation elsewhere — e.g. the
printfcalls at lines 42, 62, and 66-67 span multiple lines for readability. The stray backslash on line 105 reads as if it were copy-pasted from one of thoseprintfforms into the array context, where it serves no purpose and is simply confusing to a future reader who might assume it changes parsing behavior.Fix
Drop the trailing backslash so line 105 reads:
matching the style of every other element in the
VLLM_CMDarray.Verifier notes
All three independent verifiers reproduced the harmlessness claim with the same
arr=(...)experiment and confirmed no other array element uses continuation. No refutations were raised. This is purely a cosmetic/consistency nit — it does not affect the server command, does not block merge, and should be gradednitper the[quality]classification.