From: Xuan Son Nguyen Date: Sat, 4 May 2024 16:56:22 +0000 (+0200) Subject: gguf-split: add --no-tensor-first-split (llama/7072) X-Git-Tag: upstream/0.0.1642~735 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4371bc22aa5a209df1883967325451d20f6a7b80;p=pkg%2Fggml%2Fsources%2Fggml gguf-split: add --no-tensor-first-split (llama/7072) --- diff --git a/src/ggml.c b/src/ggml.c index 00f3e170..84b76fcb 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -21210,7 +21210,7 @@ struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_p } // read the tensor infos - { + if (ctx->header.n_tensors > 0) { ctx->infos = GGML_CALLOC(ctx->header.n_tensors, sizeof(struct gguf_tensor_info)); for (uint64_t i = 0; i < ctx->header.n_tensors; ++i) {