Chennzi commited on
Commit
5b235cf
·
verified ·
1 Parent(s): 8ec74f1

Update OpenCUA numpad multiply trajectory

Browse files
README.md CHANGED
@@ -35,7 +35,7 @@ configs:
35
 
36
  # cua-lite/OpenCUA
37
 
38
- cua-lite preprocessed version of xlangai/AgentNet (OpenCUA). Desktop navigation trajectories from Ubuntu and Windows/Mac environments with pyautogui-style actions converted to CUA-lite tool calls.
39
 
40
  ## Origin
41
 
@@ -53,52 +53,121 @@ ds = load_dataset("cua-lite/OpenCUA")
53
  ds = load_dataset("cua-lite/OpenCUA", "desktop.use")
54
  ```
55
 
56
- You can also filter by `metadata.platform` / `metadata.task_type` /
57
- `metadata.others.*` after loading; every row carries a rich `metadata`
58
- struct (see schema below).
59
 
60
  ## Schema
61
 
62
- Each row has these columns:
63
 
64
  | column | type | notes |
65
  |---|---|---|
66
  | `images` | list[Image] | embedded PNG/JPEG bytes; HF viewer renders thumbnails |
67
- | `messages` | list[struct] | OpenAI-style turns with `role` + structured `content` |
68
- | `metadata` | struct | `{platform, task_type, extra_tool_schemas, valid_actions, others{...}}` |
 
69
 
70
  Coordinate values in `messages` are normalized to `[0, 1000]` integers.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  **Image-dedup (`grounding.*` / `understanding` cohorts).** These cohorts are
73
  single-image-per-row and many rows share the same screenshot, so to avoid
74
  re-embedding identical image bytes once per instruction they are stored
75
  *folded*: one row per unique screenshot (image embedded once), carrying an
76
  extra **`_folded`** column — a JSON string with the authoritative list of
77
- `{messages, metadata}` members for that screenshot. The row's top-level
78
- `messages` is the members concatenated for viewer convenience. `use`
79
- cohorts are not folded. **Use `lite.data.hf.download` to consume this repo**
80
- it unfolds automatically back to one row per instruction; reading the parquet
81
- directly yields the folded form.
 
82
 
83
  ## Layout
84
 
85
  ```
86
- <platform>/<task_type>/<split>/shard-NNNNN-of-NNNNN.parquet # single-variant cohort
87
- <platform>/<task_type>/<split>/<variant>/shard-NNNNN-of-NNNNN.parquet # multi-variant cohort
88
  ```
89
 
90
- - `platform` ∈ {desktop, mobile, web}
91
  - `task_type` ∈ {understanding, grounding.action, grounding.point, grounding.bbox, use} — used verbatim as the dir component
92
- - HF config names are `<platform>.<task_type>` (e.g. `mobile.grounding.action`). The agent registry lookup key in code is `<agent>@<platform>@<task_type>` (e.g. `qwen3_vl@mobile@grounding.action`); only this user-facing token uses `.` between platform and task_type, because `@` triggers a 403 on the dataset-viewer's signed image URLs.
93
  - HF split names stay `train` / `validation` (the `datasets` library blacklists `<>:/\|?*` in split names; everything else is fine in config_name)
94
- - `validation` is an in-distribution held-out slice (never used in training); `test` is reserved for out-of-distribution benchmark datasets
95
 
96
  ## Stats
97
 
98
  | platform | task_type | variant | train | validation |
99
  |---|---|---|---:|---:|
100
- | desktop | use | ubuntu | 4,890 | 102 |
101
- | desktop | use | win_mac | 17,173 | 371 |
102
 
103
  ## Local mirror & SFT export
104
 
@@ -116,12 +185,12 @@ Rows in the local parquet have `images: list[str]`; bytes are extracted to
116
  the image store. `lite.train.export.export_sft` consumes the local
117
  form directly with `--image-root=$CUA_LITE_DATASETS_ROOT`.
118
 
119
- - Total unique images: **392,526**
120
- - Image store size: **186.57 GB**
121
 
122
  ## Notes
123
 
124
- _(none)_
125
 
126
  ## License & citation
127
 
 
35
 
36
  # cua-lite/OpenCUA
37
 
38
+ cua-lite preprocessed version of xlangai/AgentNet (OpenCUA). Desktop `use` trajectories from Ubuntu and Windows/Mac environments with pyautogui-style actions converted to CUA-lite tool calls.
39
 
40
  ## Origin
41
 
 
53
  ds = load_dataset("cua-lite/OpenCUA", "desktop.use")
54
  ```
