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

🚨 Support dequantization for most GGML types #32625

Merged
merged 15 commits into from
Sep 3, 2024

Conversation

Isotr0py
Copy link
Contributor

@Isotr0py Isotr0py commented Aug 12, 2024

What does this PR do?

This PR needs to wait gguf package version update and still work in progress.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@amyeroberts
Copy link
Collaborator

cc @SunMarc

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Wow that's a nice cleanup ! Great that this has been added in gguf package ! We would also need to advise the user to install the latest version of gguf when it cames out , otherwise he will get an error.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Isotr0py Isotr0py marked this pull request as ready for review August 23, 2024 10:32
@Isotr0py
Copy link
Contributor Author

@SunMarc The v0.10.0 gguf has been released! I think we can start to review this PR!

@Isotr0py Isotr0py requested a review from SunMarc August 23, 2024 10:34
Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks for adding this @Isotr0py ! This is a nice cleanup ! LGTM !

src/transformers/modeling_gguf_pytorch_utils.py Outdated Show resolved Hide resolved
@SunMarc
Copy link
Member

SunMarc commented Aug 23, 2024

Nice ! Make sure to fix the CI with make style

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for enabling this

The min version requirement is technically a breaking change as older versions previously worked, however I think this is OK. Could you prefix the PR title with 🚨 to highlight this?

Overall, very nice, just a small thing to update and we're good to go!

src/transformers/testing_utils.py Outdated Show resolved Hide resolved
src/transformers/utils/import_utils.py Show resolved Hide resolved
@Isotr0py Isotr0py changed the title Support dequantization for most GGML types 🚨 Support dequantization for most GGML types Aug 28, 2024
@SunMarc SunMarc merged commit edeca43 into huggingface:main Sep 3, 2024
23 checks passed
@Isotr0py Isotr0py deleted the gguf-dequant branch September 3, 2024 11:20
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request Sep 3, 2024
* use gguf internal dequantize

* add Q5_0 test

* add iq1 test

* add remained test

* remove duplicated test

* update docs

* add gguf version limit

* make style

* update gguf import catch

* revert vocab_size patch

* make style

* use GGUF_MIN_VERSION everywhere
@LysandreJik
Copy link
Member

Great job on this PR @Isotr0py 🙌

itazap pushed a commit to NielsRogge/transformers that referenced this pull request Sep 20, 2024
* use gguf internal dequantize

* add Q5_0 test

* add iq1 test

* add remained test

* remove duplicated test

* update docs

* add gguf version limit

* make style

* update gguf import catch

* revert vocab_size patch

* make style

* use GGUF_MIN_VERSION everywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants