Skip to content

Commit 98f1d92

Browse files
committed
fix issues
1 parent dd3d0ae commit 98f1d92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onnx_diagnostic/helpers/cache_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def make_static_cache(
181181
torch.randn(bsize, nheads, slen, dim),
182182
)
183183
for i in range(n_layers)
184-
]
184+
],
185+
max_cache_len=10,
185186
)
186187
print(string_type(past_key_values, with_shape=True))
187188
"""

0 commit comments

Comments
 (0)