]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : fix missing break in Persimmon arch case statements (#3535)
authorKerfuffle <redacted>
Sun, 8 Oct 2023 05:22:17 +0000 (23:22 -0600)
committerGitHub <redacted>
Sun, 8 Oct 2023 05:22:17 +0000 (08:22 +0300)
llama.cpp

index d10656bb801db017656ddd21311f50b8d6726b8e..a4312ab72d6139ebad8bf32b364f75037dcc9231 100644 (file)
--- a/llama.cpp
+++ b/llama.cpp
@@ -2047,7 +2047,7 @@ static void llm_load_hparams(
                 case 36: model.type = e_model::MODEL_8B; break;
                 default: model.type = e_model::MODEL_UNKNOWN;
             }
-        }
+        } break;
         case LLM_ARCH_REFACT:
             {
                 GGUF_GET_KEY(ctx, hparams.f_norm_rms_eps, gguf_get_val_f32, GGUF_TYPE_FLOAT32, true, kv(LLM_KV_ATTENTION_LAYERNORM_RMS_EPS));
@@ -4926,7 +4926,7 @@ static struct ggml_cgraph * llama_build_graph(
         case LLM_ARCH_PERSIMMON:
             {
                 result = llm_build_persimmon(lctx, batch);
-            }
+            } break;
         case LLM_ARCH_REFACT:
             {
                 result = llm_build_refact(lctx, batch);