mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 01:05:09 +02:00
linting
This commit is contained in:
+1
-1
@@ -1525,7 +1525,7 @@ void sample_entropy(llama_token_data_array * cur_p, float min_temp, float max_te
|
||||
// Only apply smoothing if smoothing_factor is > 0. Do not change base implementation otherwise.
|
||||
if (smoothing_factor > 0 && cur_p->size > 1) {
|
||||
sample_softmax(cur_p);
|
||||
float h = cur_p->data[0].logit; // Find the maximum logit for h to be added after the transformation
|
||||
float h = cur_p->data[0].logit; // Find the maximum logit for h to be added after the transformation
|
||||
// Apply the modified quadratic transformation using the smoothing_factor and smoothing_curve
|
||||
for (size_t i = 0; i < cur_p->size; ++i) {
|
||||
float logit_shifted = cur_p->data[i].logit - h;
|
||||
|
||||
Reference in New Issue
Block a user