Skip to content

Commit

Permalink
llama : fix hparams shadow (ggerganov#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak authored May 8, 2023
1 parent f9a6364 commit 003ba2f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 003ba2f

Please sign in to comment.