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

Automatically upcast GGUF values #2244

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

EricLBuehler
Copy link
Member

@EricLBuehler EricLBuehler commented Jun 4, 2024

This PR implements what is described in #2243: automatically upcasting GGUF values for which a lossless conversion can be made. I have implemented this only for gguf_value::Value::to_u64 for ease of review, and this can easily be extended to the other methods.

@LaurentMazare
Copy link
Collaborator

Thanks!

@LaurentMazare LaurentMazare merged commit 9182c82 into huggingface:main Jun 4, 2024
10 checks passed
@EricLBuehler
Copy link
Member Author

Thank you!

@EricLBuehler EricLBuehler deleted the gguf_value_subtyping branch June 4, 2024 09:33
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.

2 participants