-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
make sure params --split and --merge are not specified at same time in gguf-split #9619
Conversation
kylo5aby
commented
Sep 24, 2024
- I have read the contributing guidelines
- Self-reported review complexity:
- Low
- Medium
- High
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.
These checks in the loop are hard to follow:
if (is_op_set) {
throw std::invalid_argument("error: either --split or --merge can be specified, but not both");
}
...
if (is_mode_set) {
throw std::invalid_argument("error: either --split-max-tensors or --split-max-size can be specified, but not both");
}
Seems something wrong with them already, or at the very least will cause trouble in the future if we add more args. Better to fix this properly.
I'd suggest adding
For |
yes, I think these enums will be helpful for handling repeated parameters, which is better for user experience |
Co-authored-by: slaren <[email protected]>
* make sure params --split and --merge are not specified at same time * update gguf-split params parse logic * Update examples/gguf-split/gguf-split.cpp Co-authored-by: slaren <[email protected]> --------- Co-authored-by: Xuan Son Nguyen <[email protected]> Co-authored-by: slaren <[email protected]>
* make sure params --split and --merge are not specified at same time * update gguf-split params parse logic * Update examples/gguf-split/gguf-split.cpp Co-authored-by: slaren <[email protected]> --------- Co-authored-by: Xuan Son Nguyen <[email protected]> Co-authored-by: slaren <[email protected]>
* make sure params --split and --merge are not specified at same time * update gguf-split params parse logic * Update examples/gguf-split/gguf-split.cpp Co-authored-by: slaren <[email protected]> --------- Co-authored-by: Xuan Son Nguyen <[email protected]> Co-authored-by: slaren <[email protected]>