Skip to content

Commit 2a654ea

Browse files
committed
fix isssues
1 parent b893fc9 commit 2a654ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnx_diagnostic/tasks/text_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_inputs(
206206
)
207207
for i in range(num_hidden_layers)
208208
],
209-
max_cache_len=max(sequence_length + sequence_length2 * 2, 100),
209+
max_cache_len=max(sequence_length + sequence_length2, head_dim),
210210
),
211211
)
212212
else:

0 commit comments

Comments
 (0)