Commit da6c28eb1 for llama.cpp

commit da6c28eb1372e734486caf51bc424404dc981493
Author: Adrien Gallouët <angt@huggingface.co>
Date:   Sun Sep 27 12:05:50 2026 +0200

    common : throw instead of abort on grammar without llguidance (#29516)

    Signed-off-by: Adrien Gallouët <angt@huggingface.co>

diff --git a/common/sampling.cpp b/common/sampling.cpp
index 06dea1e1c..27a752cc8 100644
--- a/common/sampling.cpp
+++ b/common/sampling.cpp
@@ -214,7 +214,7 @@ struct common_sampler * common_sampler_init(
 #ifdef LLAMA_USE_LLGUIDANCE
         grmr = llama_sampler_init_llg(vocab, "lark", grammar_str.c_str());
 #else
-        GGML_ABORT("llguidance (cmake -DLLAMA_LLGUIDANCE=ON) is not enabled");
+        throw std::runtime_error("failed to parse grammar: llguidance is not enabled");
 #endif // LLAMA_USE_LLGUIDANCE
     } else {
         std::vector<std::string> trigger_patterns;