@huggingface/tasks 0.21.37 → 0.21.39

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.
@@ -267,25 +267,17 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
267
267
  expect(displayOnModelPage(model)).toBe(false);
268
268
  });
269
269
  it("unsloth tagged model", async () => {
270
- const { displayOnModelPage, snippet: snippetFunc } = LOCAL_APPS.unsloth;
270
+ const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
271
271
  const model = {
272
272
  id: "some-user/my-unsloth-finetune",
273
273
  tags: ["unsloth", "conversational"],
274
274
  inference: "",
275
275
  };
276
276
  expect(displayOnModelPage(model)).toBe(true);
277
- const snippet = snippetFunc(model);
278
- expect(snippet[0].setup).toBe("curl -fsSL https://unsloth.ai/install.sh | sh");
279
- expect(snippet[0].content).toBe("# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for some-user/my-unsloth-finetune to start chatting");
280
- expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
281
- expect(snippet[1].content).toBe(snippet[0].content);
282
- expect(snippet[2].setup).toBe("# No setup required");
283
- expect(snippet[2].content).toBe("# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for some-user/my-unsloth-finetune to start chatting");
284
- expect(snippet[3].setup).toBe("pip install unsloth");
285
- expect(snippet[3].content).toBe('from unsloth import FastModel\nmodel, tokenizer = FastModel.from_pretrained(\n model_name="some-user/my-unsloth-finetune",\n max_seq_length=2048,\n)');
277
+ expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=some-user%2Fmy-unsloth-finetune");
286
278
  });
287
279
  it("unsloth namespace gguf model", async () => {
288
- const { displayOnModelPage, snippet: snippetFunc } = LOCAL_APPS.unsloth;
280
+ const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
289
281
  const model = {
290
282
  id: "unsloth/Llama-3.2-3B-Instruct-GGUF",
291
283
  tags: ["conversational"],
@@ -293,14 +285,8 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
293
285
  inference: "",
294
286
  };
295
287
  expect(displayOnModelPage(model)).toBe(true);
296
- const snippet = snippetFunc(model);
297
- expect(snippet[0].setup).toBe("curl -fsSL https://unsloth.ai/install.sh | sh");
298
- expect(snippet[0].content).toBe("# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting");
299
- expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
300
- expect(snippet[1].content).toBe(snippet[0].content);
301
- expect(snippet[2].setup).toBe("# No setup required");
302
- expect(snippet[2].content).toBe("# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting");
303
- expect(snippet).toHaveLength(3); // GGUF models only get 3 snippets
288
+ expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF");
289
+ expect(deeplink(model, "Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf").href).toBe("unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF&file=Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf");
304
290
  });
