@huggingface/tasks 0.12.30 → 0.13.0-test2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/index.cjs +26 -3
  2. package/dist/index.d.cts +4778 -0
  3. package/dist/index.d.ts +4778 -0
  4. package/dist/index.js +26 -3
  5. package/package.json +2 -4
  6. package/src/model-libraries-snippets.ts +17 -0
  7. package/src/model-libraries.ts +8 -1
  8. package/src/snippets/js.ts +2 -2
  9. package/dist/scripts/inference-codegen.d.ts +0 -2
  10. package/dist/scripts/inference-codegen.d.ts.map +0 -1
  11. package/dist/scripts/inference-tei-import.d.ts +0 -2
  12. package/dist/scripts/inference-tei-import.d.ts.map +0 -1
  13. package/dist/scripts/inference-tgi-import.d.ts +0 -2
  14. package/dist/scripts/inference-tgi-import.d.ts.map +0 -1
  15. package/dist/src/dataset-libraries.d.ts +0 -87
  16. package/dist/src/dataset-libraries.d.ts.map +0 -1
  17. package/dist/src/default-widget-inputs.d.ts +0 -6
  18. package/dist/src/default-widget-inputs.d.ts.map +0 -1
  19. package/dist/src/gguf.d.ts +0 -35
  20. package/dist/src/gguf.d.ts.map +0 -1
  21. package/dist/src/hardware.d.ts +0 -478
  22. package/dist/src/hardware.d.ts.map +0 -1
  23. package/dist/src/index.d.ts +0 -21
  24. package/dist/src/index.d.ts.map +0 -1
  25. package/dist/src/library-to-tasks.d.ts +0 -11
  26. package/dist/src/library-to-tasks.d.ts.map +0 -1
  27. package/dist/src/local-apps.d.ts +0 -195
  28. package/dist/src/local-apps.d.ts.map +0 -1
  29. package/dist/src/model-data.d.ts +0 -146
  30. package/dist/src/model-data.d.ts.map +0 -1
  31. package/dist/src/model-libraries-downloads.d.ts +0 -18
  32. package/dist/src/model-libraries-downloads.d.ts.map +0 -1
  33. package/dist/src/model-libraries-snippets.d.ts +0 -71
  34. package/dist/src/model-libraries-snippets.d.ts.map +0 -1
  35. package/dist/src/model-libraries.d.ts +0 -797
  36. package/dist/src/model-libraries.d.ts.map +0 -1
  37. package/dist/src/pipelines.d.ts +0 -425
  38. package/dist/src/pipelines.d.ts.map +0 -1
  39. package/dist/src/snippets/common.d.ts +0 -14
  40. package/dist/src/snippets/common.d.ts.map +0 -1
  41. package/dist/src/snippets/curl.d.ts +0 -17
  42. package/dist/src/snippets/curl.d.ts.map +0 -1
  43. package/dist/src/snippets/curl.spec.d.ts +0 -2
  44. package/dist/src/snippets/curl.spec.d.ts.map +0 -1
  45. package/dist/src/snippets/index.d.ts +0 -6
  46. package/dist/src/snippets/index.d.ts.map +0 -1
  47. package/dist/src/snippets/inputs.d.ts +0 -4
  48. package/dist/src/snippets/inputs.d.ts.map +0 -1
  49. package/dist/src/snippets/js.d.ts +0 -19
  50. package/dist/src/snippets/js.d.ts.map +0 -1
  51. package/dist/src/snippets/js.spec.d.ts +0 -2
  52. package/dist/src/snippets/js.spec.d.ts.map +0 -1
  53. package/dist/src/snippets/python.d.ts +0 -22
  54. package/dist/src/snippets/python.d.ts.map +0 -1
  55. package/dist/src/snippets/python.spec.d.ts +0 -2
  56. package/dist/src/snippets/python.spec.d.ts.map +0 -1
  57. package/dist/src/snippets/types.d.ts +0 -12
  58. package/dist/src/snippets/types.d.ts.map +0 -1
  59. package/dist/src/tasks/audio-classification/data.d.ts +0 -4
  60. package/dist/src/tasks/audio-classification/data.d.ts.map +0 -1
  61. package/dist/src/tasks/audio-classification/inference.d.ts +0 -53
  62. package/dist/src/tasks/audio-classification/inference.d.ts.map +0 -1
  63. package/dist/src/tasks/audio-to-audio/data.d.ts +0 -4
  64. package/dist/src/tasks/audio-to-audio/data.d.ts.map +0 -1
  65. package/dist/src/tasks/automatic-speech-recognition/data.d.ts +0 -4
  66. package/dist/src/tasks/automatic-speech-recognition/data.d.ts.map +0 -1
  67. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts +0 -155
  68. package/dist/src/tasks/automatic-speech-recognition/inference.d.ts.map +0 -1
  69. package/dist/src/tasks/chat-completion/inference.d.ts +0 -291
  70. package/dist/src/tasks/chat-completion/inference.d.ts.map +0 -1
  71. package/dist/src/tasks/depth-estimation/data.d.ts +0 -4
  72. package/dist/src/tasks/depth-estimation/data.d.ts.map +0 -1
  73. package/dist/src/tasks/depth-estimation/inference.d.ts +0 -36
  74. package/dist/src/tasks/depth-estimation/inference.d.ts.map +0 -1
  75. package/dist/src/tasks/document-question-answering/data.d.ts +0 -4
  76. package/dist/src/tasks/document-question-answering/data.d.ts.map +0 -1
  77. package/dist/src/tasks/document-question-answering/inference.d.ts +0 -111
  78. package/dist/src/tasks/document-question-answering/inference.d.ts.map +0 -1
  79. package/dist/src/tasks/feature-extraction/data.d.ts +0 -4
  80. package/dist/src/tasks/feature-extraction/data.d.ts.map +0 -1
  81. package/dist/src/tasks/feature-extraction/inference.d.ts +0 -38
  82. package/dist/src/tasks/feature-extraction/inference.d.ts.map +0 -1
  83. package/dist/src/tasks/fill-mask/data.d.ts +0 -4
  84. package/dist/src/tasks/fill-mask/data.d.ts.map +0 -1
  85. package/dist/src/tasks/fill-mask/inference.d.ts +0 -63
  86. package/dist/src/tasks/fill-mask/inference.d.ts.map +0 -1
  87. package/dist/src/tasks/image-classification/data.d.ts +0 -4
  88. package/dist/src/tasks/image-classification/data.d.ts.map +0 -1
  89. package/dist/src/tasks/image-classification/inference.d.ts +0 -53
  90. package/dist/src/tasks/image-classification/inference.d.ts.map +0 -1
  91. package/dist/src/tasks/image-feature-extraction/data.d.ts +0 -4
  92. package/dist/src/tasks/image-feature-extraction/data.d.ts.map +0 -1
  93. package/dist/src/tasks/image-segmentation/data.d.ts +0 -4
  94. package/dist/src/tasks/image-segmentation/data.d.ts.map +0 -1
  95. package/dist/src/tasks/image-segmentation/inference.d.ts +0 -70
  96. package/dist/src/tasks/image-segmentation/inference.d.ts.map +0 -1
  97. package/dist/src/tasks/image-text-to-text/data.d.ts +0 -4
  98. package/dist/src/tasks/image-text-to-text/data.d.ts.map +0 -1
  99. package/dist/src/tasks/image-to-3d/data.d.ts +0 -4
  100. package/dist/src/tasks/image-to-3d/data.d.ts.map +0 -1
  101. package/dist/src/tasks/image-to-image/data.d.ts +0 -4
  102. package/dist/src/tasks/image-to-image/data.d.ts.map +0 -1
  103. package/dist/src/tasks/image-to-image/inference.d.ts +0 -65
  104. package/dist/src/tasks/image-to-image/inference.d.ts.map +0 -1
  105. package/dist/src/tasks/image-to-text/data.d.ts +0 -4
  106. package/dist/src/tasks/image-to-text/data.d.ts.map +0 -1
  107. package/dist/src/tasks/image-to-text/inference.d.ts +0 -139
  108. package/dist/src/tasks/image-to-text/inference.d.ts.map +0 -1
  109. package/dist/src/tasks/index.d.ts +0 -87
  110. package/dist/src/tasks/index.d.ts.map +0 -1
  111. package/dist/src/tasks/keypoint-detection/data.d.ts +0 -4
  112. package/dist/src/tasks/keypoint-detection/data.d.ts.map +0 -1
  113. package/dist/src/tasks/mask-generation/data.d.ts +0 -4
  114. package/dist/src/tasks/mask-generation/data.d.ts.map +0 -1
  115. package/dist/src/tasks/object-detection/data.d.ts +0 -4
  116. package/dist/src/tasks/object-detection/data.d.ts.map +0 -1
  117. package/dist/src/tasks/object-detection/inference.d.ts +0 -76
  118. package/dist/src/tasks/object-detection/inference.d.ts.map +0 -1
  119. package/dist/src/tasks/placeholder/data.d.ts +0 -4
  120. package/dist/src/tasks/placeholder/data.d.ts.map +0 -1
  121. package/dist/src/tasks/question-answering/data.d.ts +0 -4
  122. package/dist/src/tasks/question-answering/data.d.ts.map +0 -1
  123. package/dist/src/tasks/question-answering/inference.d.ts +0 -100
  124. package/dist/src/tasks/question-answering/inference.d.ts.map +0 -1
  125. package/dist/src/tasks/reinforcement-learning/data.d.ts +0 -4
  126. package/dist/src/tasks/reinforcement-learning/data.d.ts.map +0 -1
  127. package/dist/src/tasks/sentence-similarity/data.d.ts +0 -4
  128. package/dist/src/tasks/sentence-similarity/data.d.ts.map +0 -1
  129. package/dist/src/tasks/sentence-similarity/inference.d.ts +0 -32
  130. package/dist/src/tasks/sentence-similarity/inference.d.ts.map +0 -1
  131. package/dist/src/tasks/summarization/data.d.ts +0 -4
  132. package/dist/src/tasks/summarization/data.d.ts.map +0 -1
  133. package/dist/src/tasks/summarization/inference.d.ts +0 -56
  134. package/dist/src/tasks/summarization/inference.d.ts.map +0 -1
  135. package/dist/src/tasks/table-question-answering/data.d.ts +0 -4
  136. package/dist/src/tasks/table-question-answering/data.d.ts.map +0 -1
  137. package/dist/src/tasks/table-question-answering/inference.d.ts +0 -62
  138. package/dist/src/tasks/table-question-answering/inference.d.ts.map +0 -1
  139. package/dist/src/tasks/tabular-classification/data.d.ts +0 -4
  140. package/dist/src/tasks/tabular-classification/data.d.ts.map +0 -1
  141. package/dist/src/tasks/tabular-regression/data.d.ts +0 -4
  142. package/dist/src/tasks/tabular-regression/data.d.ts.map +0 -1
  143. package/dist/src/tasks/text-classification/data.d.ts +0 -4
  144. package/dist/src/tasks/text-classification/data.d.ts.map +0 -1
  145. package/dist/src/tasks/text-classification/inference.d.ts +0 -52
  146. package/dist/src/tasks/text-classification/inference.d.ts.map +0 -1
  147. package/dist/src/tasks/text-generation/data.d.ts +0 -4
  148. package/dist/src/tasks/text-generation/data.d.ts.map +0 -1
  149. package/dist/src/tasks/text-generation/inference.d.ts +0 -188
  150. package/dist/src/tasks/text-generation/inference.d.ts.map +0 -1
  151. package/dist/src/tasks/text-to-3d/data.d.ts +0 -4
  152. package/dist/src/tasks/text-to-3d/data.d.ts.map +0 -1
  153. package/dist/src/tasks/text-to-audio/inference.d.ts +0 -139
  154. package/dist/src/tasks/text-to-audio/inference.d.ts.map +0 -1
  155. package/dist/src/tasks/text-to-image/data.d.ts +0 -4
  156. package/dist/src/tasks/text-to-image/data.d.ts.map +0 -1
  157. package/dist/src/tasks/text-to-image/inference.d.ts +0 -72
  158. package/dist/src/tasks/text-to-image/inference.d.ts.map +0 -1
  159. package/dist/src/tasks/text-to-speech/data.d.ts +0 -4
  160. package/dist/src/tasks/text-to-speech/data.d.ts.map +0 -1
  161. package/dist/src/tasks/text-to-speech/inference.d.ts +0 -141
  162. package/dist/src/tasks/text-to-speech/inference.d.ts.map +0 -1
  163. package/dist/src/tasks/text-to-video/data.d.ts +0 -4
  164. package/dist/src/tasks/text-to-video/data.d.ts.map +0 -1
  165. package/dist/src/tasks/text2text-generation/inference.d.ts +0 -54
  166. package/dist/src/tasks/text2text-generation/inference.d.ts.map +0 -1
  167. package/dist/src/tasks/token-classification/data.d.ts +0 -4
  168. package/dist/src/tasks/token-classification/data.d.ts.map +0 -1
  169. package/dist/src/tasks/token-classification/inference.d.ts +0 -86
  170. package/dist/src/tasks/token-classification/inference.d.ts.map +0 -1
  171. package/dist/src/tasks/translation/data.d.ts +0 -4
  172. package/dist/src/tasks/translation/data.d.ts.map +0 -1
  173. package/dist/src/tasks/translation/inference.d.ts +0 -66
  174. package/dist/src/tasks/translation/inference.d.ts.map +0 -1
  175. package/dist/src/tasks/unconditional-image-generation/data.d.ts +0 -4
  176. package/dist/src/tasks/unconditional-image-generation/data.d.ts.map +0 -1
  177. package/dist/src/tasks/video-classification/data.d.ts +0 -4
  178. package/dist/src/tasks/video-classification/data.d.ts.map +0 -1
  179. package/dist/src/tasks/video-classification/inference.d.ts +0 -60
  180. package/dist/src/tasks/video-classification/inference.d.ts.map +0 -1
  181. package/dist/src/tasks/video-text-to-text/data.d.ts +0 -4
  182. package/dist/src/tasks/video-text-to-text/data.d.ts.map +0 -1
  183. package/dist/src/tasks/visual-question-answering/data.d.ts +0 -4
  184. package/dist/src/tasks/visual-question-answering/data.d.ts.map +0 -1
  185. package/dist/src/tasks/visual-question-answering/inference.d.ts +0 -63
  186. package/dist/src/tasks/visual-question-answering/inference.d.ts.map +0 -1
  187. package/dist/src/tasks/zero-shot-classification/data.d.ts +0 -4
  188. package/dist/src/tasks/zero-shot-classification/data.d.ts.map +0 -1
  189. package/dist/src/tasks/zero-shot-classification/inference.d.ts +0 -68
  190. package/dist/src/tasks/zero-shot-classification/inference.d.ts.map +0 -1
  191. package/dist/src/tasks/zero-shot-image-classification/data.d.ts +0 -4
  192. package/dist/src/tasks/zero-shot-image-classification/data.d.ts.map +0 -1
  193. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts +0 -62
  194. package/dist/src/tasks/zero-shot-image-classification/inference.d.ts.map +0 -1
  195. package/dist/src/tasks/zero-shot-object-detection/data.d.ts +0 -4
  196. package/dist/src/tasks/zero-shot-object-detection/data.d.ts.map +0 -1
  197. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts +0 -67
  198. package/dist/src/tasks/zero-shot-object-detection/inference.d.ts.map +0 -1
  199. package/dist/src/tokenizer-data.d.ts +0 -26
  200. package/dist/src/tokenizer-data.d.ts.map +0 -1
  201. package/dist/src/widget-example.d.ts +0 -83
  202. package/dist/src/widget-example.d.ts.map +0 -1
