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

Huggingface model doesn't convert to ggml #2598

Open
kabyanil opened this issue Nov 30, 2024 · 0 comments
Open

Huggingface model doesn't convert to ggml #2598

kabyanil opened this issue Nov 30, 2024 · 0 comments

Comments

@kabyanil
Copy link

kabyanil commented Nov 30, 2024

I finetuned Whisper-small on a custom dataset. When I try to convert the hf model to ggml using convert-h5-to-ggml.py, I get an error saying max_length is not an integer. Upon reviewing the config.json, I saw that the max_length param was set to null. Setting it to 448 (suggested by line 89 in convert-h5-to-ggml.py file) solved the issue.

Modifying the if block in the script will fix the issue, but sharing the modification of the param in config.json as a quick fix for my fellow devs.

Happy to open a PR to fix this if required.

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

No branches or pull requests

1 participant