We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e3f771 commit 65960beCopy full SHA for 65960be
common/speculative.cpp
@@ -154,7 +154,7 @@ llama_tokens common_speculative_gen_draft(
154
155
const int i_start = std::max<int>(0, (int) prompt_tgt.size() - n_ctx);
156
157
- // Extract parameters packed in p_min (format: 0.pmin_pdecay_nmin)
+ // Extract parameters packed in p_min (format: 0.{pmin:2}{pdecay:2}{nmin:1})
158
const float p_min = floorf(params.p_min * 100) / 100; // First 2 decimal places
159
const float p_decay = floorf((params.p_min - p_min) * 10000) / 100; // Next 2 decimal places
160
const int n_min = roundf((params.p_min - p_min - (p_decay / 100)) * 100000); // Last digit
0 commit comments