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: call ggml_time_init() to avoid DivideByZeroException. #203

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

LSXPrime
Copy link
Contributor

@LSXPrime LSXPrime commented Nov 7, 2024

calling ggml_time_init() before the int64_t t_load_start_us = ggml_time_us(); in bark_load_model function to avoid dividing on uninitialized timer_freq and prevent users from needing to interact directly with the low-level ggml function.

calling `ggml_time_init()` before the `int64_t t_load_start_us = ggml_time_us();` in `bark_load_model` function to avoid dividing on uninitialized `timer_freq`.
@PABannier
Copy link
Owner

Thanks @LSXPrime ! LGTM, the test run quantized on MacOS fails sometimes, this is expected. Merging :)

@PABannier PABannier merged commit eacac27 into PABannier:main Nov 7, 2024
5 of 6 checks passed
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