diff --git a/examples/qwen2-audio/qwen2.cpp b/examples/qwen2-audio/qwen2.cpp index 8a975d52ae68f..f5301a3d27512 100644 --- a/examples/qwen2-audio/qwen2.cpp +++ b/examples/qwen2-audio/qwen2.cpp @@ -905,7 +905,7 @@ struct omni_streaming { }; int32_t sample() { - llama_token id = common_sampler_sample(ctx_sampling_, ctx_omni_->ctx_llama, NULL); + llama_token id = common_sampler_sample(ctx_sampling_, ctx_omni_->ctx_llama, -1); common_sampler_accept(ctx_sampling_, id, true); static std::string ret_str; if (llama_token_is_eog(llama_get_model(ctx_omni_->ctx_llama), id)) {