305
291
  it("non unsloth namespace gguf model", async () => {
306
292
  const { displayOnModelPage } = LOCAL_APPS.unsloth;
@@ -12,6 +12,7 @@ export declare const chronos_forecasting: (model: ModelData) => string[];
12
12
  export declare const collectorvision: (model: ModelData) => string[];
13
13
  export declare const colipri: (model: ModelData) => string[];
14
14
  export declare const sap_rpt_one_oss: () => string[];
15
+ export declare const cortiq: (model: ModelData) => string[];
15
16
  export declare const cxr_foundation: () => string[];
16
17
  export declare const depth_anything_v2: (model: ModelData) => string[];
17
18
  export declare const depth_pro: (model: ModelData) => string[];
@@ -48,10 +49,12 @@ export declare const tf_keras: (model: ModelData) => string[];
48
49
  export declare const mamba_ssm: (model: ModelData) => string[];
49
50
  export declare const mars5_tts: (model: ModelData) => string[];
50
51
  export declare const matanyone: (model: ModelData) => string[];
52
+ export declare const memra: (model: ModelData) => string[];
51
53
  export declare const mesh_anything: () => string[];
52
54
  export declare const multimolecule: (model: ModelData) => string[];
53
55
  export declare const open_clip: (model: ModelData) => string[];
54
56
  export declare const openasr: (model: ModelData) => string[];
57
+ export declare const opendde: () => string[];
55
58
  export declare const paddlenlp: (model: ModelData) => string[];
56
59
  export declare const paddleocr: (model: ModelData) => string[];
57
60
  export declare const perception_encoder: (model: ModelData) => string[];
@@ -1 +1 @@
1
- {"version":3,"file":"model-libraries-snippets.d.ts","sourceRoot":"","sources":["../../src/model-libraries-snippets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAoBjD,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAOjD,CAAC;AAkBF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAKjD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,KAAG,MAAM,EAIhD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,MAAM,EAkBlD,CAAC;AAaF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,MAAM,EAY7C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAenC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,SAAS,KAAG,MAAM,EAsB5D,CAAC;AAEF,eAAO,MAAM,eAAe,G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C,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAI/C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,MAAM,EAqBlD,CAAC;AA4BF,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAO/C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,MAAM,EAUnD,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAYnC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,KAAG,MAAM,EAKvD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAiB9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAgD9C,CAAC"}
@@ -212,6 +212,30 @@ r2 = r2_score(y_test, predictions)
212
212
  print("R² Score:", r2)`;
213
213
  return [installSnippet, classificationSnippet, regressionsSnippet];
214
214
  };
215
+ export const cortiq = (model) => {
216
+ const setup = `# one Rust binary, no additional dependencies
217
+ cargo install cortiq-cli # or a prebuilt binary from github.com/infosave2007/cmf/releases
218
+ hf download ${model.id} --include "*.cmf" --local-dir .
219
+ ls *.cmf # some repos ship more than one quantization`;
220
+ if (model.pipeline_tag === "text-to-image") {
221
+ return [setup, `cortiq imagine FILE.cmf --prompt "a red fox in a snowy forest" --out fox.ppm`];
222
+ }
223
+ if (model.pipeline_tag === "text-to-video") {
224
+ return [setup, `cortiq animate FILE.cmf --prompt "a corgi in a chef hat flipping a pancake" --out clip.avi`];
225
+ }
226
+ if (model.pipeline_tag === "text-to-audio") {
227
+ return [
228
+ setup,
229
+ `cortiq music FILE.cmf --prompt "dream pop, warm analog synths, brushed drums" \\
230
+ --lyrics "[verse] the tide came in and took the map" --seconds 20 --out song.wav`,
231
+ ];
232
+ }
233
+ return [
234
+ setup,
235
+ `cortiq run FILE.cmf --prompt "What is the capital of France?"`,
236
+ `cortiq serve FILE.cmf --port 8080 # OpenAI-compatible server`,
237
+ ];
238
+ };
215
239
  export const cxr_foundation = () => [
216
240
  `# pip install git+https://github.com/Google-Health/cxr-foundation.git#subdirectory=python
217
241
 
@@ -1303,6 +1327,17 @@ model = MatAnyone.from_pretrained("${model.id}")`,
1303
1327
  from matanyone import InferenceCore
1304
1328
  processor = InferenceCore("${model.id}")`,
1305
1329
  ];
1330
+ export const memra = (model) => [
1331
+ `# memra serves NVIDIA Blackwell workstation and consumer cards (sm_120a), with a
1332
+ # compile-gated Hopper lane. Prebuilt binaries need Linux x86_64 and driver 580+,
1333
+ # and no CUDA toolkit.
1334
+ curl -fsSL https://raw.githubusercontent.com/avifenesh/memra/main/tools/install.sh | sh`,
1335
+ `# One chat-templated generation. In a repo with several GGUF files, append
1336
+ # :<substring> to choose one, for example hf:${model.id}:Q4_K_M
1337
+ MEMRA_CHAT=1 run-gen hf:${model.id} --prompt "Explain KV caches in one sentence."`,
1338
+ `# Or an OpenAI-compatible server on 127.0.0.1:8080.
1339
+ MEMRA_MODELS="model=hf:${model.id}" memra-server`,
1340
+ ];
1306
1341
  export const mesh_anything = () => [
1307
1342
  `# Install from https://github.com/buaacyw/MeshAnything.git
1308
1343
 
@@ -1368,6 +1403,12 @@ openasr pull ${modelId}
1368
1403
  openasr transcribe audio.wav --model ${modelId}`,
1369
1404
  ];
1370
1405
  };
1406
+ export const opendde = () => [
1407
+ `# pip install 'opendde[gpu]'
1408
+ # Checkpoints are fetched from the Hub into $OPENDDE_ROOT_DIR (default ~/.cache/opendde)
1409
+ opendde doctor
1410
+ opendde pred -i examples/input.json -o ./output -n opendde_v1`,
1411
+ ];
1371
1412
  export const paddlenlp = (model) => {
1372
1413
  const architecture = model.config?.architectures?.[0];
1373
1414
  // interpolated as a Python class name, so a non-identifier is treated as absent
@@ -2186,14 +2227,30 @@ model = BiRefNet.from_pretrained("${model.id}")`,
2186
2227
  ];
2187
2228
  export const nobg = (model) => {
2188
2229
  const installSnippet = `pip install nobg`;
2189
- const exampleSnippet = `import torch
2230
+ // we check model tags and if it supports prompts we show an example for it, else we show the default example without prompts
2231
+ const predictCall = model.tags.includes("promptable")
2232
+ ? `cutout = model.predict(processor, "image.jpg", "prompt")`
2233
+ : `cutout = model.predict(processor, "image.jpg")`;
2234
+ // snippet using the predict method
2235
+ const predictSnippet = `# Option 1: use via the predict method
2236
+
2237
+ from nobg import AutoModel, AutoProcessor
2238
+
2239
+ model = AutoModel.from_pretrained("${model.id}").eval()
2240
+ processor = AutoProcessor.from_pretrained("${model.id}")
2241
+
2242
+ ${predictCall}`;
2243
+ // snippet using the model and processor directly
2244
+ const manualSnippet = `# Option 2: use the model and processor directly
2245
+
2246
+ import torch
2190
2247
  from loadimg import load_img
2191
2248
  from nobg import AutoModel, AutoProcessor
2192
2249
 
2193
2250
  model = AutoModel.from_pretrained("${model.id}").eval()
2194
2251
  processor = AutoProcessor.from_pretrained("${model.id}")
2195
2252
 
2196
- image = load_img("input.jpg").convert("RGB")
2253
+ image = load_img("image.jpg").convert("RGB")
2197
2254
  inputs = processor(image, return_tensors="pt")
2198
2255
 
2199
2256
  with torch.no_grad():
@@ -2201,7 +2258,7 @@ with torch.no_grad():
2201
2258
 
2202
2259
  alpha = processor.post_process_alpha_matting(outputs, target_sizes=[(image.height, image.width)])[0]
2203
2260
  processor.cutout(image, alpha).save("output.png")`;
2204
- return [installSnippet, exampleSnippet];
2261
+ return [installSnippet, predictSnippet, manualSnippet];
2205
2262
  };
2206
2263
  export const supertonic = () => [
2207
2264
  `from supertonic import TTS
@@ -330,6 +330,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
330
330
  repoUrl: string;
331
331
  countDownloads: string;
332
332
  };
333
+ cortiq: {
334
+ prettyLabel: string;
335
+ repoName: string;
336
+ repoUrl: string;
337
+ docsUrl: string;
338
+ snippets: (model: ModelData) => string[];
339
+ countDownloads: string;
340
+ };
333
341
  cosmos: {
334
342
  prettyLabel: string;
335
343
  repoName: string;
@@ -918,6 +926,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
918
926
  snippets: (model: ModelData) => string[];
919
927
  filter: false;
920
928
  };
929
+ memra: {
930
+ prettyLabel: string;
931
+ repoName: string;
932
+ repoUrl: string;
933
+ snippets: (model: ModelData) => string[];
934
+ filter: false;
935
+ };
921
936
  "mesh-anything": {
922
937
  prettyLabel: string;
923
938
  repoName: string;
@@ -1009,6 +1024,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
1009
1024
  snippets: (model: ModelData) => string[];
1010
1025
  filter: false;
1011
1026
  };
1027
+ "montreal-forced-aligner": {
1028
+ prettyLabel: string;
1029
+ repoName: string;
1030
+ repoUrl: string;
1031
+ docsUrl: string;
1032
+ filter: false;
1033
+ countDownloads: string;
1034
+ };
1012
1035
  moshi: {
1013
1036
  prettyLabel: string;
1014
1037
  repoName: string;
@@ -1084,6 +1107,15 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
1084
1107
  filter: false;
1085
1108
  countDownloads: string;
1086
1109
  };
1110
+ opendde: {
1111
+ prettyLabel: string;
1112
+ repoName: string;
1113
+ repoUrl: string;
1114
+ docsUrl: string;
1115
+ snippets: () => string[];
1116
+ filter: false;
1117
+ countDownloads: string;
1118
+ };
1087
1119
  openpeerllm: {
1088
1120
  prettyLabel: string;
1089
1121
  repoName: string;
@@ -1148,6 +1180,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
1148
1180
  filter: false;
1149
1181
  countDownloads: string;
1150
1182
  };
1183
+ piper: {
1184
+ prettyLabel: string;
1185
+ repoName: string;
1186
+ repoUrl: string;
1187
+ filter: false;
1188
+ countDownloads: string;
1189
+ };
1151
1190
  "pocket-tts": {
1152
1191
  prettyLabel: string;
1153
1192
  repoName: string;
@@ -1792,5 +1831,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
1792
1831
  };
1793
1832
  export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
1794
1833
  export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
1795
- export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("acestep" | "adapter-transformers" | "allennlp" | "anemoi" | "araclip" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "edsnlp" | "elm" | "encoderfile" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flextab" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "hermes" | "holomotion" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "hy-world-2" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "ising-decoding" | "keras" | "tf-keras" | "keras-hub" | "kerasformers" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "rwkv" | "saelens" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
1834
+ export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("acestep" | "adapter-transformers" | "allennlp" | "anemoi" | "araclip" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cortiq" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "edsnlp" | "elm" | "encoderfile" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flextab" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "hermes" | "holomotion" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "hy-world-2" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "ising-decoding" | "keras" | "tf-keras" | "keras-hub" | "kerasformers" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "memra" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "montreal-forced-aligner" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "opendde" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "piper" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "rwkv" | "saelens" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
1796
1835
  //# 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,iBAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsvDI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,44GAQ1B,CAAC"}
@@ -290,6 +290,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
290
290
  repoUrl: "https://github.com/Unbabel/COMET/",
291
291
  countDownloads: `path:"hparams.yaml"`,
292
292
  },
293
+ cortiq: {
294
+ prettyLabel: "cortiq",
295
+ repoName: "cortiq",
296
+ repoUrl: "https://github.com/infosave2007/cmf",
297
+ docsUrl: "https://github.com/infosave2007/cmf/blob/master/docs/CMF_V2_SPEC.md",
298
+ snippets: snippets.cortiq,
299
+ countDownloads: `path_extension:"cmf"`,
300
+ },
293
301
  cosmos: {
294
302
  prettyLabel: "Cosmos",
295
303
  repoName: "Cosmos",
@@ -880,6 +888,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
880
888
  snippets: snippets.matanyone,
881
889
  filter: false,
882
890
  },
891
+ memra: {
892
+ prettyLabel: "memra",
893
+ repoName: "memra",
894
+ repoUrl: "https://github.com/avifenesh/memra",
895
+ snippets: snippets.memra,
896
+ filter: false,
897
+ },
883
898
  "mesh-anything": {
884
899
  prettyLabel: "MeshAnything",
885
900
  repoName: "MeshAnything",
@@ -971,6 +986,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
971
986
  snippets: snippets.mobilint,
972
987
  filter: false,
973
988
  },
989
+ "montreal-forced-aligner": {
990
+ prettyLabel: "Montreal Forced Aligner",
991
+ repoName: "Montreal Forced Aligner",
992
+ repoUrl: "https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner",
993
+ docsUrl: "https://montreal-forced-aligner.readthedocs.io",
994
+ filter: false,
995
+ countDownloads: `path:"acoustic/final.mdl" OR path_extension:"zip"`,
996
+ },
974
997
  moshi: {
975
998
  prettyLabel: "Moshi",
976
999
  repoName: "Moshi",
@@ -1049,6 +1072,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
1049
1072
  filter: false,
1050
1073
  countDownloads: `path_extension:"oasr"`,
1051
1074
  },
1075
+ opendde: {
1076
+ prettyLabel: "OpenDDE",
1077
+ repoName: "OpenDDE",
1078
+ repoUrl: "https://github.com/aurekaresearch/OpenDDE",
1079
+ docsUrl: "https://huggingface.co/aurekaresearch/OpenDDE/blob/main/docs/inference_instructions.md",
1080
+ snippets: snippets.opendde,
1081
+ filter: false,
1082
+ countDownloads: `path_extension:"pt"`,
1083
+ },
1052
1084
  openpeerllm: {
1053
1085
  prettyLabel: "OpenPeerLLM",
1054
1086
  repoName: "OpenPeerLLM",
@@ -1113,6 +1145,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
1113
1145
  filter: false,
1114
1146
  countDownloads: `path_extension:"pth"`,
1115
1147
  },
1148
+ piper: {
1149
+ prettyLabel: "Piper",
1150
+ repoName: "Piper",
1151
+ repoUrl: "https://github.com/OHF-Voice/piper1-gpl",
1152
+ filter: false,
1153
+ countDownloads: `path_extension:"onnx" OR path_extension:"ckpt"`,
1154
+ },
1116
1155
  "pocket-tts": {
1117
1156
  prettyLabel: "Pocket-TTS",
1118
1157
  repoName: "PocketTTS",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huggingface/tasks",
3
- "version": "0.21.37",
3
+ "version": "0.21.39",
4
4
  "description": "List of ML tasks for huggingface.co/tasks",
5
5
  "keywords": [
6
6
  "hub",
@@ -301,7 +301,7 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
301
301
  });
302
302
 
303
303
  it("unsloth tagged model", async () => {
304
- const { displayOnModelPage, snippet: snippetFunc } = LOCAL_APPS.unsloth;
304
+ const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
305
305
  const model: ModelData = {
306
306
  id: "some-user/my-unsloth-finetune",
307
307
  tags: ["unsloth", "conversational"],
@@ -309,25 +309,11 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
309
309
  };
310
310
 
311
311
  expect(displayOnModelPage(model)).toBe(true);
312
- const snippet = snippetFunc(model);
313
- expect(snippet[0].setup).toBe("curl -fsSL https://unsloth.ai/install.sh | sh");
314
- expect(snippet[0].content).toBe(
315
- "# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for some-user/my-unsloth-finetune to start chatting",
316
- );
317
- expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
318
- expect(snippet[1].content).toBe(snippet[0].content);
319
- expect(snippet[2].setup).toBe("# No setup required");
320
- expect(snippet[2].content).toBe(
321
- "# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for some-user/my-unsloth-finetune to start chatting",
322
- );
323
- expect(snippet[3].setup).toBe("pip install unsloth");
324
- expect(snippet[3].content).toBe(
325
- 'from unsloth import FastModel\nmodel, tokenizer = FastModel.from_pretrained(\n model_name="some-user/my-unsloth-finetune",\n max_seq_length=2048,\n)',
326
- );
312
+ expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=some-user%2Fmy-unsloth-finetune");
327
313
  });
328
314
 
329
315
  it("unsloth namespace gguf model", async () => {
330
- const { displayOnModelPage, snippet: snippetFunc } = LOCAL_APPS.unsloth;
316
+ const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
331
317
  const model: ModelData = {
332
318
  id: "unsloth/Llama-3.2-3B-Instruct-GGUF",
333
319
  tags: ["conversational"],
@@ -336,18 +322,10 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
336
322
  };
337
323
 
338
324
  expect(displayOnModelPage(model)).toBe(true);
339
- const snippet = snippetFunc(model);
340
- expect(snippet[0].setup).toBe("curl -fsSL https://unsloth.ai/install.sh | sh");
341
- expect(snippet[0].content).toBe(
342
- "# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting",
343
- );
344
- expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
345
- expect(snippet[1].content).toBe(snippet[0].content);
346
- expect(snippet[2].setup).toBe("# No setup required");
347
- expect(snippet[2].content).toBe(
348
- "# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting",
325
+ expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF");
326
+ expect(deeplink(model, "Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf").href).toBe(
327
+ "unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF&file=Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf",
349
328
  );
350
- expect(snippet).toHaveLength(3); // GGUF models only get 3 snippets
351
329
  });
352
330
 
353
331
  it("non unsloth namespace gguf model", async () => {
package/src/local-apps.ts CHANGED
@@ -225,56 +225,6 @@ const snippetOllama = (model: ModelData, filepath?: string): string => {
225
225
  return `ollama run hf.co/${model.id}${getQuantTag(filepath)}`;
226
226
  };
227
227
 
228
- const snippetUnsloth = (model: ModelData): LocalAppSnippet[] => {
229
- const isGguf = isLlamaCppGgufModel(model);
230
-
231
- const studio_content = [
232
- "# Run unsloth studio",
233
- "unsloth studio -H 0.0.0.0 -p 8888",
234
- "# Then open http://localhost:8888 in your browser",
235
- "# Search for " + model.id + " to start chatting",
236
- ].join("\n");
237
-
238
- const studio_instructions: LocalAppSnippet = {
239
- title: "Install Unsloth Studio (macOS, Linux, WSL)",
240
- setup: "curl -fsSL https://unsloth.ai/install.sh | sh",
241
- content: studio_content,
242
- };
243
-
244
- const studio_instructions_windows: LocalAppSnippet = {
245
- title: "Install Unsloth Studio (Windows)",
246
- setup: "irm https://unsloth.ai/install.ps1 | iex",
247
- content: studio_content,
248
- };
249
-
250
- const hf_spaces_instructions: LocalAppSnippet = {
251
- title: "Using HuggingFace Spaces for Unsloth",
252
- setup: "# No setup required",
253
- content:
254
- "# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for " +
255
- model.id +
256
- " to start chatting",
257
- };
258
-
259
- const fastmodel_instructions: LocalAppSnippet = {
260
- title: "Load model with FastModel",
261
- setup: "pip install unsloth",
262
- content: [
263
- "from unsloth import FastModel",
264
- "model, tokenizer = FastModel.from_pretrained(",
265
- ' model_name="' + model.id + '",',
266
- " max_seq_length=2048,",
267
- ")",
268
- ].join("\n"),
269
- };
270
-
271
- if (isGguf) {
272
- return [studio_instructions, studio_instructions_windows, hf_spaces_instructions];
273
- } else {
274
- return [studio_instructions, studio_instructions_windows, hf_spaces_instructions, fastmodel_instructions];
275
- }
276
- };
277
-
278
228
  const snippetLocalAI = (model: ModelData, filepath?: string): LocalAppSnippet[] => {
279
229
  const command = (binary: string) =>
280
230
  ["# Load and run the model:", `${binary} huggingface://${model.id}/${filepath ?? "{{GGUF_FILE}}"}`].join("\n");
@@ -798,11 +748,18 @@ export const LOCAL_APPS = {
798
748
  snippet: snippetOllama,
799
749
  },
800
750
  unsloth: {
801
- prettyLabel: "Unsloth Studio",
802
- docsUrl: "https://unsloth.ai/docs/new/studio",
751
+ prettyLabel: "Unsloth Desktop",
752
+ docsUrl: "https://unsloth.ai/docs",
803
753
  mainTask: "text-generation",
804
754
  displayOnModelPage: isUnslothModel,
805
- snippet: snippetUnsloth,
755
+ deeplink: (model, filepath) => {
756
+ const url = new URL("unsloth://open_from_hf");
757
+ url.searchParams.set("model", model.id);
758
+ if (filepath) {
759
+ url.searchParams.set("file", filepath);
760
+ }
761
+ return url;
762
+ },
806
763
  },
807
764
  "docker-model-runner": {
808
765
  prettyLabel: "Docker Model Runner",
@@ -247,6 +247,31 @@ print("R² Score:", r2)`;
247
247
  return [installSnippet, classificationSnippet, regressionsSnippet];
248
248
  };
249
249
 
250
+ export const cortiq = (model: ModelData): string[] => {
251
+ const setup = `# one Rust binary, no additional dependencies
252
+ cargo install cortiq-cli # or a prebuilt binary from github.com/infosave2007/cmf/releases
253
+ hf download ${model.id} --include "*.cmf" --local-dir .
254
+ ls *.cmf # some repos ship more than one quantization`;
255
+ if (model.pipeline_tag === "text-to-image") {
256
+ return [setup, `cortiq imagine FILE.cmf --prompt "a red fox in a snowy forest" --out fox.ppm`];
257
+ }
258
+ if (model.pipeline_tag === "text-to-video") {
259
+ return [setup, `cortiq animate FILE.cmf --prompt "a corgi in a chef hat flipping a pancake" --out clip.avi`];
260
+ }
261
+ if (model.pipeline_tag === "text-to-audio") {
262
+ return [
263
+ setup,
264
+ `cortiq music FILE.cmf --prompt "dream pop, warm analog synths, brushed drums" \\
265
+ --lyrics "[verse] the tide came in and took the map" --seconds 20 --out song.wav`,
266
+ ];
267
+ }
268
+ return [
269
+ setup,
270
+ `cortiq run FILE.cmf --prompt "What is the capital of France?"`,
271
+ `cortiq serve FILE.cmf --port 8080 # OpenAI-compatible server`,
272
+ ];
273
+ };
274
+
250
275
  export const cxr_foundation = (): string[] => [
251
276
  `# pip install git+https://github.com/Google-Health/cxr-foundation.git#subdirectory=python
252
277
 
@@ -1473,6 +1498,20 @@ from matanyone import InferenceCore
1473
1498
  processor = InferenceCore("${model.id}")`,
1474
1499
  ];
1475
1500
 
1501
+ export const memra = (model: ModelData): string[] => [
1502
+ `# memra serves NVIDIA Blackwell workstation and consumer cards (sm_120a), with a
1503
+ # compile-gated Hopper lane. Prebuilt binaries need Linux x86_64 and driver 580+,
1504
+ # and no CUDA toolkit.
1505
+ curl -fsSL https://raw.githubusercontent.com/avifenesh/memra/main/tools/install.sh | sh`,
1506
+
1507
+ `# One chat-templated generation. In a repo with several GGUF files, append
1508
+ # :<substring> to choose one, for example hf:${model.id}:Q4_K_M
1509
+ MEMRA_CHAT=1 run-gen hf:${model.id} --prompt "Explain KV caches in one sentence."`,
1510
+
1511
+ `# Or an OpenAI-compatible server on 127.0.0.1:8080.
1512
+ MEMRA_MODELS="model=hf:${model.id}" memra-server`,
1513
+ ];
1514
+
1476
1515
  export const mesh_anything = (): string[] => [
1477
1516
  `# Install from https://github.com/buaacyw/MeshAnything.git
1478
1517
 
@@ -1552,6 +1591,13 @@ openasr transcribe audio.wav --model ${modelId}`,
1552
1591
  ];
1553
1592
  };
1554
1593
 
1594
+ export const opendde = (): string[] => [
1595
+ `# pip install 'opendde[gpu]'
1596
+ # Checkpoints are fetched from the Hub into $OPENDDE_ROOT_DIR (default ~/.cache/opendde)
1597
+ opendde doctor
1598
+ opendde pred -i examples/input.json -o ./output -n opendde_v1`,
1599
+ ];
1600
+
1555
1601
  export const paddlenlp = (model: ModelData): string[] => {
1556
1602
  const architecture = model.config?.architectures?.[0];
1557
1603
  // interpolated as a Python class name, so a non-identifier is treated as absent
@@ -2486,15 +2532,30 @@ model = BiRefNet.from_pretrained("${model.id}")`,
2486
2532
 
2487
2533
  export const nobg = (model: ModelData): string[] => {
2488
2534
  const installSnippet = `pip install nobg`;
2535
+ // we check model tags and if it supports prompts we show an example for it, else we show the default example without prompts
2536
+ const predictCall = model.tags.includes("promptable")
2537
+ ? `cutout = model.predict(processor, "image.jpg", "prompt")`
2538
+ : `cutout = model.predict(processor, "image.jpg")`;
2539
+ // snippet using the predict method
2540
+ const predictSnippet = `# Option 1: use via the predict method
2489
2541
 
2490
- const exampleSnippet = `import torch
2542
+ from nobg import AutoModel, AutoProcessor
2543
+
2544
+ model = AutoModel.from_pretrained("${model.id}").eval()
2545
+ processor = AutoProcessor.from_pretrained("${model.id}")
2546
+
2547
+ ${predictCall}`;
2548
+ // snippet using the model and processor directly
2549
+ const manualSnippet = `# Option 2: use the model and processor directly
2550
+
2551
+ import torch
2491
2552
  from loadimg import load_img
2492
2553
  from nobg import AutoModel, AutoProcessor
2493
2554
 
2494
2555
  model = AutoModel.from_pretrained("${model.id}").eval()
2495
2556
  processor = AutoProcessor.from_pretrained("${model.id}")
2496
2557
 
2497
- image = load_img("input.jpg").convert("RGB")
2558
+ image = load_img("image.jpg").convert("RGB")
2498
2559
  inputs = processor(image, return_tensors="pt")
2499
2560
 
2500
2561
  with torch.no_grad():
@@ -2503,7 +2564,7 @@ with torch.no_grad():
2503
2564
  alpha = processor.post_process_alpha_matting(outputs, target_sizes=[(image.height, image.width)])[0]
2504
2565
  processor.cutout(image, alpha).save("output.png")`;
2505
2566
 
2506
- return [installSnippet, exampleSnippet];
2567
+ return [installSnippet, predictSnippet, manualSnippet];
2507
2568
  };
2508
2569
 
2509
2570
  export const supertonic = (): string[] => [