From 8e2f46ca8ca9a497e720b43229b231a6c07c8fd0 Mon Sep 17 00:00:00 2001 From: Jakub Luwierski Date: Wed, 30 Sep 2026 15:19:41 +0200 Subject: [PATCH] prefill: the draft layer's batched RoPE takes the one rope config v0.1.29's new draft_kv site (the 0.1.26 batched draft prompt pass) kept upstream's float freq_base form through the rebase, which both misses the scaling on the draft K/V and does not compile against the RopeScaling signature the other four sites carry. It passes rope_scaling() now, like the prompt K, Q and indexer-query sites. --- src/prefill/prefill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefill/prefill.cpp b/src/prefill/prefill.cpp index 9d900d1e..9d10b49a 100644 --- a/src/prefill/prefill.cpp +++ b/src/prefill/prefill.cpp @@ -803,7 +803,7 @@ bool Prefill::draft_kv(core::MtpDrafter& mtp, const float* R_rows, const int32_t proj(mixed, mixed_h, w_k, Kc, nb, KV, Nn, 0); proj(mixed, mixed_h, w_v, Vc, nb, KV, Nn, 0); rms_rows(Kc, w_kn, nb * g.n_head_kv, g.head_dim, g.head_dim, EPS, m.cs); - rope(Kc, nb, g.n_head_kv, g.head_dim, KV, c0, (float) strata::kernels::qsa_freq_base(), m.cs); + rope(Kc, nb, g.n_head_kv, g.head_dim, KV, c0, strata::kernels::rope_scaling(), m.cs); if (st.kv_q4) { strata::kernels::fwht256_inplace_cuda(Kc, nb * g.n_head_kv, m.cs); strata::kernels::fwht256_inplace_cuda(Vc, nb * g.n_head_kv, m.cs);