]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : fix hparams shadow (#1367)
authorPavol Rusnak <redacted>
Mon, 8 May 2023 14:48:21 +0000 (16:48 +0200)
committerGitHub <redacted>
Mon, 8 May 2023 14:48:21 +0000 (17:48 +0300)
fixes #1363

llama.cpp

index d54fa502cca86a01ecd03268a2b05fd3585d837a..4bba93a111ae49dd26c642c7e3a615c81c11ce6e 100644 (file)
--- a/llama.cpp
+++ b/llama.cpp
@@ -970,8 +970,6 @@ static void llama_model_load_internal(
 
     // prepare memory for the weights
     {
-        const auto & hparams = model.hparams;
-
         const uint32_t n_embd  = hparams.n_embd;
         const uint32_t n_layer = hparams.n_layer;
         const uint32_t n_vocab = hparams.n_vocab;