@huggingface/tasks 0.20.1 → 0.20.3

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.
@@ -32,6 +32,11 @@ export declare const EVALUATION_FRAMEWORKS: {
32
32
  readonly description: "Archipelago is a system for running and evaluating AI agents against MCP applications.";
33
33
  readonly url: "https://github.com/Mercor-Intelligence/archipelago";
34
34
  };
35
+ readonly "screenspot-pro": {
36
+ readonly name: "screenspot-pro";
37
+ readonly description: "ScreenSpot-Pro is a GUI grounding benchmark designed to evaluate how well AI agents can locate and identify UI elements across professional software applications in high-resolution screenshots, covering 1,585 annotated images from 26 professional tools.";
38
+ readonly url: "https://github.com/likaixin2000/ScreenSpot-Pro-GUI-Grounding";
39
+ };
35
40
  readonly "swe-bench": {
36
41
  readonly name: "swe-bench";
37
42
  readonly description: "SWE Bench is a framework for evaluating the performance of LLMs on software engineering tasks.";
@@ -1 +1 @@
1
- {"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDxB,CAAC"}
1
+ {"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDxB,CAAC"}
@@ -35,6 +35,11 @@ exports.EVALUATION_FRAMEWORKS = {
35
35
  description: "Archipelago is a system for running and evaluating AI agents against MCP applications.",
36
36
  url: "https://github.com/Mercor-Intelligence/archipelago",
37
37
  },
38
+ "screenspot-pro": {
39
+ name: "screenspot-pro",
40
+ description: "ScreenSpot-Pro is a GUI grounding benchmark designed to evaluate how well AI agents can locate and identify UI elements across professional software applications in high-resolution screenshots, covering 1,585 annotated images from 26 professional tools.",
41
+ url: "https://github.com/likaixin2000/ScreenSpot-Pro-GUI-Grounding",
42
+ },
38
43
  "swe-bench": {
39
44
  name: "swe-bench",
40
45
  description: "SWE Bench is a framework for evaluating the performance of LLMs on software engineering tasks.",
@@ -19,6 +19,8 @@ export { LOCAL_APPS } from "./local-apps.js";
19
19
  export type { LocalApp, LocalAppKey, LocalAppSnippet } from "./local-apps.js";
20
20
  export { DATASET_LIBRARIES_UI_ELEMENTS } from "./dataset-libraries.js";
21
21
  export type { DatasetLibraryUiElement, DatasetLibraryKey } from "./dataset-libraries.js";
22
+ export { KERNEL_LIBRARIES_UI_ELEMENTS } from "./kernel-libraries.js";
23
+ export type { KernelLibraryKey, KernelLibraryUiElement } from "./kernel-libraries.js";
22
24
  export * from "./inference-providers.js";
23
25
  export { EVALUATION_FRAMEWORKS } from "./eval.js";
24
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACvF,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACN,aAAa,EACb,cAAc,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,UAAU,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,8BAA8B,EAC9B,sBAAsB,EACtB,2BAA2B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC9E,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,iBAA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,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC"}
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.EVALUATION_FRAMEWORKS = exports.DATASET_LIBRARIES_UI_ELEMENTS = exports.LOCAL_APPS = exports.DEFAULT_MEMORY_OPTIONS = exports.SKUS = exports.getModelInputSnippet = exports.stringifyMessages = exports.stringifyGenerationConfig = exports.inferenceSnippetLanguages = exports.SPECIAL_TOKENS_ATTRIBUTES = exports.MODEL_LIBRARIES_UI_ELEMENTS = exports.ALL_MODEL_LIBRARY_KEYS = exports.ALL_DISPLAY_MODEL_LIBRARY_KEYS = exports.PIPELINE_TYPES_SET = exports.SUBTASK_TYPES = exports.MODALITY_LABELS = exports.MODALITIES = exports.PIPELINE_TYPES = exports.PIPELINE_DATA = exports.MAPPING_DEFAULT_WIDGET = exports.LIBRARY_TASK_MAPPING = void 0;
17
+ exports.EVALUATION_FRAMEWORKS = exports.KERNEL_LIBRARIES_UI_ELEMENTS = exports.DATASET_LIBRARIES_UI_ELEMENTS = exports.LOCAL_APPS = exports.DEFAULT_MEMORY_OPTIONS = exports.SKUS = exports.getModelInputSnippet = exports.stringifyMessages = exports.stringifyGenerationConfig = exports.inferenceSnippetLanguages = exports.SPECIAL_TOKENS_ATTRIBUTES = exports.MODEL_LIBRARIES_UI_ELEMENTS = exports.ALL_MODEL_LIBRARY_KEYS = exports.ALL_DISPLAY_MODEL_LIBRARY_KEYS = exports.PIPELINE_TYPES_SET = exports.SUBTASK_TYPES = exports.MODALITY_LABELS = exports.MODALITIES = exports.PIPELINE_TYPES = exports.PIPELINE_DATA = exports.MAPPING_DEFAULT_WIDGET = exports.LIBRARY_TASK_MAPPING = void 0;
18
18
  var library_to_tasks_js_1 = require("./library-to-tasks.js");
19
19
  Object.defineProperty(exports, "LIBRARY_TASK_MAPPING", { enumerable: true, get: function () { return library_to_tasks_js_1.LIBRARY_TASK_MAPPING; } });
20
20
  var default_widget_inputs_js_1 = require("./default-widget-inputs.js");
@@ -46,6 +46,8 @@ var local_apps_js_1 = require("./local-apps.js");
46
46
  Object.defineProperty(exports, "LOCAL_APPS", { enumerable: true, get: function () { return local_apps_js_1.LOCAL_APPS; } });
47
47
  var dataset_libraries_js_1 = require("./dataset-libraries.js");
48
48
  Object.defineProperty(exports, "DATASET_LIBRARIES_UI_ELEMENTS", { enumerable: true, get: function () { return dataset_libraries_js_1.DATASET_LIBRARIES_UI_ELEMENTS; } });
49
+ var kernel_libraries_js_1 = require("./kernel-libraries.js");
50
+ Object.defineProperty(exports, "KERNEL_LIBRARIES_UI_ELEMENTS", { enumerable: true, get: function () { return kernel_libraries_js_1.KERNEL_LIBRARIES_UI_ELEMENTS; } });
49
51
  __exportStar(require("./inference-providers.js"), exports);
50
52
  var eval_js_1 = require("./eval.js");
51
53
  Object.defineProperty(exports, "EVALUATION_FRAMEWORKS", { enumerable: true, get: function () { return eval_js_1.EVALUATION_FRAMEWORKS; } });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Elements configurable by a kernel library.
3
+ */
4
+ export interface KernelLibraryUiElement {
5
+ /**
6
+ * Pretty name of the library.
7
+ */
8
+ prettyLabel: string;
9
+ /**
10
+ * Repo name of the library's (usually on GitHub) code repo
11
+ */
12
+ repoName: string;
13
+ /**
14
+ * URL to library's (usually on GitHub) code repo
15
+ */
16
+ repoUrl: string;
17
+ /**
18
+ * URL to library's docs
19
+ */
20
+ docsUrl?: string;
21
+ /**
22
+ * Code snippet(s) displayed
23
+ */
24
+ snippets?: (kernelId: string, version?: number) => string[];
25
+ }
26
+ export declare const KERNEL_LIBRARIES_UI_ELEMENTS: {
27
+ kernels: {
28
+ prettyLabel: string;
29
+ repoName: string;
30
+ repoUrl: string;
31
+ docsUrl: string;
32
+ snippets: (kernelId: string, version?: number) => string[];
33
+ };
34
+ };
35
+ export type KernelLibraryKey = keyof typeof KERNEL_LIBRARIES_UI_ELEMENTS;
36
+ //# sourceMappingURL=kernel-libraries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kernel-libraries.d.ts","sourceRoot":"","sources":["../../src/kernel-libraries.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;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,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;CAC5D;AAED,eAAO,MAAM,4BAA4B;;;;;;6BAMlB,MAAM,YAAY,MAAM;;CAQG,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,4BAA4B,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KERNEL_LIBRARIES_UI_ELEMENTS = void 0;
4
+ exports.KERNEL_LIBRARIES_UI_ELEMENTS = {
5
+ kernels: {
6
+ prettyLabel: "Kernels",
7
+ repoName: "Kernels",
8
+ repoUrl: "https://github.com/huggingface/kernels",
9
+ docsUrl: "https://huggingface.co/docs/kernels",
10
+ snippets: (kernelId, version) => [
11
+ `# !pip install kernels
12
+
13
+ from kernels import get_kernel
14
+
15
+ kernel = get_kernel("${kernelId}"${version !== undefined ? `, version=${version}` : ""})`,
16
+ ],
17
+ },
18
+ };
@@ -32,6 +32,11 @@ export declare const EVALUATION_FRAMEWORKS: {
32
32
  readonly description: "Archipelago is a system for running and evaluating AI agents against MCP applications.";
33
33
  readonly url: "https://github.com/Mercor-Intelligence/archipelago";
34
34
  };
35
+ readonly "screenspot-pro": {
36
+ readonly name: "screenspot-pro";
37
+ readonly description: "ScreenSpot-Pro is a GUI grounding benchmark designed to evaluate how well AI agents can locate and identify UI elements across professional software applications in high-resolution screenshots, covering 1,585 annotated images from 26 professional tools.";
38
+ readonly url: "https://github.com/likaixin2000/ScreenSpot-Pro-GUI-Grounding";
39
+ };
35
40
  readonly "swe-bench": {
36
41
  readonly name: "swe-bench";
37
42
  readonly description: "SWE Bench is a framework for evaluating the performance of LLMs on software engineering tasks.";
@@ -1 +1 @@
1
- {"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDxB,CAAC"}
1
+ {"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/eval.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDxB,CAAC"}
package/dist/esm/eval.js CHANGED
@@ -32,6 +32,11 @@ export const EVALUATION_FRAMEWORKS = {
32
32
  description: "Archipelago is a system for running and evaluating AI agents against MCP applications.",
33
33
  url: "https://github.com/Mercor-Intelligence/archipelago",
34
34
  },
35
+ "screenspot-pro": {
36
+ name: "screenspot-pro",
37
+ description: "ScreenSpot-Pro is a GUI grounding benchmark designed to evaluate how well AI agents can locate and identify UI elements across professional software applications in high-resolution screenshots, covering 1,585 annotated images from 26 professional tools.",
38
+ url: "https://github.com/likaixin2000/ScreenSpot-Pro-GUI-Grounding",
39
+ },
35
40
  "swe-bench": {
36
41
  name: "swe-bench",
37
42
  description: "SWE Bench is a framework for evaluating the performance of LLMs on software engineering tasks.",
@@ -19,6 +19,8 @@ export { LOCAL_APPS } from "./local-apps.js";
19
19
  export type { LocalApp, LocalAppKey, LocalAppSnippet } from "./local-apps.js";
20
20
  export { DATASET_LIBRARIES_UI_ELEMENTS } from "./dataset-libraries.js";
21
21
  export type { DatasetLibraryUiElement, DatasetLibraryKey } from "./dataset-libraries.js";
22
+ export { KERNEL_LIBRARIES_UI_ELEMENTS } from "./kernel-libraries.js";
23
+ export type { KernelLibraryKey, KernelLibraryUiElement } from "./kernel-libraries.js";
22
24
  export * from "./inference-providers.js";
23
25
  export { EVALUATION_FRAMEWORKS } from "./eval.js";
24
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,YAAY,EAAE,QAAQ,EAAE,Q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 +9,6 @@ export { inferenceSnippetLanguages, stringifyGenerationConfig, stringifyMessages
9
9
  export { SKUS, DEFAULT_MEMORY_OPTIONS } from "./hardware.js";
10
10
  export { LOCAL_APPS } from "./local-apps.js";
11
11
  export { DATASET_LIBRARIES_UI_ELEMENTS } from "./dataset-libraries.js";
12
+ export { KERNEL_LIBRARIES_UI_ELEMENTS } from "./kernel-libraries.js";
12
13
  export * from "./inference-providers.js";
13
14
  export { EVALUATION_FRAMEWORKS } from "./eval.js";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Elements configurable by a kernel library.
3
+ */
4
+ export interface KernelLibraryUiElement {
5
+ /**
6
+ * Pretty name of the library.
7
+ */
8
+ prettyLabel: string;
9
+ /**
10
+ * Repo name of the library's (usually on GitHub) code repo
11
+ */
12
+ repoName: string;
13
+ /**
14
+ * URL to library's (usually on GitHub) code repo
15
+ */
16
+ repoUrl: string;
17
+ /**
18
+ * URL to library's docs
19
+ */
20
+ docsUrl?: string;
21
+ /**
22
+ * Code snippet(s) displayed
23
+ */
24
+ snippets?: (kernelId: string, version?: number) => string[];
25
+ }
26
+ export declare const KERNEL_LIBRARIES_UI_ELEMENTS: {
27
+ kernels: {
28
+ prettyLabel: string;
29
+ repoName: string;
30
+ repoUrl: string;
31
+ docsUrl: string;
32
+ snippets: (kernelId: string, version?: number) => string[];
33
+ };
34
+ };
35
+ export type KernelLibraryKey = keyof typeof KERNEL_LIBRARIES_UI_ELEMENTS;
36
+ //# sourceMappingURL=kernel-libraries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kernel-libraries.d.ts","sourceRoot":"","sources":["../../src/kernel-libraries.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;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,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;CAC5D;AAED,eAAO,MAAM,4BAA4B;;;;;;6BAMlB,MAAM,YAAY,MAAM;;CAQG,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,4BAA4B,CAAC"}
@@ -0,0 +1,15 @@
1
+ export const KERNEL_LIBRARIES_UI_ELEMENTS = {
2
+ kernels: {
3
+ prettyLabel: "Kernels",
4
+ repoName: "Kernels",
5
+ repoUrl: "https://github.com/huggingface/kernels",
6
+ docsUrl: "https://huggingface.co/docs/kernels",
7
+ snippets: (kernelId, version) => [
8
+ `# !pip install kernels
9
+
10
+ from kernels import get_kernel
11
+
12
+ kernel = get_kernel("${kernelId}"${version !== undefined ? `, version=${version}` : ""})`,
13
+ ],
14
+ },
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huggingface/tasks",
3
- "version": "0.20.1",
3
+ "version": "0.20.3",
4
4
  "description": "List of ML tasks for huggingface.co/tasks",
5
5
  "keywords": [
6
6
  "hub",
package/src/eval.ts CHANGED
@@ -32,6 +32,12 @@ export const EVALUATION_FRAMEWORKS = {
32
32
  description: "Archipelago is a system for running and evaluating AI agents against MCP applications.",
33
33
  url: "https://github.com/Mercor-Intelligence/archipelago",
34
34
  },
35
+ "screenspot-pro": {
36
+ name: "screenspot-pro",
37
+ description:
38
+ "ScreenSpot-Pro is a GUI grounding benchmark designed to evaluate how well AI agents can locate and identify UI elements across professional software applications in high-resolution screenshots, covering 1,585 annotated images from 26 professional tools.",
39
+ url: "https://github.com/likaixin2000/ScreenSpot-Pro-GUI-Grounding",
40
+ },
35
41
  "swe-bench": {
36
42
  name: "swe-bench",
37
43
  description: "SWE Bench is a framework for evaluating the performance of LLMs on software engineering tasks.",
package/src/index.ts CHANGED
@@ -67,6 +67,9 @@ export type { LocalApp, LocalAppKey, LocalAppSnippet } from "./local-apps.js";
67
67
  export { DATASET_LIBRARIES_UI_ELEMENTS } from "./dataset-libraries.js";
68
68
  export type { DatasetLibraryUiElement, DatasetLibraryKey } from "./dataset-libraries.js";
69
69
 
70
+ export { KERNEL_LIBRARIES_UI_ELEMENTS } from "./kernel-libraries.js";
71
+ export type { KernelLibraryKey, KernelLibraryUiElement } from "./kernel-libraries.js";
72
+
70
73
  export * from "./inference-providers.js";
71
74
 
72
75
  export { EVALUATION_FRAMEWORKS } from "./eval.js";
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Elements configurable by a kernel library.
3
+ */
4
+ export interface KernelLibraryUiElement {
5
+ /**
6
+ * Pretty name of the library.
7
+ */
8
+ prettyLabel: string;
9
+ /**
10
+ * Repo name of the library's (usually on GitHub) code repo
11
+ */
12
+ repoName: string;
13
+ /**
14
+ * URL to library's (usually on GitHub) code repo
15
+ */
16
+ repoUrl: string;
17
+ /**
18
+ * URL to library's docs
19
+ */
20
+ docsUrl?: string;
21
+ /**
22
+ * Code snippet(s) displayed
23
+ */
24
+ snippets?: (kernelId: string, version?: number) => string[];
25
+ }
26
+
27
+ export const KERNEL_LIBRARIES_UI_ELEMENTS = {
28
+ kernels: {
29
+ prettyLabel: "Kernels",
30
+ repoName: "Kernels",
31
+ repoUrl: "https://github.com/huggingface/kernels",
32
+ docsUrl: "https://huggingface.co/docs/kernels",
33
+ snippets: (kernelId: string, version?: number) => [
34
+ `# !pip install kernels
35
+
36
+ from kernels import get_kernel
37
+
38
+ kernel = get_kernel("${kernelId}"${version !== undefined ? `, version=${version}` : ""})`,
39
+ ],
40
+ },
41
+ } satisfies Record<string, KernelLibraryUiElement>;
42
+
43
+ export type KernelLibraryKey = keyof typeof KERNEL_LIBRARIES_UI_ELEMENTS;