|
1 | 1 | import io |
2 | 2 | import functools |
| 3 | +import textwrap |
3 | 4 | from typing import Dict, List |
4 | 5 |
|
5 | 6 | __date__ = "2025-03-26" |
6 | 7 |
|
7 | | -__data_arch__ = """ |
8 | | -architecture,task |
9 | | -ASTModel,feature-extraction |
10 | | -AlbertModel,feature-extraction |
11 | | -BeitForImageClassification,image-classification |
12 | | -BigBirdModel,feature-extraction |
13 | | -BlenderbotModel,feature-extraction |
14 | | -BloomModel,feature-extraction |
15 | | -CLIPModel,zero-shot-image-classification |
16 | | -CLIPVisionModel,feature-extraction |
17 | | -CamembertModel,feature-extraction |
18 | | -CodeGenModel,feature-extraction |
19 | | -ConvBertModel,feature-extraction |
20 | | -ConvNextForImageClassification,image-classification |
21 | | -ConvNextV2Model,image-feature-extraction |
22 | | -CvtModel,feature-extraction |
23 | | -DPTModel,image-feature-extraction |
24 | | -Data2VecAudioModel,feature-extraction |
25 | | -Data2VecTextModel,feature-extraction |
26 | | -Data2VecVisionModel,image-feature-extraction |
27 | | -DebertaModel,feature-extraction |
28 | | -DebertaV2Model,feature-extraction |
29 | | -DecisionTransformerModel,reinforcement-learning |
30 | | -DeiTModel,image-feature-extraction |
31 | | -DetrModel,image-feature-extraction |
32 | | -Dinov2Model,image-feature-extraction |
33 | | -DistilBertModel,feature-extraction |
34 | | -DonutSwinModel,feature-extraction |
35 | | -ElectraModel,feature-extraction |
36 | | -EsmModel,feature-extraction |
37 | | -GLPNModel,image-feature-extraction |
38 | | -GPTBigCodeModel,feature-extraction |
39 | | -GPTJModel,feature-extraction |
40 | | -GPTNeoModel,feature-extraction |
41 | | -GPTNeoXForCausalLM,text-generation |
42 | | -GemmaForCausalLM,text-generation |
43 | | -GraniteForCausalLM,text-generation |
44 | | -GroupViTModel,feature-extraction |
45 | | -HieraForImageClassification,image-classification |
46 | | -HubertModel,feature-extraction |
47 | | -IBertModel,feature-extraction |
48 | | -ImageGPTModel,image-feature-extraction |
49 | | -LayoutLMModel,feature-extraction |
50 | | -LayoutLMv3Model,feature-extraction |
51 | | -LevitModel,image-feature-extraction |
52 | | -LiltModel,feature-extraction |
53 | | -LlamaForCausalLM,text-generation |
54 | | -LongT5Model,feature-extraction |
55 | | -LongformerModel,feature-extraction |
56 | | -MCTCTModel,feature-extraction |
57 | | -MPNetModel,feature-extraction |
58 | | -MT5Model,feature-extraction |
59 | | -MarianMTModel,text2text-generation |
60 | | -MarkupLMModel,feature-extraction |
61 | | -MaskFormerForInstanceSegmentation,image-segmentation |
62 | | -MegatronBertModel,feature-extraction |
63 | | -MgpstrForSceneTextRecognition,feature-extraction |
64 | | -MistralForCausalLM,text-generation |
65 | | -MobileBertModel,feature-extraction |
66 | | -MobileNetV1Model,image-feature-extraction |
67 | | -MobileNetV2Model,image-feature-extraction |
68 | | -MobileViTForImageClassification,image-classification |
69 | | -ModernBertForMaskedLM,fill-mask |
70 | | -MoonshineForConditionalGeneration,automatic-speech-recognition |
71 | | -MptForCausalLM,text-generation |
72 | | -MusicgenForConditionalGeneration,text-to-audio |
73 | | -NystromformerModel,feature-extraction |
74 | | -OPTModel,feature-extraction |
75 | | -Olmo2ForCausalLM,text-generation |
76 | | -OlmoForCausalLM,text-generation |
77 | | -OwlViTModel,feature-extraction |
78 | | -Owlv2Model,feature-extraction |
79 | | -PatchTSMixerForPrediction,no-pipeline-tag |
80 | | -PatchTSTForPrediction,no-pipeline-tag |
81 | | -PegasusModel,feature-extraction |
82 | | -Phi3ForCausalLM,text-generation |
83 | | -PhiForCausalLM,text-generation |
84 | | -Pix2StructForConditionalGeneration,image-to-text |
85 | | -PoolFormerModel,image-feature-extraction |
86 | | -PvtForImageClassification,image-classification |
87 | | -Qwen2ForCausalLM,text-generation |
88 | | -RTDetrForObjectDetection,object-detection |
89 | | -RegNetModel,image-feature-extraction |
90 | | -RemBertModel,feature-extraction |
91 | | -ResNetForImageClassification,image-classification |
92 | | -RoFormerModel,feature-extraction |
93 | | -RobertaModel,feature-extraction |
94 | | -RtDetrV2ForObjectDetection,object-detection |
95 | | -SEWDModel,feature-extraction |
96 | | -SEWModel,feature-extraction |
97 | | -SamModel,mask-generation |
98 | | -SegformerModel,image-feature-extraction |
99 | | -SiglipModel,zero-shot-image-classification |
100 | | -SiglipVisionModel,image-feature-extraction |
101 | | -Speech2TextModel,feature-extraction |
102 | | -SpeechT5ForTextToSpeech,text-to-audio |
103 | | -SplinterModel,feature-extraction |
104 | | -SqueezeBertModel,feature-extraction |
105 | | -Swin2SRModel,image-feature-extraction |
106 | | -SwinModel,image-feature-extraction |
107 | | -Swinv2Model,image-feature-extraction |
108 | | -T5ForConditionalGeneration,text2text-generation |
109 | | -TableTransformerModel,image-feature-extraction |
110 | | -UniSpeechForSequenceClassification,audio-classification |
111 | | -ViTForImageClassification,image-classification |
112 | | -ViTMAEModel,image-feature-extraction |
113 | | -ViTMSNForImageClassification,image-classification |
114 | | -VisionEncoderDecoderModel,document-question-answering |
115 | | -VitPoseForPoseEstimation,keypoint-detection |
116 | | -VitsModel,text-to-audio |
117 | | -Wav2Vec2ConformerForCTC,automatic-speech-recognition |
118 | | -Wav2Vec2Model,feature-extraction |
119 | | -WhisperForConditionalGeneration,no-pipeline-tag |
120 | | -XLMModel,feature-extraction |
121 | | -XLMRobertaForCausalLM,text-generation |
122 | | -YolosForObjectDetection,object-detection |
123 | | -YolosModel,image-feature-extraction |
124 | | -""" |
| 8 | +__data_arch__ = textwrap.dedent( |
| 9 | + """ |
| 10 | + architecture,task |
| 11 | + ASTModel,feature-extraction |
| 12 | + AlbertModel,feature-extraction |
| 13 | + BeitForImageClassification,image-classification |
| 14 | + BigBirdModel,feature-extraction |
| 15 | + BlenderbotModel,feature-extraction |
| 16 | + BloomModel,feature-extraction |
| 17 | + CLIPModel,zero-shot-image-classification |
| 18 | + CLIPVisionModel,feature-extraction |
| 19 | + CamembertModel,feature-extraction |
| 20 | + CodeGenModel,feature-extraction |
| 21 | + ConvBertModel,feature-extraction |
| 22 | + ConvNextForImageClassification,image-classification |
| 23 | + ConvNextV2Model,image-feature-extraction |
| 24 | + CvtModel,feature-extraction |
| 25 | + DPTModel,image-feature-extraction |
| 26 | + Data2VecAudioModel,feature-extraction |
| 27 | + Data2VecTextModel,feature-extraction |
| 28 | + Data2VecVisionModel,image-feature-extraction |
| 29 | + DebertaModel,feature-extraction |
| 30 | + DebertaV2Model,feature-extraction |
| 31 | + DecisionTransformerModel,reinforcement-learning |
| 32 | + DeiTModel,image-feature-extraction |
| 33 | + DetrModel,image-feature-extraction |
| 34 | + Dinov2Model,image-feature-extraction |
| 35 | + DistilBertModel,feature-extraction |
| 36 | + DonutSwinModel,feature-extraction |
| 37 | + ElectraModel,feature-extraction |
| 38 | + EsmModel,feature-extraction |
| 39 | + GLPNModel,image-feature-extraction |
| 40 | + GPTBigCodeModel,feature-extraction |
| 41 | + GPTJModel,feature-extraction |
| 42 | + GPTNeoModel,feature-extraction |
| 43 | + GPTNeoXForCausalLM,text-generation |
| 44 | + GemmaForCausalLM,text-generation |
| 45 | + GraniteForCausalLM,text-generation |
| 46 | + GroupViTModel,feature-extraction |
| 47 | + HieraForImageClassification,image-classification |
| 48 | + HubertModel,feature-extraction |
| 49 | + IBertModel,feature-extraction |
| 50 | + ImageGPTModel,image-feature-extraction |
| 51 | + LayoutLMModel,feature-extraction |
| 52 | + LayoutLMv3Model,feature-extraction |
| 53 | + LevitModel,image-feature-extraction |
| 54 | + LiltModel,feature-extraction |
| 55 | + LlamaForCausalLM,text-generation |
| 56 | + LongT5Model,feature-extraction |
| 57 | + LongformerModel,feature-extraction |
| 58 | + MCTCTModel,feature-extraction |
| 59 | + MPNetModel,feature-extraction |
| 60 | + MT5Model,feature-extraction |
| 61 | + MarianMTModel,text2text-generation |
| 62 | + MarkupLMModel,feature-extraction |
| 63 | + MaskFormerForInstanceSegmentation,image-segmentation |
| 64 | + MegatronBertModel,feature-extraction |
| 65 | + MgpstrForSceneTextRecognition,feature-extraction |
| 66 | + MistralForCausalLM,text-generation |
| 67 | + MobileBertModel,feature-extraction |
| 68 | + MobileNetV1Model,image-feature-extraction |
| 69 | + MobileNetV2Model,image-feature-extraction |
| 70 | + MobileViTForImageClassification,image-classification |
| 71 | + ModernBertForMaskedLM,fill-mask |
| 72 | + MoonshineForConditionalGeneration,automatic-speech-recognition |
| 73 | + MptForCausalLM,text-generation |
| 74 | + MusicgenForConditionalGeneration,text-to-audio |
| 75 | + NystromformerModel,feature-extraction |
| 76 | + OPTModel,feature-extraction |
| 77 | + Olmo2ForCausalLM,text-generation |
| 78 | + OlmoForCausalLM,text-generation |
| 79 | + OwlViTModel,feature-extraction |
| 80 | + Owlv2Model,feature-extraction |
| 81 | + PatchTSMixerForPrediction,no-pipeline-tag |
| 82 | + PatchTSTForPrediction,no-pipeline-tag |
| 83 | + PegasusModel,feature-extraction |
| 84 | + Phi3ForCausalLM,text-generation |
| 85 | + PhiForCausalLM,text-generation |
| 86 | + Pix2StructForConditionalGeneration,image-to-text |
| 87 | + PoolFormerModel,image-feature-extraction |
| 88 | + PvtForImageClassification,image-classification |
| 89 | + Qwen2ForCausalLM,text-generation |
| 90 | + RTDetrForObjectDetection,object-detection |
| 91 | + RegNetModel,image-feature-extraction |
| 92 | + RemBertModel,feature-extraction |
| 93 | + ResNetForImageClassification,image-classification |
| 94 | + RoFormerModel,feature-extraction |
| 95 | + RobertaModel,feature-extraction |
| 96 | + RtDetrV2ForObjectDetection,object-detection |
| 97 | + SEWDModel,feature-extraction |
| 98 | + SEWModel,feature-extraction |
| 99 | + SamModel,mask-generation |
| 100 | + SegformerModel,image-feature-extraction |
| 101 | + SiglipModel,zero-shot-image-classification |
| 102 | + SiglipVisionModel,image-feature-extraction |
| 103 | + Speech2TextModel,feature-extraction |
| 104 | + SpeechT5ForTextToSpeech,text-to-audio |
| 105 | + SplinterModel,feature-extraction |
| 106 | + SqueezeBertModel,feature-extraction |
| 107 | + Swin2SRModel,image-feature-extraction |
| 108 | + SwinModel,image-feature-extraction |
| 109 | + Swinv2Model,image-feature-extraction |
| 110 | + T5ForConditionalGeneration,text2text-generation |
| 111 | + TableTransformerModel,image-feature-extraction |
| 112 | + UniSpeechForSequenceClassification,audio-classification |
| 113 | + ViTForImageClassification,image-classification |
| 114 | + ViTMAEModel,image-feature-extraction |
| 115 | + ViTMSNForImageClassification,image-classification |
| 116 | + VisionEncoderDecoderModel,document-question-answering |
| 117 | + VitPoseForPoseEstimation,keypoint-detection |
| 118 | + VitsModel,text-to-audio |
| 119 | + Wav2Vec2ConformerForCTC,automatic-speech-recognition |
| 120 | + Wav2Vec2Model,feature-extraction |
| 121 | + WhisperForConditionalGeneration,no-pipeline-tag |
| 122 | + XLMModel,feature-extraction |
| 123 | + XLMRobertaForCausalLM,text-generation |
| 124 | + YolosForObjectDetection,object-detection |
| 125 | + YolosModel,image-feature-extraction""" |
| 126 | +) |
125 | 127 |
|
126 | 128 | __data_tasks__ = [ |
127 | 129 | "automatic-speech-recognition", |
|
0 commit comments