Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f4dc26d4
Unverified
Commit
f4dc26d4
authored
May 13, 2024
by
Joao Gante
Committed by
GitHub
May 13, 2024
Browse files
Qwen: incorrect setup flag (#30776)
qwen does not support the new cache classes
parent
f823fec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/transformers/models/qwen2/modeling_qwen2.py
src/transformers/models/qwen2/modeling_qwen2.py
+0
-1
No files found.
src/transformers/models/qwen2/modeling_qwen2.py
View file @
f4dc26d4
...
...
@@ -821,7 +821,6 @@ class Qwen2PreTrainedModel(PreTrainedModel):
_skip_keys_device_placement
=
"past_key_values"
_supports_flash_attn_2
=
True
_supports_sdpa
=
True
_supports_cache_class
=
True
def
_init_weights
(
self
,
module
):
std
=
self
.
config
.
initializer_range
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment