Skip to content

Commit f4dc26d

Browse files
authored
Qwen: incorrect setup flag (#30776)
qwen does not support the new cache classes
1 parent f823fec commit f4dc26d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/transformers/models/qwen2/modeling_qwen2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ class Qwen2PreTrainedModel(PreTrainedModel):
821821
_skip_keys_device_placement = "past_key_values"
822822
_supports_flash_attn_2 = True
823823
_supports_sdpa = True
824-
_supports_cache_class = True
825824

826825
def _init_weights(self, module):
827826
std = self.config.initializer_range

0 commit comments

Comments
 (0)