Skip to content

Commit 4bb8d50

Browse files
committed
Remove mutable variable
1 parent 62f1f99 commit 4bb8d50

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/llama.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13742,9 +13742,6 @@ struct llm_build_context {
1374213742
struct ggml_cgraph * build_nemotron() {
1374313743
struct ggml_cgraph * gf = ggml_new_graph_custom(ctx0, llama_model_max_nodes(model), false);
1374413744

13745-
// mutable variable, needed during the last layer of the computation to skip unused tokens
13746-
int32_t n_tokens = this->n_tokens;
13747-
1374813745
const int64_t n_embd_head = hparams.n_embd_head_v;
1374913746
GGML_ASSERT(n_embd_head == hparams.n_embd_head_k);
1375013747
//GGML_ASSERT(n_embd_head == hparams.n_rot);

0 commit comments

Comments
 (0)