From 60312f6a466648e4f5bf5408c213dcbdbe95f046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20G=C3=A4=C3=9Fler?= Date: Mon, 23 Mar 2026 22:56:47 +0100 Subject: [PATCH] fix model saving --- tests/test-llama-archs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test-llama-archs.cpp b/tests/test-llama-archs.cpp index 8fcc8a211d..593d370e19 100644 --- a/tests/test-llama-archs.cpp +++ b/tests/test-llama-archs.cpp @@ -399,6 +399,10 @@ static int save_models(const llm_arch target_arch, const size_t seed, const ggml if (!moe && moe_mandatory(arch)) { continue; } + if (!llama_model_saver_supports_arch(arch)) { + LOG_INF("%s: %s model (%s) is unsupported, skipping\n", __func__, llm_arch_name(arch), moe ? "MoE" : "dense"); + continue; + } gguf_context_ptr gguf_ctx = get_gguf_ctx(arch, moe); auto model_and_ctx = get_model_and_ctx(gguf_ctx.get(), nullptr, seed, {}); const std::string path = dir + "/" + llm_arch_name(arch) + (moe ? "-moe.gguf" : "-dense.gguf");