55
 
56
+ After loading, parse `metadata` as JSON before filtering by `metadata_kind`,
57
+ `dims`, or `others.*`; every row carries a rich metadata object inside that JSON
58
+ string (see schema below). CUA rows use `dims == [platform, task_type]`.
59
 
60
  ## Schema
61
 
62
+ Published parquet columns:
63
 
64
  | column | type | notes |
65
  |---|---|---|
66
  | `images` | list[Image] | embedded PNG/JPEG bytes; HF viewer renders thumbnails |
67
+ | `messages` | string (JSON array) | parse as JSON to OpenAI-style turns with `role`, structured `content`, nested `tool_calls`, and `role:"tool"` results |
68
+ | `metadata` | string (JSON object) | parse as JSON to fields `metadata_kind`, `dims`, `extra_tool_schemas`, CUA-only `valid_actions`, and `others` |
69
+ | `_folded` | string (JSON array, optional) | folded grounding/understanding rows only; authoritative per-instruction `messages` / `metadata` members |
70
 
71
  Coordinate values in `messages` are normalized to `[0, 1000]` integers.
72
+ The JSON examples below show the decoded shape, not the raw string cell.
73
+
74
+ `metadata.extra_tool_schemas[*]` uses the nested Chat Completions function-tool
75
+ declaration shape:
76
+
77
+ ```json
78
+ {
79
+ "metadata_kind": "cua",
80
+ "dims": ["desktop", "use"],
81
+ "extra_tool_schemas": [
82
+ {
83
+ "type": "function",
84
+ "function": {
85
+ "name": "bash",
86
+ "description": "Run a shell command.",
87
+ "parameters": {
88
+ "type": "object",
89
+ "properties": {"cmd": {"type": "string"}},
90
+ "required": ["cmd"]
91
+ }
92
+ }
93
+ }
94
+ ],
95
+ "valid_actions": ["click", "type"],
96
+ "others": {}
97
+ }
98
+ ```
99
+
100
+ `messages[].tool_calls[*]` uses the matching nested invocation shape. Tool
101
+ results pair `tool_calls[].id` with `role:"tool"` `tool_call_id`:
102
+
103
+ ```json
104
+ [
105
+ {
106
+ "role": "user",
107
+ "content": [
108
+ {"type": "image", "index": 0},
109
+ {"type": "text", "text": "Click the OK button."}
110
+ ]
111
+ },
112
+ {
113
+ "role": "assistant",
114
+ "tool_calls": [
115
+ {
116
+ "id": "call_0000",
117
+ "type": "function",
118
+ "function": {
119
+ "name": "computer",
120
+ "arguments": {
121
+ "actions": [
122
+ {"action": "click", "coordinate": [640, 400]},
123
+ {"action": "type", "text": "hello"}
124
+ ]
125
+ }
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "role": "tool",
132
+ "tool_call_id": "call_0000",
133
+ "content": [
134
+ {"type": "image", "index": 1},
135
+ {"type": "text", "text": "clicked; typed"}
136
+ ]
137
+ }
138
+ ]
139
+ ```
140
 
141
  **Image-dedup (`grounding.*` / `understanding` cohorts).** These cohorts are
142
  single-image-per-row and many rows share the same screenshot, so to avoid
143
  re-embedding identical image bytes once per instruction they are stored
144
  *folded*: one row per unique screenshot (image embedded once), carrying an
145
  extra **`_folded`** column — a JSON string with the authoritative list of
146
+ per-instruction members for that screenshot. Each member's `messages` and
147
+ `metadata` values are the same opaque JSON strings described above. The row's
148
+ top-level `messages` is a JSON string containing the members concatenated for
149
+ viewer convenience. `use` cohorts are not folded. **Use
150
+ `lite.data.hf.download` to consume this repo** — it unfolds automatically back
151
+ to one row per instruction; reading the parquet directly yields the folded form.
152
 
153
  ## Layout
154
 
155
  ```
156
+ <platform>/<task_type>/<split>/<variant>/shard-NNNNN-of-NNNNN.parquet
 
157
  ```
158
 
159
+ - `platform` ∈ {desktop, browser, mobile}
160
  - `task_type` ∈ {understanding, grounding.action, grounding.point, grounding.bbox, use} — used verbatim as the dir component
