@huggingface/tasks 0.21.17 → 0.21.19
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/eval.d.ts +5 -0
- package/dist/commonjs/eval.d.ts.map +1 -1
- package/dist/commonjs/eval.js +5 -0
- package/dist/commonjs/hardware-amd.js +1 -1
- package/dist/commonjs/hardware-nvidia.js +4 -4
- package/dist/commonjs/hardware.js +8 -8
- package/dist/commonjs/inference-providers.d.ts +1 -1
- package/dist/commonjs/inference-providers.d.ts.map +1 -1
- package/dist/commonjs/inference-providers.js +0 -2
- package/dist/commonjs/local-apps.d.ts +7 -0
- package/dist/commonjs/local-apps.d.ts.map +1 -1
- package/dist/commonjs/local-apps.js +36 -0
- package/dist/commonjs/local-apps.spec.js +44 -0
- package/dist/commonjs/model-libraries.d.ts +9 -1
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +8 -0
- package/dist/commonjs/tasks/index.d.ts +1 -0
- package/dist/commonjs/tasks/index.d.ts.map +1 -1
- package/dist/esm/eval.d.ts +5 -0
- package/dist/esm/eval.d.ts.map +1 -1
- package/dist/esm/eval.js +5 -0
- package/dist/esm/hardware-amd.js +1 -1
- package/dist/esm/hardware-nvidia.js +4 -4
- package/dist/esm/hardware.js +8 -8
- package/dist/esm/inference-providers.d.ts +1 -1
- package/dist/esm/inference-providers.d.ts.map +1 -1
- package/dist/esm/inference-providers.js +0 -2
- package/dist/esm/local-apps.d.ts +7 -0
- package/dist/esm/local-apps.d.ts.map +1 -1
- package/dist/esm/local-apps.js +36 -0
- package/dist/esm/local-apps.spec.js +44 -0
- package/dist/esm/model-libraries.d.ts +9 -1
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +8 -0
- package/dist/esm/tasks/index.d.ts +1 -0
- package/dist/esm/tasks/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/eval.ts +6 -0
- package/src/hardware-amd.ts +1 -1
- package/src/hardware-nvidia.ts +4 -4
- package/src/hardware.ts +8 -8
- package/src/inference-providers.ts +0 -2
- package/src/local-apps.spec.ts +48 -0
- package/src/local-apps.ts +38 -0
- package/src/model-libraries.ts +8 -0
- package/src/tasks/index.ts +1 -0
package/dist/commonjs/eval.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ export declare const EVALUATION_FRAMEWORKS: {
|
|
|
32
32
|
readonly description: "Harbor is a framework for evaluating and optimizing agents and language models.";
|
|
33
33
|
readonly url: "https://github.com/laude-institute/harbor";
|
|
34
34
|
};
|
|
35
|
+
readonly ifstruct: {
|
|
36
|
+
readonly name: "ifstruct";
|
|
37
|
+
readonly description: "IFStruct is a benchmark for structured-output compliance: whether a model produces valid JSON/YAML that follows a requested schema, scored without constrained decoding.";
|
|
38
|
+
readonly url: "https://github.com/Liquid4All/ifstruct";
|
|
39
|
+
};
|
|
35
40
|
readonly pier: {
|
|
36
41
|
readonly name: "pier";
|
|
37
42
|
readonly description: "Pier is a Harbor fork built for DeepSWE, with stronger support for CLI agents in no-internet tasks and more faithful, consistent agent trajectories.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgKxB,CAAC"}
|
package/dist/commonjs/eval.js
CHANGED
|
@@ -35,6 +35,11 @@ exports.EVALUATION_FRAMEWORKS = {
|
|
|
35
35
|
description: "Harbor is a framework for evaluating and optimizing agents and language models.",
|
|
36
36
|
url: "https://github.com/laude-institute/harbor",
|
|
37
37
|
},
|
|
38
|
+
ifstruct: {
|
|
39
|
+
name: "ifstruct",
|
|
40
|
+
description: "IFStruct is a benchmark for structured-output compliance: whether a model produces valid JSON/YAML that follows a requested schema, scored without constrained decoding.",
|
|
41
|
+
url: "https://github.com/Liquid4All/ifstruct",
|
|
42
|
+
},
|
|
38
43
|
pier: {
|
|
39
44
|
name: "pier",
|
|
40
45
|
description: "Pier is a Harbor fork built for DeepSWE, with stronger support for CLI agents in no-internet tasks and more faithful, consistent agent trajectories.",
|
|
@@ -104,8 +104,8 @@ exports.NVIDIA_SKUS = {
|
|
|
104
104
|
tflops: 29.71,
|
|
105
105
|
memory: [128],
|
|
106
106
|
computeCapability: 12.1,
|
|
107
|
-
msrp:
|
|
108
|
-
power:
|
|
107
|
+
msrp: 3_999,
|
|
108
|
+
power: 140,
|
|
109
109
|
releaseYear: 2025,
|
|
110
110
|
},
|
|
111
111
|
"RTX PRO 6000 WS": {
|
|
@@ -794,7 +794,7 @@ exports.NVIDIA_SKUS = {
|
|
|
794
794
|
computeCapability: 8.6, // Ampere (outlier GPU in the 20xx series)
|
|
795
795
|
msrp: 250,
|
|
796
796
|
power: 45,
|
|
797
|
-
releaseYear:
|
|
797
|
+
releaseYear: 2021,
|
|
798
798
|
},
|
|
799
799
|
"GTX 1080 Ti": {
|
|
800
800
|
tflops: 11.34, // float32 (GPU does not support native float16)
|
|
@@ -928,7 +928,7 @@ exports.NVIDIA_SKUS = {
|
|
|
928
928
|
tflops: 6.66,
|
|
929
929
|
memory: [32],
|
|
930
930
|
computeCapability: 8.7,
|
|
931
|
-
msrp:
|
|
931
|
+
msrp: 999,
|
|
932
932
|
power: 40,
|
|
933
933
|
releaseYear: 2022,
|
|
934
934
|
},
|
|
@@ -231,13 +231,13 @@ exports.SKUS = {
|
|
|
231
231
|
"Intel Core 11th Generation (i5)": {
|
|
232
232
|
tflops: 0.5,
|
|
233
233
|
msrp: 250,
|
|
234
|
-
power:
|
|
234
|
+
power: 251,
|
|
235
235
|
releaseYear: 2021,
|
|
236
236
|
},
|
|
237
237
|
"Intel Core 11th Generation (i3)": {
|
|
238
238
|
tflops: 0.35,
|
|
239
239
|
msrp: 150,
|
|
240
|
-
power:
|
|
240
|
+
power: 90,
|
|
241
241
|
releaseYear: 2021,
|
|
242
242
|
},
|
|
243
243
|
"Intel Core 10th Generation (i9)": {
|
|
@@ -255,13 +255,13 @@ exports.SKUS = {
|
|
|
255
255
|
"Intel Core 10th Generation (i5)": {
|
|
256
256
|
tflops: 0.46,
|
|
257
257
|
msrp: 250,
|
|
258
|
-
power:
|
|
258
|
+
power: 182,
|
|
259
259
|
releaseYear: 2020,
|
|
260
260
|
},
|
|
261
261
|
"Intel Core 10th Generation (i3)": {
|
|
262
262
|
tflops: 0.44,
|
|
263
263
|
msrp: 150,
|
|
264
|
-
power:
|
|
264
|
+
power: 90,
|
|
265
265
|
releaseYear: 2020,
|
|
266
266
|
},
|
|
267
267
|
},
|
|
@@ -327,9 +327,9 @@ exports.SKUS = {
|
|
|
327
327
|
releaseYear: 2017,
|
|
328
328
|
},
|
|
329
329
|
"Ryzen 7 3800X (16)": {
|
|
330
|
-
tflops: 1.
|
|
330
|
+
tflops: 1.15,
|
|
331
331
|
msrp: 400,
|
|
332
|
-
power:
|
|
332
|
+
power: 142,
|
|
333
333
|
releaseYear: 2019,
|
|
334
334
|
},
|
|
335
335
|
"Ryzen Zen 5 9000 (Ryzen 9)": {
|
|
@@ -341,13 +341,13 @@ exports.SKUS = {
|
|
|
341
341
|
"Ryzen Zen 5 9000 (Ryzen 7)": {
|
|
342
342
|
tflops: 0.56,
|
|
343
343
|
msrp: 350,
|
|
344
|
-
power:
|
|
344
|
+
power: 88,
|
|
345
345
|
releaseYear: 2024,
|
|
346
346
|
},
|
|
347
347
|
"Ryzen Zen 5 9000 (Ryzen 5)": {
|
|
348
348
|
tflops: 0.56,
|
|
349
349
|
msrp: 300,
|
|
350
|
-
power:
|
|
350
|
+
power: 88,
|
|
351
351
|
releaseYear: 2024,
|
|
352
352
|
},
|
|
353
353
|
"Ryzen Zen 4 7000 (Ryzen 9)": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const INFERENCE_PROVIDERS: readonly ["cerebras", "cohere", "deepinfra", "fal-ai", "fireworks-ai", "hf-inference", "
|
|
1
|
+
declare const INFERENCE_PROVIDERS: readonly ["cerebras", "cohere", "deepinfra", "fal-ai", "fireworks-ai", "hf-inference", "ovhcloud", "replicate", "together"];
|
|
2
2
|
export type SnippetInferenceProvider = (typeof INFERENCE_PROVIDERS)[number] | string;
|
|
3
3
|
export declare const HF_HUB_INFERENCE_PROXY_TEMPLATE = "https://router.huggingface.co/{{PROVIDER}}";
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-providers.d.ts","sourceRoot":"","sources":["../../src/inference-providers.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"inference-providers.d.ts","sourceRoot":"","sources":["../../src/inference-providers.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB,6HAUf,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAErF,eAAO,MAAM,+BAA+B,+CAA+C,CAAC;AAE5F;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,wBAAwB,GAAG,MAAM,CAGxE"}
|
|
@@ -11,10 +11,8 @@ const INFERENCE_PROVIDERS = [
|
|
|
11
11
|
"fal-ai",
|
|
12
12
|
"fireworks-ai",
|
|
13
13
|
"hf-inference",
|
|
14
|
-
"hyperbolic",
|
|
15
14
|
"ovhcloud",
|
|
16
15
|
"replicate",
|
|
17
|
-
"sambanova",
|
|
18
16
|
"together",
|
|
19
17
|
];
|
|
20
18
|
exports.HF_HUB_INFERENCE_PROXY_TEMPLATE = `https://router.huggingface.co/{{PROVIDER}}`;
|
|
@@ -252,6 +252,13 @@ export declare const LOCAL_APPS: {
|
|
|
252
252
|
displayOnModelPage: typeof isToolCallingLocalAgentModel;
|
|
253
253
|
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
254
254
|
};
|
|
255
|
+
openclaw: {
|
|
256
|
+
prettyLabel: string;
|
|
257
|
+
docsUrl: string;
|
|
258
|
+
mainTask: "text-generation";
|
|
259
|
+
displayOnModelPage: typeof isToolCallingLocalAgentModel;
|
|
260
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
261
|
+
};
|
|
255
262
|
};
|
|
256
263
|
export type LocalAppKey = keyof typeof LOCAL_APPS;
|
|
257
264
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-apps.d.ts","sourceRoot":"","sources":["../../src/local-apps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAKnD,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,E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O,CAM/D;AA4dD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU;;;;;;yBA1dS,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBAiDzC,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBA2F3D,SAAS,KAAG,eAAe,EAAE;;;;;;oCAwW3B,SAAS;yBAlTT,SAAS,KAAG,eAAe,EAAE;;;;;;;yBAoF9B,SAAS,KAAG,eAAe,EAAE;;;;;;;yBA7B/B,SAAS,KAAG,eAAe,EAAE;;;;;;;;;;;;;;yBApIzB,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAtDjD,SAAS,aAAa,MAAM,KAAG,MAAM;;;;;;;yBAIpC,SAAS,KAAG,eAAe,EAAE;;;;;;;yBAgWnB,SAAS,aAAa,MAAM,KAAG,MAAM;;;;;;;yBAM9C,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBAlGtD,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBAkCvC,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBA2BnD,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;CAqS5C,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -427,6 +427,35 @@ const snippetHermesAgent = (model, filepath) => {
|
|
|
427
427
|
},
|
|
428
428
|
];
|
|
429
429
|
};
|
|
430
|
+
const snippetOpenClaw = (model, filepath) => {
|
|
431
|
+
const isMLX = isMlxModel(model);
|
|
432
|
+
const providerId = isMLX ? "mlx-lm" : "llama-cpp";
|
|
433
|
+
const modelId = isMLX ? model.id : `${model.id}${getQuantTag(filepath)}`;
|
|
434
|
+
const serverStep = getLocalServerStep(model, filepath);
|
|
435
|
+
return [
|
|
436
|
+
serverStep,
|
|
437
|
+
{
|
|
438
|
+
title: "Configure OpenClaw",
|
|
439
|
+
setup: "# Install OpenClaw:\nnpm install -g openclaw@latest",
|
|
440
|
+
content: [
|
|
441
|
+
"# Register the local server and set it as the default model:",
|
|
442
|
+
"openclaw onboard --non-interactive --mode local \\",
|
|
443
|
+
" --auth-choice custom-api-key \\",
|
|
444
|
+
" --custom-base-url http://127.0.0.1:8080/v1 \\",
|
|
445
|
+
` --custom-model-id "${modelId}" \\`,
|
|
446
|
+
` --custom-provider-id ${providerId} \\`,
|
|
447
|
+
" --custom-compatibility openai \\",
|
|
448
|
+
" --custom-text-input \\",
|
|
449
|
+
" --accept-risk \\",
|
|
450
|
+
" --skip-health",
|
|
451
|
+
].join("\n"),
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
title: "Run OpenClaw",
|
|
455
|
+
content: `openclaw agent --local --agent main --message "Hello from Hugging Face"`,
|
|
456
|
+
},
|
|
457
|
+
];
|
|
458
|
+
};
|
|
430
459
|
const snippetDockerModelRunner = (model, filepath) => {
|
|
431
460
|
// Only add quant tag for GGUF models, not safetensors
|
|
432
461
|
const quantTag = isLlamaCppGgufModel(model) ? getQuantTag(filepath) : "";
|
|
@@ -677,4 +706,11 @@ exports.LOCAL_APPS = {
|
|
|
677
706
|
displayOnModelPage: isToolCallingLocalAgentModel,
|
|
678
707
|
snippet: snippetHermesAgent,
|
|
679
708
|
},
|
|
709
|
+
openclaw: {
|
|
710
|
+
prettyLabel: "OpenClaw",
|
|
711
|
+
docsUrl: "https://github.com/openclaw/openclaw",
|
|
712
|
+
mainTask: "text-generation",
|
|
713
|
+
displayOnModelPage: isToolCallingLocalAgentModel,
|
|
714
|
+
snippet: snippetOpenClaw,
|
|
715
|
+
},
|
|
680
716
|
};
|
|
@@ -181,6 +181,50 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
181
181
|
(0, vitest_1.expect)(snippet[1].content).toContain("hermes config set model.default mlx-community/Llama-3.2-3B-Instruct-mlx");
|
|
182
182
|
(0, vitest_1.expect)(snippet[2].content).toContain("hermes");
|
|
183
183
|
});
|
|
184
|
+
(0, vitest_1.it)("openclaw", async () => {
|
|
185
|
+
const { snippet: snippetFunc } = local_apps_js_1.LOCAL_APPS.openclaw;
|
|
186
|
+
const model = {
|
|
187
|
+
id: "bartowski/Llama-3.2-3B-Instruct-GGUF",
|
|
188
|
+
tags: ["conversational"],
|
|
189
|
+
gguf: { total: 1, context_length: 4096, chat_template: "{% if tools %}" },
|
|
190
|
+
inference: "",
|
|
191
|
+
};
|
|
192
|
+
const snippet = snippetFunc(model);
|
|
193
|
+
(0, vitest_1.expect)(snippet[0].content).toContain(`llama-server -hf bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}`);
|
|
194
|
+
(0, vitest_1.expect)(snippet[1].setup).toContain("npm install -g openclaw@latest");
|
|
195
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
196
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--auth-choice custom-api-key");
|
|
197
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--custom-base-url http://127.0.0.1:8080/v1");
|
|
198
|
+
(0, vitest_1.expect)(snippet[1].content).toContain('--custom-model-id "bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}"');
|
|
199
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--custom-provider-id llama-cpp");
|
|
200
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--custom-compatibility openai");
|
|
201
|
+
(0, vitest_1.expect)(snippet[1].content).not.toContain("--custom-api-key");
|
|
202
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--custom-text-input");
|
|
203
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--accept-risk");
|
|
204
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--skip-health");
|
|
205
|
+
(0, vitest_1.expect)(snippet[2].content).toContain('openclaw agent --local --agent main --message "Hello from Hugging Face"');
|
|
206
|
+
});
|
|
207
|
+
(0, vitest_1.it)("openclaw - mlx", async () => {
|
|
208
|
+
const { snippet: snippetFunc } = local_apps_js_1.LOCAL_APPS.openclaw;
|
|
209
|
+
const model = {
|
|
210
|
+
id: "mlx-community/Llama-3.2-3B-Instruct-mlx",
|
|
211
|
+
tags: ["mlx", "conversational"],
|
|
212
|
+
pipeline_tag: "text-generation",
|
|
213
|
+
config: {
|
|
214
|
+
tokenizer_config: {
|
|
215
|
+
chat_template: "{% if tools %}...{% endif %}",
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
inference: "",
|
|
219
|
+
};
|
|
220
|
+
const snippet = snippetFunc(model);
|
|
221
|
+
(0, vitest_1.expect)(snippet[0].setup).toContain("uv tool install mlx-lm");
|
|
222
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
223
|
+
(0, vitest_1.expect)(snippet[1].content).toContain('--custom-model-id "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
224
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--custom-provider-id mlx-lm");
|
|
225
|
+
(0, vitest_1.expect)(snippet[1].content).toContain("--custom-text-input");
|
|
226
|
+
(0, vitest_1.expect)(snippet[2].content).toContain('openclaw agent --local --agent main --message "Hello from Hugging Face"');
|
|
227
|
+
});
|
|
184
228
|
(0, vitest_1.it)("docker model runner", async () => {
|
|
185
229
|
const { snippet: snippetFunc } = local_apps_js_1.LOCAL_APPS["docker-model-runner"];
|
|
186
230
|
const model = {
|
|
@@ -1175,6 +1175,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1175
1175
|
filter: false;
|
|
1176
1176
|
countDownloads: string;
|
|
1177
1177
|
};
|
|
1178
|
+
rwkv: {
|
|
1179
|
+
prettyLabel: string;
|
|
1180
|
+
repoName: string;
|
|
1181
|
+
repoUrl: string;
|
|
1182
|
+
docsUrl: string;
|
|
1183
|
+
filter: false;
|
|
1184
|
+
countDownloads: string;
|
|
1185
|
+
};
|
|
1178
1186
|
saelens: {
|
|
1179
1187
|
prettyLabel: string;
|
|
1180
1188
|
repoName: string;
|
|
@@ -1693,5 +1701,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1693
1701
|
};
|
|
1694
1702
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1695
1703
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1696
|
-
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" | "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" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "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" | "robo-orchard-lab" | "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" | "timm" | "tirex" | "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")[];
|
|
1704
|
+
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" | "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" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "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" | "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" | "timm" | "tirex" | "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")[];
|
|
1697
1705
|
//# 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,kBAAk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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAonDI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,urGAQ1B,CAAC"}
|
|
@@ -1176,6 +1176,14 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1176
1176
|
filter: false,
|
|
1177
1177
|
countDownloads: `path_extension:"safetensors"`,
|
|
1178
1178
|
},
|
|
1179
|
+
rwkv: {
|
|
1180
|
+
prettyLabel: "RWKV",
|
|
1181
|
+
repoName: "RWKV-LM",
|
|
1182
|
+
repoUrl: "https://github.com/BlinkDL/RWKV-LM",
|
|
1183
|
+
docsUrl: "https://rwkv.com/",
|
|
1184
|
+
filter: false,
|
|
1185
|
+
countDownloads: `path_extension:"pth"`,
|
|
1186
|
+
},
|
|
1179
1187
|
saelens: {
|
|
1180
1188
|
prettyLabel: "SAELens",
|
|
1181
1189
|
repoName: "SAELens",
|
|
@@ -21,6 +21,7 @@ export type * from "./table-question-answering/inference.js";
|
|
|
21
21
|
export type { TextToImageInput, TextToImageOutput, TextToImageParameters } from "./text-to-image/inference.js";
|
|
22
22
|
export type { TextToVideoParameters, TextToVideoOutput, TextToVideoInput } from "./text-to-video/inference.js";
|
|
23
23
|
export type { TextToSpeechParameters, TextToSpeechInput, TextToSpeechOutput } from "./text-to-speech/inference.js";
|
|
24
|
+
export type { TextToAudioInput, TextToAudioOutput, TextToAudioParameters } from "./text-to-audio/inference.js";
|
|
24
25
|
export type * from "./token-classification/inference.js";
|
|
25
26
|
export type { TranslationInput, TranslationOutput } from "./translation/inference.js";
|
|
26
27
|
export type { ClassificationOutputTransform, TextClassificationInput, TextClassificationOutput, TextClassificationOutputElement, TextClassificationParameters, } from "./text-classification/inference.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tasks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAoDpD,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,6CAA6C,CAAC;AACjE,YAAY,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,mCAAmC,EACnC,oBAAoB,EACpB,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,GAC/B,MAAM,gCAAgC,CAAC;AACxC,mBAAmB,4CAA4C,CAAC;AAChE,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,0BAA0B,CAAC;AAC9C,YAAY,EACX,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,EAChC,6BAA6B,GAC7B,MAAM,qCAAqC,CAAC;AAC7C,mBAAmB,+BAA+B,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB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AM,EAAE,aAAa,EAAE,CAAC;IACxB,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,YAAY,CAAC;IACjB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC"}
|
package/dist/esm/eval.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ export declare const EVALUATION_FRAMEWORKS: {
|
|
|
32
32
|
readonly description: "Harbor is a framework for evaluating and optimizing agents and language models.";
|
|
33
33
|
readonly url: "https://github.com/laude-institute/harbor";
|
|
34
34
|
};
|
|
35
|
+
readonly ifstruct: {
|
|
36
|
+
readonly name: "ifstruct";
|
|
37
|
+
readonly description: "IFStruct is a benchmark for structured-output compliance: whether a model produces valid JSON/YAML that follows a requested schema, scored without constrained decoding.";
|
|
38
|
+
readonly url: "https://github.com/Liquid4All/ifstruct";
|
|
39
|
+
};
|
|
35
40
|
readonly pier: {
|
|
36
41
|
readonly name: "pier";
|
|
37
42
|
readonly description: "Pier is a Harbor fork built for DeepSWE, with stronger support for CLI agents in no-internet tasks and more faithful, consistent agent trajectories.";
|
package/dist/esm/eval.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgKxB,CAAC"}
|
package/dist/esm/eval.js
CHANGED
|
@@ -32,6 +32,11 @@ export const EVALUATION_FRAMEWORKS = {
|
|
|
32
32
|
description: "Harbor is a framework for evaluating and optimizing agents and language models.",
|
|
33
33
|
url: "https://github.com/laude-institute/harbor",
|
|
34
34
|
},
|
|
35
|
+
ifstruct: {
|
|
36
|
+
name: "ifstruct",
|
|
37
|
+
description: "IFStruct is a benchmark for structured-output compliance: whether a model produces valid JSON/YAML that follows a requested schema, scored without constrained decoding.",
|
|
38
|
+
url: "https://github.com/Liquid4All/ifstruct",
|
|
39
|
+
},
|
|
35
40
|
pier: {
|
|
36
41
|
name: "pier",
|
|
37
42
|
description: "Pier is a Harbor fork built for DeepSWE, with stronger support for CLI agents in no-internet tasks and more faithful, consistent agent trajectories.",
|
package/dist/esm/hardware-amd.js
CHANGED
|
@@ -101,8 +101,8 @@ export const NVIDIA_SKUS = {
|
|
|
101
101
|
tflops: 29.71,
|
|
102
102
|
memory: [128],
|
|
103
103
|
computeCapability: 12.1,
|
|
104
|
-
msrp:
|
|
105
|
-
power:
|
|
104
|
+
msrp: 3_999,
|
|
105
|
+
power: 140,
|
|
106
106
|
releaseYear: 2025,
|
|
107
107
|
},
|
|
108
108
|
"RTX PRO 6000 WS": {
|
|
@@ -791,7 +791,7 @@ export const NVIDIA_SKUS = {
|
|
|
791
791
|
computeCapability: 8.6, // Ampere (outlier GPU in the 20xx series)
|
|
792
792
|
msrp: 250,
|
|
793
793
|
power: 45,
|
|
794
|
-
releaseYear:
|
|
794
|
+
releaseYear: 2021,
|
|
795
795
|
},
|
|
796
796
|
"GTX 1080 Ti": {
|
|
797
797
|
tflops: 11.34, // float32 (GPU does not support native float16)
|
|
@@ -925,7 +925,7 @@ export const NVIDIA_SKUS = {
|
|
|
925
925
|
tflops: 6.66,
|
|
926
926
|
memory: [32],
|
|
927
927
|
computeCapability: 8.7,
|
|
928
|
-
msrp:
|
|
928
|
+
msrp: 999,
|
|
929
929
|
power: 40,
|
|
930
930
|
releaseYear: 2022,
|
|
931
931
|
},
|
package/dist/esm/hardware.js
CHANGED
|
@@ -228,13 +228,13 @@ export const SKUS = {
|
|
|
228
228
|
"Intel Core 11th Generation (i5)": {
|
|
229
229
|
tflops: 0.5,
|
|
230
230
|
msrp: 250,
|
|
231
|
-
power:
|
|
231
|
+
power: 251,
|
|
232
232
|
releaseYear: 2021,
|
|
233
233
|
},
|
|
234
234
|
"Intel Core 11th Generation (i3)": {
|
|
235
235
|
tflops: 0.35,
|
|
236
236
|
msrp: 150,
|
|
237
|
-
power:
|
|
237
|
+
power: 90,
|
|
238
238
|
releaseYear: 2021,
|
|
239
239
|
},
|
|
240
240
|
"Intel Core 10th Generation (i9)": {
|
|
@@ -252,13 +252,13 @@ export const SKUS = {
|
|
|
252
252
|
"Intel Core 10th Generation (i5)": {
|
|
253
253
|
tflops: 0.46,
|
|
254
254
|
msrp: 250,
|
|
255
|
-
power:
|
|
255
|
+
power: 182,
|
|
256
256
|
releaseYear: 2020,
|
|
257
257
|
},
|
|
258
258
|
"Intel Core 10th Generation (i3)": {
|
|
259
259
|
tflops: 0.44,
|
|
260
260
|
msrp: 150,
|
|
261
|
-
power:
|
|
261
|
+
power: 90,
|
|
262
262
|
releaseYear: 2020,
|
|
263
263
|
},
|
|
264
264
|
},
|
|
@@ -324,9 +324,9 @@ export const SKUS = {
|
|
|
324
324
|
releaseYear: 2017,
|
|
325
325
|
},
|
|
326
326
|
"Ryzen 7 3800X (16)": {
|
|
327
|
-
tflops: 1.
|
|
327
|
+
tflops: 1.15,
|
|
328
328
|
msrp: 400,
|
|
329
|
-
power:
|
|
329
|
+
power: 142,
|
|
330
330
|
releaseYear: 2019,
|
|
331
331
|
},
|
|
332
332
|
"Ryzen Zen 5 9000 (Ryzen 9)": {
|
|
@@ -338,13 +338,13 @@ export const SKUS = {
|
|
|
338
338
|
"Ryzen Zen 5 9000 (Ryzen 7)": {
|
|
339
339
|
tflops: 0.56,
|
|
340
340
|
msrp: 350,
|
|
341
|
-
power:
|
|
341
|
+
power: 88,
|
|
342
342
|
releaseYear: 2024,
|
|
343
343
|
},
|
|
344
344
|
"Ryzen Zen 5 9000 (Ryzen 5)": {
|
|
345
345
|
tflops: 0.56,
|
|
346
346
|
msrp: 300,
|
|
347
|
-
power:
|
|
347
|
+
power: 88,
|
|
348
348
|
releaseYear: 2024,
|
|
349
349
|
},
|
|
350
350
|
"Ryzen Zen 4 7000 (Ryzen 9)": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const INFERENCE_PROVIDERS: readonly ["cerebras", "cohere", "deepinfra", "fal-ai", "fireworks-ai", "hf-inference", "
|
|
1
|
+
declare const INFERENCE_PROVIDERS: readonly ["cerebras", "cohere", "deepinfra", "fal-ai", "fireworks-ai", "hf-inference", "ovhcloud", "replicate", "together"];
|
|
2
2
|
export type SnippetInferenceProvider = (typeof INFERENCE_PROVIDERS)[number] | string;
|
|
3
3
|
export declare const HF_HUB_INFERENCE_PROXY_TEMPLATE = "https://router.huggingface.co/{{PROVIDER}}";
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-providers.d.ts","sourceRoot":"","sources":["../../src/inference-providers.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"inference-providers.d.ts","sourceRoot":"","sources":["../../src/inference-providers.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB,6HAUf,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAErF,eAAO,MAAM,+BAA+B,+CAA+C,CAAC;AAE5F;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,wBAAwB,GAAG,MAAM,CAGxE"}
|
|
@@ -7,10 +7,8 @@ const INFERENCE_PROVIDERS = [
|
|
|
7
7
|
"fal-ai",
|
|
8
8
|
"fireworks-ai",
|
|
9
9
|
"hf-inference",
|
|
10
|
-
"hyperbolic",
|
|
11
10
|
"ovhcloud",
|
|
12
11
|
"replicate",
|
|
13
|
-
"sambanova",
|
|
14
12
|
"together",
|
|
15
13
|
];
|
|
16
14
|
export const HF_HUB_INFERENCE_PROXY_TEMPLATE = `https://router.huggingface.co/{{PROVIDER}}`;
|
package/dist/esm/local-apps.d.ts
CHANGED
|
@@ -252,6 +252,13 @@ export declare const LOCAL_APPS: {
|
|
|
252
252
|
displayOnModelPage: typeof isToolCallingLocalAgentModel;
|
|
253
253
|
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
254
254
|
};
|
|
255
|
+
openclaw: {
|
|
256
|
+
prettyLabel: string;
|
|
257
|
+
docsUrl: string;
|
|
258
|
+
mainTask: "text-generation";
|
|
259
|
+
displayOnModelPage: typeof isToolCallingLocalAgentModel;
|
|
260
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
261
|
+
};
|
|
255
262
|
};
|
|
256
263
|
export type LocalAppKey = keyof typeof LOCAL_APPS;
|
|
257
264
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-apps.d.ts","sourceRoot":"","sources":["../../src/local-apps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,K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e,EAAE;;;;;;;yBAlGtD,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBAkCvC,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBA2BnD,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;CAqS5C,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
package/dist/esm/local-apps.js
CHANGED
|
@@ -424,6 +424,35 @@ const snippetHermesAgent = (model, filepath) => {
|
|
|
424
424
|
},
|
|
425
425
|
];
|
|
426
426
|
};
|
|
427
|
+
const snippetOpenClaw = (model, filepath) => {
|
|
428
|
+
const isMLX = isMlxModel(model);
|
|
429
|
+
const providerId = isMLX ? "mlx-lm" : "llama-cpp";
|
|
430
|
+
const modelId = isMLX ? model.id : `${model.id}${getQuantTag(filepath)}`;
|
|
431
|
+
const serverStep = getLocalServerStep(model, filepath);
|
|
432
|
+
return [
|
|
433
|
+
serverStep,
|
|
434
|
+
{
|
|
435
|
+
title: "Configure OpenClaw",
|
|
436
|
+
setup: "# Install OpenClaw:\nnpm install -g openclaw@latest",
|
|
437
|
+
content: [
|
|
438
|
+
"# Register the local server and set it as the default model:",
|
|
439
|
+
"openclaw onboard --non-interactive --mode local \\",
|
|
440
|
+
" --auth-choice custom-api-key \\",
|
|
441
|
+
" --custom-base-url http://127.0.0.1:8080/v1 \\",
|
|
442
|
+
` --custom-model-id "${modelId}" \\`,
|
|
443
|
+
` --custom-provider-id ${providerId} \\`,
|
|
444
|
+
" --custom-compatibility openai \\",
|
|
445
|
+
" --custom-text-input \\",
|
|
446
|
+
" --accept-risk \\",
|
|
447
|
+
" --skip-health",
|
|
448
|
+
].join("\n"),
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
title: "Run OpenClaw",
|
|
452
|
+
content: `openclaw agent --local --agent main --message "Hello from Hugging Face"`,
|
|
453
|
+
},
|
|
454
|
+
];
|
|
455
|
+
};
|
|
427
456
|
const snippetDockerModelRunner = (model, filepath) => {
|
|
428
457
|
// Only add quant tag for GGUF models, not safetensors
|
|
429
458
|
const quantTag = isLlamaCppGgufModel(model) ? getQuantTag(filepath) : "";
|
|
@@ -674,4 +703,11 @@ export const LOCAL_APPS = {
|
|
|
674
703
|
displayOnModelPage: isToolCallingLocalAgentModel,
|
|
675
704
|
snippet: snippetHermesAgent,
|
|
676
705
|
},
|
|
706
|
+
openclaw: {
|
|
707
|
+
prettyLabel: "OpenClaw",
|
|
708
|
+
docsUrl: "https://github.com/openclaw/openclaw",
|
|
709
|
+
mainTask: "text-generation",
|
|
710
|
+
displayOnModelPage: isToolCallingLocalAgentModel,
|
|
711
|
+
snippet: snippetOpenClaw,
|
|
712
|
+
},
|
|
677
713
|
};
|
|
@@ -179,6 +179,50 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
179
179
|
expect(snippet[1].content).toContain("hermes config set model.default mlx-community/Llama-3.2-3B-Instruct-mlx");
|
|
180
180
|
expect(snippet[2].content).toContain("hermes");
|
|
181
181
|
});
|
|
182
|
+
it("openclaw", async () => {
|
|
183
|
+
const { snippet: snippetFunc } = LOCAL_APPS.openclaw;
|
|
184
|
+
const model = {
|
|
185
|
+
id: "bartowski/Llama-3.2-3B-Instruct-GGUF",
|
|
186
|
+
tags: ["conversational"],
|
|
187
|
+
gguf: { total: 1, context_length: 4096, chat_template: "{% if tools %}" },
|
|
188
|
+
inference: "",
|
|
189
|
+
};
|
|
190
|
+
const snippet = snippetFunc(model);
|
|
191
|
+
expect(snippet[0].content).toContain(`llama-server -hf bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}`);
|
|
192
|
+
expect(snippet[1].setup).toContain("npm install -g openclaw@latest");
|
|
193
|
+
expect(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
194
|
+
expect(snippet[1].content).toContain("--auth-choice custom-api-key");
|
|
195
|
+
expect(snippet[1].content).toContain("--custom-base-url http://127.0.0.1:8080/v1");
|
|
196
|
+
expect(snippet[1].content).toContain('--custom-model-id "bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}"');
|
|
197
|
+
expect(snippet[1].content).toContain("--custom-provider-id llama-cpp");
|
|
198
|
+
expect(snippet[1].content).toContain("--custom-compatibility openai");
|
|
199
|
+
expect(snippet[1].content).not.toContain("--custom-api-key");
|
|
200
|
+
expect(snippet[1].content).toContain("--custom-text-input");
|
|
201
|
+
expect(snippet[1].content).toContain("--accept-risk");
|
|
202
|
+
expect(snippet[1].content).toContain("--skip-health");
|
|
203
|
+
expect(snippet[2].content).toContain('openclaw agent --local --agent main --message "Hello from Hugging Face"');
|
|
204
|
+
});
|
|
205
|
+
it("openclaw - mlx", async () => {
|
|
206
|
+
const { snippet: snippetFunc } = LOCAL_APPS.openclaw;
|
|
207
|
+
const model = {
|
|
208
|
+
id: "mlx-community/Llama-3.2-3B-Instruct-mlx",
|
|
209
|
+
tags: ["mlx", "conversational"],
|
|
210
|
+
pipeline_tag: "text-generation",
|
|
211
|
+
config: {
|
|
212
|
+
tokenizer_config: {
|
|
213
|
+
chat_template: "{% if tools %}...{% endif %}",
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
inference: "",
|
|
217
|
+
};
|
|
218
|
+
const snippet = snippetFunc(model);
|
|
219
|
+
expect(snippet[0].setup).toContain("uv tool install mlx-lm");
|
|
220
|
+
expect(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
221
|
+
expect(snippet[1].content).toContain('--custom-model-id "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
222
|
+
expect(snippet[1].content).toContain("--custom-provider-id mlx-lm");
|
|
223
|
+
expect(snippet[1].content).toContain("--custom-text-input");
|
|
224
|
+
expect(snippet[2].content).toContain('openclaw agent --local --agent main --message "Hello from Hugging Face"');
|
|
225
|
+
});
|
|
182
226
|
it("docker model runner", async () => {
|
|
183
227
|
const { snippet: snippetFunc } = LOCAL_APPS["docker-model-runner"];
|
|
184
228
|
const model = {
|
|
@@ -1175,6 +1175,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1175
1175
|
filter: false;
|
|
1176
1176
|
countDownloads: string;
|
|
1177
1177
|
};
|
|
1178
|
+
rwkv: {
|
|
1179
|
+
prettyLabel: string;
|
|
1180
|
+
repoName: string;
|
|
1181
|
+
repoUrl: string;
|
|
1182
|
+
docsUrl: string;
|
|
1183
|
+
filter: false;
|
|
1184
|
+
countDownloads: string;
|
|
1185
|
+
};
|
|
1178
1186
|
saelens: {
|
|
1179
1187
|
prettyLabel: string;
|
|
1180
1188
|
repoName: string;
|
|
@@ -1693,5 +1701,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1693
1701
|
};
|
|
1694
1702
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1695
1703
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1696
|
-
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" | "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" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "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" | "robo-orchard-lab" | "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" | "timm" | "tirex" | "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")[];
|
|
1704
|
+
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" | "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" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "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" | "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" | "timm" | "tirex" | "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")[];
|
|
1697
1705
|
//# 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;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,E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"`,
|
|
1142
1142
|
},
|
|
1143
|
+
rwkv: {
|
|
1144
|
+
prettyLabel: "RWKV",
|
|
1145
|
+
repoName: "RWKV-LM",
|
|
1146
|
+
repoUrl: "https://github.com/BlinkDL/RWKV-LM",
|
|
1147
|
+
docsUrl: "https://rwkv.com/",
|
|
1148
|
+
filter: false,
|
|
1149
|
+
countDownloads: `path_extension:"pth"`,
|
|
1150
|
+
},
|
|
1143
1151
|
saelens: {
|
|
1144
1152
|
prettyLabel: "SAELens",
|
|
1145
1153
|
repoName: "SAELens",
|
|
@@ -21,6 +21,7 @@ export type * from "./table-question-answering/inference.js";
|
|
|
21
21
|
export type { TextToImageInput, TextToImageOutput, TextToImageParameters } from "./text-to-image/inference.js";
|
|
22
22
|
export type { TextToVideoParameters, TextToVideoOutput, TextToVideoInput } from "./text-to-video/inference.js";
|
|
23
23
|
export type { TextToSpeechParameters, TextToSpeechInput, TextToSpeechOutput } from "./text-to-speech/inference.js";
|
|
24
|
+
export type { TextToAudioInput, TextToAudioOutput, TextToAudioParameters } from "./text-to-audio/inference.js";
|
|
24
25
|
export type * from "./token-classification/inference.js";
|
|
25
26
|
export type { TranslationInput, TranslationOutput } from "./translation/inference.js";
|
|
26
27
|
export type { ClassificationOutputTransform, TextClassificationInput, TextClassificationOutput, TextClassificationOutputElement, TextClassificationParameters, } from "./text-classification/inference.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tasks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAoDpD,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,6CAA6C,CAAC;AACjE,YAAY,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,mCAAmC,EACnC,oBAAoB,EACpB,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,GAC/B,MAAM,gCAAgC,CAA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I,EAAE,MAAM,CAAC;CACZ,GACD;IACA,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;IACH,IAAI,EAAE,kBAAkB,CAAC;CACxB,CAAC;AAEL,MAAM,WAAW,QAAQ;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,YAAY,CAAC;IACjB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/eval.ts
CHANGED
|
@@ -33,6 +33,12 @@ export const EVALUATION_FRAMEWORKS = {
|
|
|
33
33
|
description: "Harbor is a framework for evaluating and optimizing agents and language models.",
|
|
34
34
|
url: "https://github.com/laude-institute/harbor",
|
|
35
35
|
},
|
|
36
|
+
ifstruct: {
|
|
37
|
+
name: "ifstruct",
|
|
38
|
+
description:
|
|
39
|
+
"IFStruct is a benchmark for structured-output compliance: whether a model produces valid JSON/YAML that follows a requested schema, scored without constrained decoding.",
|
|
40
|
+
url: "https://github.com/Liquid4All/ifstruct",
|
|
41
|
+
},
|
|
36
42
|
pier: {
|
|
37
43
|
name: "pier",
|
|
38
44
|
description:
|
package/src/hardware-amd.ts
CHANGED
package/src/hardware-nvidia.ts
CHANGED
|
@@ -112,8 +112,8 @@ export const NVIDIA_SKUS: Record<string, NvidiaHardwareSpec> = {
|
|
|
112
112
|
tflops: 29.71,
|
|
113
113
|
memory: [128],
|
|
114
114
|
computeCapability: 12.1,
|
|
115
|
-
msrp:
|
|
116
|
-
power:
|
|
115
|
+
msrp: 3_999,
|
|
116
|
+
power: 140,
|
|
117
117
|
releaseYear: 2025,
|
|
118
118
|
},
|
|
119
119
|
"RTX PRO 6000 WS": {
|
|
@@ -802,7 +802,7 @@ export const NVIDIA_SKUS: Record<string, NvidiaHardwareSpec> = {
|
|
|
802
802
|
computeCapability: 8.6, // Ampere (outlier GPU in the 20xx series)
|
|
803
803
|
msrp: 250,
|
|
804
804
|
power: 45,
|
|
805
|
-
releaseYear:
|
|
805
|
+
releaseYear: 2021,
|
|
806
806
|
},
|
|
807
807
|
"GTX 1080 Ti": {
|
|
808
808
|
tflops: 11.34, // float32 (GPU does not support native float16)
|
|
@@ -936,7 +936,7 @@ export const NVIDIA_SKUS: Record<string, NvidiaHardwareSpec> = {
|
|
|
936
936
|
tflops: 6.66,
|
|
937
937
|
memory: [32],
|
|
938
938
|
computeCapability: 8.7,
|
|
939
|
-
msrp:
|
|
939
|
+
msrp: 999,
|
|
940
940
|
power: 40,
|
|
941
941
|
releaseYear: 2022,
|
|
942
942
|
},
|
package/src/hardware.ts
CHANGED
|
@@ -278,13 +278,13 @@ export const SKUS = {
|
|
|
278
278
|
"Intel Core 11th Generation (i5)": {
|
|
279
279
|
tflops: 0.5,
|
|
280
280
|
msrp: 250,
|
|
281
|
-
power:
|
|
281
|
+
power: 251,
|
|
282
282
|
releaseYear: 2021,
|
|
283
283
|
},
|
|
284
284
|
"Intel Core 11th Generation (i3)": {
|
|
285
285
|
tflops: 0.35,
|
|
286
286
|
msrp: 150,
|
|
287
|
-
power:
|
|
287
|
+
power: 90,
|
|
288
288
|
releaseYear: 2021,
|
|
289
289
|
},
|
|
290
290
|
"Intel Core 10th Generation (i9)": {
|
|
@@ -302,13 +302,13 @@ export const SKUS = {
|
|
|
302
302
|
"Intel Core 10th Generation (i5)": {
|
|
303
303
|
tflops: 0.46,
|
|
304
304
|
msrp: 250,
|
|
305
|
-
power:
|
|
305
|
+
power: 182,
|
|
306
306
|
releaseYear: 2020,
|
|
307
307
|
},
|
|
308
308
|
"Intel Core 10th Generation (i3)": {
|
|
309
309
|
tflops: 0.44,
|
|
310
310
|
msrp: 150,
|
|
311
|
-
power:
|
|
311
|
+
power: 90,
|
|
312
312
|
releaseYear: 2020,
|
|
313
313
|
},
|
|
314
314
|
},
|
|
@@ -374,9 +374,9 @@ export const SKUS = {
|
|
|
374
374
|
releaseYear: 2017,
|
|
375
375
|
},
|
|
376
376
|
"Ryzen 7 3800X (16)": {
|
|
377
|
-
tflops: 1.
|
|
377
|
+
tflops: 1.15,
|
|
378
378
|
msrp: 400,
|
|
379
|
-
power:
|
|
379
|
+
power: 142,
|
|
380
380
|
releaseYear: 2019,
|
|
381
381
|
},
|
|
382
382
|
"Ryzen Zen 5 9000 (Ryzen 9)": {
|
|
@@ -388,13 +388,13 @@ export const SKUS = {
|
|
|
388
388
|
"Ryzen Zen 5 9000 (Ryzen 7)": {
|
|
389
389
|
tflops: 0.56,
|
|
390
390
|
msrp: 350,
|
|
391
|
-
power:
|
|
391
|
+
power: 88,
|
|
392
392
|
releaseYear: 2024,
|
|
393
393
|
},
|
|
394
394
|
"Ryzen Zen 5 9000 (Ryzen 5)": {
|
|
395
395
|
tflops: 0.56,
|
|
396
396
|
msrp: 300,
|
|
397
|
-
power:
|
|
397
|
+
power: 88,
|
|
398
398
|
releaseYear: 2024,
|
|
399
399
|
},
|
|
400
400
|
"Ryzen Zen 4 7000 (Ryzen 9)": {
|
package/src/local-apps.spec.ts
CHANGED
|
@@ -201,6 +201,54 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
201
201
|
expect(snippet[2].content).toContain("hermes");
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
+
it("openclaw", async () => {
|
|
205
|
+
const { snippet: snippetFunc } = LOCAL_APPS.openclaw;
|
|
206
|
+
const model: ModelData = {
|
|
207
|
+
id: "bartowski/Llama-3.2-3B-Instruct-GGUF",
|
|
208
|
+
tags: ["conversational"],
|
|
209
|
+
gguf: { total: 1, context_length: 4096, chat_template: "{% if tools %}" },
|
|
210
|
+
inference: "",
|
|
211
|
+
};
|
|
212
|
+
const snippet = snippetFunc(model);
|
|
213
|
+
|
|
214
|
+
expect(snippet[0].content).toContain(`llama-server -hf bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}`);
|
|
215
|
+
expect(snippet[1].setup).toContain("npm install -g openclaw@latest");
|
|
216
|
+
expect(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
217
|
+
expect(snippet[1].content).toContain("--auth-choice custom-api-key");
|
|
218
|
+
expect(snippet[1].content).toContain("--custom-base-url http://127.0.0.1:8080/v1");
|
|
219
|
+
expect(snippet[1].content).toContain('--custom-model-id "bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}"');
|
|
220
|
+
expect(snippet[1].content).toContain("--custom-provider-id llama-cpp");
|
|
221
|
+
expect(snippet[1].content).toContain("--custom-compatibility openai");
|
|
222
|
+
expect(snippet[1].content).not.toContain("--custom-api-key");
|
|
223
|
+
expect(snippet[1].content).toContain("--custom-text-input");
|
|
224
|
+
expect(snippet[1].content).toContain("--accept-risk");
|
|
225
|
+
expect(snippet[1].content).toContain("--skip-health");
|
|
226
|
+
expect(snippet[2].content).toContain('openclaw agent --local --agent main --message "Hello from Hugging Face"');
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
it("openclaw - mlx", async () => {
|
|
230
|
+
const { snippet: snippetFunc } = LOCAL_APPS.openclaw;
|
|
231
|
+
const model: ModelData = {
|
|
232
|
+
id: "mlx-community/Llama-3.2-3B-Instruct-mlx",
|
|
233
|
+
tags: ["mlx", "conversational"],
|
|
234
|
+
pipeline_tag: "text-generation",
|
|
235
|
+
config: {
|
|
236
|
+
tokenizer_config: {
|
|
237
|
+
chat_template: "{% if tools %}...{% endif %}",
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
inference: "",
|
|
241
|
+
};
|
|
242
|
+
const snippet = snippetFunc(model);
|
|
243
|
+
|
|
244
|
+
expect(snippet[0].setup).toContain("uv tool install mlx-lm");
|
|
245
|
+
expect(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
246
|
+
expect(snippet[1].content).toContain('--custom-model-id "mlx-community/Llama-3.2-3B-Instruct-mlx"');
|
|
247
|
+
expect(snippet[1].content).toContain("--custom-provider-id mlx-lm");
|
|
248
|
+
expect(snippet[1].content).toContain("--custom-text-input");
|
|
249
|
+
expect(snippet[2].content).toContain('openclaw agent --local --agent main --message "Hello from Hugging Face"');
|
|
250
|
+
});
|
|
251
|
+
|
|
204
252
|
it("docker model runner", async () => {
|
|
205
253
|
const { snippet: snippetFunc } = LOCAL_APPS["docker-model-runner"];
|
|
206
254
|
const model: ModelData = {
|
package/src/local-apps.ts
CHANGED
|
@@ -546,6 +546,37 @@ const snippetHermesAgent = (model: ModelData, filepath?: string): LocalAppSnippe
|
|
|
546
546
|
];
|
|
547
547
|
};
|
|
548
548
|
|
|
549
|
+
const snippetOpenClaw = (model: ModelData, filepath?: string): LocalAppSnippet[] => {
|
|
550
|
+
const isMLX = isMlxModel(model);
|
|
551
|
+
const providerId = isMLX ? "mlx-lm" : "llama-cpp";
|
|
552
|
+
const modelId = isMLX ? model.id : `${model.id}${getQuantTag(filepath)}`;
|
|
553
|
+
const serverStep = getLocalServerStep(model, filepath);
|
|
554
|
+
|
|
555
|
+
return [
|
|
556
|
+
serverStep,
|
|
557
|
+
{
|
|
558
|
+
title: "Configure OpenClaw",
|
|
559
|
+
setup: "# Install OpenClaw:\nnpm install -g openclaw@latest",
|
|
560
|
+
content: [
|
|
561
|
+
"# Register the local server and set it as the default model:",
|
|
562
|
+
"openclaw onboard --non-interactive --mode local \\",
|
|
563
|
+
" --auth-choice custom-api-key \\",
|
|
564
|
+
" --custom-base-url http://127.0.0.1:8080/v1 \\",
|
|
565
|
+
` --custom-model-id "${modelId}" \\`,
|
|
566
|
+
` --custom-provider-id ${providerId} \\`,
|
|
567
|
+
" --custom-compatibility openai \\",
|
|
568
|
+
" --custom-text-input \\",
|
|
569
|
+
" --accept-risk \\",
|
|
570
|
+
" --skip-health",
|
|
571
|
+
].join("\n"),
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
title: "Run OpenClaw",
|
|
575
|
+
content: `openclaw agent --local --agent main --message "Hello from Hugging Face"`,
|
|
576
|
+
},
|
|
577
|
+
];
|
|
578
|
+
};
|
|
579
|
+
|
|
549
580
|
const snippetDockerModelRunner = (model: ModelData, filepath?: string): string => {
|
|
550
581
|
// Only add quant tag for GGUF models, not safetensors
|
|
551
582
|
const quantTag = isLlamaCppGgufModel(model) ? getQuantTag(filepath) : "";
|
|
@@ -801,6 +832,13 @@ export const LOCAL_APPS = {
|
|
|
801
832
|
displayOnModelPage: isToolCallingLocalAgentModel,
|
|
802
833
|
snippet: snippetHermesAgent,
|
|
803
834
|
},
|
|
835
|
+
openclaw: {
|
|
836
|
+
prettyLabel: "OpenClaw",
|
|
837
|
+
docsUrl: "https://github.com/openclaw/openclaw",
|
|
838
|
+
mainTask: "text-generation",
|
|
839
|
+
displayOnModelPage: isToolCallingLocalAgentModel,
|
|
840
|
+
snippet: snippetOpenClaw,
|
|
841
|
+
},
|
|
804
842
|
} satisfies Record<string, LocalApp>;
|
|
805
843
|
|
|
806
844
|
export type LocalAppKey = keyof typeof LOCAL_APPS;
|
package/src/model-libraries.ts
CHANGED
|
@@ -1184,6 +1184,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1184
1184
|
filter: false,
|
|
1185
1185
|
countDownloads: `path_extension:"safetensors"`,
|
|
1186
1186
|
},
|
|
1187
|
+
rwkv: {
|
|
1188
|
+
prettyLabel: "RWKV",
|
|
1189
|
+
repoName: "RWKV-LM",
|
|
1190
|
+
repoUrl: "https://github.com/BlinkDL/RWKV-LM",
|
|
1191
|
+
docsUrl: "https://rwkv.com/",
|
|
1192
|
+
filter: false,
|
|
1193
|
+
countDownloads: `path_extension:"pth"`,
|
|
1194
|
+
},
|
|
1187
1195
|
saelens: {
|
|
1188
1196
|
prettyLabel: "SAELens",
|
|
1189
1197
|
repoName: "SAELens",
|
package/src/tasks/index.ts
CHANGED
|
@@ -95,6 +95,7 @@ export type * from "./table-question-answering/inference.js";
|
|
|
95
95
|
export type { TextToImageInput, TextToImageOutput, TextToImageParameters } from "./text-to-image/inference.js";
|
|
96
96
|
export type { TextToVideoParameters, TextToVideoOutput, TextToVideoInput } from "./text-to-video/inference.js";
|
|
97
97
|
export type { TextToSpeechParameters, TextToSpeechInput, TextToSpeechOutput } from "./text-to-speech/inference.js";
|
|
98
|
+
export type { TextToAudioInput, TextToAudioOutput, TextToAudioParameters } from "./text-to-audio/inference.js";
|
|
98
99
|
export type * from "./token-classification/inference.js";
|
|
99
100
|
export type { TranslationInput, TranslationOutput } from "./translation/inference.js";
|
|
100
101
|
export type {
|