@huggingface/tasks 0.10.1 → 0.10.3

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.
package/dist/index.cjs CHANGED
@@ -1314,8 +1314,7 @@ var PIPELINE_DATA = {
1314
1314
  name: "Multivariate Time Series Forecasting"
1315
1315
  }
1316
1316
  ],
1317
- color: "blue",
1318
- hideInModels: true
1317
+ color: "blue"
1319
1318
  },
1320
1319
  "text-to-video": {
1321
1320
  name: "Text-to-Video",
@@ -4625,6 +4624,15 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4625
4624
  snippets: bertopic,
4626
4625
  filter: true
4627
4626
  },
4627
+ big_vision: {
4628
+ prettyLabel: "Big Vision",
4629
+ repoName: "big_vision",
4630
+ repoUrl: "https://github.com/google-research/big_vision",
4631
+ filter: false,
4632
+ countDownloads: {
4633
+ wildcard: { path: "*.npz" }
4634
+ }
4635
+ },
4628
4636
  diffusers: {
4629
4637
  prettyLabel: "Diffusers",
4630
4638
  repoName: "\u{1F917}/diffusers",
@@ -5449,7 +5457,11 @@ function isGgufModel(model) {
5449
5457
  return model.tags.includes("gguf");
5450
5458
  }
5451
5459
  var snippetLlamacpp = (model) => {
5452
- return `./main --hf-repo ${model.id} -m file.gguf -p "I believe the meaning of life is " -n 128`;
5460
+ return `./main \\
5461
+ --hf-repo "${model.id}" \\
5462
+ -m file.gguf \\
5463
+ -p "I believe the meaning of life is " \\
5464
+ -n 128`;
5453
5465
  };
5454
5466
  var LOCAL_APPS = {
5455
5467
  "llama.cpp": {
@@ -5471,25 +5483,26 @@ var LOCAL_APPS = {
5471
5483
  docsUrl: "https://jan.ai",
5472
5484
  mainTask: "text-generation",
5473
5485
  displayOnModelPage: isGgufModel,
5474
- deeplink: (model) => new URL(`jan://open_from_hf?model=${model.id}`)
5486
+ deeplink: (model) => new URL(`jan://models/huggingface/${model.id}`)
5475
5487
  },
5476
- faraday: {
5477
- prettyLabel: "Faraday",
5478
- docsUrl: "https://faraday.dev",
5488
+ backyard: {
5489
+ prettyLabel: "Backyard",
5490
+ docsUrl: "https://backyard.ai",
5479
5491
  mainTask: "text-generation",
5480
5492
  macOSOnly: true,
5481
5493
  displayOnModelPage: isGgufModel,
5482
- deeplink: (model) => new URL(`faraday://open_from_hf?model=${model.id}`)
5494
+ deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`)
5483
5495
  },
5484
5496
  drawthings: {
5485
5497
  prettyLabel: "Draw Things",
5486
5498
  docsUrl: "https://drawthings.ai",
5487
5499
  mainTask: "text-to-image",
5488
5500
  macOSOnly: true,
5501
+ comingSoon: true,
5489
5502
  /**
5490
5503
  * random function, will need to refine the actual conditions:
5491
5504
  */
5492
- displayOnModelPage: (model) => model.tags.includes("textual_inversion"),
5505
+ displayOnModelPage: (model) => model.library_name === "diffusers" && model.pipeline_tag === "text-to-image",
5493
5506
  deeplink: (model) => new URL(`drawthings://open_from_hf?model=${model.id}`)
5494
5507
  },
5495
5508
  diffusionbee: {
package/dist/index.js CHANGED
@@ -1278,8 +1278,7 @@ var PIPELINE_DATA = {
1278
1278
  name: "Multivariate Time Series Forecasting"
1279
1279
  }
1280
1280
  ],
1281
- color: "blue",
1282
- hideInModels: true
1281
+ color: "blue"
1283
1282
  },
1284
1283
  "text-to-video": {
1285
1284
  name: "Text-to-Video",
@@ -4589,6 +4588,15 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
4589
4588
  snippets: bertopic,
4590
4589
  filter: true
4591
4590
  },
4591
+ big_vision: {
4592
+ prettyLabel: "Big Vision",
4593
+ repoName: "big_vision",
4594
+ repoUrl: "https://github.com/google-research/big_vision",
4595
+ filter: false,
4596
+ countDownloads: {
4597
+ wildcard: { path: "*.npz" }
4598
+ }
4599
+ },
4592
4600
  diffusers: {
4593
4601
  prettyLabel: "Diffusers",
4594
4602
  repoName: "\u{1F917}/diffusers",
@@ -5413,7 +5421,11 @@ function isGgufModel(model) {
5413
5421
  return model.tags.includes("gguf");
5414
5422
  }
5415
5423
  var snippetLlamacpp = (model) => {
5416
- return `./main --hf-repo ${model.id} -m file.gguf -p "I believe the meaning of life is " -n 128`;
5424
+ return `./main \\
5425
+ --hf-repo "${model.id}" \\
5426
+ -m file.gguf \\
5427
+ -p "I believe the meaning of life is " \\
5428
+ -n 128`;
5417
5429
  };
5418
5430
  var LOCAL_APPS = {
5419
5431
  "llama.cpp": {
@@ -5435,25 +5447,26 @@ var LOCAL_APPS = {
5435
5447
  docsUrl: "https://jan.ai",
5436
5448
  mainTask: "text-generation",
5437
5449
  displayOnModelPage: isGgufModel,
5438
- deeplink: (model) => new URL(`jan://open_from_hf?model=${model.id}`)
5450
+ deeplink: (model) => new URL(`jan://models/huggingface/${model.id}`)
5439
5451
  },
5440
- faraday: {
5441
- prettyLabel: "Faraday",
5442
- docsUrl: "https://faraday.dev",
5452
+ backyard: {
5453
+ prettyLabel: "Backyard",
5454
+ docsUrl: "https://backyard.ai",
5443
5455
  mainTask: "text-generation",
5444
5456
  macOSOnly: true,
5445
5457
  displayOnModelPage: isGgufModel,
5446
- deeplink: (model) => new URL(`faraday://open_from_hf?model=${model.id}`)
5458
+ deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`)
5447
5459
  },
5448
5460
  drawthings: {
5449
5461
  prettyLabel: "Draw Things",
5450
5462
  docsUrl: "https://drawthings.ai",
5451
5463
  mainTask: "text-to-image",
5452
5464
  macOSOnly: true,
5465
+ comingSoon: true,
5453
5466
  /**
5454
5467
  * random function, will need to refine the actual conditions:
5455
5468
  */
5456
- displayOnModelPage: (model) => model.tags.includes("textual_inversion"),
5469
+ displayOnModelPage: (model) => model.library_name === "diffusers" && model.pipeline_tag === "text-to-image",
5457
5470
  deeplink: (model) => new URL(`drawthings://open_from_hf?model=${model.id}`)
5458
5471
  },
5459
5472
  diffusionbee: {
@@ -70,7 +70,7 @@ export declare const LOCAL_APPS: {
70
70
  displayOnModelPage: typeof isGgufModel;
71
71
  deeplink: (model: ModelData) => URL;
72
72
  };
73
- faraday: {
73
+ backyard: {
74
74
  prettyLabel: string;
75
75
  docsUrl: string;
76
76
  mainTask: "text-generation";
@@ -83,6 +83,7 @@ export declare const LOCAL_APPS: {
83
83
  docsUrl: string;
84
84
  mainTask: "text-to-image";
85
85
  macOSOnly: true;
86
+ comingSoon: true;
86
87
  /**
87
88
  * random function, will need to refine the actual conditions:
88
89
  */
@@ -1 +1 @@
1
- {"version":3,"file":"local-apps.d.ts","sourceRoot":"","sources":["../../src/local-apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;CAClD,GAAG,CACD;IACA;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC;CACnC,GACD;IACA;;OAEG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,CAAC;CACrC,CACH,CAAC;AAEF,iBAAS,WAAW,CAAC,KAAK,EAAE,SAAS,WAEpC;AASD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU;;;;;;yBAlBS,SAAS,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqDhD;;WAEG;;;;;;;;;;;;;CAa+B,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"local-apps.d.ts","sourceRoot":"","sources":["../../src/local-apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;CAClD,GAAG,CACD;IACA;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC;CACnC,GACD;IACA;;OAEG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,CAAC;CACrC,CACH,CAAC;AAEF,iBAAS,WAAW,CAAC,KAAK,EAAE,SAAS,WAEpC;AAUD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU;;;;;;yBAnBS,SAAS,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuDhD;;WAEG;;;;;;;;;;;;;CAa+B,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
@@ -102,6 +102,17 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
102
102
  snippets: (model: ModelData) => string[];
103
103
  filter: true;
104
104
  };
105
+ big_vision: {
106
+ prettyLabel: string;
107
+ repoName: string;
108
+ repoUrl: string;
109
+ filter: false;
110
+ countDownloads: {
111
+ wildcard: {
112
+ path: string;
113
+ };
114
+ };
115
+ };
105
116
  diffusers: {
106
117
  prettyLabel: string;
107
118
  repoName: string;
@@ -496,6 +507,6 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
496
507
  };
497
508
  };
498
509
  export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
499
- export declare const ALL_MODEL_LIBRARY_KEYS: ("sklearn" | "adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "bertopic" | "diffusers" | "doctr" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gliner" | "grok" | "keras" | "keras-nlp" | "k2" | "mindspore" | "ml-agents" | "mlx" | "mlx-image" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "sample-factory" | "sentence-transformers" | "setfit" | "spacy" | "span-marker" | "speechbrain" | "stable-baselines3" | "stanza" | "tensorflowtts" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
500
- export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("sklearn" | "adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "bertopic" | "diffusers" | "doctr" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gliner" | "grok" | "keras" | "keras-nlp" | "k2" | "mindspore" | "ml-agents" | "mlx" | "mlx-image" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "sample-factory" | "sentence-transformers" | "setfit" | "spacy" | "span-marker" | "speechbrain" | "stable-baselines3" | "stanza" | "tensorflowtts" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
510
+ export declare const ALL_MODEL_LIBRARY_KEYS: ("sklearn" | "adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "bertopic" | "big_vision" | "diffusers" | "doctr" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gliner" | "grok" | "keras" | "keras-nlp" | "k2" | "mindspore" | "ml-agents" | "mlx" | "mlx-image" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "sample-factory" | "sentence-transformers" | "setfit" | "spacy" | "span-marker" | "speechbrain" | "stable-baselines3" | "stanza" | "tensorflowtts" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
511
+ export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("sklearn" | "adapter-transformers" | "allennlp" | "asteroid" | "audiocraft" | "bertopic" | "big_vision" | "diffusers" | "doctr" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gliner" | "grok" | "keras" | "keras-nlp" | "k2" | "mindspore" | "ml-agents" | "mlx" | "mlx-image" | "nemo" | "open_clip" | "paddlenlp" | "peft" | "pyannote-audio" | "pythae" | "sample-factory" | "sentence-transformers" | "setfit" | "spacy" | "span-marker" | "speechbrain" | "stable-baselines3" | "stanza" | "tensorflowtts" | "timesfm" | "timm" | "transformers" | "transformers.js" | "unity-sentis" | "voicecraft" | "whisperkit")[];
501
512
  //# sourceMappingURL=model-libraries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-libraries.d.ts","sourceRoot":"","sources":["../../src/model-libraries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;;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;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,EAAE,CAAC;IAC1C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC;;;OAGG;IACH,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EAAE,SAAS,KAAK,MAAM,EAAE,CAAC;IAC1C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyYI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,qnBAAgE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,qnBAQ1B,CAAC"}
@@ -321,7 +321,6 @@ export declare const PIPELINE_DATA: {
321
321
  name: string;
322
322
  }[];
323
323
  color: "blue";
324
- hideInModels: true;
325
324
  };
326
325
  "text-to-video": {
327
326
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/pipelines.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,yEAA0E,CAAC;AAElG,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CA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AAEtD,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,gBAAgB,CAAC;AAEzD,eAAO,MAAM,cAAc,mlCAA+C,CAAC;AAE3E,eAAO,MAAM,aAAa,UAEN,CAAC;AAErB,eAAO,MAAM,kBAAkB,olCAA0B,CAAC"}
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.10.1",
4
+ "version": "0.10.3",
5
5
  "description": "List of ML tasks for huggingface.co/tasks",
6
6
  "repository": "https://github.com/huggingface/huggingface.js.git",
7
7
  "publishConfig": {
package/src/local-apps.ts CHANGED
@@ -47,10 +47,11 @@ function isGgufModel(model: ModelData) {
47
47
  }
48
48
 
49
49
  const snippetLlamacpp = (model: ModelData): string => {
50
- return `./main \
51
- --hf-repo ${model.id} \
52
- -m file.gguf \
53
- -p "I believe the meaning of life is " -n 128`;
50
+ return `./main \\
51
+ --hf-repo "${model.id}" \\
52
+ -m file.gguf \\
53
+ -p "I believe the meaning of life is " \\
54
+ -n 128`;
54
55
  };
55
56
 
56
57
  /**
@@ -84,25 +85,26 @@ export const LOCAL_APPS = {
84
85
  docsUrl: "https://jan.ai",
85
86
  mainTask: "text-generation",
86
87
  displayOnModelPage: isGgufModel,
87
- deeplink: (model) => new URL(`jan://open_from_hf?model=${model.id}`),
88
+ deeplink: (model) => new URL(`jan://models/huggingface/${model.id}`),
88
89
  },
89
- faraday: {
90
- prettyLabel: "Faraday",
91
- docsUrl: "https://faraday.dev",
90
+ backyard: {
91
+ prettyLabel: "Backyard",
92
+ docsUrl: "https://backyard.ai",
92
93
  mainTask: "text-generation",
93
94
  macOSOnly: true,
94
95
  displayOnModelPage: isGgufModel,
95
- deeplink: (model) => new URL(`faraday://open_from_hf?model=${model.id}`),
96
+ deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`),
96
97
  },
97
98
  drawthings: {
98
99
  prettyLabel: "Draw Things",
99
100
  docsUrl: "https://drawthings.ai",
100
101
  mainTask: "text-to-image",
101
102
  macOSOnly: true,
103
+ comingSoon: true,
102
104
  /**
103
105
  * random function, will need to refine the actual conditions:
104
106
  */
105
- displayOnModelPage: (model) => model.tags.includes("textual_inversion"),
107
+ displayOnModelPage: (model) => model.library_name === "diffusers" && model.pipeline_tag === "text-to-image",
106
108
  deeplink: (model) => new URL(`drawthings://open_from_hf?model=${model.id}`),
107
109
  },
108
110
  diffusionbee: {
@@ -102,6 +102,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
102
102
  snippets: snippets.bertopic,
103
103
  filter: true,
104
104
  },
105
+ big_vision: {
106
+ prettyLabel: "Big Vision",
107
+ repoName: "big_vision",
108
+ repoUrl: "https://github.com/google-research/big_vision",
109
+ filter: false,
110
+ countDownloads: {
111
+ wildcard: { path: "*.npz" },
112
+ },
113
+ },
105
114
  diffusers: {
106
115
  prettyLabel: "Diffusers",
107
116
  repoName: "🤗/diffusers",
package/src/pipelines.ts CHANGED
@@ -582,7 +582,6 @@ export const PIPELINE_DATA = {
582
582
  },
583
583
  ],
584
584
  color: "blue",
585
- hideInModels: true,
586
585
  },
587
586
  "text-to-video": {
588
587
  name: "Text-to-Video",