Sfoglia il codice sorgente

llama : fix hparams shadow (#1367)

fixes #1363
Pavol Rusnak 2 anni fa
parent
commit
003ba2fb43
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      llama.cpp

+ 0 - 2
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;