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 gguf loading via Transformers #2596

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

CL-ModelCloud
Copy link
Contributor

No description provided.

@CL-ModelCloud CL-ModelCloud changed the title hf support load gguf file Fix gguf loading via Transformers Dec 25, 2024
@CL-ModelCloud CL-ModelCloud marked this pull request as ready for review December 25, 2024 05:56
@Qubitium
Copy link
Contributor

@baberabb This PR contains simple fix so HF Transformers can properly load gguf models via the gguf_file parameter.

@CL-ModelCloud CL-ModelCloud marked this pull request as draft December 25, 2024 08:59
@CL-ModelCloud CL-ModelCloud marked this pull request as ready for review December 25, 2024 09:13
@Qubitium
Copy link
Contributor

@baberabb During our testing, we found gguf tokenizer load will fail is you override default use_fast=True with use_fast=False + gguf_file enabled. We can conclude gguf format is not compatbile with use_fast and added code bypass.

@LSinev
Copy link
Contributor

LSinev commented Dec 28, 2024

If I may suggest, please update the documentation (*.md files) with description of this new option and provide some examples of usage (from terminal, at least).

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