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

Convert: mixed k-quant with legacy quant fallback #447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stduhpf
Copy link
Contributor

@stduhpf stduhpf commented Oct 25, 2024

Adds a new cli argument: --fallback-type.

If tensors cannot be quantized to a k-quant because of block size issues, the fallback type will be used instead of full precision.

Very useful for SD3.5 models, because 90% of SD3.5 8B weights can't be quantized to k quants.

--type q4_k --fallback-type q4_0 has always the exact same output size as --type q4_0, but with less degradation.

Somewhat adresses #446

@stduhpf
Copy link
Contributor Author

stduhpf commented Oct 25, 2024

I'm currently uploading quantized weights to HF, but with my cellular data, it takes very long.

here:

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.

1 participant