Browse Source

Fix ggml_init_params in quantize

Slaren 2 years ago
parent
commit
64bde3ffd4
2 changed files with 1 additions and 4 deletions
  1. 1 1
      examples/quantize/quantize.cpp
  2. 0 3
      llama.cpp

+ 1 - 1
examples/quantize/quantize.cpp

@@ -19,7 +19,7 @@ int main(int argc, char ** argv) {
 
     // needed to initialize f16 tables
     {
-        struct ggml_init_params params = { 0, NULL };
+        struct ggml_init_params params = { 0, NULL, false };
         struct ggml_context * ctx = ggml_init(params);
         ggml_free(ctx);
     }

+ 0 - 3
llama.cpp

@@ -315,7 +315,6 @@ void * mmap_file(const char* fname) {
 #endif
 }
 
-
 static bool llama_model_load(
         const std::string & fname,
         llama_context & lctx,
@@ -489,8 +488,6 @@ static bool llama_model_load(
         }
     }
 
-
-
     auto & ctx = model.ctx;
 
     size_t ctx_size = 0;