yuecideng commited on
Commit
fe84d79
·
verified ·
1 Parent(s): bf05736

Initialize technical report assets and download design

Browse files

Add repository card, empty v1 asset index, and benchmark download protocol. No runtime implementation or report assets.

Files changed (3) hide show
  1. DOWNLOAD_DESIGN.md +223 -0
  2. README.md +114 -0
  3. index.json +4 -0
DOWNLOAD_DESIGN.md ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EmbodiChain report asset download design
2
+
3
+ Status: design only. The dataset is initialized with documentation and an empty
4
+ index. The interfaces in this document do not exist yet, and existing benchmark
5
+ scripts retain their current behavior. The first real asset publication will
6
+ provide the inputs needed to implement and validate those interfaces.
7
+
8
+ ## Goal and ownership
9
+
10
+ All EmbodiChain benchmark families use one protocol for report-specific input
11
+ assets from the private dataset `DexForceAI/embodichain_reports`. Benchmark
12
+ implementations and suites remain in GitHub; reusable robot/scene assets and
13
+ model weights retain their existing resolvers and repository ownership.
14
+
15
+ The common downloader will belong to `embodichain/data/`, with the benchmark
16
+ command wired through the existing `scripts.benchmark.__main__` dispatcher.
17
+ It will use the project's existing `huggingface_hub>=0.35.3,<1.0` dependency.
18
+ No dependency change, runtime implementation, benchmark adapter, or new
19
+ benchmark result format is part of this initialization.
20
+
21
+ ## Preparation flow
22
+
23
+ ```text
24
+ selected benchmark / suite
25
+ -> declared report input bundle IDs (none: no report-repository request)
26
+ -> selected revision resolved once to a full Hugging Face commit SHA
27
+ -> index.json from that exact commit
28
+ -> only the selected bundles' files from that same commit
29
+ -> file-size and SHA-256 verification
30
+ -> local asset paths and provenance
31
+ -> benchmark initialization, warmup, then measured execution
32
+ ```
33
+
34
+ Preparation finishes before simulation/planner initialization and all timed
35
+ regions. Downloads, index processing, hashing, and repair are excluded from
36
+ benchmark latency and memory measurements. Existing benchmark timing,
37
+ quality thresholds, and report/leaderboard contracts remain unchanged.
38
+
39
+ Only benchmarks or suites explicitly declaring report input bundle IDs use
40
+ this repository. A benchmark using only existing common assets or generated
41
+ inputs must not acquire a new private-repository dependency. Report-specific
42
+ suite declarations will be added with their first real bundles; no speculative
43
+ declarations are added now. Direct Python entry points and the unified CLI must
44
+ eventually call the same preparation helper.
45
+
46
+ ## Asset index
47
+
48
+ The root `index.json` initially contains exactly:
49
+
50
+ ```json
51
+ {
52
+ "schema_version": 1,
53
+ "bundles": {}
54
+ }
55
+ ```
56
+
57
+ `bundles` maps stable bundle IDs to input bundle entries. An empty mapping means
58
+ there are no downloadable bundles; it is a valid initialized repository, not
59
+ a signal to invent or download a default bundle.
60
+
61
+ Each future entry has these fields:
62
+
63
+ | Field | Meaning |
64
+ | --- | --- |
65
+ | `report_id` | Stable report directory ID, for example `technical-report-v1`. |
66
+ | `benchmark_id` | Benchmark identity, for example `motion-generation`. |
67
+ | `files` | Nonempty list of the exact input files required by this bundle. |
68
+ | `files[].path` | Repository-relative POSIX file path under `reports/<report_id>/inputs/<benchmark_id>/`. |
69
+ | `files[].size_bytes` | Nonnegative integer byte count of the file. |
70
+ | `files[].sha256` | SHA-256 of the file bytes, as 64 lowercase hexadecimal characters. |
71
+
72
+ For example, a future bundle named
73
+ `technical-report-v1-motion-generation-inputs` could contain
74
+ `reports/technical-report-v1/inputs/motion-generation/cases.npz`. This is a naming
75
+ example only; no such bundle or file exists at initialization.
76
+
77
+ IDs use lowercase letters, digits, hyphens, or underscores and must start with
78
+ a letter or digit. Paths must be normalized relative file paths without `..`,
79
+ empty components, backslashes, or URL schemes. Duplicate file paths within an
80
+ entry are invalid. Reject unsupported schema versions, malformed entries,
81
+ unknown bundle IDs, and mismatched report/benchmark path prefixes before
82
+ downloading bundle files. Results, figures, and videos live outside input
83
+ bundles and are retrieved separately when requested.
84
+
85
+ ## Versions, authentication, and cache
86
+
87
+ - Dataset requests use `repo_type="dataset"`, the fixed repository ID, and the
88
+ official endpoint `https://huggingface.co`. Existing common-asset mirror
89
+ settings do not select the endpoint for this private repository.
90
+ - The future benchmark integration supplies a tested full dataset commit SHA
91
+ as its default. There is no default asset revision to advertise while the
92
+ index is empty. The Python helper requires `revision` explicitly.
93
+ - An explicit branch or tag resolves to a full commit once before downloading
94
+ the index. All file requests use the resolved commit; do not mix a pinned
95
+ index with files from `main`. Changes to the code or asset pin receive review
96
+ together when the first report integration is implemented.
97
+ - Use standard SDK credential discovery (`HF_TOKEN` or local login), without
98
+ custom token storage. Do not send private credentials to mirrors or include
99
+ them in diagnostics/provenance. Offline mode consumes already authorized,
100
+ locally cached content and makes no remote permission or metadata request.
101
+ - Default `cache_dir` is `~/.cache/embodichain/report-assets`; a caller can
102
+ override it. Use that root as the Hub cache directory so repository and
103
+ commit snapshots are isolated by the SDK's normal cache layout. Returned
104
+ paths are read-only inputs and may use the SDK's normal blob symlinks.
105
+ - Offline mode accepts a full commit or a locally cached revision reference.
106
+ Resolve cached references without a network request. If the reference,
107
+ index, or any required file is absent, fail with the missing identifier and
108
+ the corresponding pre-download command. Do not silently select another
109
+ commit or partially run a benchmark.
110
+ - Reuse SDK download locks and interrupted-download handling. Expose bundle
111
+ paths only after every required file passes byte-size and SHA-256 checks;
112
+ a partially downloaded bundle is never ready. Concurrent consumers validate
113
+ their requested bundles before proceeding.
114
+ - An online checksum failure triggers one forced re-download of the affected
115
+ file through the SDK, followed by revalidation. A second failure terminates
116
+ preparation. Offline corruption terminates immediately. Do not hand-edit
117
+ Hub cache files or return unverified inputs.
118
+
119
+ These policies build on the official
120
+ [download API](https://huggingface.co/docs/huggingface_hub/v0.35.0/en/package_reference/file_download)
121
+ and [cache layout](https://huggingface.co/docs/huggingface_hub/v0.35.0/en/guides/manage-cache).
122
+
123
+ ## Proposed interfaces
124
+
125
+ ### Python
126
+
127
+ Future interface, not available in this change:
128
+
129
+ ```python
130
+ from pathlib import Path
131
+
132
+ def download_report_assets(
133
+ bundle_id: str,
134
+ *,
135
+ revision: str,
136
+ cache_dir: str | Path | None = None,
137
+ local_files_only: bool = False,
138
+ ) -> tuple[Path, dict[str, object]]:
139
+ ...
140
+ ```
141
+
142
+ The path is the downloaded snapshot's
143
+ `reports/<report_id>/inputs/<benchmark_id>/` directory. Only files explicitly
144
+ listed in the bundle are guaranteed to be present. The metadata records
145
+ `repo_id`, resolved `revision`, `bundle_id`, `report_id`, `benchmark_id`, the
146
+ index SHA-256, and each file's path, verified size, and SHA-256. Benchmarks save
147
+ that provenance with existing run metadata; local paths are not source IDs.
148
+
149
+ Failures distinguish invalid index/bundle selection, unavailable credentials
150
+ or repository permission, missing cached files, unavailable remote revision or
151
+ file, transport errors, and checksum mismatch. Preparation failure exits
152
+ nonzero before timing; it is not counted as an algorithm success or failure.
153
+
154
+ ### CLI
155
+
156
+ Future commands, not runnable in this initialization:
157
+
158
+ ```text
159
+ embodichain benchmark assets list --revision <dataset-commit>
160
+ embodichain benchmark assets download <bundle-id> --revision <dataset-commit>
161
+ embodichain benchmark assets download <bundle-id> --revision <dataset-commit> --offline
162
+ ```
163
+
164
+ Both subcommands support `--revision`, `--cache-dir`, and `--offline`. The CLI
165
+ uses a tested pin when a future integration defines one; otherwise require
166
+ `--revision`. `list` reads only the index and displays bundle/report/benchmark
167
+ IDs and total input bytes. An empty index is a successful empty list.
168
+ `download` calls the same helper used by benchmark preparation and prints the
169
+ local bundle path and resolved commit. Unknown IDs fail nonzero and list
170
+ available IDs. `--offline` maps to `local_files_only=True` for every file request
171
+ and also disables online revision resolution.
172
+
173
+ ## Publication and adoption
174
+
175
+ Upload real report inputs, the report README, and index entries together, then
176
+ verify downloads at the resulting dataset commit. Reference that commit from
177
+ the report release metadata and a future reviewed benchmark integration.
178
+ Report READMEs record the code commit, exact run commands, benchmark settings,
179
+ seeds, environment, sources, and per-file licensing. Subsequent dataset commits
180
+ preserve earlier snapshots for report reproducibility.
181
+
182
+ Adopt the shared helper only where actual report input dependencies exist.
183
+ Motion generation/Atomic Skills, kinematic solvers, grasp generation, workspace,
184
+ RL, rendering, scene, data-pipeline, and other benchmark scripts can use the same
185
+ protocol without forcing an input bundle onto workloads that do not need one.
186
+ Model access remains subject to the model repository's existing requirements.
187
+
188
+ The initialization ships only `README.md`, `DOWNLOAD_DESIGN.md`, and the empty
189
+ `index.json`. It creates no placeholder report directories, release tag, sample
190
+ asset, model copy, or automatic publication job. Repository visibility changes
191
+ and historical asset migration require separate work.
192
+
193
+ ## Validation
194
+
195
+ Initialization acceptance checks:
196
+
197
+ - Repository owner is `DexForceAI`, type is dataset, and visibility is private.
198
+ - The authorized account can read all three files at the committed SHA and
199
+ retrieve exactly the uploaded bytes.
200
+ - Anonymous metadata and file requests cannot access the repository contents.
201
+ - `index.json` parses to schema version `1` with an empty `bundles` mapping;
202
+ Markdown links and layout examples are consistent.
203
+
204
+ Future implementation tests, with fake Hub clients for protocol failures and
205
+ a separate real selected-bundle download check:
206
+
207
+ | Scenario | Required outcome |
208
+ | --- | --- |
209
+ | Cold cache | Fetch pinned index and only the selected input files; verify all hashes. |
210
+ | Warm cache | Reuse the same commit snapshot without re-downloading file bodies. |
211
+ | Offline complete cache | Read index and files without any network request. |
212
+ | Offline missing ref/index/file | Fail before benchmark initialization with a pre-download hint. |
213
+ | Version isolation | Two commits cannot mix index or input bytes, including when a tag moves. |
214
+ | Concurrent/interrupted downloads | SDK locking/recovery leaves no partial bundle exposed as ready. |
215
+ | Corrupt input | Detect size/hash mismatch; repair once online or fail immediately offline. |
216
+ | Invalid index | Reject unsupported schema, duplicate/unsafe paths, malformed fields, or unknown IDs. |
217
+ | Permission/revision/network failure | Give a specific actionable diagnostic and exit nonzero before timing. |
218
+ | No declared report dependencies | Make no request to the report repository. |
219
+ | Measurement boundary | Fetching, hashing, and repair never enter latency/memory samples. |
220
+ | Provenance | Save actual resolved dataset commit and verified file identities without credentials. |
221
+
222
+ No runtime tests or performance claims are added by this documentation-only
223
+ initialization. Existing benchmark output schemas and rankings are preserved.
README.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: EmbodiChain Technical Report Assets
3
+ language:
4
+ - en
5
+ tags:
6
+ - robotics
7
+ - simulation
8
+ - benchmark
9
+ - reproducibility
10
+ - embodichain
11
+ ---
12
+
13
+ # EmbodiChain Technical Report Assets
14
+
15
+ Private asset repository: [DexForceAI/embodichain_reports](https://huggingface.co/datasets/DexForceAI/embodichain_reports).
16
+
17
+ This repository stores report-specific benchmark inputs, published measurement
18
+ artifacts, figures, and videos for EmbodiChain technical reports. It starts with
19
+ documentation and an [empty asset index](index.json): **no asset bundles are
20
+ available yet**. The [download design](DOWNLOAD_DESIGN.md) specifies future
21
+ integration; the Python helper and benchmark download commands are not
22
+ implemented by this initialization.
23
+
24
+ ## Ownership
25
+
26
+ - Benchmark scripts, suite configurations, and runtime implementations remain in
27
+ [DexForce/EmbodiChain](https://github.com/DexForce/EmbodiChain).
28
+ - General robot and scene assets continue to use the existing EmbodiChain asset
29
+ resolver and [embodichain_data](https://huggingface.co/datasets/DexForceAI/embodichain_data).
30
+ - Model weights continue to use their existing model repositories and download
31
+ helpers. This repository does not duplicate those assets or change their
32
+ access requirements.
33
+ - This repository owns report-specific inputs and supporting results/media.
34
+ Downloading benchmark inputs will not automatically download results or media.
35
+
36
+ The three initialization files are maintained together in
37
+ `docs/architecture/report-assets/` in the code repository. Publish those files
38
+ to this dataset's root together;
39
+ asset directories are created only when real files are uploaded. The code
40
+ repository copy of `index.json` is the empty bootstrap template; after assets
41
+ are published, the dataset index at the selected commit is authoritative and
42
+ must not be replaced with that empty template during documentation updates.
43
+
44
+ ## Layout
45
+
46
+ ```text
47
+ README.md
48
+ DOWNLOAD_DESIGN.md
49
+ index.json
50
+ reports/<report-id>/
51
+ README.md
52
+ inputs/<benchmark-id>/...
53
+ results/<benchmark-id>/...
54
+ figures/...
55
+ videos/...
56
+ ```
57
+
58
+ The `reports/` subtree above is a convention, not a claim that those files
59
+ already exist. Hugging Face may also maintain repository metadata such as
60
+ `.gitattributes`.
61
+
62
+ ## Access
63
+
64
+ The dataset is private. Sign in with an account or token granted access to this
65
+ repository. For the project's existing `huggingface_hub>=0.35.3,<1.0` dependency,
66
+ use `hf auth login` or provide `HF_TOKEN` through the execution environment.
67
+ Credentials must not be written into report files, commands recorded in reports,
68
+ or benchmark provenance. Private downloads use `https://huggingface.co` directly.
69
+
70
+ An authorized client can retrieve the current empty index using the existing
71
+ Hugging Face SDK; this is not the proposed EmbodiChain download helper:
72
+
73
+ ```python
74
+ from huggingface_hub import HfApi, hf_hub_download
75
+
76
+ repo_id = "DexForceAI/embodichain_reports"
77
+ endpoint = "https://huggingface.co"
78
+ revision = HfApi(endpoint=endpoint).dataset_info(repo_id).sha
79
+ index_path = hf_hub_download(
80
+ repo_id=repo_id,
81
+ repo_type="dataset",
82
+ filename="index.json",
83
+ revision=revision,
84
+ endpoint=endpoint,
85
+ )
86
+ ```
87
+
88
+ For reproducible benchmark runs, use a tested full commit SHA instead of
89
+ discovering the latest revision. See the [version and cache contract](DOWNLOAD_DESIGN.md#versions-authentication-and-cache).
90
+
91
+ ## Publish report assets
92
+
93
+ 1. Assign a stable report ID and benchmark ID. Prepare the input files and
94
+ supporting outputs under the corresponding report directories.
95
+ 2. Add `reports/<report-id>/README.md` recording the report title/version,
96
+ EmbodiChain Git commit, benchmark/suite identity, exact run commands, seeds,
97
+ hardware/software environment, input sources, and output interpretation.
98
+ 3. Record each file's source and license in that report README, with attribution
99
+ or license files where required. No blanket asset license is assigned by
100
+ this initialization; the code repository's license does not automatically
101
+ license report data or third-party media.
102
+ 4. Add input bundles to `index.json` following the
103
+ [index contract](DOWNLOAD_DESIGN.md#asset-index). Compute byte sizes and
104
+ SHA-256 values from the actual uploaded bytes. Keep results/media outside
105
+ input bundles.
106
+ 5. Publish inputs, report metadata, and their index entries in one dataset
107
+ commit. Review files and checksums at that commit before declaring it usable.
108
+ 6. Record the verified dataset commit in the report release metadata and in
109
+ the future benchmark integration's tested default. An optional release tag
110
+ is a human-readable alias; record the resolved full SHA with results.
111
+
112
+ Later corrections create a new dataset commit and a new validated pin. Public
113
+ release, migration of historical assets, and implementation of the download
114
+ interfaces are separate follow-up work.
index.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "bundles": {}
4
+ }