fix: restore kv_cache.append that was accidentally removed
This commit is contained in:
@@ -484,6 +484,7 @@ def forward_layer(X_l, w, li, cfg, rope_cos, rope_sin,
|
||||
|
||||
# -- Get full KV from cache (already RoPE'd) --
|
||||
k_full, v_full = kv_cache.get() # (1, seq_len, hd) each — RoPE'd, K=V
|
||||
seq_len = k_full.shape[1]
|
||||
|
||||
# -- FMHA: (n_h, T, hd) × (1, seq_len, hd) → (n_h, T, hd) --
|
||||
q_input = q_heads.permute(1, 0, 2) # (n_h, T, hd)
|
||||
|
||||
Reference in New Issue
Block a user