@huggingface/tasks 0.13.0-test2 → 0.13.0-test4

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 (378) hide show
  1. package/dist/dataset-libraries.d.cts +87 -0
  2. package/dist/dataset-libraries.d.cts.map +1 -0
  3. package/dist/dataset-libraries.d.ts +87 -0
  4. package/dist/dataset-libraries.d.ts.map +1 -0
  5. package/dist/default-widget-inputs.d.cts +6 -0
  6. package/dist/default-widget-inputs.d.cts.map +1 -0
  7. package/dist/default-widget-inputs.d.ts +6 -0
  8. package/dist/default-widget-inputs.d.ts.map +1 -0
  9. package/dist/gguf.d.cts +35 -0
  10. package/dist/gguf.d.cts.map +1 -0
  11. package/dist/gguf.d.ts +35 -0
  12. package/dist/gguf.d.ts.map +1 -0
  13. package/dist/hardware.d.cts +478 -0
  14. package/dist/hardware.d.cts.map +1 -0
  15. package/dist/hardware.d.ts +478 -0
  16. package/dist/hardware.d.ts.map +1 -0
  17. package/dist/index.d.cts +21 -4778
  18. package/dist/index.d.cts.map +1 -0
  19. package/dist/index.d.ts +21 -4778
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/library-to-tasks.d.cts +11 -0
  22. package/dist/library-to-tasks.d.cts.map +1 -0
  23. package/dist/library-to-tasks.d.ts +11 -0
  24. package/dist/library-to-tasks.d.ts.map +1 -0
  25. package/dist/local-apps.d.cts +195 -0
  26. package/dist/local-apps.d.cts.map +1 -0
  27. package/dist/local-apps.d.ts +195 -0
  28. package/dist/local-apps.d.ts.map +1 -0
  29. package/dist/model-data.d.cts +146 -0
  30. package/dist/model-data.d.cts.map +1 -0
  31. package/dist/model-data.d.ts +146 -0
  32. package/dist/model-data.d.ts.map +1 -0
  33. package/dist/model-libraries-downloads.d.cts +18 -0
  34. package/dist/model-libraries-downloads.d.cts.map +1 -0
  35. package/dist/model-libraries-downloads.d.ts +18 -0
  36. package/dist/model-libraries-downloads.d.ts.map +1 -0
  37. package/dist/model-libraries-snippets.d.cts +72 -0
  38. package/dist/model-libraries-snippets.d.cts.map +1 -0
  39. package/dist/model-libraries-snippets.d.ts +72 -0
  40. package/dist/model-libraries-snippets.d.ts.map +1 -0
  41. package/dist/model-libraries.d.cts +804 -0
  42. package/dist/model-libraries.d.cts.map +1 -0
  43. package/dist/model-libraries.d.ts +804 -0
  44. package/dist/model-libraries.d.ts.map +1 -0
  45. package/dist/pipelines.d.cts +425 -0
  46. package/dist/pipelines.d.cts.map +1 -0
  47. package/dist/pipelines.d.ts +425 -0
  48. package/dist/pipelines.d.ts.map +1 -0
  49. package/dist/snippets/common.d.cts +14 -0
  50. package/dist/snippets/common.d.cts.map +1 -0
  51. package/dist/snippets/common.d.ts +14 -0
  52. package/dist/snippets/common.d.ts.map +1 -0
  53. package/dist/snippets/curl.d.cts +17 -0
  54. package/dist/snippets/curl.d.cts.map +1 -0
  55. package/dist/snippets/curl.d.ts +17 -0
  56. package/dist/snippets/curl.d.ts.map +1 -0
  57. package/dist/snippets/curl.spec.d.cts +2 -0
  58. package/dist/snippets/curl.spec.d.cts.map +1 -0
  59. package/dist/snippets/curl.spec.d.ts +2 -0
  60. package/dist/snippets/curl.spec.d.ts.map +1 -0
  61. package/dist/snippets/index.d.cts +6 -0
  62. package/dist/snippets/index.d.cts.map +1 -0
  63. package/dist/snippets/index.d.ts +6 -0
  64. package/dist/snippets/index.d.ts.map +1 -0
  65. package/dist/snippets/inputs.d.cts +4 -0
  66. package/dist/snippets/inputs.d.cts.map +1 -0
  67. package/dist/snippets/inputs.d.ts +4 -0
  68. package/dist/snippets/inputs.d.ts.map +1 -0
  69. package/dist/snippets/js.d.cts +19 -0
  70. package/dist/snippets/js.d.cts.map +1 -0
  71. package/dist/snippets/js.d.ts +19 -0
  72. package/dist/snippets/js.d.ts.map +1 -0
  73. package/dist/snippets/js.spec.d.cts +2 -0
  74. package/dist/snippets/js.spec.d.cts.map +1 -0
  75. package/dist/snippets/js.spec.d.ts +2 -0
  76. package/dist/snippets/js.spec.d.ts.map +1 -0
  77. package/dist/snippets/python.d.cts +22 -0
  78. package/dist/snippets/python.d.cts.map +1 -0
  79. package/dist/snippets/python.d.ts +22 -0
  80. package/dist/snippets/python.d.ts.map +1 -0
  81. package/dist/snippets/python.spec.d.cts +2 -0
  82. package/dist/snippets/python.spec.d.cts.map +1 -0
  83. package/dist/snippets/python.spec.d.ts +2 -0
  84. package/dist/snippets/python.spec.d.ts.map +1 -0
  85. package/dist/snippets/types.d.cts +12 -0
  86. package/dist/snippets/types.d.cts.map +1 -0
  87. package/dist/snippets/types.d.ts +12 -0
  88. package/dist/snippets/types.d.ts.map +1 -0
  89. package/dist/tasks/audio-classification/data.d.cts +4 -0
  90. package/dist/tasks/audio-classification/data.d.cts.map +1 -0
  91. package/dist/tasks/audio-classification/data.d.ts +4 -0
  92. package/dist/tasks/audio-classification/data.d.ts.map +1 -0
  93. package/dist/tasks/audio-classification/inference.d.cts +53 -0
  94. package/dist/tasks/audio-classification/inference.d.cts.map +1 -0
  95. package/dist/tasks/audio-classification/inference.d.ts +53 -0
  96. package/dist/tasks/audio-classification/inference.d.ts.map +1 -0
  97. package/dist/tasks/audio-to-audio/data.d.cts +4 -0
  98. package/dist/tasks/audio-to-audio/data.d.cts.map +1 -0
  99. package/dist/tasks/audio-to-audio/data.d.ts +4 -0
  100. package/dist/tasks/audio-to-audio/data.d.ts.map +1 -0
  101. package/dist/tasks/automatic-speech-recognition/data.d.cts +4 -0
  102. package/dist/tasks/automatic-speech-recognition/data.d.cts.map +1 -0
  103. package/dist/tasks/automatic-speech-recognition/data.d.ts +4 -0
  104. package/dist/tasks/automatic-speech-recognition/data.d.ts.map +1 -0
  105. package/dist/tasks/automatic-speech-recognition/inference.d.cts +155 -0
  106. package/dist/tasks/automatic-speech-recognition/inference.d.cts.map +1 -0
  107. package/dist/tasks/automatic-speech-recognition/inference.d.ts +155 -0
  108. package/dist/tasks/automatic-speech-recognition/inference.d.ts.map +1 -0
  109. package/dist/tasks/chat-completion/inference.d.cts +291 -0
  110. package/dist/tasks/chat-completion/inference.d.cts.map +1 -0
  111. package/dist/tasks/chat-completion/inference.d.ts +291 -0
  112. package/dist/tasks/chat-completion/inference.d.ts.map +1 -0
  113. package/dist/tasks/depth-estimation/data.d.cts +4 -0
  114. package/dist/tasks/depth-estimation/data.d.cts.map +1 -0
  115. package/dist/tasks/depth-estimation/data.d.ts +4 -0
  116. package/dist/tasks/depth-estimation/data.d.ts.map +1 -0
  117. package/dist/tasks/depth-estimation/inference.d.cts +36 -0
  118. package/dist/tasks/depth-estimation/inference.d.cts.map +1 -0
  119. package/dist/tasks/depth-estimation/inference.d.ts +36 -0
  120. package/dist/tasks/depth-estimation/inference.d.ts.map +1 -0
  121. package/dist/tasks/document-question-answering/data.d.cts +4 -0
  122. package/dist/tasks/document-question-answering/data.d.cts.map +1 -0
  123. package/dist/tasks/document-question-answering/data.d.ts +4 -0
  124. package/dist/tasks/document-question-answering/data.d.ts.map +1 -0
  125. package/dist/tasks/document-question-answering/inference.d.cts +111 -0
  126. package/dist/tasks/document-question-answering/inference.d.cts.map +1 -0
  127. package/dist/tasks/document-question-answering/inference.d.ts +111 -0
  128. package/dist/tasks/document-question-answering/inference.d.ts.map +1 -0
  129. package/dist/tasks/feature-extraction/data.d.cts +4 -0
  130. package/dist/tasks/feature-extraction/data.d.cts.map +1 -0
  131. package/dist/tasks/feature-extraction/data.d.ts +4 -0
  132. package/dist/tasks/feature-extraction/data.d.ts.map +1 -0
  133. package/dist/tasks/feature-extraction/inference.d.cts +38 -0
  134. package/dist/tasks/feature-extraction/inference.d.cts.map +1 -0
  135. package/dist/tasks/feature-extraction/inference.d.ts +38 -0
  136. package/dist/tasks/feature-extraction/inference.d.ts.map +1 -0
  137. package/dist/tasks/fill-mask/data.d.cts +4 -0
  138. package/dist/tasks/fill-mask/data.d.cts.map +1 -0
  139. package/dist/tasks/fill-mask/data.d.ts +4 -0
  140. package/dist/tasks/fill-mask/data.d.ts.map +1 -0
  141. package/dist/tasks/fill-mask/inference.d.cts +63 -0
  142. package/dist/tasks/fill-mask/inference.d.cts.map +1 -0
  143. package/dist/tasks/fill-mask/inference.d.ts +63 -0
  144. package/dist/tasks/fill-mask/inference.d.ts.map +1 -0
  145. package/dist/tasks/image-classification/data.d.cts +4 -0
  146. package/dist/tasks/image-classification/data.d.cts.map +1 -0
  147. package/dist/tasks/image-classification/data.d.ts +4 -0
  148. package/dist/tasks/image-classification/data.d.ts.map +1 -0
  149. package/dist/tasks/image-classification/inference.d.cts +53 -0
  150. package/dist/tasks/image-classification/inference.d.cts.map +1 -0
  151. package/dist/tasks/image-classification/inference.d.ts +53 -0
  152. package/dist/tasks/image-classification/inference.d.ts.map +1 -0
  153. package/dist/tasks/image-feature-extraction/data.d.cts +4 -0
  154. package/dist/tasks/image-feature-extraction/data.d.cts.map +1 -0
  155. package/dist/tasks/image-feature-extraction/data.d.ts +4 -0
  156. package/dist/tasks/image-feature-extraction/data.d.ts.map +1 -0
  157. package/dist/tasks/image-segmentation/data.d.cts +4 -0
  158. package/dist/tasks/image-segmentation/data.d.cts.map +1 -0
  159. package/dist/tasks/image-segmentation/data.d.ts +4 -0
  160. package/dist/tasks/image-segmentation/data.d.ts.map +1 -0
  161. package/dist/tasks/image-segmentation/inference.d.cts +70 -0
  162. package/dist/tasks/image-segmentation/inference.d.cts.map +1 -0
  163. package/dist/tasks/image-segmentation/inference.d.ts +70 -0
  164. package/dist/tasks/image-segmentation/inference.d.ts.map +1 -0
  165. package/dist/tasks/image-text-to-text/data.d.cts +4 -0
  166. package/dist/tasks/image-text-to-text/data.d.cts.map +1 -0
  167. package/dist/tasks/image-text-to-text/data.d.ts +4 -0
  168. package/dist/tasks/image-text-to-text/data.d.ts.map +1 -0
  169. package/dist/tasks/image-to-3d/data.d.cts +4 -0
  170. package/dist/tasks/image-to-3d/data.d.cts.map +1 -0
  171. package/dist/tasks/image-to-3d/data.d.ts +4 -0
  172. package/dist/tasks/image-to-3d/data.d.ts.map +1 -0
  173. package/dist/tasks/image-to-image/data.d.cts +4 -0
  174. package/dist/tasks/image-to-image/data.d.cts.map +1 -0
  175. package/dist/tasks/image-to-image/data.d.ts +4 -0
  176. package/dist/tasks/image-to-image/data.d.ts.map +1 -0
  177. package/dist/tasks/image-to-image/inference.d.cts +65 -0
  178. package/dist/tasks/image-to-image/inference.d.cts.map +1 -0
  179. package/dist/tasks/image-to-image/inference.d.ts +65 -0
  180. package/dist/tasks/image-to-image/inference.d.ts.map +1 -0
  181. package/dist/tasks/image-to-text/data.d.cts +4 -0
  182. package/dist/tasks/image-to-text/data.d.cts.map +1 -0
  183. package/dist/tasks/image-to-text/data.d.ts +4 -0
  184. package/dist/tasks/image-to-text/data.d.ts.map +1 -0
  185. package/dist/tasks/image-to-text/inference.d.cts +139 -0
  186. package/dist/tasks/image-to-text/inference.d.cts.map +1 -0
  187. package/dist/tasks/image-to-text/inference.d.ts +139 -0
  188. package/dist/tasks/image-to-text/inference.d.ts.map +1 -0
  189. package/dist/tasks/index.d.cts +87 -0
  190. package/dist/tasks/index.d.cts.map +1 -0
  191. package/dist/tasks/index.d.ts +87 -0
  192. package/dist/tasks/index.d.ts.map +1 -0
  193. package/dist/tasks/keypoint-detection/data.d.cts +4 -0
  194. package/dist/tasks/keypoint-detection/data.d.cts.map +1 -0
  195. package/dist/tasks/keypoint-detection/data.d.ts +4 -0
  196. package/dist/tasks/keypoint-detection/data.d.ts.map +1 -0
  197. package/dist/tasks/mask-generation/data.d.cts +4 -0
  198. package/dist/tasks/mask-generation/data.d.cts.map +1 -0
  199. package/dist/tasks/mask-generation/data.d.ts +4 -0
  200. package/dist/tasks/mask-generation/data.d.ts.map +1 -0
  201. package/dist/tasks/object-detection/data.d.cts +4 -0
  202. package/dist/tasks/object-detection/data.d.cts.map +1 -0
  203. package/dist/tasks/object-detection/data.d.ts +4 -0
  204. package/dist/tasks/object-detection/data.d.ts.map +1 -0
  205. package/dist/tasks/object-detection/inference.d.cts +76 -0
  206. package/dist/tasks/object-detection/inference.d.cts.map +1 -0
  207. package/dist/tasks/object-detection/inference.d.ts +76 -0
  208. package/dist/tasks/object-detection/inference.d.ts.map +1 -0
  209. package/dist/tasks/placeholder/data.d.cts +4 -0
  210. package/dist/tasks/placeholder/data.d.cts.map +1 -0
  211. package/dist/tasks/placeholder/data.d.ts +4 -0
  212. package/dist/tasks/placeholder/data.d.ts.map +1 -0
  213. package/dist/tasks/question-answering/data.d.cts +4 -0
  214. package/dist/tasks/question-answering/data.d.cts.map +1 -0
  215. package/dist/tasks/question-answering/data.d.ts +4 -0
  216. package/dist/tasks/question-answering/data.d.ts.map +1 -0
  217. package/dist/tasks/question-answering/inference.d.cts +100 -0
  218. package/dist/tasks/question-answering/inference.d.cts.map +1 -0
  219. package/dist/tasks/question-answering/inference.d.ts +100 -0
  220. package/dist/tasks/question-answering/inference.d.ts.map +1 -0
  221. package/dist/tasks/reinforcement-learning/data.d.cts +4 -0
  222. package/dist/tasks/reinforcement-learning/data.d.cts.map +1 -0
  223. package/dist/tasks/reinforcement-learning/data.d.ts +4 -0
  224. package/dist/tasks/reinforcement-learning/data.d.ts.map +1 -0
  225. package/dist/tasks/sentence-similarity/data.d.cts +4 -0
  226. package/dist/tasks/sentence-similarity/data.d.cts.map +1 -0
  227. package/dist/tasks/sentence-similarity/data.d.ts +4 -0
  228. package/dist/tasks/sentence-similarity/data.d.ts.map +1 -0
  229. package/dist/tasks/sentence-similarity/inference.d.cts +32 -0
  230. package/dist/tasks/sentence-similarity/inference.d.cts.map +1 -0
  231. package/dist/tasks/sentence-similarity/inference.d.ts +32 -0
  232. package/dist/tasks/sentence-similarity/inference.d.ts.map +1 -0
  233. package/dist/tasks/summarization/data.d.cts +4 -0
  234. package/dist/tasks/summarization/data.d.cts.map +1 -0
  235. package/dist/tasks/summarization/data.d.ts +4 -0
  236. package/dist/tasks/summarization/data.d.ts.map +1 -0
  237. package/dist/tasks/summarization/inference.d.cts +56 -0
  238. package/dist/tasks/summarization/inference.d.cts.map +1 -0
  239. package/dist/tasks/summarization/inference.d.ts +56 -0
  240. package/dist/tasks/summarization/inference.d.ts.map +1 -0
  241. package/dist/tasks/table-question-answering/data.d.cts +4 -0
  242. package/dist/tasks/table-question-answering/data.d.cts.map +1 -0
  243. package/dist/tasks/table-question-answering/data.d.ts +4 -0
  244. package/dist/tasks/table-question-answering/data.d.ts.map +1 -0
  245. package/dist/tasks/table-question-answering/inference.d.cts +62 -0
  246. package/dist/tasks/table-question-answering/inference.d.cts.map +1 -0
  247. package/dist/tasks/table-question-answering/inference.d.ts +62 -0
  248. package/dist/tasks/table-question-answering/inference.d.ts.map +1 -0
  249. package/dist/tasks/tabular-classification/data.d.cts +4 -0
  250. package/dist/tasks/tabular-classification/data.d.cts.map +1 -0
  251. package/dist/tasks/tabular-classification/data.d.ts +4 -0
  252. package/dist/tasks/tabular-classification/data.d.ts.map +1 -0
  253. package/dist/tasks/tabular-regression/data.d.cts +4 -0
  254. package/dist/tasks/tabular-regression/data.d.cts.map +1 -0
  255. package/dist/tasks/tabular-regression/data.d.ts +4 -0
  256. package/dist/tasks/tabular-regression/data.d.ts.map +1 -0
  257. package/dist/tasks/text-classification/data.d.cts +4 -0
  258. package/dist/tasks/text-classification/data.d.cts.map +1 -0
  259. package/dist/tasks/text-classification/data.d.ts +4 -0
  260. package/dist/tasks/text-classification/data.d.ts.map +1 -0
  261. package/dist/tasks/text-classification/inference.d.cts +52 -0
  262. package/dist/tasks/text-classification/inference.d.cts.map +1 -0
  263. package/dist/tasks/text-classification/inference.d.ts +52 -0
  264. package/dist/tasks/text-classification/inference.d.ts.map +1 -0
  265. package/dist/tasks/text-generation/data.d.cts +4 -0
  266. package/dist/tasks/text-generation/data.d.cts.map +1 -0
  267. package/dist/tasks/text-generation/data.d.ts +4 -0
  268. package/dist/tasks/text-generation/data.d.ts.map +1 -0
  269. package/dist/tasks/text-generation/inference.d.cts +188 -0
  270. package/dist/tasks/text-generation/inference.d.cts.map +1 -0
  271. package/dist/tasks/text-generation/inference.d.ts +188 -0
  272. package/dist/tasks/text-generation/inference.d.ts.map +1 -0
  273. package/dist/tasks/text-to-3d/data.d.cts +4 -0
  274. package/dist/tasks/text-to-3d/data.d.cts.map +1 -0
  275. package/dist/tasks/text-to-3d/data.d.ts +4 -0
  276. package/dist/tasks/text-to-3d/data.d.ts.map +1 -0
  277. package/dist/tasks/text-to-audio/inference.d.cts +139 -0
  278. package/dist/tasks/text-to-audio/inference.d.cts.map +1 -0
  279. package/dist/tasks/text-to-audio/inference.d.ts +139 -0
  280. package/dist/tasks/text-to-audio/inference.d.ts.map +1 -0
  281. package/dist/tasks/text-to-image/data.d.cts +4 -0
  282. package/dist/tasks/text-to-image/data.d.cts.map +1 -0
  283. package/dist/tasks/text-to-image/data.d.ts +4 -0
  284. package/dist/tasks/text-to-image/data.d.ts.map +1 -0
  285. package/dist/tasks/text-to-image/inference.d.cts +72 -0
  286. package/dist/tasks/text-to-image/inference.d.cts.map +1 -0
  287. package/dist/tasks/text-to-image/inference.d.ts +72 -0
  288. package/dist/tasks/text-to-image/inference.d.ts.map +1 -0
  289. package/dist/tasks/text-to-speech/data.d.cts +4 -0
  290. package/dist/tasks/text-to-speech/data.d.cts.map +1 -0
  291. package/dist/tasks/text-to-speech/data.d.ts +4 -0
  292. package/dist/tasks/text-to-speech/data.d.ts.map +1 -0
  293. package/dist/tasks/text-to-speech/inference.d.cts +141 -0
  294. package/dist/tasks/text-to-speech/inference.d.cts.map +1 -0
  295. package/dist/tasks/text-to-speech/inference.d.ts +141 -0
  296. package/dist/tasks/text-to-speech/inference.d.ts.map +1 -0
  297. package/dist/tasks/text-to-video/data.d.cts +4 -0
  298. package/dist/tasks/text-to-video/data.d.cts.map +1 -0
  299. package/dist/tasks/text-to-video/data.d.ts +4 -0
  300. package/dist/tasks/text-to-video/data.d.ts.map +1 -0
  301. package/dist/tasks/text2text-generation/inference.d.cts +54 -0
  302. package/dist/tasks/text2text-generation/inference.d.cts.map +1 -0
  303. package/dist/tasks/text2text-generation/inference.d.ts +54 -0
  304. package/dist/tasks/text2text-generation/inference.d.ts.map +1 -0
  305. package/dist/tasks/token-classification/data.d.cts +4 -0
  306. package/dist/tasks/token-classification/data.d.cts.map +1 -0
  307. package/dist/tasks/token-classification/data.d.ts +4 -0
  308. package/dist/tasks/token-classification/data.d.ts.map +1 -0
  309. package/dist/tasks/token-classification/inference.d.cts +86 -0
  310. package/dist/tasks/token-classification/inference.d.cts.map +1 -0
  311. package/dist/tasks/token-classification/inference.d.ts +86 -0
  312. package/dist/tasks/token-classification/inference.d.ts.map +1 -0
  313. package/dist/tasks/translation/data.d.cts +4 -0
  314. package/dist/tasks/translation/data.d.cts.map +1 -0
  315. package/dist/tasks/translation/data.d.ts +4 -0
  316. package/dist/tasks/translation/data.d.ts.map +1 -0
  317. package/dist/tasks/translation/inference.d.cts +66 -0
  318. package/dist/tasks/translation/inference.d.cts.map +1 -0
  319. package/dist/tasks/translation/inference.d.ts +66 -0
  320. package/dist/tasks/translation/inference.d.ts.map +1 -0
  321. package/dist/tasks/unconditional-image-generation/data.d.cts +4 -0
  322. package/dist/tasks/unconditional-image-generation/data.d.cts.map +1 -0
  323. package/dist/tasks/unconditional-image-generation/data.d.ts +4 -0
  324. package/dist/tasks/unconditional-image-generation/data.d.ts.map +1 -0
  325. package/dist/tasks/video-classification/data.d.cts +4 -0
  326. package/dist/tasks/video-classification/data.d.cts.map +1 -0
  327. package/dist/tasks/video-classification/data.d.ts +4 -0
  328. package/dist/tasks/video-classification/data.d.ts.map +1 -0
  329. package/dist/tasks/video-classification/inference.d.cts +60 -0
  330. package/dist/tasks/video-classification/inference.d.cts.map +1 -0
  331. package/dist/tasks/video-classification/inference.d.ts +60 -0
  332. package/dist/tasks/video-classification/inference.d.ts.map +1 -0
  333. package/dist/tasks/video-text-to-text/data.d.cts +4 -0
  334. package/dist/tasks/video-text-to-text/data.d.cts.map +1 -0
  335. package/dist/tasks/video-text-to-text/data.d.ts +4 -0
  336. package/dist/tasks/video-text-to-text/data.d.ts.map +1 -0
  337. package/dist/tasks/visual-question-answering/data.d.cts +4 -0
  338. package/dist/tasks/visual-question-answering/data.d.cts.map +1 -0
  339. package/dist/tasks/visual-question-answering/data.d.ts +4 -0
  340. package/dist/tasks/visual-question-answering/data.d.ts.map +1 -0
  341. package/dist/tasks/visual-question-answering/inference.d.cts +63 -0
  342. package/dist/tasks/visual-question-answering/inference.d.cts.map +1 -0
  343. package/dist/tasks/visual-question-answering/inference.d.ts +63 -0
  344. package/dist/tasks/visual-question-answering/inference.d.ts.map +1 -0
  345. package/dist/tasks/zero-shot-classification/data.d.cts +4 -0
  346. package/dist/tasks/zero-shot-classification/data.d.cts.map +1 -0
  347. package/dist/tasks/zero-shot-classification/data.d.ts +4 -0
  348. package/dist/tasks/zero-shot-classification/data.d.ts.map +1 -0
  349. package/dist/tasks/zero-shot-classification/inference.d.cts +68 -0
  350. package/dist/tasks/zero-shot-classification/inference.d.cts.map +1 -0
  351. package/dist/tasks/zero-shot-classification/inference.d.ts +68 -0
  352. package/dist/tasks/zero-shot-classification/inference.d.ts.map +1 -0
  353. package/dist/tasks/zero-shot-image-classification/data.d.cts +4 -0
  354. package/dist/tasks/zero-shot-image-classification/data.d.cts.map +1 -0
  355. package/dist/tasks/zero-shot-image-classification/data.d.ts +4 -0
  356. package/dist/tasks/zero-shot-image-classification/data.d.ts.map +1 -0
  357. package/dist/tasks/zero-shot-image-classification/inference.d.cts +62 -0
  358. package/dist/tasks/zero-shot-image-classification/inference.d.cts.map +1 -0
  359. package/dist/tasks/zero-shot-image-classification/inference.d.ts +62 -0
  360. package/dist/tasks/zero-shot-image-classification/inference.d.ts.map +1 -0
  361. package/dist/tasks/zero-shot-object-detection/data.d.cts +4 -0
  362. package/dist/tasks/zero-shot-object-detection/data.d.cts.map +1 -0
  363. package/dist/tasks/zero-shot-object-detection/data.d.ts +4 -0
  364. package/dist/tasks/zero-shot-object-detection/data.d.ts.map +1 -0
  365. package/dist/tasks/zero-shot-object-detection/inference.d.cts +67 -0
  366. package/dist/tasks/zero-shot-object-detection/inference.d.cts.map +1 -0
  367. package/dist/tasks/zero-shot-object-detection/inference.d.ts +67 -0
  368. package/dist/tasks/zero-shot-object-detection/inference.d.ts.map +1 -0
  369. package/dist/tokenizer-data.d.cts +26 -0
  370. package/dist/tokenizer-data.d.cts.map +1 -0
  371. package/dist/tokenizer-data.d.ts +26 -0
  372. package/dist/tokenizer-data.d.ts.map +1 -0
  373. package/dist/widget-example.d.cts +83 -0
  374. package/dist/widget-example.d.cts.map +1 -0
  375. package/dist/widget-example.d.ts +83 -0
  376. package/dist/widget-example.d.ts.map +1 -0
  377. package/package.json +4 -2
  378. package/tsconfig.json +1 -1
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Inference code generated from the JSON schema spec in ./spec
3
+ *
4
+ * Using src/scripts/inference-codegen
5
+ */
6
+ /**
7
+ * Inputs for Text To Audio inference
8
+ */
9
+ export interface TextToAudioInput {
10
+ /**
11
+ * The input text data
12
+ */
13
+ inputs: string;
14
+ /**
15
+ * Additional inference parameters
16
+ */
17
+ parameters?: TextToAudioParameters;
18
+ [property: string]: unknown;
19
+ }
20
+ /**
21
+ * Additional inference parameters
22
+ *
23
+ * Additional inference parameters for Text To Audio
24
+ */
25
+ export interface TextToAudioParameters {
26
+ /**
27
+ * Parametrization of the text generation process
28
+ */
29
+ generation_parameters?: GenerationParameters;
30
+ [property: string]: unknown;
31
+ }
32
+ /**
33
+ * Parametrization of the text generation process
34
+ *
35
+ * Ad-hoc parametrization of the text generation process
36
+ */
37
+ export interface GenerationParameters {
38
+ /**
39
+ * Whether to use sampling instead of greedy decoding when generating new tokens.
40
+ */
41
+ do_sample?: boolean;
42
+ /**
43
+ * Controls the stopping condition for beam-based methods.
44
+ */
45
+ early_stopping?: EarlyStoppingUnion;
46
+ /**
47
+ * If set to float strictly between 0 and 1, only tokens with a conditional probability
48
+ * greater than epsilon_cutoff will be sampled. In the paper, suggested values range from
49
+ * 3e-4 to 9e-4, depending on the size of the model. See [Truncation Sampling as Language
50
+ * Model Desmoothing](https://hf.co/papers/2210.15191) for more details.
51
+ */
52
+ epsilon_cutoff?: number;
53
+ /**
54
+ * Eta sampling is a hybrid of locally typical sampling and epsilon sampling. If set to
55
+ * float strictly between 0 and 1, a token is only considered if it is greater than either
56
+ * eta_cutoff or sqrt(eta_cutoff) * exp(-entropy(softmax(next_token_logits))). The latter
57
+ * term is intuitively the expected next token probability, scaled by sqrt(eta_cutoff). In
58
+ * the paper, suggested values range from 3e-4 to 2e-3, depending on the size of the model.
59
+ * See [Truncation Sampling as Language Model Desmoothing](https://hf.co/papers/2210.15191)
60
+ * for more details.
61
+ */
62
+ eta_cutoff?: number;
63
+ /**
64
+ * The maximum length (in tokens) of the generated text, including the input.
65
+ */
66
+ max_length?: number;
67
+ /**
68
+ * The maximum number of tokens to generate. Takes precedence over max_length.
69
+ */
70
+ max_new_tokens?: number;
71
+ /**
72
+ * The minimum length (in tokens) of the generated text, including the input.
73
+ */
74
+ min_length?: number;
75
+ /**
76
+ * The minimum number of tokens to generate. Takes precedence over min_length.
77
+ */
78
+ min_new_tokens?: number;
79
+ /**
80
+ * Number of groups to divide num_beams into in order to ensure diversity among different
81
+ * groups of beams. See [this paper](https://hf.co/papers/1610.02424) for more details.
82
+ */
83
+ num_beam_groups?: number;
84
+ /**
85
+ * Number of beams to use for beam search.
86
+ */
87
+ num_beams?: number;
88
+ /**
89
+ * The value balances the model confidence and the degeneration penalty in contrastive
90
+ * search decoding.
91
+ */
92
+ penalty_alpha?: number;
93
+ /**
94
+ * The value used to modulate the next token probabilities.
95
+ */
96
+ temperature?: number;
97
+ /**
98
+ * The number of highest probability vocabulary tokens to keep for top-k-filtering.
99
+ */
100
+ top_k?: number;
101
+ /**
102
+ * If set to float < 1, only the smallest set of most probable tokens with probabilities
103
+ * that add up to top_p or higher are kept for generation.
104
+ */
105
+ top_p?: number;
106
+ /**
107
+ * Local typicality measures how similar the conditional probability of predicting a target
108
+ * token next is to the expected conditional probability of predicting a random token next,
109
+ * given the partial text already generated. If set to float < 1, the smallest set of the
110
+ * most locally typical tokens with probabilities that add up to typical_p or higher are
111
+ * kept for generation. See [this paper](https://hf.co/papers/2202.00666) for more details.
112
+ */
113
+ typical_p?: number;
114
+ /**
115
+ * Whether the model should use the past last key/values attentions to speed up decoding
116
+ */
117
+ use_cache?: boolean;
118
+ [property: string]: unknown;
119
+ }
120
+ /**
121
+ * Controls the stopping condition for beam-based methods.
122
+ */
123
+ export type EarlyStoppingUnion = boolean | "never";
124
+ /**
125
+ * Outputs of inference for the Text To Audio task
126
+ */
127
+ export interface TextToAudioOutput {
128
+ /**
129
+ * The generated audio waveform.
130
+ */
131
+ audio: unknown;
132
+ samplingRate: unknown;
133
+ /**
134
+ * The sampling rate of the generated audio waveform.
135
+ */
136
+ sampling_rate?: number;
137
+ [property: string]: unknown;
138
+ }
139
+ //# sourceMappingURL=inference.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference.d.cts","sourceRoot":"","sources":["../../../src/tasks/text-to-audio/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Inference code generated from the JSON schema spec in ./spec
3
+ *
4
+ * Using src/scripts/inference-codegen
5
+ */
6
+ /**
7
+ * Inputs for Text To Audio inference
8
+ */
9
+ export interface TextToAudioInput {
10
+ /**
11
+ * The input text data
12
+ */
13
+ inputs: string;
14
+ /**
15
+ * Additional inference parameters
16
+ */
17
+ parameters?: TextToAudioParameters;
18
+ [property: string]: unknown;
19
+ }
20
+ /**
21
+ * Additional inference parameters
22
+ *
23
+ * Additional inference parameters for Text To Audio
24
+ */
25
+ export interface TextToAudioParameters {
26
+ /**
27
+ * Parametrization of the text generation process
28
+ */
29
+ generation_parameters?: GenerationParameters;
30
+ [property: string]: unknown;
31
+ }
32
+ /**
33
+ * Parametrization of the text generation process
34
+ *
35
+ * Ad-hoc parametrization of the text generation process
36
+ */
37
+ export interface GenerationParameters {
38
+ /**
39
+ * Whether to use sampling instead of greedy decoding when generating new tokens.
40
+ */
41
+ do_sample?: boolean;
42
+ /**
43
+ * Controls the stopping condition for beam-based methods.
44
+ */
45
+ early_stopping?: EarlyStoppingUnion;
46
+ /**
47
+ * If set to float strictly between 0 and 1, only tokens with a conditional probability
48
+ * greater than epsilon_cutoff will be sampled. In the paper, suggested values range from
49
+ * 3e-4 to 9e-4, depending on the size of the model. See [Truncation Sampling as Language
50
+ * Model Desmoothing](https://hf.co/papers/2210.15191) for more details.
51
+ */
52
+ epsilon_cutoff?: number;
53
+ /**
54
+ * Eta sampling is a hybrid of locally typical sampling and epsilon sampling. If set to
55
+ * float strictly between 0 and 1, a token is only considered if it is greater than either
56
+ * eta_cutoff or sqrt(eta_cutoff) * exp(-entropy(softmax(next_token_logits))). The latter
57
+ * term is intuitively the expected next token probability, scaled by sqrt(eta_cutoff). In
58
+ * the paper, suggested values range from 3e-4 to 2e-3, depending on the size of the model.
59
+ * See [Truncation Sampling as Language Model Desmoothing](https://hf.co/papers/2210.15191)
60
+ * for more details.
61
+ */
62
+ eta_cutoff?: number;
63
+ /**
64
+ * The maximum length (in tokens) of the generated text, including the input.
65
+ */
66
+ max_length?: number;
67
+ /**
68
+ * The maximum number of tokens to generate. Takes precedence over max_length.
69
+ */
70
+ max_new_tokens?: number;
71
+ /**
72
+ * The minimum length (in tokens) of the generated text, including the input.
73
+ */
74
+ min_length?: number;
75
+ /**
76
+ * The minimum number of tokens to generate. Takes precedence over min_length.
77
+ */
78
+ min_new_tokens?: number;
79
+ /**
80
+ * Number of groups to divide num_beams into in order to ensure diversity among different
81
+ * groups of beams. See [this paper](https://hf.co/papers/1610.02424) for more details.
82
+ */
83
+ num_beam_groups?: number;
84
+ /**
85
+ * Number of beams to use for beam search.
86
+ */
87
+ num_beams?: number;
88
+ /**
89
+ * The value balances the model confidence and the degeneration penalty in contrastive
90
+ * search decoding.
91
+ */
92
+ penalty_alpha?: number;
93
+ /**
94
+ * The value used to modulate the next token probabilities.
95
+ */
96
+ temperature?: number;
97
+ /**
98
+ * The number of highest probability vocabulary tokens to keep for top-k-filtering.
99
+ */
100
+ top_k?: number;
101
+ /**
102
+ * If set to float < 1, only the smallest set of most probable tokens with probabilities
103
+ * that add up to top_p or higher are kept for generation.
104
+ */
105
+ top_p?: number;
106
+ /**
107
+ * Local typicality measures how similar the conditional probability of predicting a target
108
+ * token next is to the expected conditional probability of predicting a random token next,
109
+ * given the partial text already generated. If set to float < 1, the smallest set of the
110
+ * most locally typical tokens with probabilities that add up to typical_p or higher are
111
+ * kept for generation. See [this paper](https://hf.co/papers/2202.00666) for more details.
112
+ */
113
+ typical_p?: number;
114
+ /**
115
+ * Whether the model should use the past last key/values attentions to speed up decoding
116
+ */
117
+ use_cache?: boolean;
118
+ [property: string]: unknown;
119
+ }
120
+ /**
121
+ * Controls the stopping condition for beam-based methods.
122
+ */
123
+ export type EarlyStoppingUnion = boolean | "never";
124
+ /**
125
+ * Outputs of inference for the Text To Audio task
126
+ */
127
+ export interface TextToAudioOutput {
128
+ /**
129
+ * The generated audio waveform.
130
+ */
131
+ audio: unknown;
132
+ samplingRate: unknown;
133
+ /**
134
+ * The sampling rate of the generated audio waveform.
135
+ */
136
+ sampling_rate?: number;
137
+ [property: string]: unknown;
138
+ }
139
+ //# sourceMappingURL=inference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../src/tasks/text-to-audio/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,4 @@
1
+ import type { TaskDataCustom } from "..";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.cts","sourceRoot":"","sources":["../../../src/tasks/text-to-image/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA+Ff,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TaskDataCustom } from "..";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/tasks/text-to-image/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA+Ff,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Inference code generated from the JSON schema spec in ./spec
3
+ *
4
+ * Using src/scripts/inference-codegen
5
+ */
6
+ /**
7
+ * Inputs for Text To Image inference
8
+ */
9
+ export interface TextToImageInput {
10
+ /**
11
+ * The input text data (sometimes called "prompt")
12
+ */
13
+ inputs: string;
14
+ /**
15
+ * Additional inference parameters
16
+ */
17
+ parameters?: TextToImageParameters;
18
+ [property: string]: unknown;
19
+ }
20
+ /**
21
+ * Additional inference parameters
22
+ *
23
+ * Additional inference parameters for Text To Image
24
+ */
25
+ export interface TextToImageParameters {
26
+ /**
27
+ * A higher guidance scale value encourages the model to generate images closely linked to
28
+ * the text prompt, but values too high may cause saturation and other artifacts.
29
+ */
30
+ guidance_scale?: number;
31
+ /**
32
+ * One or several prompt to guide what NOT to include in image generation.
33
+ */
34
+ negative_prompt?: string[];
35
+ /**
36
+ * The number of denoising steps. More denoising steps usually lead to a higher quality
37
+ * image at the expense of slower inference.
38
+ */
39
+ num_inference_steps?: number;
40
+ /**
41
+ * Override the scheduler with a compatible one.
42
+ */
43
+ scheduler?: string;
44
+ /**
45
+ * Seed for the random number generator.
46
+ */
47
+ seed?: number;
48
+ /**
49
+ * The size in pixel of the output image
50
+ */
51
+ target_size?: TargetSize;
52
+ [property: string]: unknown;
53
+ }
54
+ /**
55
+ * The size in pixel of the output image
56
+ */
57
+ export interface TargetSize {
58
+ height: number;
59
+ width: number;
60
+ [property: string]: unknown;
61
+ }
62
+ /**
63
+ * Outputs of inference for the Text To Image task
64
+ */
65
+ export interface TextToImageOutput {
66
+ /**
67
+ * The generated image returned as raw bytes in the payload.
68
+ */
69
+ image: unknown;
70
+ [property: string]: unknown;
71
+ }
72
+ //# sourceMappingURL=inference.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference.d.cts","sourceRoot":"","sources":["../../../src/tasks/text-to-image/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Inference code generated from the JSON schema spec in ./spec
3
+ *
4
+ * Using src/scripts/inference-codegen
5
+ */
6
+ /**
7
+ * Inputs for Text To Image inference
8
+ */
9
+ export interface TextToImageInput {
10
+ /**
11
+ * The input text data (sometimes called "prompt")
12
+ */
13
+ inputs: string;
14
+ /**
15
+ * Additional inference parameters
16
+ */
17
+ parameters?: TextToImageParameters;
18
+ [property: string]: unknown;
19
+ }
20
+ /**
21
+ * Additional inference parameters
22
+ *
23
+ * Additional inference parameters for Text To Image
24
+ */
25
+ export interface TextToImageParameters {
26
+ /**
27
+ * A higher guidance scale value encourages the model to generate images closely linked to
28
+ * the text prompt, but values too high may cause saturation and other artifacts.
29
+ */
30
+ guidance_scale?: number;
31
+ /**
32
+ * One or several prompt to guide what NOT to include in image generation.
33
+ */
34
+ negative_prompt?: string[];
35
+ /**
36
+ * The number of denoising steps. More denoising steps usually lead to a higher quality
37
+ * image at the expense of slower inference.
38
+ */
39
+ num_inference_steps?: number;
40
+ /**
41
+ * Override the scheduler with a compatible one.
42
+ */
43
+ scheduler?: string;
44
+ /**
45
+ * Seed for the random number generator.
46
+ */
47
+ seed?: number;
48
+ /**
49
+ * The size in pixel of the output image
50
+ */
51
+ target_size?: TargetSize;
52
+ [property: string]: unknown;
53
+ }
54
+ /**
55
+ * The size in pixel of the output image
56
+ */
57
+ export interface TargetSize {
58
+ height: number;
59
+ width: number;
60
+ [property: string]: unknown;
61
+ }
62
+ /**
63
+ * Outputs of inference for the Text To Image task
64
+ */
65
+ export interface TextToImageOutput {
66
+ /**
67
+ * The generated image returned as raw bytes in the payload.
68
+ */
69
+ image: unknown;
70
+ [property: string]: unknown;
71
+ }
72
+ //# sourceMappingURL=inference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../src/tasks/text-to-image/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,4 @@
1
+ import type { TaskDataCustom } from "..";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.cts","sourceRoot":"","sources":["../../../src/tasks/text-to-speech/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA0Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TaskDataCustom } from "..";
2
+ declare const taskData: TaskDataCustom;
3
+ export default taskData;
4
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/tasks/text-to-speech/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,cA0Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Inference code generated from the JSON schema spec in ./spec
3
+ *
4
+ * Using src/scripts/inference-codegen
5
+ */
6
+ /**
7
+ * Inputs for Text To Speech inference
8
+ */
9
+ export interface TextToSpeechInput {
10
+ /**
11
+ * The input text data
12
+ */
13
+ inputs: string;
14
+ /**
15
+ * Additional inference parameters
16
+ */
17
+ parameters?: TextToSpeechParameters;
18
+ [property: string]: unknown;
19
+ }
20
+ /**
21
+ * Additional inference parameters
22
+ *
23
+ * Additional inference parameters for Text To Speech
24
+ */
25
+ export interface TextToSpeechParameters {
26
+ /**
27
+ * Parametrization of the text generation process
28
+ */
29
+ generation_parameters?: GenerationParameters;
30
+ [property: string]: unknown;
31
+ }
32
+ /**
33
+ * Parametrization of the text generation process
34
+ *
35
+ * Ad-hoc parametrization of the text generation process
36
+ */
37
+ export interface GenerationParameters {
38
+ /**
39
+ * Whether to use sampling instead of greedy decoding when generating new tokens.
40
+ */
41
+ do_sample?: boolean;
42
+ /**
43
+ * Controls the stopping condition for beam-based methods.
44
+ */
45
+ early_stopping?: EarlyStoppingUnion;
46
+ /**
47
+ * If set to float strictly between 0 and 1, only tokens with a conditional probability
48
+ * greater than epsilon_cutoff will be sampled. In the paper, suggested values range from
49
+ * 3e-4 to 9e-4, depending on the size of the model. See [Truncation Sampling as Language
50
+ * Model Desmoothing](https://hf.co/papers/2210.15191) for more details.
51
+ */
52
+ epsilon_cutoff?: number;
53
+ /**
54
+ * Eta sampling is a hybrid of locally typical sampling and epsilon sampling. If set to
55
+ * float strictly between 0 and 1, a token is only considered if it is greater than either
56
+ * eta_cutoff or sqrt(eta_cutoff) * exp(-entropy(softmax(next_token_logits))). The latter
57
+ * term is intuitively the expected next token probability, scaled by sqrt(eta_cutoff). In
58
+ * the paper, suggested values range from 3e-4 to 2e-3, depending on the size of the model.
59
+ * See [Truncation Sampling as Language Model Desmoothing](https://hf.co/papers/2210.15191)
60
+ * for more details.
61
+ */
62
+ eta_cutoff?: number;
63
+ /**
64
+ * The maximum length (in tokens) of the generated text, including the input.
65
+ */
66
+ max_length?: number;
67
+ /**
68
+ * The maximum number of tokens to generate. Takes precedence over max_length.
69
+ */
70
+ max_new_tokens?: number;
71
+ /**
72
+ * The minimum length (in tokens) of the generated text, including the input.
73
+ */
74
+ min_length?: number;
75
+ /**
76
+ * The minimum number of tokens to generate. Takes precedence over min_length.
77
+ */
78
+ min_new_tokens?: number;
79
+ /**
80
+ * Number of groups to divide num_beams into in order to ensure diversity among different
81
+ * groups of beams. See [this paper](https://hf.co/papers/1610.02424) for more details.
82
+ */
83
+ num_beam_groups?: number;
84
+ /**
85
+ * Number of beams to use for beam search.
86
+ */
87
+ num_beams?: number;
88
+ /**
89
+ * The value balances the model confidence and the degeneration penalty in contrastive
90
+ * search decoding.
91
+ */
92
+ penalty_alpha?: number;
93
+ /**
94
+ * The value used to modulate the next token probabilities.
95
+ */
96
+ temperature?: number;
97
+ /**
98
+ * The number of highest probability vocabulary tokens to keep for top-k-filtering.
99
+ */
100
+ top_k?: number;
101
+ /**
102
+ * If set to float < 1, only the smallest set of most probable tokens with probabilities
103
+ * that add up to top_p or higher are kept for generation.
104
+ */
105
+ top_p?: number;
106
+ /**
107
+ * Local typicality measures how similar the conditional probability of predicting a target
108
+ * token next is to the expected conditional probability of predicting a random token next,
109
+ * given the partial text already generated. If set to float < 1, the smallest set of the
110
+ * most locally typical tokens with probabilities that add up to typical_p or higher are
111
+ * kept for generation. See [this paper](https://hf.co/papers/2202.00666) for more details.
112
+ */
113
+ typical_p?: number;
114
+ /**
115
+ * Whether the model should use the past last key/values attentions to speed up decoding
116
+ */
117
+ use_cache?: boolean;
118
+ [property: string]: unknown;
119
+ }
120
+ /**
121
+ * Controls the stopping condition for beam-based methods.
122
+ */
123
+ export type EarlyStoppingUnion = boolean | "never";
124
+ /**
125
+ * Outputs for Text to Speech inference
126
+ *
127
+ * Outputs of inference for the Text To Audio task
128
+ */
129
+ export interface TextToSpeechOutput {
130
+ /**
131
+ * The generated audio waveform.
132
+ */
133
+ audio: unknown;
134
+ samplingRate: unknown;
135
+ /**
136
+ * The sampling rate of the generated audio waveform.
137
+ */
138
+ sampling_rate?: number;
139
+ [property: string]: unknown;
140
+ }
141
+ //# sourceMappingURL=inference.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference.d.cts","sourceRoot":"","sources":["../../../src/tasks/text-to-speech/inference.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B"}