Skip to content

Commit

Permalink
fix: call ggml_time_init() to avoid DivideByZeroException. (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
LSXPrime authored Nov 7, 2024
1 parent dbcb245 commit eacac27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,7 @@ static bool bark_load_model_from_file(
}

struct bark_context* bark_load_model(const char* model_path, struct bark_context_params params, uint32_t seed) {
ggml_time_init();
int64_t t_load_start_us = ggml_time_us();

struct bark_context* bctx = new bark_context();
Expand Down

0 comments on commit eacac27

Please sign in to comment.