Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 3ba19ea

Browse files
committed
Compatibility change
1 parent 39eff90 commit 3ba19ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchchat/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ def __init__(self, attention: Attention):
152152
self.wo = attention.wo
153153

154154
max_batch_size, n_heads, max_seq_length, head_dim = (
155-
attention.kv_cache.k_cache.shape
155+
attention.kv_cache[0].k_cache.shape
156156
)
157-
cache_dtype = attention.kv_cache.k_cache.dtype
157+
cache_dtype = attention.kv_cache[0].k_cache.dtype
158158
self.kv_cache = CustomKVCache(
159159
max_batch_size, max_seq_length, n_heads, head_dim, cache_dtype
160160
)

0 commit comments

Comments
 (0)