From fe401ca4c2490b51242c27f018084140253eb40b Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 30 May 2025 13:35:42 +0800 Subject: [PATCH] fixed a typo --- otherarch/embeddings_adapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/otherarch/embeddings_adapter.cpp b/otherarch/embeddings_adapter.cpp index 49fc5e61b..0a71a06f8 100644 --- a/otherarch/embeddings_adapter.cpp +++ b/otherarch/embeddings_adapter.cpp @@ -127,8 +127,9 @@ bool embeddingstype_load_model(const embeddings_load_model_inputs inputs) max_batchsize = n_ctx_train; ctx_params.embeddings = true; - ctx_params.n_ubatch = ctx_params.n_ubatch = max_batchsize; //max size, must fit + ctx_params.n_ubatch = max_batchsize; //max size, must fit ctx_params.n_ctx = max_batchsize; + ctx_params.n_batch = max_batchsize; ctx_params.offload_kqv = false; ctx_params.n_threads = nthreads; ctx_params.n_threads_batch = nthreads;