llama: fix non-local x path (#15580)

This commit is contained in:
rattus
2026-08-13 12:21:26 -04:00
committed by GitHub
parent e535e59e13
commit af3d2153a7
+2 -1
View File
@@ -906,7 +906,8 @@ class Llama2_(nn.Module):
past_kv.prepare(seq_len)
def core():
_, current_kv = layer(
nonlocal x
x, current_kv = layer(
x=x,
attention_mask=mask,
freqs_cis=freqs_cis,