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
8afaaa26
Unverified
Commit
8afaaa26
authored
Apr 26, 2022
by
Ahmed Elnaggar
Committed by
GitHub
Apr 26, 2022
Browse files
FIx Iterations for decoder (#16934)
FIx Iterations for decoder
parent
fa322474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/t5/convert_t5x_checkpoint_to_flax.py
src/transformers/models/t5/convert_t5x_checkpoint_to_flax.py
+1
-1
No files found.
src/transformers/models/t5/convert_t5x_checkpoint_to_flax.py
View file @
8afaaa26
...
...
@@ -100,7 +100,7 @@ def convert_t5x_checkpoint_to_flax(t5x_checkpoint_path, config_name, flax_dump_f
flax_model
.
params
[
"encoder"
][
"final_layer_norm"
][
"weight"
]
=
t5x_encoder_norm
# Decoder
for
layer_index
in
range
(
config
.
num_layers
):
for
layer_index
in
range
(
config
.
num_
decoder_
layers
):
layer_name
=
f
"layers_
{
str
(
layer_index
)
}
"
# Self-Attention
...
...
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