Skip to content

Commit 65960be

Browse files
committed
WIP
1 parent 5e3f771 commit 65960be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/speculative.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ llama_tokens common_speculative_gen_draft(
154154

155155
const int i_start = std::max<int>(0, (int) prompt_tgt.size() - n_ctx);
156156

157-
// Extract parameters packed in p_min (format: 0.pmin_pdecay_nmin)
157+
// Extract parameters packed in p_min (format: 0.{pmin:2}{pdecay:2}{nmin:1})
158158
const float p_min = floorf(params.p_min * 100) / 100; // First 2 decimal places
159159
const float p_decay = floorf((params.p_min - p_min) * 10000) / 100; // Next 2 decimal places
160160
const int n_min = roundf((params.p_min - p_min - (p_decay / 100)) * 100000); // Last digit

0 commit comments

Comments
 (0)