@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
package/dist/index.js CHANGED
@@ -4796,6 +4796,22 @@ var gliner = (model) => [
4796
4796
 
4797
4797
  model = GLiNER.from_pretrained("${model.id}")`
4798
4798
  ];
4799
+ var htrflow = (model) => [
4800
+ `# CLI usage
4801
+ # see docs: https://ai-riksarkivet.github.io/htrflow/latest/getting_started/quick_start.html
4802
+ htrflow pipeline <path/to/pipeline.yaml> <path/to/image>`,
4803
+ `# Python usage
4804
+ from htrflow.pipeline.pipeline import Pipeline
4805
+ from htrflow.pipeline.steps import Task
4806
+ from htrflow.models.framework.model import ModelClass
4807
+
4808
+ pipeline = Pipeline(
4809
+ [
4810
+ Task(
4811
+ ModelClass, {"model": "${model.id}"}, {}
4812
+ ),
4813
+ ])`
4814
+ ];
4799
4815
  var keras = (model) => [
4800
4816
  `# Available backend options are: "jax", "torch", "tensorflow".
4801
4817
  import os
@@ -5717,6 +5733,13 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5717
5733
  docsUrl: "https://hezarai.github.io/hezar",
5718
5734
  countDownloads: `path:"model_config.yaml" OR path:"embedding/embedding_config.yaml"`
5719
5735
  },
5736
+ htrflow: {
5737
+ prettyLabel: "HTRflow",
5738
+ repoName: "HTRflow",
5739
+ repoUrl: "https://github.com/AI-Riksarkivet/htrflow",
5740
+ docsUrl: "https://ai-riksarkivet.github.io/htrflow",
5741
+ snippets: htrflow
5742
+ },
5720
5743
  "hunyuan-dit": {
5721
5744
  prettyLabel: "HunyuanDiT",
5722
5745
  repoName: "HunyuanDiT",
@@ -5873,7 +5896,7 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
5873
5896
  prettyLabel: "open-oasis",
5874
5897
  repoName: "open-oasis",
5875
5898
  repoUrl: "https://github.com/etched-ai/open-oasis",
5876
- countDownloads: `path:"oasis500m.pt"`
5899
+ countDownloads: `path:"oasis500m.safetensors"`
5877
5900
  },
