diff --git a/common/sampling.cpp b/common/sampling.cpp index 3dc7f1120..57c83bbe7 100644 --- a/common/sampling.cpp +++ b/common/sampling.cpp @@ -293,7 +293,7 @@ llama_token gpt_sampler_sample(struct gpt_sampler * gsmpl, struct llama_context return id; } - // check if it the sampled token fits the grammar + // check if the sampled token fits the grammar { llama_token_data single_token_data = { id, 1.0f, 0.0f }; llama_token_data_array single_token_data_array = { &single_token_data, 1, -1, false }; @@ -398,7 +398,7 @@ std::vector gpt_sampler_types_from_names(const std::vector sampler_alt_name_map { { "top-k", GPT_SAMPLER_TYPE_TOP_K },