Skip to content

Commit 64bde3f

Browse files
slarenjart
authored andcommitted
Fix ggml_init_params in quantize
1 parent c03ae8d commit 64bde3f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

examples/quantize/quantize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ int main(int argc, char ** argv) {
1919

2020
// needed to initialize f16 tables
2121
{
22-
struct ggml_init_params params = { 0, NULL };
22+
struct ggml_init_params params = { 0, NULL, false };
2323
struct ggml_context * ctx = ggml_init(params);
2424
ggml_free(ctx);
2525
}

llama.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ void * mmap_file(const char* fname) {
315315
#endif
316316
}
317317

318-
319318
static bool llama_model_load(
320319
const std::string & fname,
321320
llama_context & lctx,
@@ -489,8 +488,6 @@ static bool llama_model_load(
489488
}
490489
}
491490

492-
493-
494491
auto & ctx = model.ctx;
495492

496493
size_t ctx_size = 0;

0 commit comments

Comments
 (0)