From: Georgi Gerganov Date: Sun, 11 Feb 2024 13:33:43 +0000 (+0200) Subject: common : fix compile warning X-Git-Tag: upstream/0.0.4488~2366 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=139b62a839825ef20084ed75ed624db7a5ad554a;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : fix compile warning --- diff --git a/common/sampling.cpp b/common/sampling.cpp index 844ad7c5..82cbdece 100644 --- a/common/sampling.cpp +++ b/common/sampling.cpp @@ -127,8 +127,6 @@ static void sampler_queue( const llama_sampling_params & params, llama_token_data_array & cur_p, size_t & min_keep) { - const int n_vocab = llama_n_vocab(llama_get_model(ctx_main)); - const float temp = params.temp; const float dynatemp_range = params.dynatemp_range; const float dynatemp_exponent = params.dynatemp_exponent;