5878
5901
  open_clip: {
5879
5902
  prettyLabel: "OpenCLIP",
@@ -6788,7 +6811,7 @@ var snippetTextGeneration2 = (model, accessToken, opts) => {
6788
6811
  if (streaming) {
6789
6812
  return [
6790
6813
  {
6791
- client: "huggingface_hub",
6814
+ client: "huggingface.js",
6792
6815
  content: `import { HfInference } from "@huggingface/inference"
6793
6816
 
6794
6817
  const client = new HfInference("${accessToken || `{API_TOKEN}`}")
@@ -6839,7 +6862,7 @@ for await (const chunk of stream) {
6839
6862
  } else {
6840
6863
  return [
6841
6864
  {
6842
- client: "huggingface_hub",
6865
+ client: "huggingface.js",
6843
6866
  content: `import { HfInference } from '@huggingface/inference'
6844
6867
 
6845
6868
  const client = new HfInference("${accessToken || `{API_TOKEN}`}")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huggingface/tasks",
3
3
  "packageManager": "pnpm@8.10.5",
4
- "version": "0.12.30",
4
+ "version": "0.13.0-test2",
5
5
  "description": "List of ML tasks for huggingface.co/tasks",
6
6
  "repository": "https://github.com/huggingface/huggingface.js.git",
7
7
  "publishConfig": {
@@ -9,10 +9,8 @@
9
9
  },
10
10
  "main": "./dist/index.cjs",
11
11
  "module": "./dist/index.js",
12
- "types": "./dist/src/index.d.ts",
13
12
  "exports": {
14
13
  ".": {
15
- "types": "./dist/src/index.d.ts",
16
14
  "require": "./dist/index.cjs",
17
15
  "import": "./dist/index.js"
18
16
  }
@@ -41,7 +39,7 @@
41
39
  "lint:check": "eslint --ext .cjs,.ts .",
42
40
  "format": "prettier --write .",
43
41
  "format:check": "prettier --check .",
44
- "build": "tsup src/index.ts --format cjs,esm --clean && tsc --emitDeclarationOnly --declaration",
42
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
45
43
  "watch:export": "tsup src/index.ts --format cjs,esm --watch",
46
44
  "watch:types": "tsc --emitDeclarationOnly --declaration --watch",
47
45
  "watch": "npm-run-all --parallel watch:export watch:types",
@@ -363,6 +363,23 @@ export const gliner = (model: ModelData): string[] => [
363
363
  model = GLiNER.from_pretrained("${model.id}")`,
364
364
  ];
365
365
 
366
+ export const htrflow = (model: ModelData): string[] => [
367
+ `# CLI usage
368
+ # see docs: https://ai-riksarkivet.github.io/htrflow/latest/getting_started/quick_start.html
369
+ htrflow pipeline <path/to/pipeline.yaml> <path/to/image>`,
370
+ `# Python usage
371
+ from htrflow.pipeline.pipeline import Pipeline
372
+ from htrflow.pipeline.steps import Task
373
+ from htrflow.models.framework.model import ModelClass
374
+
375
+ pipeline = Pipeline(
376
+ [
377
+ Task(
378
+ ModelClass, {"model": "${model.id}"}, {}
379
+ ),
380
+ ])`,
381
+ ];
382
+
366
383
  export const keras = (model: ModelData): string[] => [
367
384
  `# Available backend options are: "jax", "torch", "tensorflow".
368
385
  import os
@@ -317,6 +317,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
317
317
  docsUrl: "https://hezarai.github.io/hezar",
318
318
  countDownloads: `path:"model_config.yaml" OR path:"embedding/embedding_config.yaml"`,
319
319
  },
320
+ htrflow: {
321
+ prettyLabel: "HTRflow",
322
+ repoName: "HTRflow",
323
+ repoUrl: "https://github.com/AI-Riksarkivet/htrflow",
324
+ docsUrl: "https://ai-riksarkivet.github.io/htrflow",
325
+ snippets: snippets.htrflow,
326
+ },
320
327
  "hunyuan-dit": {
321
328
  prettyLabel: "HunyuanDiT",
322
329
  repoName: "HunyuanDiT",
@@ -473,7 +480,7 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
473
480
  prettyLabel: "open-oasis",
474
481
  repoName: "open-oasis",
475
482
  repoUrl: "https://github.com/etched-ai/open-oasis",
476
- countDownloads: `path:"oasis500m.pt"`,
483
+ countDownloads: `path:"oasis500m.safetensors"`,
477
484
  },
478
485
  open_clip: {
479
486
  prettyLabel: "OpenCLIP",
@@ -57,7 +57,7 @@ export const snippetTextGeneration = (
57
57
  if (streaming) {
58
58
  return [
59
59
  {
60
- client: "huggingface_hub",
60
+ client: "huggingface.js",
61
61
  content: `import { HfInference } from "@huggingface/inference"
62
62
 
63
63
  const client = new HfInference("${accessToken || `{API_TOKEN}`}")
@@ -108,7 +108,7 @@ for await (const chunk of stream) {
108
108
  } else {
109
109
  return [
110
110
  {
111
- client: "huggingface_hub",
111
+ client: "huggingface.js",
112
112
  content: `import { HfInference } from '@huggingface/inference'
113
113
 
114
114
  const client = new HfInference("${accessToken || `{API_TOKEN}`}")
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=inference-codegen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference-codegen.d.ts","sourceRoot":"","sources":["../../scripts/inference-codegen.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=inference-tei-import.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference-tei-import.d.ts","sourceRoot":"","sources":["../../scripts/inference-tei-import.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=inference-tgi-import.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inference-tgi-import.d.ts","sourceRoot":"","sources":["../../scripts/inference-tgi-import.ts"],"names":[],"mappings":""}
@@ -1,87 +0,0 @@
1
- /**
2
- * Elements configurable by a dataset library.
3
- */
4
- export interface DatasetLibraryUiElement {
5
- /**
6
- * Pretty name of the library.
7
- * displayed (in tags?, and) on the main
8
- * call-to-action button on the dataset page.
9
- */
10
- prettyLabel: string;
11
- /**
12
- * Repo name of the library's (usually on GitHub) code repo
13
- */
14
- repoName: string;
15
- /**
16
- * URL to library's (usually on GitHub) code repo
17
- */
18
- repoUrl: string;
19
- /**
20
- * URL to library's docs
21
- */
22
- docsUrl?: string;
23
- }
24
- export declare const DATASET_LIBRARIES_UI_ELEMENTS: {
25
- mlcroissant: {
26
- prettyLabel: string;
27
- repoName: string;
28
- repoUrl: string;
29
- docsUrl: string;
30
- };
31
- webdataset: {
32
- prettyLabel: string;
33
- repoName: string;
34
- repoUrl: string;
35
- docsUrl: string;
36
- };
37
- datasets: {
38
- prettyLabel: string;
39
- repoName: string;
40
- repoUrl: string;
41
- docsUrl: string;
42
- };
43
- pandas: {
44
- prettyLabel: string;
45
- repoName: string;
46
- repoUrl: string;
47
- docsUrl: string;
48
- };
49
- dask: {
50
- prettyLabel: string;
51
- repoName: string;
52
- repoUrl: string;
53
- docsUrl: string;
54
- };
55
- distilabel: {
56
- prettyLabel: string;
57
- repoName: string;
58
- repoUrl: string;
59
- docsUrl: string;
60
- };
61
- fiftyone: {
62
- prettyLabel: string;
63
- repoName: string;
64
- repoUrl: string;
65
- docsUrl: string;
66
- };
67
- argilla: {
68
- prettyLabel: string;
69
- repoName: string;
70
- repoUrl: string;
71
- docsUrl: string;
72
- };
73
- polars: {
74
- prettyLabel: string;
75
- repoName: string;
76
- repoUrl: string;
77
- docsUrl: string;
78
- };
79
- duckdb: {
80
- prettyLabel: string;
81
- repoName: string;
82
- repoUrl: string;
83
- docsUrl: string;
84
- };
85
- };
86
- export type DatasetLibraryKey = keyof typeof DATASET_LIBRARIES_UI_ELEMENTS;
87
- //# sourceMappingURL=dataset-libraries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataset-libraries.d.ts","sourceRoot":"","sources":["../../src/dataset-libraries.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DS,CAAC;AAGpD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,6BAA6B,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { WidgetExample } from "./widget-example";
2
- import type { WidgetType } from "./pipelines";
3
- type PerLanguageMapping = Map<WidgetType, string[] | WidgetExample[]>;
4
- export declare const MAPPING_DEFAULT_WIDGET: Map<string, PerLanguageMapping>;
5
- export {};
6
- //# sourceMappingURL=default-widget-inputs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-widget-inputs.d.ts","sourceRoot":"","sources":["../../src/default-widget-inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,KAAK,kBAAkB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC,CAAC;AAyrBtE,eAAO,MAAM,sBAAsB,iCAejC,CAAC"}
@@ -1,35 +0,0 @@
1
- export declare enum GGMLQuantizationType {
2
- F32 = 0,
3
- F16 = 1,
4
- Q4_0 = 2,
5
- Q4_1 = 3,
6
- Q5_0 = 6,
7
- Q5_1 = 7,
8
- Q8_0 = 8,
9
- Q8_1 = 9,
10
- Q2_K = 10,
11
- Q3_K = 11,
12
- Q4_K = 12,
13
- Q5_K = 13,
14
- Q6_K = 14,
15
- Q8_K = 15,
16
- IQ2_XXS = 16,
17
- IQ2_XS = 17,
18
- IQ3_XXS = 18,
19
- IQ1_S = 19,
20
- IQ4_NL = 20,
21
- IQ3_S = 21,
22
- IQ2_S = 22,
23
- IQ4_XS = 23,
24
- I8 = 24,
25
- I16 = 25,
26
- I32 = 26,
27
- I64 = 27,
28
- F64 = 28,
29
- IQ1_M = 29,
30
- BF16 = 30
31
- }
32
- export declare const GGUF_QUANT_RE: RegExp;
33
- export declare const GGUF_QUANT_RE_GLOBAL: RegExp;
34
- export declare function parseGGUFQuantLabel(fname: string): string | undefined;
35
- //# sourceMappingURL=gguf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gguf.d.ts","sourceRoot":"","sources":["../../src/gguf.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC/B,GAAG,IAAI;IACP,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,KAAK;IACT,IAAI,KAAK;IACT,IAAI,KAAK;IACT,IAAI,KAAK;IACT,IAAI,KAAK;IACT,IAAI,KAAK;IACT,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,OAAO,KAAK;IACZ,KAAK,KAAK;IACV,MAAM,KAAK;IACX,KAAK,KAAK;IACV,KAAK,KAAK;IACV,MAAM,KAAK;IACX,EAAE,KAAK;IACP,GAAG,KAAK;IACR,GAAG,KAAK;IACR,GAAG,KAAK;IACR,GAAG,KAAK;IACR,KAAK,KAAK;IACV,IAAI,KAAK;CACT;AAGD,eAAO,MAAM,aAAa,QAAmF,CAAC;AAC9G,eAAO,MAAM,oBAAoB,QAAiC,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGrE"}