]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
model: Add Laguna-S-2.1 LLM_TYPE (#26233)
authorGuido Imperiale <redacted>
Tue, 28 Jul 2026 19:02:33 +0000 (20:02 +0100)
committerGitHub <redacted>
Tue, 28 Jul 2026 19:02:33 +0000 (21:02 +0200)
src/llama-model.cpp
src/llama-model.h
src/models/laguna.cpp

index be0a0df55d625205835d28b60eb1f895e9de2d1e..7a70585fa4d8226c646983a390dbf6c1079cb501 100644 (file)
@@ -818,6 +818,7 @@ const char * llm_type_name(llm_type type) {
         case LLM_TYPE_100B_A6B:      return "100B.A6B";
         case LLM_TYPE_102B_A12B:     return "102B.A12B";
         case LLM_TYPE_106B_A12B:     return "106B.A12B";
+        case LLM_TYPE_118B_A8B:      return "118B.A8B";
         case LLM_TYPE_120B_A12B:     return "120B.A12B";
         case LLM_TYPE_122B_A10B:     return "122B.A10B";
         case LLM_TYPE_196B_A11B:     return "196B.A11B";
index d6a40fa30204d93df682d797c5c1246bff755b6e..056a6efa59e8522f47799069a0adea561a7e026a 100644 (file)
@@ -130,6 +130,7 @@ enum llm_type {
     LLM_TYPE_100B_A6B,
     LLM_TYPE_102B_A12B, // Solar-Open
     LLM_TYPE_106B_A12B, // GLM-4.5-Air
+    LLM_TYPE_118B_A8B,  // Laguna-S-2
     LLM_TYPE_120B_A12B, // Nemotron 3 Super
     LLM_TYPE_122B_A10B, // Qwen3.5
     LLM_TYPE_196B_A11B, // Step3.5-Flash
index fb55ec12f93458a794a4b89e43954e5d6f7f1253..82c9a9538cd467da00e9c915adfb8c0a146b3e46 100644 (file)
@@ -58,6 +58,7 @@ void llama_model_laguna::load_arch_hparams(llama_model_loader & ml) {
 
     switch (hparams.n_layer()) {
         case 40: type = LLM_TYPE_30B_A3B;   break;  // Laguna-XS.2
+        case 48: type = LLM_TYPE_118B_A8B;  break;  // Laguna-S.2
         case 70: type = LLM_TYPE_230B_A10B; break;  // Laguna-M.1
         default: type = LLM_TYPE_UNKNOWN;
     }