mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-15 22:16:52 +08:00
llama: fix non-local x path (#15580)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user