fixed int/size_t comparison
This commit is contained in:
parent
0229fc8255
commit
236da599d4
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ void llama_sample_dry_impl(llama_token_data_array * candidates, const llama_toke
|
||||||
auto match_length = pair.second;
|
auto match_length = pair.second;
|
||||||
|
|
||||||
// if the match length is greater than or equal to our allowed length in config, we apply penalities
|
// 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
|
// find our next token in the candidates->data
|
||||||
for (size_t i = 0; i < candidates->size; ++i) {
|
for (size_t i = 0; i < candidates->size; ++i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue