summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2023-05-08 16:48:21 +0200
committerGitHub <noreply@github.com>2023-05-08 17:48:21 +0300
commit003ba2fb4309e2339487564bd249e4fcc8d7ea01 (patch)
tree3e4007f2cd5707727d837f649ef06913782eea0d
parentf9a6364912fd0463fddfdbc9ef9f79fdc281570d (diff)
llama : fix hparams shadow (#1367)
fixes #1363
-rw-r--r--llama.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llama.cpp b/llama.cpp
index d54fa502..4bba93a1 100644
--- 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;