summaryrefslogtreecommitdiff
path: root/examples/llava/minicpmv-cli.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/llava/minicpmv-cli.cpp')
-rw-r--r--examples/llava/minicpmv-cli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/llava/minicpmv-cli.cpp b/examples/llava/minicpmv-cli.cpp
index f951b57b..022508a2 100644
--- a/examples/llava/minicpmv-cli.cpp
+++ b/examples/llava/minicpmv-cli.cpp
@@ -218,7 +218,7 @@ static struct llama_sampling_context * llama_init(struct llava_context * ctx_lla
LOG_TEE("\n");
- struct llama_sampling_context * ctx_sampling = llama_sampling_init(params->sparams);
+ struct llama_sampling_context * ctx_sampling = llama_sampling_init(llama_get_model_vocab(ctx_llava->model),params->sparams);
return ctx_sampling;
}