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
9b9a54e6
Unverified
Commit
9b9a54e6
authored
Jul 25, 2024
by
Kashif Rasul
Committed by
GitHub
Jul 25, 2024
Browse files
[BigBird Pegasus] set _supports_param_buffer_assignment to False (#32222)
set _supports_param_buffer_assignment to False
parent
1ecedf1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py
...ormers/models/bigbird_pegasus/modeling_bigbird_pegasus.py
+1
-0
No files found.
src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py
View file @
9b9a54e6
...
...
@@ -1569,6 +1569,7 @@ class BigBirdPegasusPreTrainedModel(PreTrainedModel):
supports_gradient_checkpointing
=
True
_no_split_modules
=
[
"BigBirdPegasusEncoderLayer"
,
"BigBirdPegasusDecoderLayer"
]
_skip_keys_device_placement
=
"past_key_values"
_supports_param_buffer_assignment
=
False
def
_init_weights
(
self
,
module
):
std
=
self
.
config
.
init_std
...
...
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