@@ -1,478 +0,0 @@
1
- /**
2
- * Biden AI Executive Order
3
- * https://www.whitehouse.gov/briefing-room/presidential-actions/2023/10/30/executive-order-on-the-safe-secure-and-trustworthy-development-and-use-of-artificial-intelligence/
4
- */
5
- export declare const TFLOPS_THRESHOLD_WHITE_HOUSE_MODEL_TRAINING_TOTAL: number;
6
- export declare const TFLOPS_THRESHOLD_WHITE_HOUSE_MODEL_TRAINING_TOTAL_BIOLOGY: number;
7
- export declare const TFLOPS_THRESHOLD_WHITE_HOUSE_CLUSTER: number;
8
- /**
9
- * EU AI Act
10
- * https://ec.europa.eu/commission/presscorner/detail/en/qanda_21_1683
11
- */
12
- export declare const TFLOPS_THRESHOLD_EU_AI_ACT_MODEL_TRAINING_TOTAL: number;
13
- export interface HardwareSpec {
14
- /**
15
- * Approximate value, in FP16 whenever possible.
16
- * This is only approximate/theoretical and shouldn't be taken too seriously.
17
- * Currently the CPU values are from cpu-monkey.com
18
- * while the GPU values are from techpowerup.com
19
- *
20
- * Note to reviewers: I got fed up with data entry,
21
- * and HuggingChat running Llama3 with Web search was failing a bit,
22
- * so some of those values might be slightly inaccurate. Forgive me and please feel free to improve.
23
- */
24
- tflops: number;
25
- /**
26
- * If an array is specified, options of memory size (can be VRAM, unified RAM)
27
- * e.g. an A100 exists in 40 or 80 GB.
28
- */
29
- memory?: number[];
30
- }
31
- export declare const DEFAULT_MEMORY_OPTIONS: number[];
32
- export declare const SKUS: {
33
- GPU: {
34
- NVIDIA: {
35
- H100: {
36
- tflops: number;
37
- memory: number[];
38
- };
39
- L40: {
40
- tflops: number;
41
- memory: number[];
42
- };
43
- "RTX 6000 Ada": {
44
- tflops: number;
45
- memory: number[];
46
- };
47
- "RTX 5880 Ada": {
48
- tflops: number;
49
- memory: number[];
50
- };
51
- "RTX 5000 Ada": {
52
- tflops: number;
53
- memory: number[];
54
- };
55
- "RTX 4500 Ada": {
56
- tflops: number;
57
- memory: number[];
58
- };
59
- "RTX 4000 Ada": {
60
- tflops: number;
61
- memory: number[];
62
- };
63
- "RTX 4000 SFF Ada": {
64
- tflops: number;
65
- memory: number[];
66
- };
67
- "RTX 2000 Ada": {
68
- tflops: number;
69
- memory: number[];
70
- };
71
- "RTX A4000": {
72
- tflops: number;
73
- memory: number[];
74
- };
75
- A100: {
76
- tflops: number;
77
- memory: number[];
78
- };
79
- A40: {
80
- tflops: number;
81
- memory: number[];
82
- };
83
- A10: {
84
- tflops: number;
85
- memory: number[];
86
- };
87
- A2: {
88
- tflops: number;
89
- memory: number[];
90
- };
91
- "RTX 4090": {
92
- tflops: number;
93
- memory: number[];
94
- };
95
- "RTX 4090D": {
96
- tflops: number;
97
- memory: number[];
98
- };
99
- "RTX 4080 SUPER": {
100
- tflops: number;
101
- memory: number[];
102
- };
103
- "RTX 4080": {
104
- tflops: number;
105
- memory: number[];
106
- };
107
- "RTX 4070": {
108
- tflops: number;
109
- memory: number[];
110
- };
111
- "RTX 4070 Ti": {
112
- tflops: number;
113
- memory: number[];
114
- };
115
- "RTX 4070 Super": {
116
- tflops: number;
117
- memory: number[];
118
- };
119
- "RTX 4070 Ti Super": {
120
- tflops: number;
121
- memory: number[];
122
- };
123
- "RTX 4060": {
124
- tflops: number;
125
- memory: number[];
126
- };
127
- "RTX 4060 Ti": {
128
- tflops: number;
129
- memory: number[];
130
- };
131
- "RTX 3090": {
132
- tflops: number;
133
- memory: number[];
134
- };
135
- "RTX 3090 Ti": {
136
- tflops: number;
137
- memory: number[];
138
- };
139
- "RTX 3080": {
140
- tflops: number;
141
- memory: number[];
142
- };
143
- "RTX 3080 Ti": {
144
- tflops: number;
145
- memory: number[];
146
- };
147
- "RTX 3070": {
148
- tflops: number;
149
- memory: number[];
150
- };
151
- "RTX 3070 Ti": {
152
- tflops: number;
153
- memory: number[];
154
- };
155
- "RTX 3070 Ti Laptop": {
156
- tflops: number;
157
- memory: number[];
158
- };
159
- "RTX 3060 Ti": {
160
- tflops: number;
161
- memory: number[];
162
- };
163
- "RTX 3060": {
164
- tflops: number;
165
- memory: number[];
166
- };
167
- "RTX 2080 Ti": {
168
- tflops: number;
169
- memory: number[];
170
- };
171
- "RTX 2080": {
172
- tflops: number;
173
- memory: number[];
174
- };
175
- "RTX 2070": {
176
- tflops: number;
177
- memory: number[];
178
- };
179
- "RTX 2070 SUPER Mobile": {
180
- tflops: number;
181
- memory: number[];
182
- };
183
- "RTX 2070 SUPER": {
184
- tflops: number;
185
- memory: number[];
186
- };
187
- "RTX 3050 Mobile": {
188
- tflops: number;
189
- memory: number[];
190
- };
191
- "RTX 2060 Mobile": {
192
- tflops: number;
193
- memory: number[];
194
- };
195
- "GTX 1080 Ti": {
196
- tflops: number;
197
- memory: number[];
198
- };
199
- "GTX 1070 Ti": {
200
- tflops: number;
201
- memory: number[];
202
- };
203
- "RTX Titan": {
204
- tflops: number;
205
- memory: number[];
206
- };
207
- "GTX 1660": {
208
- tflops: number;
209
- memory: number[];
210
- };
211
- "GTX 1650 Mobile": {
212
- tflops: number;
213
- memory: number[];
214
- };
215
- T4: {
216
- tflops: number;
217
- memory: number[];
218
- };
219
- V100: {
220
- tflops: number;
221
- memory: number[];
222
- };
223
- "Quadro P6000": {
224
- tflops: number;
225
- memory: number[];
226
- };
227
- P40: {
228
- tflops: number;
229
- memory: number[];
230
- };
231
- };
232
- AMD: {
233
- MI300: {
234
- tflops: number;
235
- memory: number[];
236
- };
237
- MI250: {
238
- tflops: number;
239
- memory: number[];
240
- };
241
- MI210: {
242
- tflops: number;
243
- memory: number[];
244
- };
245
- MI100: {
246
- tflops: number;
247
- memory: number[];
248
- };
249
- MI60: {
250
- tflops: number;
251
- memory: number[];
252
- };
253
- MI50: {
254
- tflops: number;
255
- memory: number[];
256
- };
257
- "RX 7900 XTX": {
258
- tflops: number;
259
- memory: number[];
260
- };
261
- "RX 7900 XT": {
262
- tflops: number;
263
- memory: number[];
264
- };
265
- "RX 7900 GRE": {
266
- tflops: number;
267
- memory: number[];
268
- };
269
- "RX 7800 XT": {
270
- tflops: number;
271
- memory: number[];
272
- };
273
- "RX 7700 XT": {
274
- tflops: number;
275
- memory: number[];
276
- };
277
- "RX 7600 XT": {
278
- tflops: number;
279
- memory: number[];
280
- };
281
- "RX 6950 XT": {
282
- tflops: number;
283
- memory: number[];
284
- };
285
- "RX 6800": {
286
- tflops: number;
287
- memory: number[];
288
- };
289
- "RX 6700 XT": {
290
- tflops: number;
291
- memory: number[];
292
- };
293
- "RX 6700": {
294
- tflops: number;
295
- memory: number[];
296
- };
297
- "Radeon Pro VII": {
298
- tflops: number;
299
- memory: number[];
300
- };
301
- };
302
- QUALCOMM: {
303
- "Snapdragon X Elite X1E-00-1DE": {
304
- tflops: number;
305
- };
306
- "Snapdragon X Elite X1E-84-100": {
307
- tflops: number;
308
- };
309
- "Snapdragon X Elite X1E-80-100": {
310
- tflops: number;
311
- };
312
- "Snapdragon X Elite X1E-78-100": {
313
- tflops: number;
314
- };
315
- "Snapdragon X Plus X1P-64-100": {
316
- tflops: number;
317
- };
318
- };
319
- };
320
- CPU: {
321
- Intel: {
322
- "Xeon 4th Generation (Sapphire Rapids)": {
323
- tflops: number;
324
- };
325
- "Xeon 3th Generation (Ice Lake)": {
326
- tflops: number;
327
- };
328
- "Xeon 2th Generation (Cascade Lake)": {
329
- tflops: number;
330
- };
331
- "Intel Core 13th Generation (i9)": {
332
- tflops: number;
333
- };
334
- "Intel Core 13th Generation (i7)": {
335
- tflops: number;
336
- };
337
- "Intel Core 13th Generation (i5)": {
338
- tflops: number;
339
- };
340
- "Intel Core 13th Generation (i3)": {
341
- tflops: number;
342
- };
343
- "Intel Core 12th Generation (i9)": {
344
- tflops: number;
345
- };
346
- "Intel Core 12th Generation (i7)": {
347
- tflops: number;
348
- };
349
- "Intel Core 12th Generation (i5)": {
350
- tflops: number;
351
- };
352
- "Intel Core 12th Generation (i3)": {
353
- tflops: number;
354
- };
355
- "Intel Core 11th Generation (i9)": {
356
- tflops: number;
357
- };
358
- "Intel Core 11th Generation (i7)": {
359
- tflops: number;
360
- };
361
- "Intel Core 11th Generation (i5)": {
362
- tflops: number;
363
- };
364
- "Intel Core 11th Generation (i3)": {
365
- tflops: number;
366
- };
367
- "Intel Core 10th Generation (i9)": {
368
- tflops: number;
369
- };
370
- "Intel Core 10th Generation (i7)": {
371
- tflops: number;
372
- };
373
- "Intel Core 10th Generation (i5)": {
374
- tflops: number;
375
- };
376
- "Intel Core 10th Generation (i3)": {
377
- tflops: number;
378
- };
379
- };
380
- AMD: {
381
- "EPYC 4th Generation (Genoa)": {
382
- tflops: number;
383
- };
384
- "EPYC 3th Generation (Milan)": {
385
- tflops: number;
386
- };
387
- "EPYC 2th Generation (Rome)": {
388
- tflops: number;
389
- };
390
- "EPYC 1st Generation (Naples)": {
391
- tflops: number;
392
- };
393
- "Ryzen Zen4 7000 (Ryzen 9)": {
394
- tflops: number;
395
- };
396
- "Ryzen Zen4 7000 (Ryzen 7)": {
397
- tflops: number;
398
- };
399
- "Ryzen Zen4 7000 (Ryzen 5)": {
400
- tflops: number;
401
- };
402
- "Ryzen Zen3 5000 (Ryzen 9)": {
403
- tflops: number;
404
- };
405
- "Ryzen Zen3 5000 (Ryzen 7)": {
406
- tflops: number;
407
- };
408
- "Ryzen Zen3 5000 (Ryzen 5)": {
409
- tflops: number;
410
- };
411
- "Ryzen Zen 2 3000 (Threadripper)": {
412
- tflops: number;
413
- };
414
- "Ryzen Zen 2 3000 (Ryzen 9)": {
415
- tflops: number;
416
- };
417
- "Ryzen Zen 2 3000 (Ryzen 7)": {
418
- tflops: number;
419
- };
420
- "Ryzen Zen 2 3000 (Ryzen 5)": {
421
- tflops: number;
422
- };
423
- "Ryzen Zen 2 3000 (Ryzen 3)": {
424
- tflops: number;
425
- };
426
- };
427
- };
428
- "Apple Silicon": {
429
- "-": {
430
- "Apple M1": {
431
- tflops: number;
432
- memory: number[];
433
- };
434
- "Apple M1 Pro": {
435
- tflops: number;
436
- memory: number[];
437
- };
438
- "Apple M1 Max": {
439
- tflops: number;
440
- memory: number[];
441
- };
442
- "Apple M1 Ultra": {
443
- tflops: number;
444
- memory: number[];
445
- };
446
- "Apple M2": {
447
- tflops: number;
448
- memory: number[];
449
- };
450
- "Apple M2 Pro": {
451
- tflops: number;
452
- memory: number[];
453
- };
454
- "Apple M2 Max": {
455
- tflops: number;
456
- memory: number[];
457
- };
458
- "Apple M2 Ultra": {
459
- tflops: number;
460
- memory: number[];
461
- };
462
- "Apple M3": {
463
- tflops: number;
464
- memory: number[];
465
- };
466
- "Apple M3 Pro": {
467
- tflops: number;
468
- memory: number[];
469
- };
470
- "Apple M3 Max": {
471
- tflops: number;
472
- memory: number[];
473
- };
474
- };
475
- };
476
- };
477
- export type SkuType = keyof typeof SKUS;
478
- //# sourceMappingURL=hardware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hardware.d.ts","sourceRoot":"","sources":["../../src/hardware.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iDAAiD,QAAW,CAAC;AAC1E,eAAO,MAAM,yDAAyD,QAAW,CAAC;AAClF,eAAO,MAAM,oCAAoC,QAAU,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,+CAA+C,QAAW,CAAC;AAExE,MAAM,WAAW,YAAY;IAC5B;;;;;;;;;OASG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,UAAqD,CAAC;AAEzF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4buD,CAAC;AAEzE,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,IAAI,CAAC"}
@@ -1,21 +0,0 @@
1
- export { LIBRARY_TASK_MAPPING } from "./library-to-tasks";
2
- export { MAPPING_DEFAULT_WIDGET } from "./default-widget-inputs";
3
- export type { TaskData, TaskDemo, TaskDemoEntry, ExampleRepo } from "./tasks";
4
- export * from "./tasks";
5
- export { PIPELINE_DATA, PIPELINE_TYPES, type WidgetType, type PipelineType, type PipelineData, type Modality, MODALITIES, MODALITY_LABELS, SUBTASK_TYPES, PIPELINE_TYPES_SET, } from "./pipelines";
6
- export { ALL_DISPLAY_MODEL_LIBRARY_KEYS, ALL_MODEL_LIBRARY_KEYS, MODEL_LIBRARIES_UI_ELEMENTS } from "./model-libraries";
7
- export type { LibraryUiElement, ModelLibraryKey } from "./model-libraries";
8
- export type { ModelData, TransformersInfo } from "./model-data";
9
- export type { AddedToken, SpecialTokensMap, TokenizerConfig } from "./tokenizer-data";
10
- export type { WidgetExample, WidgetExampleAttribute, WidgetExampleAssetAndPromptInput, WidgetExampleAssetAndTextInput, WidgetExampleAssetAndZeroShotInput, WidgetExampleAssetInput, WidgetExampleChatInput, WidgetExampleSentenceSimilarityInput, WidgetExampleStructuredDataInput, WidgetExampleTableDataInput, WidgetExampleTextAndContextInput, WidgetExampleTextAndTableInput, WidgetExampleTextInput, WidgetExampleZeroShotTextInput, WidgetExampleOutput, WidgetExampleOutputUrl, WidgetExampleOutputLabels, WidgetExampleOutputAnswerScore, WidgetExampleOutputText, } from "./widget-example";
11
- export { SPECIAL_TOKENS_ATTRIBUTES } from "./tokenizer-data";
12
- import * as snippets from "./snippets";
13
- export * from "./gguf";
14
- export { snippets };
15
- export { SKUS, DEFAULT_MEMORY_OPTIONS } from "./hardware";
16
- export type { HardwareSpec, SkuType } from "./hardware";
17
- export { LOCAL_APPS } from "./local-apps";
18
- export type { LocalApp, LocalAppKey, LocalAppSnippet } from "./local-apps";
19
- export { DATASET_LIBRARIES_UI_ELEMENTS } from "./dataset-libraries";
20
- export type { DatasetLibraryUiElement, DatasetLibraryKey } from "./dataset-libraries";
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC9E,cAAc,SAAS,CAAC;AACxB,OAAO,EACN,aAAa,EACb,cAAc,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,UAAU,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AACxH,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC3E,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,YAAY,EACX,aAAa,EACb,sBAAsB,EACtB,gCAAgC,EAChC,8BAA8B,EAC9B,kCAAkC,EAClC,uBAAuB,EACvB,sBAAsB,EACtB,oCAAoC,EACpC,gCAAgC,EAChC,2BAA2B,EAC3B,gCAAgC,EAChC,8BAA8B,EAC9B,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,8BAA8B,EAC9B,uBAAuB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC1D,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { ModelLibraryKey } from "./model-libraries";
2
- import type { PipelineType } from "./pipelines";
3
- /**
4
- * Mapping from library name to its supported tasks.
5
- * Inference API (serverless) should be disabled for all other (library, task) pairs beyond this mapping.
6
- * This mapping is partially generated automatically by "python-api-export-tasks" action in
7
- * huggingface/api-inference-community repo upon merge. For transformers, the mapping is manually
8
- * based on api-inference (hf_types.rs).
9
- */
10
- export declare const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[]>>;
11
- //# sourceMappingURL=library-to-tasks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"library-to-tasks.d.ts","sourceRoot":"","sources":["../../src/library-to-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,EAAE,CAAC,CAiEjF,CAAC"}