llama : remove PATH_MAX (#32557)

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
Adrien Gallouët authored and GitHub committed 2026-11-19 08:57:57 +01:00
1 parent b5dbca1e44
commit 95b09b62be
4 files changed
+3 -13

No files matched your search

+1 -1
View File
@@ -1266,7 +1266,7 @@ static void llama_model_quantize_impl(const std::string & fname_inp, const std::
GGML_ASSERT(ctx_outs[cur_split] && "Find uninitialized gguf_context");
std::string fname = fname_out;
if (params->keep_split) {
std::vector<char> split_path(llama_path_max(), 0);
std::vector<char> split_path(fname_out.size() + sizeof("-00000-of-00000.gguf"), 0);
llama_split_path(split_path.data(), split_path.size(), fname_out.c_str(), cur_split, n_split);
fname = std::string(split_path.data());
}