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
b424f0b4
Unverified
Commit
b424f0b4
authored
Jun 28, 2022
by
mrbean
Committed by
GitHub
Jun 28, 2022
Browse files
Mrbean/codegen onnx (#17903)
parent
76d13de5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/transformers/onnx/features.py
src/transformers/onnx/features.py
+5
-0
tests/onnx/test_onnx_v2.py
tests/onnx/test_onnx_v2.py
+1
-0
No files found.
src/transformers/onnx/features.py
View file @
b424f0b4
...
@@ -188,6 +188,11 @@ class FeaturesManager:
...
@@ -188,6 +188,11 @@ class FeaturesManager:
"question-answering"
,
"question-answering"
,
onnx_config_cls
=
"models.camembert.CamembertOnnxConfig"
,
onnx_config_cls
=
"models.camembert.CamembertOnnxConfig"
,
),
),
"codegen"
:
supported_features_mapping
(
"default"
,
"causal-lm"
,
onnx_config_cls
=
"models.codegen.CodeGenOnnxConfig"
,
),
"convbert"
:
supported_features_mapping
(
"convbert"
:
supported_features_mapping
(
"default"
,
"default"
,
"masked-lm"
,
"masked-lm"
,
...
...
tests/onnx/test_onnx_v2.py
View file @
b424f0b4
...
@@ -180,6 +180,7 @@ PYTORCH_EXPORT_MODELS = {
...
@@ -180,6 +180,7 @@ PYTORCH_EXPORT_MODELS = {
(
"ibert"
,
"kssteven/ibert-roberta-base"
),
(
"ibert"
,
"kssteven/ibert-roberta-base"
),
(
"camembert"
,
"camembert-base"
),
(
"camembert"
,
"camembert-base"
),
(
"convbert"
,
"YituTech/conv-bert-base"
),
(
"convbert"
,
"YituTech/conv-bert-base"
),
(
"codegen"
,
"Salesforce/codegen-350M-multi"
),
(
"deberta"
,
"microsoft/deberta-base"
),
(
"deberta"
,
"microsoft/deberta-base"
),
(
"deberta-v2"
,
"microsoft/deberta-v2-xlarge"
),
(
"deberta-v2"
,
"microsoft/deberta-v2-xlarge"
),
(
"convnext"
,
"facebook/convnext-tiny-224"
),
(
"convnext"
,
"facebook/convnext-tiny-224"
),
...
...
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