Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fix gemma 2012 token inference error
Browse files Browse the repository at this point in the history
Signed-off-by: intellinjun <[email protected]>
  • Loading branch information
intellinjun committed Mar 22, 2024
1 parent 507131b commit 73efcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_speed/models/gemma/gemma_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void Gemma::init(const char* path_model, model_context* ctx, int n_gpu_layer_, b
n_head = hparams.n_head;
n_expert = hparams.n_experts;
n_expert_used = hparams.n_experts_used;
scratch = gemma_mem_req(n_layer, lctx.scratch_size_ratio);
scratch = gemma_mem_req(n_layer, lctx.scratch_size_ratio * 1.5);
model.scratchs = scratch;
}

Expand Down

0 comments on commit 73efcd2

Please sign in to comment.