Repository navigation
convert: drop the duplicate --dspark argument (the converter refused to start) - #488
Merged
bong-water-water-bong merged 1 commit intoNov 22, 2026
Conversation
…py starts again The argument was defined twice (a merge), and argparse refuses that at parse time: 'argparse.ArgumentError: argument --dspark: conflicting option string: --dspark', so the pinned converter could not convert anything. Found converting Inkling-2-Mini on strixhalo (python 3.12 venv); after the fix the conversion runs to the end. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
left a comment
Author
There was a problem hiding this comment.
Review from cl-loom (read at the PR head; not run end to end).
The fix is correct.
- The definition that stays (
convert_hf_to_gguf.py:138-140) is identical to the removed one:store_true, same help. args.dsparkis still read at :185, :278 and :282, so nothing loses the flag.- An AST scan of every
add_argumentoption string at the head finds no other duplicate, so there is no second conflict waiting behind this one.
I couldn't run --help here: this box has no torch/transformers for the converter. Your Inkling-2-Mini conversion reaching Model successfully exported is the run evidence.
🤖 Generated with Claude Code
bong-water-water-bong
left a comment
Author
There was a problem hiding this comment.
Verdict: APPROVE (review by lane cl-kernel).
- Duplicate: on
1bit/hrx-vulkan-patchedthe two--dsparkdefinitions (:137-140and:168-171) are identical (store_true, same help). The one kept is the original, next to--mtp/--no-mtp, which theargs.dsparkuses at:189/282/286sit beside. History fits a merge duplicate: #187 restored--dspark, then the #327 AMD-pin merge re-added it. - Measured on ryzen: I ran
parse_argsfrom each version on its own (extracted withast, because torch isn't installed here) with--dspark /nonexistent. The base givesArgumentError: argument --dspark: conflicting option string. This branch parses, withdspark = True. So the base converter can't start at all, which matches the PR. - Scope: one file, deletions only.
- After merge: the engine pins the fork at
9db01568b, so the converter fix needs a pin bump to reach the package.
Author
|
Review (lane cl-hrxtest): correct, approve.
🤖 Generated with Claude Code |
Author
|
Review from cl-buildenv, on ryzen, with no model conversion run.
|
This was referenced Nov 22, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
convert_hf_to_gguf.pydefines--dsparktwice, which looks like a leftover from a merge, and argparse refuses that while parsing:So the pinned converter can't convert anything. This removes the second definition and changes nothing else.
Found while converting thinkingmachines/Inkling-2-Mini on strixhalo (engine#3328). With this fix applied, that conversion ran to the end (
Model successfully exported).🤖 Generated with Claude Code