Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions optimum/habana/transformers/generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ def generate(
if model_kwargs["reduce_recompile"]:
assert generation_config.bucket_size
if generation_config.reuse_cache:
assert self.config.model_type in ["llama"], "reuse_cache only supported by llama at the moment"
assert generation_config.bucket_size <= 0, "reuse_cache and bucketing flags set together"

if generation_config.static_shapes:
Expand Down