Skip to content

Commit

Permalink
Remove mutable variable
Browse files Browse the repository at this point in the history
  • Loading branch information
suhara committed Aug 13, 2024
1 parent ae86b5e commit bd76198
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13823,9 +13823,6 @@ struct llm_build_context {
struct ggml_cgraph * build_nemotron() {
struct ggml_cgraph * gf = ggml_new_graph_custom(ctx0, llama_model_max_nodes(model), false);

// mutable variable, needed during the last layer of the computation to skip unused tokens
int32_t n_tokens = this->n_tokens;

const int64_t n_embd_head = hparams.n_embd_head_v;
GGML_ASSERT(n_embd_head == hparams.n_embd_head_k);
//GGML_ASSERT(n_embd_head == hparams.n_rot);
Expand Down

0 comments on commit bd76198

Please sign in to comment.