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 llama gguf converter #31575

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented Jun 24, 2024

What does this PR do?

This PR fixes the failing gguf tests caused by this PR. Instead of using the converter methods from SpmConverter class for GGUFLlamaConverter , we copy it + remove the parts that are using pieces and trainer_spec.control_symbols attributes from self.proto that comes from the sentencepiece (https://github.com/google/sentencepiece/blob/6225e08edb2577757163b3f5dbba4c0b670ef445/src/sentencepiece_model.proto#L299C29-L299C33). GGUFTokenizerSkeleton don't have these attributes and I don't think we should add them.

Fixes #31553

@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.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Thanks @SunMarc !

@SunMarc SunMarc merged commit 915cce3 into huggingface:main Jun 26, 2024
21 checks passed
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, looks good yep

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.

GGUFTokenizerSkeleton AttributeError during conversion
4 participants