@huggingface/tasks 0.21.61 → 0.22.0
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 +10 -0
- package/dist/commonjs/eval.d.ts.map +1 -1
- package/dist/commonjs/eval.js +10 -0
- package/dist/commonjs/hardware-amd.d.ts.map +1 -1
- package/dist/commonjs/hardware-amd.js +9 -0
- package/dist/commonjs/hardware-nvidia.d.ts.map +1 -1
- package/dist/commonjs/hardware-nvidia.js +8 -0
- package/dist/commonjs/local-apps.d.ts.map +1 -1
- package/dist/commonjs/local-apps.js +3 -12
- package/dist/commonjs/model-libraries-snippets.d.ts.map +1 -1
- package/dist/commonjs/model-libraries-snippets.js +24 -2
- package/dist/commonjs/model-libraries-snippets.spec.js +61 -0
- package/dist/commonjs/model-libraries.d.ts +15 -1
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +14 -0
- package/dist/esm/eval.d.ts +10 -0
- package/dist/esm/eval.d.ts.map +1 -1
- package/dist/esm/eval.js +10 -0
- package/dist/esm/hardware-amd.d.ts.map +1 -1
- package/dist/esm/hardware-amd.js +9 -0
- package/dist/esm/hardware-nvidia.d.ts.map +1 -1
- package/dist/esm/hardware-nvidia.js +8 -0
- package/dist/esm/local-apps.d.ts.map +1 -1
- package/dist/esm/local-apps.js +3 -12
- package/dist/esm/model-libraries-snippets.d.ts.map +1 -1
- package/dist/esm/model-libraries-snippets.js +24 -2
- package/dist/esm/model-libraries-snippets.spec.js +61 -0
- package/dist/esm/model-libraries.d.ts +15 -1
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +14 -0
- package/package.json +1 -1
- package/src/eval.ts +12 -0
- package/src/hardware-amd.ts +9 -0
- package/src/hardware-nvidia.ts +8 -0
- package/src/local-apps.ts +3 -12
- package/src/model-libraries-snippets.spec.ts +79 -0
- package/src/model-libraries-snippets.ts +26 -3
- package/src/model-libraries.ts +14 -0
package/dist/commonjs/eval.d.ts
CHANGED
|
@@ -112,6 +112,11 @@ export declare const EVALUATION_FRAMEWORKS: {
|
|
|
112
112
|
readonly description: "Video-MME-v2 is a benchmark for evaluating the next stage of video understanding capabilities of multimodal large language models.";
|
|
113
113
|
readonly url: "https://github.com/MME-Benchmarks/Video-MME-v2";
|
|
114
114
|
};
|
|
115
|
+
readonly omnicompass: {
|
|
116
|
+
readonly name: "omnicompass";
|
|
117
|
+
readonly description: "OmniCompass evaluates temporal grounding, spatial grounding, and video question answering with paired text and image-based target specifications across visual and audio-visual tracks.";
|
|
118
|
+
readonly url: "https://github.com/PolyU-VCLab/OmniCompass";
|
|
119
|
+
};
|
|
115
120
|
readonly "claw-eval": {
|
|
116
121
|
readonly name: "claw-eval";
|
|
117
122
|
readonly description: "CLAW-Eval is an evaluation framework for assessing LLMs as autonomous agents across 300 human-verified tasks covering communication, finance, and productivity domains.";
|
|
@@ -152,5 +157,10 @@ export declare const EVALUATION_FRAMEWORKS: {
|
|
|
152
157
|
readonly description: "ExtractBench is a benchmark for schema-guided data extraction from enterprise documents, scoring schema-valid JSON extraction and evidence grounding without an LLM judge.";
|
|
153
158
|
readonly url: "https://github.com/run-llama/ExtractBench";
|
|
154
159
|
};
|
|
160
|
+
readonly "decision-index": {
|
|
161
|
+
readonly name: "decision-index";
|
|
162
|
+
readonly description: "The Decision Index evaluates decision models: given a state (text, JSON or images) and typed questions, a model returns a choice or ranking, scored on private same-skill and new-domain sets.";
|
|
163
|
+
readonly url: "https://github.com/apolinario/decision-index";
|
|
164
|
+
};
|
|
155
165
|
};
|
|
156
166
|
//# sourceMappingURL=eval.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLxB,CAAC"}
|
package/dist/commonjs/eval.js
CHANGED
|
@@ -115,6 +115,11 @@ exports.EVALUATION_FRAMEWORKS = {
|
|
|
115
115
|
description: "Video-MME-v2 is a benchmark for evaluating the next stage of video understanding capabilities of multimodal large language models.",
|
|
116
116
|
url: "https://github.com/MME-Benchmarks/Video-MME-v2",
|
|
117
117
|
},
|
|
118
|
+
omnicompass: {
|
|
119
|
+
name: "omnicompass",
|
|
120
|
+
description: "OmniCompass evaluates temporal grounding, spatial grounding, and video question answering with paired text and image-based target specifications across visual and audio-visual tracks.",
|
|
121
|
+
url: "https://github.com/PolyU-VCLab/OmniCompass",
|
|
122
|
+
},
|
|
118
123
|
"claw-eval": {
|
|
119
124
|
name: "claw-eval",
|
|
120
125
|
description: "CLAW-Eval is an evaluation framework for assessing LLMs as autonomous agents across 300 human-verified tasks covering communication, finance, and productivity domains.",
|
|
@@ -155,4 +160,9 @@ exports.EVALUATION_FRAMEWORKS = {
|
|
|
155
160
|
description: "ExtractBench is a benchmark for schema-guided data extraction from enterprise documents, scoring schema-valid JSON extraction and evidence grounding without an LLM judge.",
|
|
156
161
|
url: "https://github.com/run-llama/ExtractBench",
|
|
157
162
|
},
|
|
163
|
+
"decision-index": {
|
|
164
|
+
name: "decision-index",
|
|
165
|
+
description: "The Decision Index evaluates decision models: given a state (text, JSON or images) and typed questions, a model returns a choice or ranking, scored on private same-skill and new-domain sets.",
|
|
166
|
+
url: "https://github.com/apolinario/decision-index",
|
|
167
|
+
},
|
|
158
168
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-amd.d.ts","sourceRoot":"","sources":["../../src/hardware-amd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hardware-amd.d.ts","sourceRoot":"","sources":["../../src/hardware-amd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CA2Y3D,CAAC"}
|
|
@@ -299,6 +299,15 @@ exports.AMD_GPU_SKUS = {
|
|
|
299
299
|
power: 250,
|
|
300
300
|
releaseYear: 2020,
|
|
301
301
|
},
|
|
302
|
+
"Radeon Pro V340": {
|
|
303
|
+
tflops: 43.0,
|
|
304
|
+
memory: [16, 32],
|
|
305
|
+
gfxVersion: "gfx900",
|
|
306
|
+
msrp: 4_000,
|
|
307
|
+
power: 300,
|
|
308
|
+
releaseYear: 2018,
|
|
309
|
+
aliases: ["Radeon Pro V340L"],
|
|
310
|
+
},
|
|
302
311
|
"Radeon 610M": {
|
|
303
312
|
tflops: 0.97,
|
|
304
313
|
memory: AMD_GPU_INTEGRATED_SHARED_MEMORY_OPTIONS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-nvidia.d.ts","sourceRoot":"","sources":["../../src/hardware-nvidia.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC1B;AAED,oBAAY,yBAAyB;IACpC,eAAe,OAAO;IACtB,aAAa,KAAO;IACpB,IAAI,KAAO;IACX,SAAS,KAAO;IAChB,MAAM,IAAM;IACZ,YAAY,MAAM;IAClB,IAAI,MAAM;IACV,UAAU,MAAM;IAChB,MAAM,IAAM;IACZ,MAAM,MAAM;IACZ,MAAM,MAAM;IACZ,KAAK,IAAM;IACX,YAAY,MAAM;IAClB,MAAM,MAAM;IACZ,iBAAiB,IAAM;IACvB,OAAO,MAAM;CACb;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hardware-nvidia.d.ts","sourceRoot":"","sources":["../../src/hardware-nvidia.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC1B;AAED,oBAAY,yBAAyB;IACpC,eAAe,OAAO;IACtB,aAAa,KAAO;IACpB,IAAI,KAAO;IACX,SAAS,KAAO;IAChB,MAAM,IAAM;IACZ,YAAY,MAAM;IAClB,IAAI,MAAM;IACV,UAAU,MAAM;IAChB,MAAM,IAAM;IACZ,MAAM,MAAM;IACZ,MAAM,MAAM;IACZ,KAAK,IAAM;IACX,YAAY,MAAM;IAClB,MAAM,MAAM;IACZ,iBAAiB,IAAM;IACvB,OAAO,MAAM;CACb;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAmlC1D,CAAC"}
|
|
@@ -870,6 +870,14 @@ exports.NVIDIA_SKUS = {
|
|
|
870
870
|
power: 75,
|
|
871
871
|
releaseYear: 2016,
|
|
872
872
|
},
|
|
873
|
+
"GTX 980": {
|
|
874
|
+
tflops: 4.98, // float32 (GPU does not support native float16)
|
|
875
|
+
memory: [4],
|
|
876
|
+
computeCapability: 5.2,
|
|
877
|
+
msrp: 549,
|
|
878
|
+
power: 165,
|
|
879
|
+
releaseYear: 2014,
|
|
880
|
+
},
|
|
873
881
|
"RTX Titan": {
|
|
874
882
|
tflops: 32.62,
|
|
875
883
|
memory: [24],
|
|
@@ -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,EAAE,CAAC,CAAC;IACpG;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;CAClD,GAAG,CACD;IACA;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,E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e,EAAE;;;;;;;yBA7B/B,SAAS,KAAG,eAAe,EAAE;;;;;;;;;;;;;;yBApIzB,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAJjD,SAAS,aAAa,MAAM,KAAG,MAAM;;;;;;;;;;;;;;yBAkT1B,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;;CAgT5C,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -110,24 +110,15 @@ const snippetLlamacpp = (model, filepath) => {
|
|
|
110
110
|
setup: "winget install llama.cpp",
|
|
111
111
|
content: commands("llama serve", "llama cli"),
|
|
112
112
|
},
|
|
113
|
-
{
|
|
114
|
-
title: "Use pre-built binary",
|
|
115
|
-
setup: [
|
|
116
|
-
// prettier-ignore
|
|
117
|
-
"# Download pre-built binary from:",
|
|
118
|
-
"# https://github.com/ggerganov/llama.cpp/releases",
|
|
119
|
-
].join("\n"),
|
|
120
|
-
content: commands("./llama-server", "./llama-cli"),
|
|
121
|
-
},
|
|
122
113
|
{
|
|
123
114
|
title: "Build from source code",
|
|
124
115
|
setup: [
|
|
125
|
-
"git clone https://github.com/
|
|
116
|
+
"git clone https://github.com/ggml-org/llama.cpp.git",
|
|
126
117
|
"cd llama.cpp",
|
|
127
118
|
"cmake -B build",
|
|
128
|
-
"cmake --build build -j --target llama-
|
|
119
|
+
"cmake --build build -j --target llama-app",
|
|
129
120
|
].join("\n"),
|
|
130
|
-
content: commands("./build/bin/llama
|
|
121
|
+
content: commands("./build/bin/llama serve", "./build/bin/llama cli"),
|
|
131
122
|
},
|
|
132
123
|
// `docker model run` starts a chat session, which embedding models don't support
|
|
133
124
|
...(isEmbedding
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-libraries-snippets.d.ts","sourceRoot":"","sources":["../../src/model-libraries-snippets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"model-libraries-snippets.d.ts","sourceRoot":"","sources":["../../src/model-libraries-snippets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,iBAAiB,CAAC;AAoBnE,eAAO,MAAM,WAAW,GAAI,OAAO,SAAS,KAAG,MAAM,EAQpD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAOjD,CAAC;AAkBF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAKjD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,KAAG,MAAM,EAIhD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAM/C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,MAAM,EAkBlD,CAAC;AAmBF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,MAAM,EAY7C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAenC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,SAAS,KAAG,MAAM,EAsB5D,CAAC;AAEF,eAAO,MAAM,eAA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AAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAO/C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,MAAM,EAUnD,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAYnC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,KAAG,MAAM,EAKvD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAiB9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAgD9C,CAAC"}
|
|
@@ -2247,13 +2247,35 @@ exports.terratorch = terratorch;
|
|
|
2247
2247
|
const hasChatTemplate = (model) => model.config?.tokenizer_config?.chat_template !== undefined ||
|
|
2248
2248
|
model.config?.processor_config?.chat_template !== undefined ||
|
|
2249
2249
|
model.config?.chat_template_jinja !== undefined;
|
|
2250
|
+
// timm config.json is not a transformers config (no model_type / architectures), so the Hub
|
|
2251
|
+
// reports transformersInfo as { auto_model: "AutoModel" } and drops the image processor.
|
|
2252
|
+
// The timm wrapper still loads through the same Auto classes as a native vision model.
|
|
2253
|
+
const transformersSnippetInfo = (model) => {
|
|
2254
|
+
if (model.library_name === "timm") {
|
|
2255
|
+
if (model.pipeline_tag === "image-classification") {
|
|
2256
|
+
return {
|
|
2257
|
+
...model.transformersInfo,
|
|
2258
|
+
auto_model: "AutoModelForImageClassification",
|
|
2259
|
+
processor: "AutoImageProcessor",
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
if (model.pipeline_tag === "image-feature-extraction") {
|
|
2263
|
+
return {
|
|
2264
|
+
...model.transformersInfo,
|
|
2265
|
+
auto_model: "AutoModel",
|
|
2266
|
+
processor: "AutoImageProcessor",
|
|
2267
|
+
};
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
return model.transformersInfo;
|
|
2271
|
+
};
|
|
2250
2272
|
// interpolated as a Python class name (and into RegExps in pruna_transformers), so a non-identifier is treated as absent
|
|
2251
2273
|
const autoModelClass = (model) => {
|
|
2252
|
-
const autoModel = model
|
|
2274
|
+
const autoModel = transformersSnippetInfo(model)?.auto_model;
|
|
2253
2275
|
return autoModel && isValidIdentifier(autoModel) ? autoModel : undefined;
|
|
2254
2276
|
};
|
|
2255
2277
|
const transformers = (model) => {
|
|
2256
|
-
const info = model
|
|
2278
|
+
const info = transformersSnippetInfo(model);
|
|
2257
2279
|
if (!info) {
|
|
2258
2280
|
return [`# ⚠️ Type of model unknown`];
|
|
2259
2281
|
}
|
|
@@ -122,6 +122,67 @@ print(output)`);
|
|
|
122
122
|
(0, vitest_1.expect)(autoSnippet).toContain("max_new_tokens=256");
|
|
123
123
|
(0, vitest_1.expect)(autoSnippet).toContain("# pip install -U transformers accelerate");
|
|
124
124
|
});
|
|
125
|
+
(0, vitest_1.it)("transformers: timm image-classification uses the same Auto classes as native classifiers", () => {
|
|
126
|
+
const model = {
|
|
127
|
+
...base,
|
|
128
|
+
id: "timm/vit_base_patch16_224.augreg2_in21k_ft_in1k",
|
|
129
|
+
library_name: "timm",
|
|
130
|
+
pipeline_tag: "image-classification",
|
|
131
|
+
tags: ["timm", "transformers", "image-classification"],
|
|
132
|
+
// Hub transformersInfo for timm is only this: config.json has no model_type / architectures
|
|
133
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
134
|
+
};
|
|
135
|
+
const [pipelineSnippet, autoSnippet] = (0, model_libraries_snippets_js_1.transformers)(model);
|
|
136
|
+
(0, vitest_1.expect)(pipelineSnippet).toContain('pipeline("image-classification", model="timm/vit_base_patch16_224.augreg2_in21k_ft_in1k")');
|
|
137
|
+
(0, vitest_1.expect)(pipelineSnippet).toContain("parrots.png");
|
|
138
|
+
(0, vitest_1.expect)(autoSnippet).toContain("from transformers import AutoImageProcessor, AutoModelForImageClassification");
|
|
139
|
+
(0, vitest_1.expect)(autoSnippet).toContain('processor = AutoImageProcessor.from_pretrained("timm/vit_base_patch16_224.augreg2_in21k_ft_in1k")');
|
|
140
|
+
(0, vitest_1.expect)(autoSnippet).toContain('model = AutoModelForImageClassification.from_pretrained("timm/vit_base_patch16_224.augreg2_in21k_ft_in1k", device_map="auto")');
|
|
141
|
+
(0, vitest_1.expect)(autoSnippet).not.toContain("AutoModel.from_pretrained");
|
|
142
|
+
// the override is local to snippet generation
|
|
143
|
+
(0, vitest_1.expect)(model.transformersInfo).toEqual({ auto_model: "AutoModel" });
|
|
144
|
+
});
|
|
145
|
+
(0, vitest_1.it)("transformers: timm image-feature-extraction loads an image processor with AutoModel", () => {
|
|
146
|
+
const [, autoSnippet] = (0, model_libraries_snippets_js_1.transformers)({
|
|
147
|
+
...base,
|
|
148
|
+
id: "timm/vit_large_patch14_dinov2.lvd142m",
|
|
149
|
+
library_name: "timm",
|
|
150
|
+
pipeline_tag: "image-feature-extraction",
|
|
151
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
152
|
+
});
|
|
153
|
+
(0, vitest_1.expect)(autoSnippet).toContain("from transformers import AutoImageProcessor, AutoModel\n");
|
|
154
|
+
(0, vitest_1.expect)(autoSnippet).toContain('processor = AutoImageProcessor.from_pretrained("timm/vit_large_patch14_dinov2.lvd142m")');
|
|
155
|
+
(0, vitest_1.expect)(autoSnippet).toContain('model = AutoModel.from_pretrained("timm/vit_large_patch14_dinov2.lvd142m", device_map="auto")');
|
|
156
|
+
(0, vitest_1.expect)(autoSnippet).not.toContain("AutoModelForImageClassification");
|
|
157
|
+
});
|
|
158
|
+
(0, vitest_1.it)("transformers: other timm tasks keep the auto class reported by the Hub", () => {
|
|
159
|
+
const [snippet] = (0, model_libraries_snippets_js_1.transformers)({
|
|
160
|
+
...base,
|
|
161
|
+
library_name: "timm",
|
|
162
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
163
|
+
});
|
|
164
|
+
(0, vitest_1.expect)(snippet).toContain("from transformers import AutoModel\n");
|
|
165
|
+
(0, vitest_1.expect)(snippet).not.toContain("AutoImageProcessor");
|
|
166
|
+
(0, vitest_1.expect)(snippet).not.toContain("AutoModelForImageClassification");
|
|
167
|
+
});
|
|
168
|
+
(0, vitest_1.it)("transformers: native models keep the classes reported by the Hub", () => {
|
|
169
|
+
const [, classifier] = (0, model_libraries_snippets_js_1.transformers)({
|
|
170
|
+
...base,
|
|
171
|
+
library_name: "transformers",
|
|
172
|
+
pipeline_tag: "image-classification",
|
|
173
|
+
transformersInfo: { auto_model: "AutoModelForImageClassification", processor: "AutoImageProcessor" },
|
|
174
|
+
});
|
|
175
|
+
(0, vitest_1.expect)(classifier).toContain("from transformers import AutoImageProcessor, AutoModelForImageClassification");
|
|
176
|
+
// image-classification still returns the pipeline helper first; the direct load is the second snippet
|
|
177
|
+
const [, plain] = (0, model_libraries_snippets_js_1.transformers)({
|
|
178
|
+
...base,
|
|
179
|
+
library_name: "transformers",
|
|
180
|
+
pipeline_tag: "image-classification",
|
|
181
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
182
|
+
});
|
|
183
|
+
(0, vitest_1.expect)(plain).toContain("from transformers import AutoModel\n");
|
|
184
|
+
(0, vitest_1.expect)(plain).not.toContain("AutoImageProcessor");
|
|
185
|
+
});
|
|
125
186
|
(0, vitest_1.it)("transformers: pipelines removed in v5 get a warning with a valid pip command", () => {
|
|
126
187
|
const [snippet] = (0, model_libraries_snippets_js_1.transformers)({
|
|
127
188
|
...base,
|
|
@@ -492,6 +492,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
492
492
|
snippets: (model: ModelData) => string[];
|
|
493
493
|
countDownloads: string;
|
|
494
494
|
};
|
|
495
|
+
egohand: {
|
|
496
|
+
prettyLabel: string;
|
|
497
|
+
repoName: string;
|
|
498
|
+
repoUrl: string;
|
|
499
|
+
filter: false;
|
|
500
|
+
countDownloads: string;
|
|
501
|
+
};
|
|
495
502
|
elm: {
|
|
496
503
|
prettyLabel: string;
|
|
497
504
|
repoName: string;
|
|
@@ -1402,6 +1409,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1402
1409
|
filter: false;
|
|
1403
1410
|
countDownloads: string;
|
|
1404
1411
|
};
|
|
1412
|
+
"rt-detr-hand-detector-v1": {
|
|
1413
|
+
prettyLabel: string;
|
|
1414
|
+
repoName: string;
|
|
1415
|
+
repoUrl: string;
|
|
1416
|
+
filter: false;
|
|
1417
|
+
countDownloads: string;
|
|
1418
|
+
};
|
|
1405
1419
|
rwkv: {
|
|
1406
1420
|
prettyLabel: string;
|
|
1407
1421
|
repoName: string;
|
|
@@ -1963,5 +1977,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1963
1977
|
};
|
|
1964
1978
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1965
1979
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1966
|
-
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("aadya-neural" | "acestep" | "adapter-transformers" | "allennlp" | "aneforge" | "anemoi" | "araclip" | "asimov" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "causilo" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cortiq" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "drinkme" | "edsnlp" | "elm" | "encoderfile" | "ensomi" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flexray" | "flextab" | "fme" | "gaussianformer" | "gemma.cpp" | "geometry-crafter" | "gliformer" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "mect" | "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" | "jev-style" | "keras" | "tf-keras" | "keras-hub" | "zeromodels" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "laya" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "memra" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "microduck" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "montreal-forced-aligner" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "opendde" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "piper" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "routee-powertrain" | "rwkv" | "saelens" | "sage-music" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "shadow" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vqweb" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
|
|
1980
|
+
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("aadya-neural" | "acestep" | "adapter-transformers" | "allennlp" | "aneforge" | "anemoi" | "araclip" | "asimov" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "causilo" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cortiq" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "drinkme" | "edsnlp" | "egohand" | "elm" | "encoderfile" | "ensomi" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flexray" | "flextab" | "fme" | "gaussianformer" | "gemma.cpp" | "geometry-crafter" | "gliformer" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "mect" | "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" | "jev-style" | "keras" | "tf-keras" | "keras-hub" | "zeromodels" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "laya" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "memra" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "microduck" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "montreal-forced-aligner" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "opendde" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "piper" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "routee-powertrain" | "rt-detr-hand-detector-v1" | "rwkv" | "saelens" | "sage-music" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "shadow" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vqweb" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
|
|
1967
1981
|
//# 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;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAw4DI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,opHAQ1B,CAAC"}
|
|
@@ -489,6 +489,13 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
489
489
|
snippets: snippets.edsnlp,
|
|
490
490
|
countDownloads: `path_filename:"config" AND path_extension:"cfg"`,
|
|
491
491
|
},
|
|
492
|
+
egohand: {
|
|
493
|
+
prettyLabel: "EgoHand",
|
|
494
|
+
repoName: "EgoHand",
|
|
495
|
+
repoUrl: "https://github.com/NVIDIA/IsaacCapture/tree/main/src/python/isaaccapture_egopost",
|
|
496
|
+
filter: false,
|
|
497
|
+
countDownloads: `path_extension:"ckpt"`,
|
|
498
|
+
},
|
|
492
499
|
elm: {
|
|
493
500
|
prettyLabel: "ELM",
|
|
494
501
|
repoName: "elm",
|
|
@@ -1403,6 +1410,13 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1403
1410
|
filter: false,
|
|
1404
1411
|
countDownloads: `path_extension:"onnx" OR path_extension:"joblib"`,
|
|
1405
1412
|
},
|
|
1413
|
+
"rt-detr-hand-detector-v1": {
|
|
1414
|
+
prettyLabel: "RT-DETR-Hand-Detector-v1",
|
|
1415
|
+
repoName: "IsaacCapture",
|
|
1416
|
+
repoUrl: "https://github.com/NVIDIA/IsaacCapture/tree/main/src/python/isaaccapture_egopost",
|
|
1417
|
+
filter: false,
|
|
1418
|
+
countDownloads: `path_extension:"onnx"`,
|
|
1419
|
+
},
|
|
1406
1420
|
rwkv: {
|
|
1407
1421
|
prettyLabel: "RWKV",
|
|
1408
1422
|
repoName: "RWKV-LM",
|
package/dist/esm/eval.d.ts
CHANGED
|
@@ -112,6 +112,11 @@ export declare const EVALUATION_FRAMEWORKS: {
|
|
|
112
112
|
readonly description: "Video-MME-v2 is a benchmark for evaluating the next stage of video understanding capabilities of multimodal large language models.";
|
|
113
113
|
readonly url: "https://github.com/MME-Benchmarks/Video-MME-v2";
|
|
114
114
|
};
|
|
115
|
+
readonly omnicompass: {
|
|
116
|
+
readonly name: "omnicompass";
|
|
117
|
+
readonly description: "OmniCompass evaluates temporal grounding, spatial grounding, and video question answering with paired text and image-based target specifications across visual and audio-visual tracks.";
|
|
118
|
+
readonly url: "https://github.com/PolyU-VCLab/OmniCompass";
|
|
119
|
+
};
|
|
115
120
|
readonly "claw-eval": {
|
|
116
121
|
readonly name: "claw-eval";
|
|
117
122
|
readonly description: "CLAW-Eval is an evaluation framework for assessing LLMs as autonomous agents across 300 human-verified tasks covering communication, finance, and productivity domains.";
|
|
@@ -152,5 +157,10 @@ export declare const EVALUATION_FRAMEWORKS: {
|
|
|
152
157
|
readonly description: "ExtractBench is a benchmark for schema-guided data extraction from enterprise documents, scoring schema-valid JSON extraction and evidence grounding without an LLM judge.";
|
|
153
158
|
readonly url: "https://github.com/run-llama/ExtractBench";
|
|
154
159
|
};
|
|
160
|
+
readonly "decision-index": {
|
|
161
|
+
readonly name: "decision-index";
|
|
162
|
+
readonly description: "The Decision Index evaluates decision models: given a state (text, JSON or images) and typed questions, a model returns a choice or ranking, scored on private same-skill and new-domain sets.";
|
|
163
|
+
readonly url: "https://github.com/apolinario/decision-index";
|
|
164
|
+
};
|
|
155
165
|
};
|
|
156
166
|
//# sourceMappingURL=eval.d.ts.map
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLxB,CAAC"}
|
package/dist/esm/eval.js
CHANGED
|
@@ -112,6 +112,11 @@ export const EVALUATION_FRAMEWORKS = {
|
|
|
112
112
|
description: "Video-MME-v2 is a benchmark for evaluating the next stage of video understanding capabilities of multimodal large language models.",
|
|
113
113
|
url: "https://github.com/MME-Benchmarks/Video-MME-v2",
|
|
114
114
|
},
|
|
115
|
+
omnicompass: {
|
|
116
|
+
name: "omnicompass",
|
|
117
|
+
description: "OmniCompass evaluates temporal grounding, spatial grounding, and video question answering with paired text and image-based target specifications across visual and audio-visual tracks.",
|
|
118
|
+
url: "https://github.com/PolyU-VCLab/OmniCompass",
|
|
119
|
+
},
|
|
115
120
|
"claw-eval": {
|
|
116
121
|
name: "claw-eval",
|
|
117
122
|
description: "CLAW-Eval is an evaluation framework for assessing LLMs as autonomous agents across 300 human-verified tasks covering communication, finance, and productivity domains.",
|
|
@@ -152,4 +157,9 @@ export const EVALUATION_FRAMEWORKS = {
|
|
|
152
157
|
description: "ExtractBench is a benchmark for schema-guided data extraction from enterprise documents, scoring schema-valid JSON extraction and evidence grounding without an LLM judge.",
|
|
153
158
|
url: "https://github.com/run-llama/ExtractBench",
|
|
154
159
|
},
|
|
160
|
+
"decision-index": {
|
|
161
|
+
name: "decision-index",
|
|
162
|
+
description: "The Decision Index evaluates decision models: given a state (text, JSON or images) and typed questions, a model returns a choice or ranking, scored on private same-skill and new-domain sets.",
|
|
163
|
+
url: "https://github.com/apolinario/decision-index",
|
|
164
|
+
},
|
|
155
165
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-amd.d.ts","sourceRoot":"","sources":["../../src/hardware-amd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hardware-amd.d.ts","sourceRoot":"","sources":["../../src/hardware-amd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CA2Y3D,CAAC"}
|
package/dist/esm/hardware-amd.js
CHANGED
|
@@ -296,6 +296,15 @@ export const AMD_GPU_SKUS = {
|
|
|
296
296
|
power: 250,
|
|
297
297
|
releaseYear: 2020,
|
|
298
298
|
},
|
|
299
|
+
"Radeon Pro V340": {
|
|
300
|
+
tflops: 43.0,
|
|
301
|
+
memory: [16, 32],
|
|
302
|
+
gfxVersion: "gfx900",
|
|
303
|
+
msrp: 4_000,
|
|
304
|
+
power: 300,
|
|
305
|
+
releaseYear: 2018,
|
|
306
|
+
aliases: ["Radeon Pro V340L"],
|
|
307
|
+
},
|
|
299
308
|
"Radeon 610M": {
|
|
300
309
|
tflops: 0.97,
|
|
301
310
|
memory: AMD_GPU_INTEGRATED_SHARED_MEMORY_OPTIONS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-nvidia.d.ts","sourceRoot":"","sources":["../../src/hardware-nvidia.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC1B;AAED,oBAAY,yBAAyB;IACpC,eAAe,OAAO;IACtB,aAAa,KAAO;IACpB,IAAI,KAAO;IACX,SAAS,KAAO;IAChB,MAAM,IAAM;IACZ,YAAY,MAAM;IAClB,IAAI,MAAM;IACV,UAAU,MAAM;IAChB,MAAM,IAAM;IACZ,MAAM,MAAM;IACZ,MAAM,MAAM;IACZ,KAAK,IAAM;IACX,YAAY,MAAM;IAClB,MAAM,MAAM;IACZ,iBAAiB,IAAM;IACvB,OAAO,MAAM;CACb;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hardware-nvidia.d.ts","sourceRoot":"","sources":["../../src/hardware-nvidia.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACvD;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC1B;AAED,oBAAY,yBAAyB;IACpC,eAAe,OAAO;IACtB,aAAa,KAAO;IACpB,IAAI,KAAO;IACX,SAAS,KAAO;IAChB,MAAM,IAAM;IACZ,YAAY,MAAM;IAClB,IAAI,MAAM;IACV,UAAU,MAAM;IAChB,MAAM,IAAM;IACZ,MAAM,MAAM;IACZ,MAAM,MAAM;IACZ,KAAK,IAAM;IACX,YAAY,MAAM;IAClB,MAAM,MAAM;IACZ,iBAAiB,IAAM;IACvB,OAAO,MAAM;CACb;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAmlC1D,CAAC"}
|
|
@@ -867,6 +867,14 @@ export const NVIDIA_SKUS = {
|
|
|
867
867
|
power: 75,
|
|
868
868
|
releaseYear: 2016,
|
|
869
869
|
},
|
|
870
|
+
"GTX 980": {
|
|
871
|
+
tflops: 4.98, // float32 (GPU does not support native float16)
|
|
872
|
+
memory: [4],
|
|
873
|
+
computeCapability: 5.2,
|
|
874
|
+
msrp: 549,
|
|
875
|
+
power: 165,
|
|
876
|
+
releaseYear: 2014,
|
|
877
|
+
},
|
|
870
878
|
"RTX Titan": {
|
|
871
879
|
tflops: 32.62,
|
|
872
880
|
memory: [24],
|
|
@@ -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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
|
setup: "winget install llama.cpp",
|
|
108
108
|
content: commands("llama serve", "llama cli"),
|
|
109
109
|
},
|
|
110
|
-
{
|
|
111
|
-
title: "Use pre-built binary",
|
|
112
|
-
setup: [
|
|
113
|
-
// prettier-ignore
|
|
114
|
-
"# Download pre-built binary from:",
|
|
115
|
-
"# https://github.com/ggerganov/llama.cpp/releases",
|
|
116
|
-
].join("\n"),
|
|
117
|
-
content: commands("./llama-server", "./llama-cli"),
|
|
118
|
-
},
|
|
119
110
|
{
|
|
120
111
|
title: "Build from source code",
|
|
121
112
|
setup: [
|
|
122
|
-
"git clone https://github.com/
|
|
113
|
+
"git clone https://github.com/ggml-org/llama.cpp.git",
|
|
123
114
|
"cd llama.cpp",
|
|
124
115
|
"cmake -B build",
|
|
125
|
-
"cmake --build build -j --target llama-
|
|
116
|
+
"cmake --build build -j --target llama-app",
|
|
126
117
|
].join("\n"),
|
|
127
|
-
content: commands("./build/bin/llama
|
|
118
|
+
content: commands("./build/bin/llama serve", "./build/bin/llama cli"),
|
|
128
119
|
},
|
|
129
120
|
// `docker model run` starts a chat session, which embedding models don't support
|
|
130
121
|
...(isEmbedding
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-libraries-snippets.d.ts","sourceRoot":"","sources":["../../src/model-libraries-snippets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"model-libraries-snippets.d.ts","sourceRoot":"","sources":["../../src/model-libraries-snippets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,iBAAiB,CAAC;AAoBnE,eAAO,MAAM,WAAW,GAAI,OAAO,SAAS,KAAG,MAAM,EAQpD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAOjD,CAAC;AAkBF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAKjD,CAAC;AAEF,eAAO,MAAM,O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AAO,SAAS,KAAG,MAAM,EAY5C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,MAAM,EAOlD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAqBjD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EA2B9C,CAAC;AAuDF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,MAAM,EAQ7C,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,KAAG,MAAM,EAuBhD,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,MAAM,EAI7C,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAI/C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,MAAM,EAqBlD,CAAC;AA4BF,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAO/C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,MAAM,EAUnD,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAYnC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,KAAG,MAAM,EAKvD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAiB9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAgD9C,CAAC"}
|
|
@@ -2150,13 +2150,35 @@ model = BACKBONE_REGISTRY.build("${model.id}")`,
|
|
|
2150
2150
|
const hasChatTemplate = (model) => model.config?.tokenizer_config?.chat_template !== undefined ||
|
|
2151
2151
|
model.config?.processor_config?.chat_template !== undefined ||
|
|
2152
2152
|
model.config?.chat_template_jinja !== undefined;
|
|
2153
|
+
// timm config.json is not a transformers config (no model_type / architectures), so the Hub
|
|
2154
|
+
// reports transformersInfo as { auto_model: "AutoModel" } and drops the image processor.
|
|
2155
|
+
// The timm wrapper still loads through the same Auto classes as a native vision model.
|
|
2156
|
+
const transformersSnippetInfo = (model) => {
|
|
2157
|
+
if (model.library_name === "timm") {
|
|
2158
|
+
if (model.pipeline_tag === "image-classification") {
|
|
2159
|
+
return {
|
|
2160
|
+
...model.transformersInfo,
|
|
2161
|
+
auto_model: "AutoModelForImageClassification",
|
|
2162
|
+
processor: "AutoImageProcessor",
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2165
|
+
if (model.pipeline_tag === "image-feature-extraction") {
|
|
2166
|
+
return {
|
|
2167
|
+
...model.transformersInfo,
|
|
2168
|
+
auto_model: "AutoModel",
|
|
2169
|
+
processor: "AutoImageProcessor",
|
|
2170
|
+
};
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
return model.transformersInfo;
|
|
2174
|
+
};
|
|
2153
2175
|
// interpolated as a Python class name (and into RegExps in pruna_transformers), so a non-identifier is treated as absent
|
|
2154
2176
|
const autoModelClass = (model) => {
|
|
2155
|
-
const autoModel = model
|
|
2177
|
+
const autoModel = transformersSnippetInfo(model)?.auto_model;
|
|
2156
2178
|
return autoModel && isValidIdentifier(autoModel) ? autoModel : undefined;
|
|
2157
2179
|
};
|
|
2158
2180
|
export const transformers = (model) => {
|
|
2159
|
-
const info = model
|
|
2181
|
+
const info = transformersSnippetInfo(model);
|
|
2160
2182
|
if (!info) {
|
|
2161
2183
|
return [`# ⚠️ Type of model unknown`];
|
|
2162
2184
|
}
|
|
@@ -120,6 +120,67 @@ print(output)`);
|
|
|
120
120
|
expect(autoSnippet).toContain("max_new_tokens=256");
|
|
121
121
|
expect(autoSnippet).toContain("# pip install -U transformers accelerate");
|
|
122
122
|
});
|
|
123
|
+
it("transformers: timm image-classification uses the same Auto classes as native classifiers", () => {
|
|
124
|
+
const model = {
|
|
125
|
+
...base,
|
|
126
|
+
id: "timm/vit_base_patch16_224.augreg2_in21k_ft_in1k",
|
|
127
|
+
library_name: "timm",
|
|
128
|
+
pipeline_tag: "image-classification",
|
|
129
|
+
tags: ["timm", "transformers", "image-classification"],
|
|
130
|
+
// Hub transformersInfo for timm is only this: config.json has no model_type / architectures
|
|
131
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
132
|
+
};
|
|
133
|
+
const [pipelineSnippet, autoSnippet] = transformers(model);
|
|
134
|
+
expect(pipelineSnippet).toContain('pipeline("image-classification", model="timm/vit_base_patch16_224.augreg2_in21k_ft_in1k")');
|
|
135
|
+
expect(pipelineSnippet).toContain("parrots.png");
|
|
136
|
+
expect(autoSnippet).toContain("from transformers import AutoImageProcessor, AutoModelForImageClassification");
|
|
137
|
+
expect(autoSnippet).toContain('processor = AutoImageProcessor.from_pretrained("timm/vit_base_patch16_224.augreg2_in21k_ft_in1k")');
|
|
138
|
+
expect(autoSnippet).toContain('model = AutoModelForImageClassification.from_pretrained("timm/vit_base_patch16_224.augreg2_in21k_ft_in1k", device_map="auto")');
|
|
139
|
+
expect(autoSnippet).not.toContain("AutoModel.from_pretrained");
|
|
140
|
+
// the override is local to snippet generation
|
|
141
|
+
expect(model.transformersInfo).toEqual({ auto_model: "AutoModel" });
|
|
142
|
+
});
|
|
143
|
+
it("transformers: timm image-feature-extraction loads an image processor with AutoModel", () => {
|
|
144
|
+
const [, autoSnippet] = transformers({
|
|
145
|
+
...base,
|
|
146
|
+
id: "timm/vit_large_patch14_dinov2.lvd142m",
|
|
147
|
+
library_name: "timm",
|
|
148
|
+
pipeline_tag: "image-feature-extraction",
|
|
149
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
150
|
+
});
|
|
151
|
+
expect(autoSnippet).toContain("from transformers import AutoImageProcessor, AutoModel\n");
|
|
152
|
+
expect(autoSnippet).toContain('processor = AutoImageProcessor.from_pretrained("timm/vit_large_patch14_dinov2.lvd142m")');
|
|
153
|
+
expect(autoSnippet).toContain('model = AutoModel.from_pretrained("timm/vit_large_patch14_dinov2.lvd142m", device_map="auto")');
|
|
154
|
+
expect(autoSnippet).not.toContain("AutoModelForImageClassification");
|
|
155
|
+
});
|
|
156
|
+
it("transformers: other timm tasks keep the auto class reported by the Hub", () => {
|
|
157
|
+
const [snippet] = transformers({
|
|
158
|
+
...base,
|
|
159
|
+
library_name: "timm",
|
|
160
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
161
|
+
});
|
|
162
|
+
expect(snippet).toContain("from transformers import AutoModel\n");
|
|
163
|
+
expect(snippet).not.toContain("AutoImageProcessor");
|
|
164
|
+
expect(snippet).not.toContain("AutoModelForImageClassification");
|
|
165
|
+
});
|
|
166
|
+
it("transformers: native models keep the classes reported by the Hub", () => {
|
|
167
|
+
const [, classifier] = transformers({
|
|
168
|
+
...base,
|
|
169
|
+
library_name: "transformers",
|
|
170
|
+
pipeline_tag: "image-classification",
|
|
171
|
+
transformersInfo: { auto_model: "AutoModelForImageClassification", processor: "AutoImageProcessor" },
|
|
172
|
+
});
|
|
173
|
+
expect(classifier).toContain("from transformers import AutoImageProcessor, AutoModelForImageClassification");
|
|
174
|
+
// image-classification still returns the pipeline helper first; the direct load is the second snippet
|
|
175
|
+
const [, plain] = transformers({
|
|
176
|
+
...base,
|
|
177
|
+
library_name: "transformers",
|
|
178
|
+
pipeline_tag: "image-classification",
|
|
179
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
180
|
+
});
|
|
181
|
+
expect(plain).toContain("from transformers import AutoModel\n");
|
|
182
|
+
expect(plain).not.toContain("AutoImageProcessor");
|
|
183
|
+
});
|
|
123
184
|
it("transformers: pipelines removed in v5 get a warning with a valid pip command", () => {
|
|
124
185
|
const [snippet] = transformers({
|
|
125
186
|
...base,
|
|
@@ -492,6 +492,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
492
492
|
snippets: (model: ModelData) => string[];
|
|
493
493
|
countDownloads: string;
|
|
494
494
|
};
|
|
495
|
+
egohand: {
|
|
496
|
+
prettyLabel: string;
|
|
497
|
+
repoName: string;
|
|
498
|
+
repoUrl: string;
|
|
499
|
+
filter: false;
|
|
500
|
+
countDownloads: string;
|
|
501
|
+
};
|
|
495
502
|
elm: {
|
|
496
503
|
prettyLabel: string;
|
|
497
504
|
repoName: string;
|
|
@@ -1402,6 +1409,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1402
1409
|
filter: false;
|
|
1403
1410
|
countDownloads: string;
|
|
1404
1411
|
};
|
|
1412
|
+
"rt-detr-hand-detector-v1": {
|
|
1413
|
+
prettyLabel: string;
|
|
1414
|
+
repoName: string;
|
|
1415
|
+
repoUrl: string;
|
|
1416
|
+
filter: false;
|
|
1417
|
+
countDownloads: string;
|
|
1418
|
+
};
|
|
1405
1419
|
rwkv: {
|
|
1406
1420
|
prettyLabel: string;
|
|
1407
1421
|
repoName: string;
|
|
@@ -1963,5 +1977,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1963
1977
|
};
|
|
1964
1978
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1965
1979
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1966
|
-
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("aadya-neural" | "acestep" | "adapter-transformers" | "allennlp" | "aneforge" | "anemoi" | "araclip" | "asimov" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "causilo" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cortiq" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "drinkme" | "edsnlp" | "elm" | "encoderfile" | "ensomi" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flexray" | "flextab" | "fme" | "gaussianformer" | "gemma.cpp" | "geometry-crafter" | "gliformer" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "mect" | "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" | "jev-style" | "keras" | "tf-keras" | "keras-hub" | "zeromodels" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "laya" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "memra" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "microduck" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "montreal-forced-aligner" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "opendde" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "piper" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "routee-powertrain" | "rwkv" | "saelens" | "sage-music" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "shadow" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vqweb" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
|
|
1980
|
+
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("aadya-neural" | "acestep" | "adapter-transformers" | "allennlp" | "aneforge" | "anemoi" | "araclip" | "asimov" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "causilo" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cortiq" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "drinkme" | "edsnlp" | "egohand" | "elm" | "encoderfile" | "ensomi" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flexray" | "flextab" | "fme" | "gaussianformer" | "gemma.cpp" | "geometry-crafter" | "gliformer" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "mect" | "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" | "jev-style" | "keras" | "tf-keras" | "keras-hub" | "zeromodels" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "laya" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "memra" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "microduck" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "montreal-forced-aligner" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "opendde" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "piper" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "routee-powertrain" | "rt-detr-hand-detector-v1" | "rwkv" | "saelens" | "sage-music" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "shadow" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vqweb" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
|
|
1967
1981
|
//# 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,MA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|
458
|
+
repoName: "EgoHand",
|
|
459
|
+
repoUrl: "https://github.com/NVIDIA/IsaacCapture/tree/main/src/python/isaaccapture_egopost",
|
|
460
|
+
filter: false,
|
|
461
|
+
countDownloads: `path_extension:"ckpt"`,
|
|
462
|
+
},
|
|
456
463
|
elm: {
|
|
457
464
|
prettyLabel: "ELM",
|
|
458
465
|
repoName: "elm",
|
|
@@ -1367,6 +1374,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1367
1374
|
filter: false,
|
|
1368
1375
|
countDownloads: `path_extension:"onnx" OR path_extension:"joblib"`,
|
|
1369
1376
|
},
|
|
1377
|
+
"rt-detr-hand-detector-v1": {
|
|
1378
|
+
prettyLabel: "RT-DETR-Hand-Detector-v1",
|
|
1379
|
+
repoName: "IsaacCapture",
|
|
1380
|
+
repoUrl: "https://github.com/NVIDIA/IsaacCapture/tree/main/src/python/isaaccapture_egopost",
|
|
1381
|
+
filter: false,
|
|
1382
|
+
countDownloads: `path_extension:"onnx"`,
|
|
1383
|
+
},
|
|
1370
1384
|
rwkv: {
|
|
1371
1385
|
prettyLabel: "RWKV",
|
|
1372
1386
|
repoName: "RWKV-LM",
|
package/package.json
CHANGED
package/src/eval.ts
CHANGED
|
@@ -125,6 +125,12 @@ export const EVALUATION_FRAMEWORKS = {
|
|
|
125
125
|
"Video-MME-v2 is a benchmark for evaluating the next stage of video understanding capabilities of multimodal large language models.",
|
|
126
126
|
url: "https://github.com/MME-Benchmarks/Video-MME-v2",
|
|
127
127
|
},
|
|
128
|
+
omnicompass: {
|
|
129
|
+
name: "omnicompass",
|
|
130
|
+
description:
|
|
131
|
+
"OmniCompass evaluates temporal grounding, spatial grounding, and video question answering with paired text and image-based target specifications across visual and audio-visual tracks.",
|
|
132
|
+
url: "https://github.com/PolyU-VCLab/OmniCompass",
|
|
133
|
+
},
|
|
128
134
|
"claw-eval": {
|
|
129
135
|
name: "claw-eval",
|
|
130
136
|
description:
|
|
@@ -173,4 +179,10 @@ export const EVALUATION_FRAMEWORKS = {
|
|
|
173
179
|
"ExtractBench is a benchmark for schema-guided data extraction from enterprise documents, scoring schema-valid JSON extraction and evidence grounding without an LLM judge.",
|
|
174
180
|
url: "https://github.com/run-llama/ExtractBench",
|
|
175
181
|
},
|
|
182
|
+
"decision-index": {
|
|
183
|
+
name: "decision-index",
|
|
184
|
+
description:
|
|
185
|
+
"The Decision Index evaluates decision models: given a state (text, JSON or images) and typed questions, a model returns a choice or ranking, scored on private same-skill and new-domain sets.",
|
|
186
|
+
url: "https://github.com/apolinario/decision-index",
|
|
187
|
+
},
|
|
176
188
|
} as const;
|
package/src/hardware-amd.ts
CHANGED
|
@@ -308,6 +308,15 @@ export const AMD_GPU_SKUS: Record<string, AmdGpuHardwareSpec> = {
|
|
|
308
308
|
power: 250,
|
|
309
309
|
releaseYear: 2020,
|
|
310
310
|
},
|
|
311
|
+
"Radeon Pro V340": {
|
|
312
|
+
tflops: 43.0,
|
|
313
|
+
memory: [16, 32],
|
|
314
|
+
gfxVersion: "gfx900",
|
|
315
|
+
msrp: 4_000,
|
|
316
|
+
power: 300,
|
|
317
|
+
releaseYear: 2018,
|
|
318
|
+
aliases: ["Radeon Pro V340L"],
|
|
319
|
+
},
|
|
311
320
|
"Radeon 610M": {
|
|
312
321
|
tflops: 0.97,
|
|
313
322
|
memory: AMD_GPU_INTEGRATED_SHARED_MEMORY_OPTIONS,
|
package/src/hardware-nvidia.ts
CHANGED
|
@@ -878,6 +878,14 @@ export const NVIDIA_SKUS: Record<string, NvidiaHardwareSpec> = {
|
|
|
878
878
|
power: 75,
|
|
879
879
|
releaseYear: 2016,
|
|
880
880
|
},
|
|
881
|
+
"GTX 980": {
|
|
882
|
+
tflops: 4.98, // float32 (GPU does not support native float16)
|
|
883
|
+
memory: [4],
|
|
884
|
+
computeCapability: 5.2,
|
|
885
|
+
msrp: 549,
|
|
886
|
+
power: 165,
|
|
887
|
+
releaseYear: 2014,
|
|
888
|
+
},
|
|
881
889
|
"RTX Titan": {
|
|
882
890
|
tflops: 32.62,
|
|
883
891
|
memory: [24],
|
package/src/local-apps.ts
CHANGED
|
@@ -199,24 +199,15 @@ const snippetLlamacpp = (model: ModelData, filepath?: string): LocalAppSnippet[]
|
|
|
199
199
|
setup: "winget install llama.cpp",
|
|
200
200
|
content: commands("llama serve", "llama cli"),
|
|
201
201
|
},
|
|
202
|
-
{
|
|
203
|
-
title: "Use pre-built binary",
|
|
204
|
-
setup: [
|
|
205
|
-
// prettier-ignore
|
|
206
|
-
"# Download pre-built binary from:",
|
|
207
|
-
"# https://github.com/ggerganov/llama.cpp/releases",
|
|
208
|
-
].join("\n"),
|
|
209
|
-
content: commands("./llama-server", "./llama-cli"),
|
|
210
|
-
},
|
|
211
202
|
{
|
|
212
203
|
title: "Build from source code",
|
|
213
204
|
setup: [
|
|
214
|
-
"git clone https://github.com/
|
|
205
|
+
"git clone https://github.com/ggml-org/llama.cpp.git",
|
|
215
206
|
"cd llama.cpp",
|
|
216
207
|
"cmake -B build",
|
|
217
|
-
"cmake --build build -j --target llama-
|
|
208
|
+
"cmake --build build -j --target llama-app",
|
|
218
209
|
].join("\n"),
|
|
219
|
-
content: commands("./build/bin/llama
|
|
210
|
+
content: commands("./build/bin/llama serve", "./build/bin/llama cli"),
|
|
220
211
|
},
|
|
221
212
|
// `docker model run` starts a chat session, which embedding models don't support
|
|
222
213
|
...(isEmbedding
|
|
@@ -169,6 +169,85 @@ print(output)`);
|
|
|
169
169
|
expect(autoSnippet).toContain("# pip install -U transformers accelerate");
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
+
it("transformers: timm image-classification uses the same Auto classes as native classifiers", () => {
|
|
173
|
+
const model = {
|
|
174
|
+
...base,
|
|
175
|
+
id: "timm/vit_base_patch16_224.augreg2_in21k_ft_in1k",
|
|
176
|
+
library_name: "timm",
|
|
177
|
+
pipeline_tag: "image-classification",
|
|
178
|
+
tags: ["timm", "transformers", "image-classification"],
|
|
179
|
+
// Hub transformersInfo for timm is only this: config.json has no model_type / architectures
|
|
180
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
181
|
+
} as ModelData;
|
|
182
|
+
const [pipelineSnippet, autoSnippet] = transformers(model);
|
|
183
|
+
|
|
184
|
+
expect(pipelineSnippet).toContain(
|
|
185
|
+
'pipeline("image-classification", model="timm/vit_base_patch16_224.augreg2_in21k_ft_in1k")',
|
|
186
|
+
);
|
|
187
|
+
expect(pipelineSnippet).toContain("parrots.png");
|
|
188
|
+
expect(autoSnippet).toContain("from transformers import AutoImageProcessor, AutoModelForImageClassification");
|
|
189
|
+
expect(autoSnippet).toContain(
|
|
190
|
+
'processor = AutoImageProcessor.from_pretrained("timm/vit_base_patch16_224.augreg2_in21k_ft_in1k")',
|
|
191
|
+
);
|
|
192
|
+
expect(autoSnippet).toContain(
|
|
193
|
+
'model = AutoModelForImageClassification.from_pretrained("timm/vit_base_patch16_224.augreg2_in21k_ft_in1k", device_map="auto")',
|
|
194
|
+
);
|
|
195
|
+
expect(autoSnippet).not.toContain("AutoModel.from_pretrained");
|
|
196
|
+
// the override is local to snippet generation
|
|
197
|
+
expect(model.transformersInfo).toEqual({ auto_model: "AutoModel" });
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
it("transformers: timm image-feature-extraction loads an image processor with AutoModel", () => {
|
|
201
|
+
const [, autoSnippet] = transformers({
|
|
202
|
+
...base,
|
|
203
|
+
id: "timm/vit_large_patch14_dinov2.lvd142m",
|
|
204
|
+
library_name: "timm",
|
|
205
|
+
pipeline_tag: "image-feature-extraction",
|
|
206
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
207
|
+
} as ModelData);
|
|
208
|
+
|
|
209
|
+
expect(autoSnippet).toContain("from transformers import AutoImageProcessor, AutoModel\n");
|
|
210
|
+
expect(autoSnippet).toContain(
|
|
211
|
+
'processor = AutoImageProcessor.from_pretrained("timm/vit_large_patch14_dinov2.lvd142m")',
|
|
212
|
+
);
|
|
213
|
+
expect(autoSnippet).toContain(
|
|
214
|
+
'model = AutoModel.from_pretrained("timm/vit_large_patch14_dinov2.lvd142m", device_map="auto")',
|
|
215
|
+
);
|
|
216
|
+
expect(autoSnippet).not.toContain("AutoModelForImageClassification");
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
it("transformers: other timm tasks keep the auto class reported by the Hub", () => {
|
|
220
|
+
const [snippet] = transformers({
|
|
221
|
+
...base,
|
|
222
|
+
library_name: "timm",
|
|
223
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
224
|
+
} as ModelData);
|
|
225
|
+
|
|
226
|
+
expect(snippet).toContain("from transformers import AutoModel\n");
|
|
227
|
+
expect(snippet).not.toContain("AutoImageProcessor");
|
|
228
|
+
expect(snippet).not.toContain("AutoModelForImageClassification");
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
it("transformers: native models keep the classes reported by the Hub", () => {
|
|
232
|
+
const [, classifier] = transformers({
|
|
233
|
+
...base,
|
|
234
|
+
library_name: "transformers",
|
|
235
|
+
pipeline_tag: "image-classification",
|
|
236
|
+
transformersInfo: { auto_model: "AutoModelForImageClassification", processor: "AutoImageProcessor" },
|
|
237
|
+
} as ModelData);
|
|
238
|
+
expect(classifier).toContain("from transformers import AutoImageProcessor, AutoModelForImageClassification");
|
|
239
|
+
|
|
240
|
+
// image-classification still returns the pipeline helper first; the direct load is the second snippet
|
|
241
|
+
const [, plain] = transformers({
|
|
242
|
+
...base,
|
|
243
|
+
library_name: "transformers",
|
|
244
|
+
pipeline_tag: "image-classification",
|
|
245
|
+
transformersInfo: { auto_model: "AutoModel" },
|
|
246
|
+
} as ModelData);
|
|
247
|
+
expect(plain).toContain("from transformers import AutoModel\n");
|
|
248
|
+
expect(plain).not.toContain("AutoImageProcessor");
|
|
249
|
+
});
|
|
250
|
+
|
|
172
251
|
it("transformers: pipelines removed in v5 get a warning with a valid pip command", () => {
|
|
173
252
|
const [snippet] = transformers({
|
|
174
253
|
...base,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModelData } from "./model-data.js";
|
|
1
|
+
import type { ModelData, TransformersInfo } from "./model-data.js";
|
|
2
2
|
import type { WidgetExampleTextInput, WidgetExampleSentenceSimilarityInput } from "./widget-example.js";
|
|
3
3
|
import { LIBRARY_TASK_MAPPING, REMOVED_IN_V5_TRANSFORMERS_PIPELINES } from "./library-to-tasks.js";
|
|
4
4
|
import { getModelInputSnippet } from "./snippets/inputs.js";
|
|
@@ -2402,14 +2402,37 @@ const hasChatTemplate = (model: ModelData): boolean =>
|
|
|
2402
2402
|
model.config?.processor_config?.chat_template !== undefined ||
|
|
2403
2403
|
model.config?.chat_template_jinja !== undefined;
|
|
2404
2404
|
|
|
2405
|
+
// timm config.json is not a transformers config (no model_type / architectures), so the Hub
|
|
2406
|
+
// reports transformersInfo as { auto_model: "AutoModel" } and drops the image processor.
|
|
2407
|
+
// The timm wrapper still loads through the same Auto classes as a native vision model.
|
|
2408
|
+
const transformersSnippetInfo = (model: ModelData): TransformersInfo | undefined => {
|
|
2409
|
+
if (model.library_name === "timm") {
|
|
2410
|
+
if (model.pipeline_tag === "image-classification") {
|
|
2411
|
+
return {
|
|
2412
|
+
...model.transformersInfo,
|
|
2413
|
+
auto_model: "AutoModelForImageClassification",
|
|
2414
|
+
processor: "AutoImageProcessor",
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
if (model.pipeline_tag === "image-feature-extraction") {
|
|
2418
|
+
return {
|
|
2419
|
+
...model.transformersInfo,
|
|
2420
|
+
auto_model: "AutoModel",
|
|
2421
|
+
processor: "AutoImageProcessor",
|
|
2422
|
+
};
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
return model.transformersInfo;
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2405
2428
|
// interpolated as a Python class name (and into RegExps in pruna_transformers), so a non-identifier is treated as absent
|
|
2406
2429
|
const autoModelClass = (model: ModelData): string | undefined => {
|
|
2407
|
-
const autoModel = model
|
|
2430
|
+
const autoModel = transformersSnippetInfo(model)?.auto_model;
|
|
2408
2431
|
return autoModel && isValidIdentifier(autoModel) ? autoModel : undefined;
|
|
2409
2432
|
};
|
|
2410
2433
|
|
|
2411
2434
|
export const transformers = (model: ModelData): string[] => {
|
|
2412
|
-
const info = model
|
|
2435
|
+
const info = transformersSnippetInfo(model);
|
|
2413
2436
|
if (!info) {
|
|
2414
2437
|
return [`# ⚠️ Type of model unknown`];
|
|
2415
2438
|
}
|
package/src/model-libraries.ts
CHANGED
|
@@ -497,6 +497,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
497
497
|
snippets: snippets.edsnlp,
|
|
498
498
|
countDownloads: `path_filename:"config" AND path_extension:"cfg"`,
|
|
499
499
|
},
|
|
500
|
+
egohand: {
|
|
501
|
+
prettyLabel: "EgoHand",
|
|
502
|
+
repoName: "EgoHand",
|
|
503
|
+
repoUrl: "https://github.com/NVIDIA/IsaacCapture/tree/main/src/python/isaaccapture_egopost",
|
|
504
|
+
filter: false,
|
|
505
|
+
countDownloads: `path_extension:"ckpt"`,
|
|
506
|
+
},
|
|
500
507
|
elm: {
|
|
501
508
|
prettyLabel: "ELM",
|
|
502
509
|
repoName: "elm",
|
|
@@ -1411,6 +1418,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1411
1418
|
filter: false,
|
|
1412
1419
|
countDownloads: `path_extension:"onnx" OR path_extension:"joblib"`,
|
|
1413
1420
|
},
|
|
1421
|
+
"rt-detr-hand-detector-v1": {
|
|
1422
|
+
prettyLabel: "RT-DETR-Hand-Detector-v1",
|
|
1423
|
+
repoName: "IsaacCapture",
|
|
1424
|
+
repoUrl: "https://github.com/NVIDIA/IsaacCapture/tree/main/src/python/isaaccapture_egopost",
|
|
1425
|
+
filter: false,
|
|
1426
|
+
countDownloads: `path_extension:"onnx"`,
|
|
1427
|
+
},
|
|
1414
1428
|
rwkv: {
|
|
1415
1429
|
prettyLabel: "RWKV",
|
|
1416
1430
|
repoName: "RWKV-LM",
|