@huggingface/tasks 0.20.5 → 0.20.7
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/commonjs/local-apps.js +3 -3
- package/dist/commonjs/local-apps.spec.js +2 -2
- package/dist/commonjs/model-libraries.d.ts +8 -1
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +7 -0
- package/dist/esm/local-apps.js +3 -3
- package/dist/esm/local-apps.spec.js +2 -2
- package/dist/esm/model-libraries.d.ts +8 -1
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +7 -0
- package/package.json +1 -1
- package/src/local-apps.spec.ts +2 -2
- package/src/local-apps.ts +3 -3
- package/src/model-libraries.ts +7 -0
|
@@ -370,10 +370,10 @@ const snippetPi = (model, filepath) => {
|
|
|
370
370
|
const modelsJson = JSON.stringify({
|
|
371
371
|
providers: {
|
|
372
372
|
[isMLX ? "mlx-lm" : "llama-cpp"]: {
|
|
373
|
-
baseUrl:
|
|
373
|
+
baseUrl: "http://localhost:8080/v1",
|
|
374
374
|
api: "openai-completions",
|
|
375
375
|
apiKey: "none",
|
|
376
|
-
models: [{ id: modelName }],
|
|
376
|
+
models: [{ id: isMLX ? model.id : modelName }],
|
|
377
377
|
},
|
|
378
378
|
},
|
|
379
379
|
}, null, 2);
|
|
@@ -628,7 +628,7 @@ exports.LOCAL_APPS = {
|
|
|
628
628
|
docsUrl: "https://github.com/badlogic/pi-mono",
|
|
629
629
|
mainTask: "text-generation",
|
|
630
630
|
displayOnModelPage: (model) => (isLlamaCppGgufModel(model) || isMlxModel(model)) &&
|
|
631
|
-
model.
|
|
631
|
+
model.tags.includes("conversational") &&
|
|
632
632
|
!!getChatTemplate(model)?.includes("tools"),
|
|
633
633
|
snippet: snippetPi,
|
|
634
634
|
},
|
|
@@ -143,8 +143,8 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
143
143
|
(0, vitest_1.expect)(snippet[0].setup).toContain("uv tool install mlx-lm");
|
|
144
144
|
(0, vitest_1.expect)(snippet[0].content).toContain('mlx_lm.server --model "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
145
145
|
(0, vitest_1.expect)(snippet[1].setup).toContain("npm install -g @mariozechner/pi-coding-agent");
|
|
146
|
-
(0, vitest_1.expect)(snippet[1].content).toContain('"baseUrl": "http://localhost:
|
|
147
|
-
(0, vitest_1.expect)(snippet[1].content).toContain('"id": "Llama-3.2-3B-Instruct-mlx"');
|
|
146
|
+
(0, vitest_1.expect)(snippet[1].content).toContain('"baseUrl": "http://localhost:8080/v1"');
|
|
147
|
+
(0, vitest_1.expect)(snippet[1].content).toContain('"id": "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
148
148
|
(0, vitest_1.expect)(snippet[2].content).toContain("pi");
|
|
149
149
|
});
|
|
150
150
|
(0, vitest_1.it)("docker model runner", async () => {
|
|
@@ -532,6 +532,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
532
532
|
filter: false;
|
|
533
533
|
countDownloads: string;
|
|
534
534
|
};
|
|
535
|
+
"granite-library": {
|
|
536
|
+
prettyLabel: string;
|
|
537
|
+
repoName: string;
|
|
538
|
+
repoUrl: string;
|
|
539
|
+
filter: false;
|
|
540
|
+
countDownloads: string;
|
|
541
|
+
};
|
|
535
542
|
grok: {
|
|
536
543
|
prettyLabel: string;
|
|
537
544
|
repoName: string;
|
|
@@ -1547,5 +1554,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1547
1554
|
};
|
|
1548
1555
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1549
1556
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1550
|
-
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" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "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" | "espnet" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "grok" | "habibi-tts" | "hallo" | "hermes" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "keras" | "tf-keras" | "keras-hub" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "nemo" | "nv-medtech" | "open-oasis" | "open_clip" | "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" | "saelens" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "tirex" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "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")[];
|
|
1557
|
+
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" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "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" | "espnet" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "hermes" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "keras" | "tf-keras" | "keras-hub" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "nemo" | "nv-medtech" | "open-oasis" | "open_clip" | "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" | "saelens" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "tirex" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "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")[];
|
|
1551
1558
|
//# 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,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;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,kBAAkB,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"model-libraries.d.ts","sourceRoot":"","sources":["../../src/model-libraries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;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;IA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
|
+
repoName: "mellea",
|
|
535
|
+
repoUrl: "https://github.com/generative-computing/mellea",
|
|
536
|
+
filter: false,
|
|
537
|
+
countDownloads: `path_filename:"adapter_config" AND path_extension:"json"`,
|
|
538
|
+
},
|
|
532
539
|
grok: {
|
|
533
540
|
prettyLabel: "Grok",
|
|
534
541
|
repoName: "Grok",
|
package/dist/esm/local-apps.js
CHANGED
|
@@ -367,10 +367,10 @@ const snippetPi = (model, filepath) => {
|
|
|
367
367
|
const modelsJson = JSON.stringify({
|
|
368
368
|
providers: {
|
|
369
369
|
[isMLX ? "mlx-lm" : "llama-cpp"]: {
|
|
370
|
-
baseUrl:
|
|
370
|
+
baseUrl: "http://localhost:8080/v1",
|
|
371
371
|
api: "openai-completions",
|
|
372
372
|
apiKey: "none",
|
|
373
|
-
models: [{ id: modelName }],
|
|
373
|
+
models: [{ id: isMLX ? model.id : modelName }],
|
|
374
374
|
},
|
|
375
375
|
},
|
|
376
376
|
}, null, 2);
|
|
@@ -625,7 +625,7 @@ export const LOCAL_APPS = {
|
|
|
625
625
|
docsUrl: "https://github.com/badlogic/pi-mono",
|
|
626
626
|
mainTask: "text-generation",
|
|
627
627
|
displayOnModelPage: (model) => (isLlamaCppGgufModel(model) || isMlxModel(model)) &&
|
|
628
|
-
model.
|
|
628
|
+
model.tags.includes("conversational") &&
|
|
629
629
|
!!getChatTemplate(model)?.includes("tools"),
|
|
630
630
|
snippet: snippetPi,
|
|
631
631
|
},
|
|
@@ -141,8 +141,8 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
141
141
|
expect(snippet[0].setup).toContain("uv tool install mlx-lm");
|
|
142
142
|
expect(snippet[0].content).toContain('mlx_lm.server --model "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
143
143
|
expect(snippet[1].setup).toContain("npm install -g @mariozechner/pi-coding-agent");
|
|
144
|
-
expect(snippet[1].content).toContain('"baseUrl": "http://localhost:
|
|
145
|
-
expect(snippet[1].content).toContain('"id": "Llama-3.2-3B-Instruct-mlx"');
|
|
144
|
+
expect(snippet[1].content).toContain('"baseUrl": "http://localhost:8080/v1"');
|
|
145
|
+
expect(snippet[1].content).toContain('"id": "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
146
146
|
expect(snippet[2].content).toContain("pi");
|
|
147
147
|
});
|
|
148
148
|
it("docker model runner", async () => {
|
|
@@ -532,6 +532,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
532
532
|
filter: false;
|
|
533
533
|
countDownloads: string;
|
|
534
534
|
};
|
|
535
|
+
"granite-library": {
|
|
536
|
+
prettyLabel: string;
|
|
537
|
+
repoName: string;
|
|
538
|
+
repoUrl: string;
|
|
539
|
+
filter: false;
|
|
540
|
+
countDownloads: string;
|
|
541
|
+
};
|
|
535
542
|
grok: {
|
|
536
543
|
prettyLabel: string;
|
|
537
544
|
repoName: string;
|
|
@@ -1547,5 +1554,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1547
1554
|
};
|
|
1548
1555
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1549
1556
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1550
|
-
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" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "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" | "espnet" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "grok" | "habibi-tts" | "hallo" | "hermes" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "keras" | "tf-keras" | "keras-hub" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "nemo" | "nv-medtech" | "open-oasis" | "open_clip" | "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" | "saelens" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "tirex" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "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")[];
|
|
1557
|
+
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" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "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" | "espnet" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "hermes" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "keras" | "tf-keras" | "keras-hub" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "nemo" | "nv-medtech" | "open-oasis" | "open_clip" | "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" | "saelens" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "tirex" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "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")[];
|
|
1551
1558
|
//# 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,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,k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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAg+CI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,42FAQ1B,CAAC"}
|
|
@@ -493,6 +493,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
493
493
|
filter: false,
|
|
494
494
|
countDownloads: `path:"checkpoints/byt5_model.pt"`,
|
|
495
495
|
},
|
|
496
|
+
"granite-library": {
|
|
497
|
+
prettyLabel: "Granite Library",
|
|
498
|
+
repoName: "mellea",
|
|
499
|
+
repoUrl: "https://github.com/generative-computing/mellea",
|
|
500
|
+
filter: false,
|
|
501
|
+
countDownloads: `path_filename:"adapter_config" AND path_extension:"json"`,
|
|
502
|
+
},
|
|
496
503
|
grok: {
|
|
497
504
|
prettyLabel: "Grok",
|
|
498
505
|
repoName: "Grok",
|
package/package.json
CHANGED
package/src/local-apps.spec.ts
CHANGED
|
@@ -156,8 +156,8 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
156
156
|
expect(snippet[0].setup).toContain("uv tool install mlx-lm");
|
|
157
157
|
expect(snippet[0].content).toContain('mlx_lm.server --model "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
158
158
|
expect(snippet[1].setup).toContain("npm install -g @mariozechner/pi-coding-agent");
|
|
159
|
-
expect(snippet[1].content).toContain('"baseUrl": "http://localhost:
|
|
160
|
-
expect(snippet[1].content).toContain('"id": "Llama-3.2-3B-Instruct-mlx"');
|
|
159
|
+
expect(snippet[1].content).toContain('"baseUrl": "http://localhost:8080/v1"');
|
|
160
|
+
expect(snippet[1].content).toContain('"id": "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
161
161
|
expect(snippet[2].content).toContain("pi");
|
|
162
162
|
});
|
|
163
163
|
|
package/src/local-apps.ts
CHANGED
|
@@ -473,10 +473,10 @@ const snippetPi = (model: ModelData, filepath?: string): LocalAppSnippet[] => {
|
|
|
473
473
|
{
|
|
474
474
|
providers: {
|
|
475
475
|
[isMLX ? "mlx-lm" : "llama-cpp"]: {
|
|
476
|
-
baseUrl:
|
|
476
|
+
baseUrl: "http://localhost:8080/v1",
|
|
477
477
|
api: "openai-completions",
|
|
478
478
|
apiKey: "none",
|
|
479
|
-
models: [{ id: modelName }],
|
|
479
|
+
models: [{ id: isMLX ? model.id : modelName }],
|
|
480
480
|
},
|
|
481
481
|
},
|
|
482
482
|
},
|
|
@@ -742,7 +742,7 @@ export const LOCAL_APPS = {
|
|
|
742
742
|
mainTask: "text-generation",
|
|
743
743
|
displayOnModelPage: (model) =>
|
|
744
744
|
(isLlamaCppGgufModel(model) || isMlxModel(model)) &&
|
|
745
|
-
model.
|
|
745
|
+
model.tags.includes("conversational") &&
|
|
746
746
|
!!getChatTemplate(model)?.includes("tools"),
|
|
747
747
|
snippet: snippetPi,
|
|
748
748
|
},
|
package/src/model-libraries.ts
CHANGED
|
@@ -537,6 +537,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
537
537
|
filter: false,
|
|
538
538
|
countDownloads: `path:"checkpoints/byt5_model.pt"`,
|
|
539
539
|
},
|
|
540
|
+
"granite-library": {
|
|
541
|
+
prettyLabel: "Granite Library",
|
|
542
|
+
repoName: "mellea",
|
|
543
|
+
repoUrl: "https://github.com/generative-computing/mellea",
|
|
544
|
+
filter: false,
|
|
545
|
+
countDownloads: `path_filename:"adapter_config" AND path_extension:"json"`,
|
|
546
|
+
},
|
|
540
547
|
grok: {
|
|
541
548
|
prettyLabel: "Grok",
|
|
542
549
|
repoName: "Grok",
|