161
+ - HF config names are `<platform>.<task_type>` by default (e.g. `mobile.grounding.action`) — UNLESS the dataset was staged with `--config-names`, which sets verbatim, explicitly-chosen config names (see the `configs:` block above for the authoritative list). The agent registry lookup key in code is `<agent>@<platform>@<task_type>` (e.g. `qwen3_vl@mobile@grounding.action`); only this user-facing token uses `.` between platform and task_type, because `@` triggers a 403 on the dataset-viewer's signed image URLs.
162
  - HF split names stay `train` / `validation` (the `datasets` library blacklists `<>:/\|?*` in split names; everything else is fine in config_name)
163
+ - `validation` is an in-distribution held-out slice: no validation **sample** also appears in `train` — content-identical rows (same `images` + same `messages`, differing only in their ids) are co-located into one split, so upstream re-publishing one sample under two ids cannot straddle the split. It is *not* disjoint in **images**: one screenshot legitimately backs many distinct samples, and only whole samples are co-located, so the same picture can appear on both sides. `test` is reserved for out-of-distribution benchmark datasets
164
 
165
  ## Stats
166
 
167
  | platform | task_type | variant | train | validation |
168
  |---|---|---|---:|---:|
169
+ | desktop | use | ubuntu | 4,897 | 102 |
170
+ | desktop | use | win_mac | 16,970 | 367 |
171
 
172
  ## Local mirror & SFT export
173
 
 
185
  the image store. `lite.train.export.export_sft` consumes the local
186
  form directly with `--image-root=$CUA_LITE_DATASETS_ROOT`.
187
 
188
+ - Total unique images: **393,745**
189
+ - Image store size: **186.99 GB**
190
 
191
  ## Notes
192
 
193
+ split: content-identical rows co-located, then hash_split on metadata.others.id with val_frac=0.02, seed=42, val_cap=2000 per (metadata.dims[0], metadata.dims[1], variant) (an upstream split label, where the source ships one, wins over the hash). A cap-bound carve depends on source iteration order and these parameters do not reproduce it; content co-location may make the final physical validation row count differ from the cap.
194
 
195
  ## License & citation
196
 
desktop/use/train/ubuntu/shard-00371-of-00422.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a48ef86e383ad66f1f31272618a909b5cb6e600d3d868e6a7eb0eab6b9c5f524
3
- size 247278596
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fd2c8d451307c8a01552d841bbe6170cf77ebd65b1f095921480c38fd6aacff
3
+ size 271884750
desktop/use/train/ubuntu/shard-00372-of-00422.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ec57c90e21c695a787f0915225875aa110aa012cff7c4670108e63076cea8c35
3
- size 165299009
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6994624bf47eea6207021a135b2411f680dac3ad9be2b34a36e1a2c72e57b18d
3
+ size 150915102
desktop/use/train/ubuntu/shard-00373-of-00422.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e5af8a895fb6488f8a8f9446f9c61ab99dd2170e8bcaacfd5cffb546af9274e
3
- size 134587090
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20bce58a6b491aa40e503974300be0e0cfcfc501316dad66f5fcaf8be23de1d1
3
+ size 146694645
desktop/use/train/ubuntu/shard-00374-of-00422.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d9164668139ae929d4decf76d9b101f04fd788d00ea450c3567c6262dfdb44f3
3
- size 153906170
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4158014618015cb382a81d1fd5cde4ac8a74a502414bef354d7e2eb841376b2f
3
+ size 165833890
stats.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "rows_in": 0,
3
- "rows_out": 22536,
4
  "rows_dropped": 0,
5
- "unique_images": 392526,
6
- "image_store_bytes": 186565347738,
7
  "by_partition": {
8
- "desktop::use::train::ubuntu": 4890,
9
- "desktop::use::train::win_mac": 17173,
10
  "desktop::use::validation::ubuntu": 102,
11
- "desktop::use::validation::win_mac": 371
12
  }
13
  }
 
1
  {
2
  "rows_in": 0,
3
+ "rows_out": 22336,
4
  "rows_dropped": 0,
5
+ "unique_images": 393745,
6
+ "image_store_bytes": 186988994506,
7
  "by_partition": {
8
+ "desktop::use::train::ubuntu": 4897,
9
+ "desktop::use::train::win_mac": 16970,
10
  "desktop::use::validation::ubuntu": 102,
11
+ "desktop::use::validation::win_mac": 367
12
  }
13
  }