From 9923342c279366f23aaf19ba39ea74c991b12274 Mon Sep 17 00:00:00 2001 From: Vignesh Skanda Date: Sun, 6 Oct 2024 18:58:55 +0530 Subject: [PATCH] Update sampling.cpp --- common/sampling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/sampling.cpp b/common/sampling.cpp index 3dc7f112094e6..57c83bbe7474a 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 },