From 236da599d4e9c010265caf9e30cf6b904e6f88fe Mon Sep 17 00:00:00 2001 From: l3utterfly Date: Mon, 29 Jul 2024 20:25:56 +0900 Subject: [PATCH] fixed int/size_t comparison --- src/llama-sampling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-sampling.cpp b/src/llama-sampling.cpp index d41218c70..375717acc 100644 --- a/src/llama-sampling.cpp +++ b/src/llama-sampling.cpp @@ -305,7 +305,7 @@ void llama_sample_dry_impl(llama_token_data_array * candidates, const llama_toke auto match_length = pair.second; // if the match length is greater than or equal to our allowed length in config, we apply penalities - if (match_length >= dry_allowed_length) { + if (match_length >= (size_t)dry_allowed_length) { // find our next token in the candidates->data for (size_t i = 0; i < candidates->size; ++i) {