From: Georgi Gerganov Date: Sat, 11 Mar 2023 15:40:14 +0000 (+0200) Subject: Fix un-initialized FP16 tables on x86 (#15, #2) X-Git-Tag: gguf-v0.4.0~1284 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=a9e58529ea507ac15cd2df4c39d1b9613d6acb6e;p=pkg%2Fggml%2Fsources%2Fllama.cpp Fix un-initialized FP16 tables on x86 (#15, #2) --- diff --git a/quantize.cpp b/quantize.cpp index 0bc62db9..0ae53733 100644 --- a/quantize.cpp +++ b/quantize.cpp @@ -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];