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

Fix marlin model loading compat with autogptq #290

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

Liurl21
Copy link
Contributor

@Liurl21 Liurl21 commented Mar 13, 2024

Fix Issue #289
Autogptq uses is_marlin_format for Marlin. So depending on how/tool used to quantize, it can be quant_method=="marlin" or quant_method=="gptq" and is_marlin_format==True. Technically, Marlin is a format, not new quant method so autogptq way is more correct. But regardless, this PR will allow both methods to work.

@Qubitium
Copy link
Contributor

Qubitium commented Mar 13, 2024

I have reviewed this PR. @merrymercy @hnyls2002 Ready for review/merge.

AutoGPTQ main actually has broken Marlin direct quantize support. Use my pending PR AutoGPTQ/AutoGPTQ#586 to quant Marlin.

@hnyls2002 hnyls2002 linked an issue Mar 13, 2024 that may be closed by this pull request
@hnyls2002 hnyls2002 merged commit ed31579 into sgl-project:main Mar 13, 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.

[BUG] Marlin model quantized with AutoGPTQ is not loadable
4 participants