mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-02-04 13:30:47 +00:00
More formatting
This commit is contained in:
@@ -125,7 +125,7 @@ struct llama_sampling_context * common_sampler_init(const struct llama_vocab* vo
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -419,7 +419,7 @@ static void sampler_queue(
|
||||
case llama_sampler_type::ADAPTIVE_P: use_adaptive_p = true; break;
|
||||
default : break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (use_adaptive_p) {
|
||||
// adaptive p should be put to the last, so we ignore the order in the sampler
|
||||
@@ -451,7 +451,7 @@ static llama_token llama_sampling_sample_impl(
|
||||
if (ctx_sampling->grammar != NULL && is_resampling) {
|
||||
float* logits = llama_get_logits_ith(ctx_main, idx);
|
||||
// Apply grammar constraints to all candidates
|
||||
llama_grammar_sample(ctx_sampling->grammar, ctx_main, &cur_p);
|
||||
llama_grammar_sample(ctx_sampling->grammar, ctx_main, &cur_p);
|
||||
}
|
||||
|
||||
if (temp < 0.0) {
|
||||
|
||||
Reference in New Issue
Block a user