@@ -603,7 +603,7 @@ class TasksManager:
603
603
"feature-extraction-with-past" ,
604
604
"text-generation" ,
605
605
"text-generation-with-past" ,
606
- # "text-classification", # TODO: maybe reenable once fixed. See: https://github.com/huggingface/optimum/pull/1308
606
+ "text-classification" ,
607
607
"token-classification" ,
608
608
onnx = "GPT2OnnxConfig" ,
609
609
),
@@ -612,7 +612,7 @@ class TasksManager:
612
612
"feature-extraction-with-past" ,
613
613
"text-generation" ,
614
614
"text-generation-with-past" ,
615
- # "text-classification", # TODO: maybe reenable once fixed. See: https://github.com/huggingface/optimum/pull/1308
615
+ "text-classification" ,
616
616
"token-classification" ,
617
617
onnx = "GPTBigCodeOnnxConfig" ,
618
618
),
@@ -622,22 +622,23 @@ class TasksManager:
622
622
"text-generation" ,
623
623
"text-generation-with-past" ,
624
624
"question-answering" ,
625
- # "text-classification", # TODO: maybe reenable once fixed. See: https://github.com/huggingface/optimum/pull/1308
625
+ "text-classification" ,
626
626
onnx = "GPTJOnnxConfig" ,
627
627
),
628
628
"gpt-neo" : supported_tasks_mapping (
629
629
"feature-extraction" ,
630
630
"feature-extraction-with-past" ,
631
631
"text-generation" ,
632
632
"text-generation-with-past" ,
633
- # "text-classification", # TODO: maybe reenable once fixed. See: https://github.com/huggingface/optimum/pull/1308
633
+ "text-classification" ,
634
634
onnx = "GPTNeoOnnxConfig" ,
635
635
),
636
636
"gpt-neox" : supported_tasks_mapping (
637
637
"feature-extraction" ,
638
638
"feature-extraction-with-past" ,
639
639
"text-generation" ,
640
640
"text-generation-with-past" ,
641
+ "text-classification" ,
641
642
onnx = "GPTNeoXOnnxConfig" ,
642
643
),
643
644
"groupvit" : supported_tasks_mapping (
@@ -734,7 +735,7 @@ class TasksManager:
734
735
"feature-extraction-with-past" ,
735
736
"text-generation" ,
736
737
"text-generation-with-past" ,
737
- # "text-classification",
738
+ "text-classification" ,
738
739
onnx = "MistralOnnxConfig" ,
739
740
),
740
741
# TODO: enable once the missing operator is supported.
@@ -782,6 +783,7 @@ class TasksManager:
782
783
"mpt" : supported_tasks_mapping (
783
784
"text-generation" ,
784
785
"text-generation-with-past" ,
786
+ "text-classification" ,
785
787
onnx = "MPTOnnxConfig" ,
786
788
),
787
789
"mt5" : supported_tasks_mapping (
@@ -818,15 +820,15 @@ class TasksManager:
818
820
"text-generation" ,
819
821
"text-generation-with-past" ,
820
822
"question-answering" ,
821
- # "text-classification", # TODO: maybe reenable once fixed. See: https://github.com/huggingface/optimum/pull/1308
823
+ "text-classification" ,
822
824
onnx = "OPTOnnxConfig" ,
823
825
),
824
826
"llama" : supported_tasks_mapping (
825
827
"feature-extraction" ,
826
828
"feature-extraction-with-past" ,
827
829
"text-generation" ,
828
830
"text-generation-with-past" ,
829
- # "text-classification", # TODO: maybe reenable once fixed. See: https://github.com/huggingface/optimum/pull/1308
831
+ "text-classification" ,
830
832
onnx = "LlamaOnnxConfig" ,
831
833
),
832
834
"pegasus" : supported_tasks_mapping (
@@ -849,6 +851,7 @@ class TasksManager:
849
851
"feature-extraction-with-past" ,
850
852
"text-generation" ,
851
853
"text-generation-with-past" ,
854
+ "text-classification" ,
852
855
onnx = "PhiOnnxConfig" ,
853
856
),
854
857
"pix2struct" : supported_tasks_mapping (
0 commit comments