소스 검색

llama : fix hparams shadow (#1367)

fixes #1363
Pavol Rusnak 2 년 전
부모
커밋
003ba2fb43
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  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;