@huggingface/tasks 0.21.38 → 0.21.40

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.
@@ -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
@@ -1744,6 +1790,28 @@ from renderformer import RenderFormerRenderingPipeline
1744
1790
  pipeline = RenderFormerRenderingPipeline.from_pretrained("${model.id}")`,
1745
1791
  ];
1746
1792
 
1793
+ export const routee_powertrain = (model: ModelData): string[] => [
1794
+ `# pip install routee.powertrain
1795
+ import pandas as pd
1796
+ import routee.powertrain as pt
1797
+ from routee.powertrain.registry import HFRegistry
1798
+
1799
+ registry = HFRegistry(repo_id="${model.id}")
1800
+
1801
+ # find a vehicle: filter by make, model, year, powertrain type, features, ...
1802
+ pt.query_available_models(make="tesla", model="model 3", registry=registry)
1803
+
1804
+ # load one by its id: "<make>/<vehicle_slug>/<year>/<config_slug>"
1805
+ model = pt.load_model("tesla/model_3_bev/2022/rf_c3326385", registry=registry)
1806
+
1807
+ links = pd.DataFrame({
1808
+ "distance": [0.1, 0.2], # miles
1809
+ "speed_mph": [30, 55],
1810
+ "grade_percent": [-2.0, 1.0],
1811
+ })
1812
+ model.predict(links)`,
1813
+ ];
1814
+
1747
1815
  const tensorflowttsTextToMel = (model: ModelData): string[] => [
1748
1816
  `from tensorflow_tts.inference import AutoProcessor, TFAutoModel
1749
1817
 
@@ -334,6 +334,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
334
334
  repoUrl: "https://github.com/Unbabel/COMET/",
335
335
  countDownloads: `path:"hparams.yaml"`,
336
336
  },
337
+ cortiq: {
338
+ prettyLabel: "cortiq",
339
+ repoName: "cortiq",
340
+ repoUrl: "https://github.com/infosave2007/cmf",
341
+ docsUrl: "https://github.com/infosave2007/cmf/blob/master/docs/CMF_V2_SPEC.md",
342
+ snippets: snippets.cortiq,
343
+ countDownloads: `path_extension:"cmf"`,
344
+ },
337
345
  cosmos: {
338
346
  prettyLabel: "Cosmos",
339
347
  repoName: "Cosmos",
@@ -924,6 +932,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
924
932
  snippets: snippets.matanyone,
925
933
  filter: false,
926
934
  },
935
+ memra: {
936
+ prettyLabel: "memra",
937
+ repoName: "memra",
938
+ repoUrl: "https://github.com/avifenesh/memra",
939
+ snippets: snippets.memra,
940
+ filter: false,
941
+ },
927
942
  "mesh-anything": {
928
943
  prettyLabel: "MeshAnything",
929
944
  repoName: "MeshAnything",
@@ -1015,6 +1030,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
1015
1030
  snippets: snippets.mobilint,
1016
1031
  filter: false,
1017
1032
  },
1033
+ "montreal-forced-aligner": {
1034
+ prettyLabel: "Montreal Forced Aligner",
1035
+ repoName: "Montreal Forced Aligner",
1036
+ repoUrl: "https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner",
1037
+ docsUrl: "https://montreal-forced-aligner.readthedocs.io",
1038
+ filter: false,
1039
+ countDownloads: `path:"acoustic/final.mdl" OR path_extension:"zip"`,
1040
+ },
1018
1041
  moshi: {
1019
1042
  prettyLabel: "Moshi",
1020
1043
  repoName: "Moshi",
@@ -1093,6 +1116,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
1093
1116
  filter: false,
1094
1117
  countDownloads: `path_extension:"oasr"`,
1095
1118
  },
1119
+ opendde: {
1120
+ prettyLabel: "OpenDDE",
1121
+ repoName: "OpenDDE",
1122
+ repoUrl: "https://github.com/aurekaresearch/OpenDDE",
1123
+ docsUrl: "https://huggingface.co/aurekaresearch/OpenDDE/blob/main/docs/inference_instructions.md",
1124
+ snippets: snippets.opendde,
1125
+ filter: false,
1126
+ countDownloads: `path_extension:"pt"`,
1127
+ },
1096
1128
  openpeerllm: {
1097
1129
  prettyLabel: "OpenPeerLLM",
1098
1130
  repoName: "OpenPeerLLM",
@@ -1157,6 +1189,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
1157
1189
  filter: false,
1158
1190
  countDownloads: `path_extension:"pth"`,
1159
1191
  },
1192
+ piper: {
1193
+ prettyLabel: "Piper",
1194
+ repoName: "Piper",
1195
+ repoUrl: "https://github.com/OHF-Voice/piper1-gpl",
1196
+ filter: false,
1197
+ countDownloads: `path_extension:"onnx" OR path_extension:"ckpt"`,
1198
+ },
1160
1199
  "pocket-tts": {
1161
1200
  prettyLabel: "Pocket-TTS",
1162
1201
  repoName: "PocketTTS",
@@ -1262,6 +1301,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
1262
1301
  filter: false,
1263
1302
  countDownloads: `path_extension:"safetensors"`,
1264
1303
  },
1304
+ "routee-powertrain": {
1305
+ prettyLabel: "RouteE-Powertrain",
1306
+ repoName: "RouteE-Powertrain",
1307
+ repoUrl: "https://github.com/NatLabRockies/routee-powertrain",
1308
+ docsUrl: "https://natlabrockies.github.io/routee-powertrain/",
1309
+ snippets: snippets.routee_powertrain,
1310
+ filter: false,
1311
+ countDownloads: `path_extension:"onnx" OR path_extension:"joblib"`,
1312
+ },
1265
1313
  rwkv: {
1266
1314
  prettyLabel: "RWKV",
1267
1315
  repoName: "RWKV-LM",