Skip to content
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

cli: Remove type restrictions #489

Merged
merged 4 commits into from
Nov 30, 2024
Merged

cli: Remove type restrictions #489

merged 4 commits into from
Nov 30, 2024

Conversation

stduhpf
Copy link
Contributor

@stduhpf stduhpf commented Nov 28, 2024

Allows to use any GGML type instead of only legacy quants and the small selection of k-quants.

Some quant types are not compatible with some backends, but having more options is good I think.

(also, it solves #431)

std::string name(trait->type_name);
if (i)
valid_types += ", ";
valid_types += name;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the type enum is non contiguous, so we check for something here, maybe empty name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@stduhpf
Copy link
Contributor Author

stduhpf commented Nov 28, 2024

I'm really impressed by "iq4_nl" type. It runs faster than q4_k on my machine, and the quality seems on par with q5_1 (for sd3.5 large models at least).

@leejet leejet merged commit 9148b98 into leejet:master Nov 30, 2024
8 of 10 checks passed
@leejet
Copy link
Owner

leejet commented Nov 30, 2024

Thank you for your contribution.

stduhpf added a commit to stduhpf/stable-diffusion.cpp that referenced this pull request Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants