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
51eb6d34
Unverified
Commit
51eb6d34
authored
Jul 09, 2021
by
Patrick von Platen
Committed by
GitHub
Jul 09, 2021
Browse files
[Flax] Fix mt5 auto (#12612)
* fix_torch_device_generate_test * remove @ * fix mt5 auto
parent
e7f33e8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/transformers/models/auto/modeling_flax_auto.py
src/transformers/models/auto/modeling_flax_auto.py
+4
-0
No files found.
src/transformers/models/auto/modeling_flax_auto.py
View file @
51eb6d34
...
...
@@ -84,6 +84,7 @@ from .configuration_auto import (
GPTNeoConfig
,
MarianConfig
,
MBartConfig
,
MT5Config
,
RobertaConfig
,
T5Config
,
ViTConfig
,
...
...
@@ -108,6 +109,7 @@ FLAX_MODEL_MAPPING = OrderedDict(
(
ViTConfig
,
FlaxViTModel
),
(
MBartConfig
,
FlaxMBartModel
),
(
T5Config
,
FlaxT5Model
),
(
MT5Config
,
FlaxT5Model
),
(
Wav2Vec2Config
,
FlaxWav2Vec2Model
),
(
MarianConfig
,
FlaxMarianModel
),
]
...
...
@@ -123,6 +125,7 @@ FLAX_MODEL_FOR_PRETRAINING_MAPPING = OrderedDict(
(
ElectraConfig
,
FlaxElectraForPreTraining
),
(
MBartConfig
,
FlaxMBartForConditionalGeneration
),
(
T5Config
,
FlaxT5ForConditionalGeneration
),
(
MT5Config
,
FlaxT5ForConditionalGeneration
),
(
Wav2Vec2Config
,
FlaxWav2Vec2ForPreTraining
),
]
)
...
...
@@ -144,6 +147,7 @@ FLAX_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING = OrderedDict(
# Model for Seq2Seq Causal LM mapping
(
BartConfig
,
FlaxBartForConditionalGeneration
),
(
T5Config
,
FlaxT5ForConditionalGeneration
),
(
MT5Config
,
FlaxT5ForConditionalGeneration
),
(
MarianConfig
,
FlaxMarianMTModel
),
]
)
...
...
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