Skip to content

Commit 7fcbe06

Browse files
committed
llama : minor - remove explicity int64_t cast
1 parent 334637e commit 7fcbe06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static bool kv_cache_init(
781781
const int n_embd = hparams.n_embd;
782782
const int n_layer = hparams.n_layer;
783783

784-
const int64_t n_mem = (int64_t)n_layer*n_ctx;
784+
const int64_t n_mem = n_layer*n_ctx;
785785
const int64_t n_elements = n_embd*n_mem;
786786

787787
cache.buf.resize(2u*n_elements*ggml_type_size(wtype) + 2u*MB);

0 commit comments

Comments
 (0)