Skip to content

Commit

Permalink
Fix un-initialized FP16 tables on x86 (#15, #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 11, 2023
1 parent 7d9ed7b commit a9e5852
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,13 @@ int main(int argc, char ** argv) {
return 1;
}

// needed to initialize f16 tables
{
struct ggml_init_params params = { 0, NULL };
struct ggml_context * ctx = ggml_init(params);
ggml_free(ctx);
}

const std::string fname_inp = argv[1];
const std::string fname_out = argv[2];

Expand Down

0 comments on commit a9e5852

Please sign in to comment.