Skip to content

Commit e26e9a4

Browse files
committed
Kimish comment
1 parent 34614de commit e26e9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchtune/modules/attention.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def forward(
274274

275275
# Update key-value cache
276276
if self.kv_cache is not None:
277-
SDPA.kv_cache_update(input_pos, k, v)
277+
self._sdpa.kv_cache_update(input_pos, k, v)
278278

279-
output = SDPA.sdpa(q, k, v, b, s_x)
279+
output = self._sdpa.sdpa(q, k, v, b, s_x)
280280
return self.output_proj(output)

0 commit comments

Comments
 (0)