Revert "Fix ggml_init_params in quantize"

This reverts commit 64bde3ffd4.
This commit is contained in:
anzz1 2023-04-02 15:40:04 +03:00
parent 28e787574b
commit a084358394
2 changed files with 4 additions and 1 deletions

View file

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

View file

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