Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Nov 4, 2024
1 parent 264f5f6 commit 093e7c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions optimum/exporters/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,23 +335,23 @@ class TasksManager:
}

_DIFFUSERS_SUPPORTED_MODEL_TYPE = {
"t5-encoder-model": supported_tasks_mapping(
"t5-encoder": supported_tasks_mapping(
"feature-extraction",
onnx="T5EncoderOnnxConfig",
),
"clip-text-model": supported_tasks_mapping(
"clip-text": supported_tasks_mapping(
"feature-extraction",
onnx="CLIPTextOnnxConfig",
),
"clip-text-model-with-projection": supported_tasks_mapping(
"clip-text-with-projection": supported_tasks_mapping(
"feature-extraction",
onnx="CLIPTextWithProjectionOnnxConfig",
),
"flux-transformer-2d-model": supported_tasks_mapping(
"flux-transformer-2d": supported_tasks_mapping(
"semantic-segmentation",
onnx="FluxTransformerOnnxConfig",
),
"sd3-transformer-2d-model": supported_tasks_mapping(
"sd3-transformer-2d": supported_tasks_mapping(
"semantic-segmentation",
onnx="SD3TransformerOnnxConfig",
),
Expand Down Expand Up @@ -1190,11 +1190,11 @@ class TasksManager:
}
_UNSUPPORTED_CLI_MODEL_TYPE = {
# diffusers model types
"clip-text-model",
"clip-text-model-with-projection",
"flux-transformer-2d-model",
"sd3-transformer-2d-model",
"t5-encoder-model",
"clip-text",
"clip-text-with-projection",
"flux-transformer-2d",
"sd3-transformer-2d",
"t5-encoder",
"unet-2d-condition",
"vae-encoder",
"vae-decoder",
Expand Down
2 changes: 1 addition & 1 deletion optimum/exporters/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@


_DIFFUSERS_CLASS_NAME_TO_SUBMODEL_TYPE = {
"CLIPTextModel": "clip-text-model",
"CLIPTextModel": "clip-text",
"CLIPTextModelWithProjection": "clip-text-with-projection",
"FluxTransformer2DModel": "flux-transformer-2d",
"SD3Transformer2DModel": "sd3-transformer-2d",
Expand Down

0 comments on commit 093e7c3

Please sign in to comment.