@huggingface/tasks 0.1.1 → 0.1.2
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.d.ts +1 -0
- package/dist/index.js +13 -0
- package/dist/index.mjs +13 -0
- package/package.json +1 -1
- package/src/library-ui-elements.ts +13 -0
- package/src/model-libraries.ts +1 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -531,6 +531,12 @@ transcriptions = asr_model.transcribe(["file.wav"])`
|
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
var mlAgents = (model) => [`mlagents-load-from-hf --repo-id="${model.id}" --local-dir="./downloads"`];
|
|
534
|
+
var mlx = (model) => [
|
|
535
|
+
`pip install huggingface_hub hf_transfer
|
|
536
|
+
|
|
537
|
+
export HF_HUB_ENABLE_HF_TRANSFER=1
|
|
538
|
+
huggingface-cli download --local-dir ${nameWithoutNamespace(model.id)} ${model.id}`
|
|
539
|
+
];
|
|
534
540
|
var nemo = (model) => {
|
|
535
541
|
let command = void 0;
|
|
536
542
|
if (model.tags?.includes("automatic-speech-recognition")) {
|
|
@@ -605,6 +611,12 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
605
611
|
docsUrl: "https://huggingface.co/docs/hub/keras",
|
|
606
612
|
snippets: keras
|
|
607
613
|
},
|
|
614
|
+
mlx: {
|
|
615
|
+
btnLabel: "MLX",
|
|
616
|
+
repoName: "MLX",
|
|
617
|
+
repoUrl: "https://github.com/ml-explore/mlx-examples/tree/main",
|
|
618
|
+
snippets: mlx
|
|
619
|
+
},
|
|
608
620
|
nemo: {
|
|
609
621
|
btnLabel: "NeMo",
|
|
610
622
|
repoName: "NeMo",
|
|
@@ -4589,6 +4601,7 @@ var ModelLibrary = /* @__PURE__ */ ((ModelLibrary2) => {
|
|
|
4589
4601
|
ModelLibrary2["flair"] = "Flair";
|
|
4590
4602
|
ModelLibrary2["keras"] = "Keras";
|
|
4591
4603
|
ModelLibrary2["k2"] = "K2";
|
|
4604
|
+
ModelLibrary2["mlx"] = "mlx";
|
|
4592
4605
|
ModelLibrary2["nemo"] = "NeMo";
|
|
4593
4606
|
ModelLibrary2["open_clip"] = "OpenCLIP";
|
|
4594
4607
|
ModelLibrary2["paddlenlp"] = "PaddleNLP";
|
package/dist/index.mjs
CHANGED
|
@@ -493,6 +493,12 @@ transcriptions = asr_model.transcribe(["file.wav"])`
|
|
|
493
493
|
}
|
|
494
494
|
};
|
|
495
495
|
var mlAgents = (model) => [`mlagents-load-from-hf --repo-id="${model.id}" --local-dir="./downloads"`];
|
|
496
|
+
var mlx = (model) => [
|
|
497
|
+
`pip install huggingface_hub hf_transfer
|
|
498
|
+
|
|
499
|
+
export HF_HUB_ENABLE_HF_TRANSFER=1
|
|
500
|
+
huggingface-cli download --local-dir ${nameWithoutNamespace(model.id)} ${model.id}`
|
|
501
|
+
];
|
|
496
502
|
var nemo = (model) => {
|
|
497
503
|
let command = void 0;
|
|
498
504
|
if (model.tags?.includes("automatic-speech-recognition")) {
|
|
@@ -567,6 +573,12 @@ var MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
567
573
|
docsUrl: "https://huggingface.co/docs/hub/keras",
|
|
568
574
|
snippets: keras
|
|
569
575
|
},
|
|
576
|
+
mlx: {
|
|
577
|
+
btnLabel: "MLX",
|
|
578
|
+
repoName: "MLX",
|
|
579
|
+
repoUrl: "https://github.com/ml-explore/mlx-examples/tree/main",
|
|
580
|
+
snippets: mlx
|
|
581
|
+
},
|
|
570
582
|
nemo: {
|
|
571
583
|
btnLabel: "NeMo",
|
|
572
584
|
repoName: "NeMo",
|
|
@@ -4551,6 +4563,7 @@ var ModelLibrary = /* @__PURE__ */ ((ModelLibrary2) => {
|
|
|
4551
4563
|
ModelLibrary2["flair"] = "Flair";
|
|
4552
4564
|
ModelLibrary2["keras"] = "Keras";
|
|
4553
4565
|
ModelLibrary2["k2"] = "K2";
|
|
4566
|
+
ModelLibrary2["mlx"] = "mlx";
|
|
4554
4567
|
ModelLibrary2["nemo"] = "NeMo";
|
|
4555
4568
|
ModelLibrary2["open_clip"] = "OpenCLIP";
|
|
4556
4569
|
ModelLibrary2["paddlenlp"] = "PaddleNLP";
|
package/package.json
CHANGED
|
@@ -541,6 +541,13 @@ transcriptions = asr_model.transcribe(["file.wav"])`,
|
|
|
541
541
|
|
|
542
542
|
const mlAgents = (model: ModelData) => [`mlagents-load-from-hf --repo-id="${model.id}" --local-dir="./downloads"`];
|
|
543
543
|
|
|
544
|
+
const mlx = (model: ModelData) => [
|
|
545
|
+
`pip install huggingface_hub hf_transfer
|
|
546
|
+
|
|
547
|
+
export HF_HUB_ENABLE_HF_TRANSFER=1
|
|
548
|
+
huggingface-cli download --local-dir ${nameWithoutNamespace(model.id)} ${model.id}`,
|
|
549
|
+
];
|
|
550
|
+
|
|
544
551
|
const nemo = (model: ModelData) => {
|
|
545
552
|
let command: string[] | undefined = undefined;
|
|
546
553
|
// Resolve the tag to a nemo domain/sub-domain
|
|
@@ -621,6 +628,12 @@ export const MODEL_LIBRARIES_UI_ELEMENTS: Partial<Record<ModelLibraryKey, Librar
|
|
|
621
628
|
docsUrl: "https://huggingface.co/docs/hub/keras",
|
|
622
629
|
snippets: keras,
|
|
623
630
|
},
|
|
631
|
+
mlx: {
|
|
632
|
+
btnLabel: "MLX",
|
|
633
|
+
repoName: "MLX",
|
|
634
|
+
repoUrl: "https://github.com/ml-explore/mlx-examples/tree/main",
|
|
635
|
+
snippets: mlx,
|
|
636
|
+
},
|
|
624
637
|
nemo: {
|
|
625
638
|
btnLabel: "NeMo",
|
|
626
639
|
repoName: "NeMo",
|