Set default speculative K=5 based on benchmarks

K=5 measured as optimal for Qwen2.5-32B + 0.5B draft:
5.75 tok/s decode, 66.7% acceptance, 4.33 tok/target_call.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Carmen EstebanandClaude Opus 4.6 committed 2026-04-05 18:53:33 +02:00
1 parent e8aa74f254
commit 04065aa1ce
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ std::vector<int32_t> ar_generate(
// ═══════════════════════════════════════════════════════════════
struct ar_spec_params {
int K = 4; // speculative lookahead (draft tokens per round)
int K = 5; // speculative lookahead (draft tokens per round)
};
struct ar_spec_stats {