Skip to content

Commit 40989f4

Browse files
committed
correct llama_decode_ext
1 parent 9e75c49 commit 40989f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ struct common_init_result common_init_from_params(common_params & params) {
10581058
}
10591059
if (llama_model_has_decoder(model)) {
10601060
llama_batch_ext_ptr batch(llama_batch_ext_init_from_text(tmp.data(), std::min(tmp.size(), (size_t) params.n_batch), 0, 0));
1061-
llama_encode_ext(lctx, batch.get());
1061+
llama_decode_ext(lctx, batch.get());
10621062
}
10631063
llama_kv_cache_clear(lctx);
10641064
llama_synchronize(lctx);

0 commit comments

Comments
 (0)