nv-simonec commited on
Commit
a0fd5b3
·
1 Parent(s): 20f66d4

Bootstrap category-first AISimulate data storage

Browse files

Signed-off-by: Simone Chen <simonec@nvidia.com>

Files changed (31) hide show
  1. .github/workflows/validate.yaml +21 -0
  2. .gitignore +4 -0
  3. CONTRIBUTING.md +37 -0
  4. LICENSE +201 -0
  5. README.md +38 -0
  6. THIRD_PARTY_NOTICES.md +16 -0
  7. data/catalog.yaml +4 -0
  8. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/evaluations/8c4929d3544938b5878430236dd861a7f5412237/gap-analysis.yaml +36 -0
  9. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/gpu-metrics.parquet +3 -0
  10. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/manifest.yaml +83 -0
  11. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/measurements.parquet +3 -0
  12. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/differences.yaml +19 -0
  13. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/effective-config.yaml +26 -0
  14. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/environment.yaml +12 -0
  15. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/logs/server.log.zst +3 -0
  16. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/recipe.sh +104 -0
  17. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/reconciliation.yaml +19 -0
  18. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/requested-config.yaml +24 -0
  19. data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/source-aggregate.json +56 -0
  20. dataset.yaml +5 -0
  21. pyproject.toml +15 -0
  22. schemas/common-v1.schema.yaml +87 -0
  23. schemas/e2e-manifest-v1.schema.yaml +60 -0
  24. schemas/fpm-manifest-v1.schema.yaml +31 -0
  25. schemas/gap-analysis-v1.schema.yaml +49 -0
  26. schemas/op-latency-manifest-v1.schema.yaml +29 -0
  27. scripts/build_catalog.py +42 -0
  28. scripts/validate.py +166 -0
  29. tests/fixtures/invalid-e2e-manifest.yaml +3 -0
  30. tests/fixtures/valid-e2e-manifest.yaml +16 -0
  31. tests/test_validation.py +39 -0
.github/workflows/validate.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Validate dataset
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ validate:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ lfs: true
15
+ - uses: actions/setup-python@v5
16
+ with:
17
+ python-version: '3.12'
18
+ - run: python -m pip install -e '.[dev]'
19
+ - run: python scripts/validate.py
20
+ - run: python scripts/build_catalog.py --check
21
+ - run: pytest
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
3
+ .pytest_cache/
4
+ .venv/
CONTRIBUTING.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributing data
2
+
3
+ ## Storage contract
4
+
5
+ - Choose exactly one category: `op-latency`, `e2e`, or `fpm`.
6
+ - Put collection/source IDs under `provenance/`, never in the primary hierarchy.
7
+ - Keep one effective configuration per leaf.
8
+ - Keep requested and effective configuration separate. Record every observed
9
+ override in `differences.yaml` and cite its evidence.
10
+ - Declare each stored artifact with path, role, format, SHA-256, byte size, and
11
+ row count when tabular.
12
+ - Represent missing, failed, excluded, and unavailable evidence explicitly.
13
+ - Do not edit generated `catalog.yaml` files by hand.
14
+
15
+ | Category | Primary hierarchy | Must not contain |
16
+ | --- | --- | --- |
17
+ | Operation latency | hardware / operation family / framework / version | model or parallelism identity |
18
+ | E2E | model / hardware / framework / version / parallelism | mixed effective configurations |
19
+ | FPM | model / hardware / framework / version / parallelism | mixed effective configurations |
20
+
21
+ Directory components are case-sensitive. `deepseek-ai/DeepSeek-V4-Pro` becomes
22
+ `deepseek-ai--DeepSeek-V4-Pro`.
23
+
24
+ ## New-model evidence
25
+
26
+ New AISimulate model support must link E2E silicon evidence and a gap analysis
27
+ against pinned dataset and AISimulate revisions. FPM evidence is optional initially.
28
+ A failed or unsupported Replay cell must remain visible with its reason; an
29
+ analytical estimate is not a Replay substitute.
30
+
31
+ ## Third-party imports
32
+
33
+ Include the upstream license, immutable revision, run and artifact IDs, original
34
+ recipe, reconciliation notes, and an unofficial-result notice. Label normalized
35
+ or compressed derivatives.
36
+
37
+ Run the validator, catalog check, and tests before submitting a pull request.
LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 SemiAnalysis LLC, Advanced Micro Devices, NVIDIA CORPORATION
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
README.md CHANGED
@@ -1,3 +1,41 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+ # AISimulate data
5
+
6
+ Central, reproducible evidence for AISimulate calibration and regression checks.
7
+
8
+ ## Layout
9
+
10
+ ```text
11
+ data/
12
+ op-latency/<hardware>/<operation-family>/<framework>/<version>/
13
+ e2e/<org>--<model>/<hardware>/<framework>/<version>/<parallelism>/
14
+ fpm/<org>--<model>/<hardware>/<framework>/<version>/<parallelism>/
15
+ ```
16
+
17
+ Each leaf has one effective configuration and one authoritative `manifest.yaml`.
18
+ Collection and source IDs appear only below `provenance/`. Large tables use
19
+ Parquet, event streams may use JSONL, and compressed logs use `.log.zst`.
20
+
21
+ Model directory names preserve the case of the Hugging Face model ID and replace
22
+ `/` with `--`. Parallelism names are readable (`tp4`, `tep8`, `dep8`).
23
+
24
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for the full contract and contribution
25
+ policy. Schemas are human-readable YAML files in `schemas/`.
26
+
27
+ ## Validate
28
+
29
+ ```bash
30
+ python -m pip install -e '.[dev]'
31
+ python scripts/validate.py
32
+ python scripts/build_catalog.py --check
33
+ pytest
34
+ ```
35
+
36
+ ## Third-party data
37
+
38
+ Imported evidence retains source revisions, artifact identities, hashes, and
39
+ license attribution. InferenceX-derived records are unofficial normalized copies,
40
+ not results published or endorsed by the InferenceX maintainers. See
41
+ [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
THIRD_PARTY_NOTICES.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Third-party notices
2
+
3
+ ## InferenceX
4
+
5
+ Some records are derived from the InferenceX project:
6
+
7
+ - Project: https://github.com/SemiAnalysisAI/InferenceX
8
+ - License: Apache License 2.0
9
+ - Copyright: the InferenceX contributors
10
+
11
+ Each imported leaf pins its upstream commit, workflow/run, artifact IDs, original
12
+ recipe, and source hashes. Normalized tables, compressed logs, manifests, and gap
13
+ analysis files are modifications made for this dataset.
14
+
15
+ All InferenceX-derived content is an **unofficial normalized copy**. It is not an
16
+ official InferenceX result and is not endorsed by its maintainers.
data/catalog.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ generated: true
2
+ entries:
3
+ - category: e2e
4
+ manifest: data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/manifest.yaml
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/evaluations/8c4929d3544938b5878430236dd861a7f5412237/gap-analysis.yaml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version: gap-analysis/v1
2
+ engine: aisimulate-replay
3
+ dataset:
4
+ revision: self
5
+ manifest_path: data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/manifest.yaml
6
+ aisimulate:
7
+ revision: 8c4929d3544938b5878430236dd861a7f5412237
8
+ workload:
9
+ input_tokens: 1024
10
+ output_tokens: 1024
11
+ concurrency: 16
12
+ model: deepseek-ai/DeepSeek-V4-Pro
13
+ hardware: H200
14
+ framework: vllm
15
+ framework_version: 0.25.1
16
+ parallelism: tp8
17
+ results:
18
+ - metric: ttft
19
+ measured: 887.0075593702496
20
+ predicted: null
21
+ unit: ms
22
+ absolute_percentage_error: null
23
+ status: unsupported
24
+ reason: AISimulate revision does not expose a Replay adapter for DeepSeek-V4-Pro with vLLM 0.25.1.
25
+ - metric: tpot
26
+ measured: 24.853891183898143
27
+ predicted: null
28
+ unit: ms
29
+ absolute_percentage_error: null
30
+ status: unsupported
31
+ reason: AISimulate revision does not expose a Replay adapter for DeepSeek-V4-Pro with vLLM 0.25.1.
32
+ reconciliation:
33
+ source_rows: 1
34
+ normalized_rows: 18
35
+ values_match: true
36
+ units: InferenceX seconds converted to milliseconds for Replay comparison.
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/gpu-metrics.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b22980a9295a07163fbbe4b312b520f872c5e2794d59831505c98d97dc837d20
3
+ size 40383
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/manifest.yaml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version: e2e-manifest/v1
2
+ category: e2e
3
+ model:
4
+ id: deepseek-ai/DeepSeek-V4-Pro
5
+ revision: upstream-default-unpinned
6
+ identity:
7
+ hardware: H200
8
+ framework: vllm
9
+ framework_version: 0.25.1
10
+ precision: fp8
11
+ parallelism:
12
+ label: tp8
13
+ tp: 8
14
+ pp: 1
15
+ dp: 1
16
+ ep: 1
17
+ dcp: 1
18
+ pcp: 1
19
+ deployment:
20
+ mode: aggregated
21
+ runtime:
22
+ image: vllm/vllm-openai:v0.25.1
23
+ image_digest: null
24
+ command: provenance/inferencex-run-29316772188-attempt-1/recipe.sh
25
+ workload:
26
+ input_tokens: 1024
27
+ output_tokens: 1024
28
+ concurrency: 16
29
+ arrival_policy: closed-loop maximum concurrency
30
+ warmup_requests: 0
31
+ cache_state: prefix cache disabled; engine warmup not reported
32
+ requested_requests: 160
33
+ completed_requests: null
34
+ failed_requests: null
35
+ metrics:
36
+ - {name: ttft, value: 0.8870075593702496, unit: s, statistic: mean, timing_boundary: InferenceX benchmark client}
37
+ - {name: ttft, value: 0.4869475280866027, unit: s, statistic: median, timing_boundary: InferenceX benchmark client}
38
+ - {name: ttft, value: 0.9740721061825742, unit: s, statistic: p90, timing_boundary: InferenceX benchmark client}
39
+ - {name: ttft, value: 6.155770289283244, unit: s, statistic: p99, timing_boundary: InferenceX benchmark client}
40
+ - {name: ttft, value: 6.812136084629227, unit: s, statistic: p99.9, timing_boundary: InferenceX benchmark client}
41
+ - {name: tpot, value: 0.024853891183898143, unit: s, statistic: mean, timing_boundary: InferenceX benchmark client}
42
+ - {name: tpot, value: 0.02521957511891945, unit: s, statistic: median, timing_boundary: InferenceX benchmark client}
43
+ - {name: tpot, value: 0.026219733964575737, unit: s, statistic: p90, timing_boundary: InferenceX benchmark client}
44
+ - {name: tpot, value: 0.027602960369130736, unit: s, statistic: p99, timing_boundary: InferenceX benchmark client}
45
+ - {name: tpot, value: 0.02823140630432796, unit: s, statistic: p99.9, timing_boundary: InferenceX benchmark client}
46
+ - {name: itl, value: 0.0248810343796077, unit: s, statistic: mean, timing_boundary: InferenceX benchmark client}
47
+ - {name: e2e_latency, value: 23.65051023357082, unit: s, statistic: mean, timing_boundary: InferenceX benchmark client}
48
+ - {name: throughput, value: 153.23358503172562, unit: tokens/s/gpu, statistic: mean, timing_boundary: Full benchmark interval}
49
+ - {name: input_throughput, value: 77.02243927952071, unit: tokens/s/gpu, statistic: mean, timing_boundary: Full benchmark interval}
50
+ - {name: output_throughput, value: 76.21114575220491, unit: tokens/s/gpu, statistic: mean, timing_boundary: Full benchmark interval}
51
+ - {name: power, value: 425.523, unit: W, statistic: mean, timing_boundary: GPU monitor sampling interval}
52
+ - {name: energy_per_output_token, value: 5.583476, unit: J/token, statistic: mean, timing_boundary: Full benchmark interval}
53
+ - {name: energy_per_total_token, value: 2.776957, unit: J/token, statistic: mean, timing_boundary: Full benchmark interval}
54
+ sources:
55
+ - project: InferenceX
56
+ url: https://github.com/SemiAnalysisAI/InferenceX
57
+ revision: 1ce6f5be2c2247aa49c29ce768134666ccc9bf93
58
+ license: Apache-2.0
59
+ attribution: Copyright InferenceX contributors; unofficial normalized copy.
60
+ unofficial: true
61
+ workflow_url: https://github.com/SemiAnalysisAI/InferenceX/actions/runs/29316772188/attempts/1
62
+ workflow_status: failure
63
+ artifact_ids: [8309942231, 8309942845, 8309943495]
64
+ artifacts:
65
+ - {id: measurements, path: measurements.parquet, role: normalized E2E aggregate metrics, format: parquet, schema: e2e-metrics/v1, sha256: 6ffca11ad412e91af3a8a06f1bfcaf018b549868d22795c84b8980aad61a1a13, bytes: 2219, rows: 18, source_sha256: eed429788dbc5bf88673838d5de29a6e6e8e74755e88ddd7b58b297c46a556ba, modified: true}
66
+ - {id: gpu-metrics, path: gpu-metrics.parquet, role: normalized GPU telemetry, format: parquet, schema: inferencex-gpu-metrics/v1, sha256: b22980a9295a07163fbbe4b312b520f872c5e2794d59831505c98d97dc837d20, bytes: 40383, rows: 10656, source_sha256: 9802227f97a8f64429c1d231ea4c1323ceacc72178b31e80247757c353bfaeb6, modified: true}
67
+ - {id: source-aggregate, path: provenance/inferencex-run-29316772188-attempt-1/source-aggregate.json, role: original InferenceX aggregate, format: json, schema: inferencex-aggregate, sha256: eed429788dbc5bf88673838d5de29a6e6e8e74755e88ddd7b58b297c46a556ba, bytes: 1680, rows: 1, modified: false}
68
+ - {id: recipe, path: provenance/inferencex-run-29316772188-attempt-1/recipe.sh, role: original InferenceX recipe, format: shell, schema: null, sha256: 99ec785b68e96b1772d1e49711d17f0ebeaad6b43369cc32da8bee38e28b4aec, bytes: 2764, modified: false}
69
+ - {id: requested-config, path: provenance/inferencex-run-29316772188-attempt-1/requested-config.yaml, role: requested configuration, format: yaml, schema: requested-config/v1, sha256: 8a948bbe393d97b1cb07c01cbfb6e0ece0b741624c9f6aa25f32ed4e9b90dca0, bytes: 576, modified: true}
70
+ - {id: effective-config, path: provenance/inferencex-run-29316772188-attempt-1/effective-config.yaml, role: effective configuration recovered from server log, format: yaml, schema: effective-config/v1, sha256: 980d97541280bf87712897c3fd7fd3fe054dd318af76a90abdb81a47882e5459, bytes: 670, modified: true}
71
+ - {id: config-differences, path: provenance/inferencex-run-29316772188-attempt-1/differences.yaml, role: requested versus effective overrides, format: yaml, schema: config-differences/v1, sha256: 58c43d7b16f2b7fea300405184eb2a9c9d1f6d49971d158a1f28bf4a1700a1c4, bytes: 627, modified: true}
72
+ - {id: environment, path: provenance/inferencex-run-29316772188-attempt-1/environment.yaml, role: workflow and runner provenance, format: yaml, schema: environment/v1, sha256: ec71d443cfc6db3537c4985d536f8750434f8a05d3a4c67dd3a2b86f36fec490, bytes: 442, modified: true}
73
+ - {id: server-log, path: provenance/inferencex-run-29316772188-attempt-1/logs/server.log.zst, role: compressed original server log, format: log.zst, schema: null, sha256: ed02bccc4ce91163b20262dda3a8b2ff2dd897988eafa1394ae7bb53fc3ea07f, bytes: 9783, source_sha256: d8e7ea716be224603da9908e54b8ba0d3123654cf2d5c6a992e7522b461580e5, modified: true}
74
+ - {id: reconciliation, path: provenance/inferencex-run-29316772188-attempt-1/reconciliation.yaml, role: source-to-normalized reconciliation, format: yaml, schema: reconciliation/v1, sha256: 06b5cf36b1affc192f21ca98350368eb0b119e38c51f7560f6fdc791f7d06b65, bytes: 508, modified: true}
75
+ - {id: gap-analysis, path: evaluations/8c4929d3544938b5878430236dd861a7f5412237/gap-analysis.yaml, role: AISimulate Replay gap analysis, format: yaml, schema: gap-analysis/v1, sha256: fd80c1c1c269b8e1303ef288fdc261f4fa311b5a9194d83556dee96e0c2e356b, bytes: 1082, rows: 2, modified: true}
76
+ evidence_gaps:
77
+ - {kind: requests, status: unavailable, reason: Selected InferenceX artifact contains aggregate JSON but no request-level export., evidence: artifact 8309942231}
78
+ - {kind: client-log, status: unavailable, reason: No client log was published for the selected point., evidence: workflow run 29316772188 attempt 1}
79
+ - {kind: request-accounting, status: unavailable, reason: Aggregate does not report completed or failed request counts., evidence: source-aggregate.json}
80
+ - {kind: model-revision, status: unavailable, reason: Server initialized with revision=None., evidence: server log line 24}
81
+ - {kind: image-digest, status: unavailable, reason: Only the mutable image tag was recorded., evidence: source-aggregate.json}
82
+ - {kind: error-rate, status: unavailable, reason: Aggregate does not report request failures., evidence: source-aggregate.json}
83
+ - {kind: replay-prediction, status: failed, reason: Exact DeepSeek-V4-Pro vLLM 0.25.1 Replay adapter is unavailable at the pinned AISimulate revision., evidence: evaluations/8c4929d3544938b5878430236dd861a7f5412237/gap-analysis.yaml}
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/measurements.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ffca11ad412e91af3a8a06f1bfcaf018b549868d22795c84b8980aad61a1a13
3
+ size 2219
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/differences.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ differences:
2
+ - field: max_model_len
3
+ requested: 800000
4
+ effective: 2304
5
+ evidence:
6
+ - recipe.sh comment
7
+ - logs/server.log.zst line 7
8
+ - logs/server.log.zst line 24
9
+ note: The workflow-provided value overrode the recipe comment.
10
+ - field: model_revision
11
+ requested: null
12
+ effective: null
13
+ evidence: logs/server.log.zst line 24
14
+ note: InferenceX did not pin the downloaded Hugging Face model revision.
15
+ - field: image_digest
16
+ requested: null
17
+ effective: null
18
+ evidence: source-aggregate.json
19
+ note: The tag was recorded, but the immutable container digest was unavailable.
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/effective-config.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ evidence: logs/server.log.zst
2
+ model: deepseek-ai/DeepSeek-V4-Pro
3
+ model_revision: null
4
+ framework_version: 0.25.1
5
+ dtype: bfloat16
6
+ quantization: deepseek_v4_fp8
7
+ max_model_len: 2304
8
+ tensor_parallel_size: 8
9
+ pipeline_parallel_size: 1
10
+ data_parallel_size: 1
11
+ expert_parallel_size: 1
12
+ decode_context_parallel_size: 1
13
+ kv_cache_dtype: fp8
14
+ kv_cache_capacity_tokens: 208811
15
+ block_size: 256
16
+ gpu_memory_utilization: 0.95
17
+ prefix_caching: false
18
+ chunked_prefill: true
19
+ max_num_batched_tokens: 512
20
+ max_num_seqs: 512
21
+ compilation_mode: NONE
22
+ cudagraph_mode: FULL_DECODE_ONLY
23
+ max_cudagraph_capture_size: 512
24
+ tokenizer_mode: deepseek_v4
25
+ reasoning_parser: deepseek_v4
26
+ tool_call_parser: deepseek_v4
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/environment.yaml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ runner: h200-dgxc-slurm_13
2
+ collection_date: '2026-07-14'
3
+ workflow_run: 29316772188
4
+ workflow_attempt: 1
5
+ workflow_status: failure
6
+ selected_job_status: success
7
+ server_artifact_id: 8309942845
8
+ benchmark_artifact_id: 8309942231
9
+ gpu_metrics_artifact_id: 8309943495
10
+ notes:
11
+ - The workflow failed overall; this selected benchmark point completed successfully.
12
+ - Host identifiers and full package inventory were not present in downloaded artifacts.
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/logs/server.log.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed02bccc4ce91163b20262dda3a8b2ff2dd897988eafa1394ae7bb53fc3ea07f
3
+ size 9783
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/recipe.sh ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ # Per https://vllm.ai/blog/deepseek-v4 the DeepSeek-V4-Pro H200 recipe uses
4
+ # the cu129 image and omits the FP4 indexer cache flag (H200 has no FP4
5
+ # path). Max-model-len is pinned at 800k per the recipe.
6
+
7
+ source "$(dirname "$0")/../../benchmark_lib.sh"
8
+
9
+ check_env_vars \
10
+ MODEL \
11
+ TP \
12
+ DP_ATTENTION \
13
+ CONC \
14
+ ISL \
15
+ OSL \
16
+ MAX_MODEL_LEN \
17
+ RANDOM_RANGE_RATIO \
18
+ RESULT_FILENAME
19
+
20
+ if [[ -n "$SLURM_JOB_ID" ]]; then
21
+ echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME"
22
+ fi
23
+
24
+ nvidia-smi
25
+
26
+ if [[ "$MODEL" != /* ]]; then hf download "$MODEL"; fi
27
+
28
+ SERVER_LOG=/workspace/server.log
29
+
30
+ # DeepSeek-V4-Pro weights are large; engine startup can exceed the default
31
+ # 600s. Give it an hour to load.
32
+ export VLLM_ENGINE_READY_TIMEOUT_S=3600
33
+
34
+ if [ "${EVAL_ONLY}" = "true" ]; then
35
+ setup_eval_context
36
+ MAX_MODEL_LEN_ARG="--max-model-len $EVAL_MAX_MODEL_LEN"
37
+ else
38
+ MAX_MODEL_LEN_ARG="--max-model-len $MAX_MODEL_LEN"
39
+ fi
40
+
41
+ # DP_ATTENTION=true runs DP-attention with expert parallel (DP size = TP);
42
+ # DP_ATTENTION=false runs pure tensor parallel.
43
+ PARALLEL_ARGS=(--tensor-parallel-size "$TP" --data-parallel-size 1)
44
+ if [ "${DP_ATTENTION}" = "true" ]; then
45
+ PARALLEL_ARGS=(--tensor-parallel-size 1 --data-parallel-size "$TP")
46
+ fi
47
+
48
+ EP_ARGS=()
49
+ if [ "${EP_SIZE:-1}" -gt 1 ]; then
50
+ EP_ARGS=(--enable-expert-parallel)
51
+ fi
52
+
53
+ # Start GPU monitoring (power, temperature, clocks every second)
54
+ start_gpu_monitor
55
+
56
+ set -x
57
+ vllm serve $MODEL --host 0.0.0.0 --port $PORT \
58
+ --trust-remote-code \
59
+ --kv-cache-dtype fp8 \
60
+ --block-size 256 \
61
+ --no-enable-prefix-caching \
62
+ "${PARALLEL_ARGS[@]}" \
63
+ "${EP_ARGS[@]}" \
64
+ $MAX_MODEL_LEN_ARG \
65
+ --quantization deepseek_v4_fp8 \
66
+ --gpu-memory-utilization 0.95 \
67
+ --max-num-seqs 512 \
68
+ --max-num-batched-tokens 512 \
69
+ --no-enable-flashinfer-autotune \
70
+ --compilation-config '{"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY"}' \
71
+ --tokenizer-mode deepseek_v4 \
72
+ --tool-call-parser deepseek_v4 \
73
+ --enable-auto-tool-choice \
74
+ --reasoning-parser deepseek_v4 > $SERVER_LOG 2>&1 &
75
+
76
+ SERVER_PID=$!
77
+
78
+ # Wait for server to be ready
79
+ wait_for_server_ready --port "$PORT" --server-log "$SERVER_LOG" --server-pid "$SERVER_PID"
80
+
81
+ pip install -q datasets pandas
82
+
83
+ run_benchmark_serving \
84
+ --model "$MODEL" \
85
+ --port "$PORT" \
86
+ --backend vllm \
87
+ --input-len "$ISL" \
88
+ --output-len "$OSL" \
89
+ --random-range-ratio "$RANDOM_RANGE_RATIO" \
90
+ --num-prompts "$((CONC * 10))" \
91
+ --max-concurrency "$CONC" \
92
+ --result-filename "$RESULT_FILENAME" \
93
+ --result-dir /workspace/ \
94
+ --trust-remote-code
95
+
96
+ # After throughput, run evaluation only if RUN_EVAL is true
97
+ if [ "${RUN_EVAL}" = "true" ]; then
98
+ run_eval --framework lm-eval --port "$PORT"
99
+ append_lm_eval_summary
100
+ fi
101
+
102
+ # Stop GPU monitoring
103
+ stop_gpu_monitor
104
+ set +x
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/reconciliation.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ source:
2
+ artifact_id: 8309942231
3
+ aggregate_sha256: eed429788dbc5bf88673838d5de29a6e6e8e74755e88ddd7b58b297c46a556ba
4
+ rows: 1
5
+ normalized:
6
+ table: measurements.parquet
7
+ rows: 18
8
+ mapping:
9
+ - source: mean_ttft
10
+ normalized: [ttft, mean]
11
+ conversion: none
12
+ - source: mean_tpot
13
+ normalized: [tpot, mean]
14
+ conversion: none
15
+ - source: tput_per_gpu
16
+ normalized: [throughput, mean]
17
+ conversion: none
18
+ values_match: true
19
+ units: Source latency seconds and throughput tokens/s/GPU are preserved.
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/requested-config.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ source_config: dsv4-fp8-h200-vllm
2
+ model: deepseek-ai/DeepSeek-V4-Pro
3
+ model_revision: null
4
+ hardware: H200
5
+ framework: vllm
6
+ framework_version: 0.25.1
7
+ image: vllm/vllm-openai:v0.25.1
8
+ precision: fp8
9
+ input_tokens: 1024
10
+ output_tokens: 1024
11
+ concurrency: 16
12
+ num_prompts: 160
13
+ tensor_parallel_size: 8
14
+ pipeline_parallel_size: 1
15
+ data_parallel_size: 1
16
+ expert_parallel_size: 1
17
+ decode_context_parallel_size: 1
18
+ prefill_context_parallel_size: 1
19
+ dp_attention: false
20
+ disaggregated: false
21
+ speculative_decoding: none
22
+ max_model_len_recipe_comment: 800000
23
+ random_range_ratio: null
24
+ image_digest: null
data/e2e/deepseek-ai--DeepSeek-V4-Pro/H200/vllm/0.25.1/tp8/provenance/inferencex-run-29316772188-attempt-1/source-aggregate.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "hw": "h200",
3
+ "conc": 16,
4
+ "image": "vllm/vllm-openai:v0.25.1",
5
+ "model": "deepseek-ai/DeepSeek-V4-Pro",
6
+ "infmax_model_prefix": "dsv4",
7
+ "framework": "vllm",
8
+ "precision": "fp8",
9
+ "spec_decoding": "none",
10
+ "disagg": false,
11
+ "isl": 1024,
12
+ "osl": 1024,
13
+ "is_multinode": false,
14
+ "tp": 8,
15
+ "pp": 1,
16
+ "dcp_size": 1,
17
+ "pcp_size": 1,
18
+ "ep": 1,
19
+ "dp_attention": "false",
20
+ "tput_per_gpu": 153.23358503172562,
21
+ "output_tput_per_gpu": 76.21114575220491,
22
+ "input_tput_per_gpu": 77.02243927952071,
23
+ "mean_ttft": 0.8870075593702496,
24
+ "median_ttft": 0.4869475280866027,
25
+ "std_ttft": 1.1276193665362704,
26
+ "p90_ttft": 0.9740721061825742,
27
+ "p99_ttft": 6.155770289283244,
28
+ "p99.9_ttft": 6.812136084629227,
29
+ "mean_tpot": 0.024853891183898143,
30
+ "mean_intvty": 40.235148395912375,
31
+ "median_tpot": 0.02521957511891945,
32
+ "median_intvty": 39.65173859133776,
33
+ "std_tpot": 0.0017310578877179242,
34
+ "std_intvty": 577.6814323166933,
35
+ "p90_tpot": 0.026219733964575737,
36
+ "p90_intvty": 38.139212295252634,
37
+ "p99_tpot": 0.027602960369130736,
38
+ "p99_intvty": 36.22799825189517,
39
+ "p99.9_tpot": 0.02823140630432796,
40
+ "p99.9_intvty": 35.42154397907897,
41
+ "mean_itl": 0.0248810343796077,
42
+ "median_itl": 0.018208758905529976,
43
+ "std_itl": 0.03659134149793887,
44
+ "p90_itl": 0.01898130588233471,
45
+ "p99_itl": 0.23019087258726356,
46
+ "p99.9_itl": 0.24195966927334667,
47
+ "mean_e2el": 23.65051023357082,
48
+ "median_e2el": 23.617231554351747,
49
+ "std_e2el": 2.5015721229827563,
50
+ "p90_e2el": 26.609794213995336,
51
+ "p99_e2el": 29.949763207361098,
52
+ "p99.9_e2el": 30.996576240185654,
53
+ "avg_power_w": 425.523,
54
+ "joules_per_output_token": 5.583476,
55
+ "joules_per_total_token": 2.776957
56
+ }
dataset.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ schema_version: dataset-catalog/v1
2
+ name: nvidia/aisim-data
3
+ license: Apache-2.0
4
+ categories: [op-latency, e2e, fpm]
5
+ catalogs: [data/catalog.yaml]
pyproject.toml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "aisim-data-tools"
7
+ version = "0.1.0"
8
+ requires-python = ">=3.10"
9
+ dependencies = ["jsonschema>=4.20", "PyYAML>=6.0"]
10
+
11
+ [project.optional-dependencies]
12
+ dev = ["pyarrow>=15", "pytest>=8", "zstandard>=0.22"]
13
+
14
+ [tool.pytest.ini_options]
15
+ testpaths = ["tests"]
schemas/common-v1.schema.yaml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $schema: https://json-schema.org/draft/2020-12/schema
2
+ $id: common-v1.schema.yaml
3
+ title: AISimulate shared data types
4
+ $defs:
5
+ sha256:
6
+ type: string
7
+ pattern: '^[0-9a-f]{64}$'
8
+ artifact:
9
+ type: object
10
+ additionalProperties: false
11
+ required: [id, path, role, format, sha256, bytes]
12
+ properties:
13
+ id: {type: string, pattern: '^[a-z0-9][a-z0-9._-]*$'}
14
+ path: {type: string, pattern: '^(?!/)(?!.*\.\.).+$'}
15
+ role: {type: string, minLength: 1}
16
+ format: {enum: [parquet, yaml, json, jsonl, csv, log.zst, shell]}
17
+ schema: {type: [string, 'null']}
18
+ sha256: {$ref: '#/$defs/sha256'}
19
+ bytes: {type: integer, minimum: 0}
20
+ rows: {type: integer, minimum: 0}
21
+ source_sha256: {$ref: '#/$defs/sha256'}
22
+ modified: {type: boolean}
23
+ identity:
24
+ type: object
25
+ additionalProperties: false
26
+ required: [hardware, framework, framework_version]
27
+ properties:
28
+ hardware: {type: string, minLength: 1}
29
+ framework: {type: string, minLength: 1}
30
+ framework_version: {type: string, minLength: 1}
31
+ model:
32
+ type: object
33
+ additionalProperties: false
34
+ required: [id, revision]
35
+ properties:
36
+ id: {type: string, pattern: '^[^/]+/[^/]+$'}
37
+ revision: {type: string, minLength: 1}
38
+ parallelism:
39
+ type: object
40
+ additionalProperties: false
41
+ required: [label, tp, pp, dp, ep]
42
+ properties:
43
+ label: {type: string, pattern: '^[a-z]+[0-9]+(?:-[a-z]+[0-9]+)*$'}
44
+ tp: {type: integer, minimum: 1}
45
+ pp: {type: integer, minimum: 1}
46
+ dp: {type: integer, minimum: 1}
47
+ ep: {type: integer, minimum: 1}
48
+ dcp: {type: integer, minimum: 1}
49
+ pcp: {type: integer, minimum: 1}
50
+ decode_context_parallel: {type: integer, minimum: 1}
51
+ runtime:
52
+ type: object
53
+ additionalProperties: false
54
+ required: [image, image_digest]
55
+ properties:
56
+ image: {type: string, minLength: 1}
57
+ image_digest:
58
+ oneOf:
59
+ - {type: string, pattern: '^sha256:[0-9a-f]{64}$'}
60
+ - {type: 'null'}
61
+ command: {type: string}
62
+ evidence_gap:
63
+ type: object
64
+ additionalProperties: false
65
+ required: [kind, status, reason]
66
+ properties:
67
+ kind: {type: string, minLength: 1}
68
+ status: {enum: [missing, failed, excluded, unavailable, pending]}
69
+ reason: {type: string, minLength: 1}
70
+ evidence: {type: string}
71
+ source:
72
+ type: object
73
+ additionalProperties: false
74
+ required: [project, url, revision, license, attribution, unofficial]
75
+ properties:
76
+ project: {type: string, minLength: 1}
77
+ url: {type: string, format: uri}
78
+ revision: {type: string, minLength: 7}
79
+ license: {type: string, minLength: 1}
80
+ attribution: {type: string, minLength: 1}
81
+ unofficial: {type: boolean}
82
+ workflow_url: {type: string, format: uri}
83
+ workflow_status: {type: string}
84
+ artifact_ids:
85
+ type: array
86
+ uniqueItems: true
87
+ items: {type: integer, minimum: 1}
schemas/e2e-manifest-v1.schema.yaml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $schema: https://json-schema.org/draft/2020-12/schema
2
+ $id: e2e-manifest-v1.schema.yaml
3
+ title: E2E manifest v1
4
+ type: object
5
+ additionalProperties: false
6
+ required: [schema_version, category, model, identity, precision, parallelism, deployment, runtime, workload, metrics, sources, artifacts, evidence_gaps]
7
+ properties:
8
+ schema_version: {const: e2e-manifest/v1}
9
+ category: {const: e2e}
10
+ model: {$ref: common-v1.schema.yaml#/$defs/model}
11
+ identity: {$ref: common-v1.schema.yaml#/$defs/identity}
12
+ precision: {type: string, minLength: 1}
13
+ parallelism: {$ref: common-v1.schema.yaml#/$defs/parallelism}
14
+ deployment:
15
+ type: object
16
+ additionalProperties: false
17
+ required: [mode]
18
+ properties:
19
+ mode: {enum: [aggregated, disaggregated]}
20
+ prefill_workers: {type: integer, minimum: 0}
21
+ decode_workers: {type: integer, minimum: 0}
22
+ runtime: {$ref: common-v1.schema.yaml#/$defs/runtime}
23
+ workload:
24
+ type: object
25
+ additionalProperties: false
26
+ required: [input_tokens, output_tokens, concurrency, arrival_policy, warmup_requests, cache_state, requested_requests, completed_requests, failed_requests]
27
+ properties:
28
+ input_tokens: {type: integer, minimum: 0}
29
+ output_tokens: {type: integer, minimum: 0}
30
+ concurrency: {type: integer, minimum: 1}
31
+ arrival_policy: {type: string, minLength: 1}
32
+ warmup_requests: {type: integer, minimum: 0}
33
+ cache_state: {type: string, minLength: 1}
34
+ requested_requests: {type: integer, minimum: 0}
35
+ completed_requests: {type: [integer, 'null'], minimum: 0}
36
+ failed_requests: {type: [integer, 'null'], minimum: 0}
37
+ metrics:
38
+ type: array
39
+ minItems: 1
40
+ items:
41
+ type: object
42
+ additionalProperties: false
43
+ required: [name, value, unit, statistic, timing_boundary]
44
+ properties:
45
+ name: {enum: [ttft, tpot, itl, e2e_latency, throughput, input_throughput, output_throughput, error_rate, power, energy_per_output_token, energy_per_total_token]}
46
+ value: {type: number}
47
+ unit: {enum: [ms, s, requests/s, tokens/s/gpu, ratio, W, J/token]}
48
+ statistic: {enum: [mean, median, p50, p90, p95, p99, p99.9, total]}
49
+ timing_boundary: {type: string, minLength: 1}
50
+ sources:
51
+ type: array
52
+ minItems: 1
53
+ items: {$ref: common-v1.schema.yaml#/$defs/source}
54
+ artifacts:
55
+ type: array
56
+ minItems: 1
57
+ items: {$ref: common-v1.schema.yaml#/$defs/artifact}
58
+ evidence_gaps:
59
+ type: array
60
+ items: {$ref: common-v1.schema.yaml#/$defs/evidence_gap}
schemas/fpm-manifest-v1.schema.yaml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $schema: https://json-schema.org/draft/2020-12/schema
2
+ $id: fpm-manifest-v1.schema.yaml
3
+ title: FPM manifest v1
4
+ type: object
5
+ additionalProperties: false
6
+ required: [schema_version, category, model, identity, precision, parallelism, runtime, protocol, artifacts, evidence_gaps]
7
+ properties:
8
+ schema_version: {const: fpm-manifest/v1}
9
+ category: {const: fpm}
10
+ model: {$ref: common-v1.schema.yaml#/$defs/model}
11
+ identity: {$ref: common-v1.schema.yaml#/$defs/identity}
12
+ precision: {type: string, minLength: 1}
13
+ parallelism: {$ref: common-v1.schema.yaml#/$defs/parallelism}
14
+ runtime: {$ref: common-v1.schema.yaml#/$defs/runtime}
15
+ protocol:
16
+ type: object
17
+ additionalProperties: false
18
+ required: [classification, phases, rank_aggregation, timing_boundary, measurement]
19
+ properties:
20
+ classification: {enum: [calibration, validation]}
21
+ phases: {type: array, minItems: 1, uniqueItems: true, items: {type: string}}
22
+ rank_aggregation: {type: string, minLength: 1}
23
+ timing_boundary: {type: string, minLength: 1}
24
+ measurement: {type: string, minLength: 1}
25
+ artifacts:
26
+ type: array
27
+ minItems: 1
28
+ items: {$ref: common-v1.schema.yaml#/$defs/artifact}
29
+ evidence_gaps:
30
+ type: array
31
+ items: {$ref: common-v1.schema.yaml#/$defs/evidence_gap}
schemas/gap-analysis-v1.schema.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $schema: https://json-schema.org/draft/2020-12/schema
2
+ $id: gap-analysis-v1.schema.yaml
3
+ title: AISimulate Replay gap analysis v1
4
+ type: object
5
+ additionalProperties: false
6
+ required: [schema_version, engine, dataset, aisimulate, workload, results, reconciliation]
7
+ properties:
8
+ schema_version: {const: gap-analysis/v1}
9
+ engine: {const: aisimulate-replay}
10
+ dataset:
11
+ type: object
12
+ additionalProperties: false
13
+ required: [revision, manifest_path]
14
+ properties:
15
+ revision: {type: string, minLength: 1}
16
+ manifest_path: {type: string, minLength: 1}
17
+ aisimulate:
18
+ type: object
19
+ additionalProperties: false
20
+ required: [revision]
21
+ properties: {revision: {type: string, minLength: 7}}
22
+ workload:
23
+ type: object
24
+ additionalProperties: true
25
+ required: [input_tokens, output_tokens, concurrency]
26
+ results:
27
+ type: array
28
+ minItems: 1
29
+ items:
30
+ type: object
31
+ additionalProperties: false
32
+ required: [metric, measured, predicted, unit, status]
33
+ properties:
34
+ metric: {enum: [ttft, tpot]}
35
+ measured: {type: number}
36
+ predicted: {type: [number, 'null']}
37
+ unit: {const: ms}
38
+ absolute_percentage_error: {type: [number, 'null'], minimum: 0}
39
+ status: {enum: [passed, failed, unsupported, pending]}
40
+ reason: {type: string}
41
+ reconciliation:
42
+ type: object
43
+ additionalProperties: false
44
+ required: [source_rows, normalized_rows, values_match, units]
45
+ properties:
46
+ source_rows: {type: integer, minimum: 0}
47
+ normalized_rows: {type: integer, minimum: 0}
48
+ values_match: {type: boolean}
49
+ units: {type: string, minLength: 1}
schemas/op-latency-manifest-v1.schema.yaml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $schema: https://json-schema.org/draft/2020-12/schema
2
+ $id: op-latency-manifest-v1.schema.yaml
3
+ title: Operation-latency manifest v1
4
+ type: object
5
+ additionalProperties: false
6
+ required: [schema_version, category, identity, operation_family, runtime, collection, artifacts, evidence_gaps]
7
+ properties:
8
+ schema_version: {const: op-latency-manifest/v1}
9
+ category: {const: op-latency}
10
+ identity: {$ref: common-v1.schema.yaml#/$defs/identity}
11
+ operation_family: {type: string, minLength: 1}
12
+ runtime: {$ref: common-v1.schema.yaml#/$defs/runtime}
13
+ collection:
14
+ type: object
15
+ additionalProperties: false
16
+ required: [collector_revision, case_plan_sha256, collected_at, failures, exclusions]
17
+ properties:
18
+ collector_revision: {type: string, minLength: 7}
19
+ case_plan_sha256: {$ref: common-v1.schema.yaml#/$defs/sha256}
20
+ collected_at: {type: string, format: date-time}
21
+ failures: {type: array, items: {type: string}}
22
+ exclusions: {type: array, items: {type: string}}
23
+ artifacts:
24
+ type: array
25
+ minItems: 1
26
+ items: {$ref: common-v1.schema.yaml#/$defs/artifact}
27
+ evidence_gaps:
28
+ type: array
29
+ items: {$ref: common-v1.schema.yaml#/$defs/evidence_gap}
scripts/build_catalog.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Build deterministic, non-authoritative indexes from leaf manifests."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import sys
8
+ from pathlib import Path
9
+
10
+ import yaml
11
+
12
+
13
+ ROOT = Path(__file__).resolve().parents[1]
14
+ DATA = ROOT / "data"
15
+
16
+
17
+ def rendered_catalog() -> str:
18
+ entries = []
19
+ for path in sorted(DATA.glob("*/**/manifest.yaml")):
20
+ document = yaml.safe_load(path.read_text(encoding="utf-8"))
21
+ entries.append({"category": document["category"], "manifest": path.relative_to(ROOT).as_posix()})
22
+ return yaml.safe_dump({"generated": True, "entries": entries}, sort_keys=False)
23
+
24
+
25
+ def main() -> int:
26
+ parser = argparse.ArgumentParser()
27
+ parser.add_argument("--check", action="store_true")
28
+ args = parser.parse_args()
29
+ target = DATA / "catalog.yaml"
30
+ expected = rendered_catalog()
31
+ if args.check:
32
+ if not target.exists() or target.read_text(encoding="utf-8") != expected:
33
+ print("data/catalog.yaml is stale; run scripts/build_catalog.py", file=sys.stderr)
34
+ return 1
35
+ return 0
36
+ target.parent.mkdir(parents=True, exist_ok=True)
37
+ target.write_text(expected, encoding="utf-8")
38
+ return 0
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())
scripts/validate.py ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Validate manifests, artifact integrity, category paths, and generated catalogs."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import hashlib
8
+ import sys
9
+ from pathlib import Path
10
+ from typing import Any
11
+
12
+ import jsonschema
13
+ import yaml
14
+ from referencing import Registry, Resource
15
+
16
+
17
+ ROOT = Path(__file__).resolve().parents[1]
18
+ SCHEMAS = ROOT / "schemas"
19
+ DATA = ROOT / "data"
20
+ CATEGORY_DEPTH = {"op-latency": 4, "e2e": 5, "fpm": 5}
21
+
22
+
23
+ def load_yaml(path: Path) -> Any:
24
+ with path.open(encoding="utf-8") as stream:
25
+ return yaml.safe_load(stream)
26
+
27
+
28
+ def sha256(path: Path) -> str:
29
+ digest = hashlib.sha256()
30
+ with path.open("rb") as stream:
31
+ for block in iter(lambda: stream.read(1024 * 1024), b""):
32
+ digest.update(block)
33
+ return digest.hexdigest()
34
+
35
+
36
+ def schema_validator(category: str) -> jsonschema.Draft202012Validator:
37
+ filename = f"{category}-manifest-v1.schema.yaml"
38
+ schema = load_yaml(SCHEMAS / filename)
39
+ common = load_yaml(SCHEMAS / "common-v1.schema.yaml")
40
+ registry = Registry().with_resources(
41
+ [
42
+ (common["$id"], Resource.from_contents(common)),
43
+ ((SCHEMAS / common["$id"]).as_uri(), Resource.from_contents(common)),
44
+ ]
45
+ )
46
+ return jsonschema.Draft202012Validator(schema, registry=registry)
47
+
48
+
49
+ def validate_hierarchy(manifest_path: Path, document: dict[str, Any]) -> list[str]:
50
+ errors: list[str] = []
51
+ relative = manifest_path.relative_to(DATA)
52
+ category = relative.parts[0]
53
+ expected = CATEGORY_DEPTH[category]
54
+ identity_parts = relative.parts[1:-1]
55
+ if len(identity_parts) != expected:
56
+ errors.append(f"expected {expected} identity components, got {len(identity_parts)}")
57
+ return errors
58
+
59
+ identity = document["identity"]
60
+ if category == "op-latency":
61
+ hardware, operation, framework, version = identity_parts
62
+ expected_values = (identity["hardware"], document["operation_family"], identity["framework"], identity["framework_version"])
63
+ if any(key in document for key in ("model", "parallelism")):
64
+ errors.append("operation-latency manifest contains model or parallelism identity")
65
+ else:
66
+ model, hardware, framework, version, parallelism = identity_parts
67
+ expected_values = (
68
+ document["model"]["id"].replace("/", "--"), identity["hardware"],
69
+ identity["framework"], identity["framework_version"], document["parallelism"]["label"],
70
+ )
71
+ if tuple(identity_parts) != expected_values:
72
+ errors.append(f"path identity {tuple(identity_parts)!r} != manifest identity {expected_values!r}")
73
+ return errors
74
+
75
+
76
+ def validate_artifacts(leaf: Path, artifacts: list[dict[str, Any]]) -> list[str]:
77
+ errors: list[str] = []
78
+ seen: set[str] = set()
79
+ for artifact in artifacts:
80
+ artifact_id = artifact["id"]
81
+ if artifact_id in seen:
82
+ errors.append(f"duplicate artifact id: {artifact_id}")
83
+ seen.add(artifact_id)
84
+ target = (leaf / artifact["path"]).resolve()
85
+ try:
86
+ target.relative_to(leaf.resolve())
87
+ except ValueError:
88
+ errors.append(f"unsafe artifact path: {artifact['path']}")
89
+ continue
90
+ if not target.is_file():
91
+ errors.append(f"missing artifact: {artifact['path']}")
92
+ continue
93
+ if target.stat().st_size != artifact["bytes"]:
94
+ errors.append(f"byte-size mismatch: {artifact['path']}")
95
+ if sha256(target) != artifact["sha256"]:
96
+ errors.append(f"SHA-256 mismatch: {artifact['path']}")
97
+ if artifact.get("format") == "parquet" and "rows" in artifact:
98
+ try:
99
+ import pyarrow.parquet as parquet
100
+
101
+ if parquet.read_metadata(target).num_rows != artifact["rows"]:
102
+ errors.append(f"row-count mismatch: {artifact['path']}")
103
+ except ImportError:
104
+ pass
105
+ return errors
106
+
107
+
108
+ def validate_manifest(path: Path) -> list[str]:
109
+ errors: list[str] = []
110
+ try:
111
+ document = load_yaml(path)
112
+ category = path.relative_to(DATA).parts[0]
113
+ if category not in CATEGORY_DEPTH:
114
+ return ["unknown category"]
115
+ for error in schema_validator(category).iter_errors(document):
116
+ location = ".".join(str(part) for part in error.absolute_path) or "<root>"
117
+ errors.append(f"schema {location}: {error.message}")
118
+ if errors:
119
+ return errors
120
+ errors.extend(validate_hierarchy(path, document))
121
+ errors.extend(validate_artifacts(path.parent, document["artifacts"]))
122
+ if any(source["project"].lower() == "inferencex" for source in document.get("sources", [])):
123
+ source = next(source for source in document["sources"] if source["project"].lower() == "inferencex")
124
+ if source["license"] != "Apache-2.0" or not source["unofficial"]:
125
+ errors.append("InferenceX source must declare Apache-2.0 and unofficial: true")
126
+ except (OSError, yaml.YAMLError, KeyError, TypeError) as error:
127
+ errors.append(str(error))
128
+ return errors
129
+
130
+
131
+ def validate(root: Path = DATA) -> list[str]:
132
+ failures: list[str] = []
133
+ for manifest in sorted(root.glob("*/**/manifest.yaml")):
134
+ for error in validate_manifest(manifest):
135
+ failures.append(f"{manifest.relative_to(ROOT)}: {error}")
136
+ if not list(root.glob("*/**/manifest.yaml")):
137
+ failures.append("no manifests found")
138
+ gap_schema = load_yaml(SCHEMAS / "gap-analysis-v1.schema.yaml")
139
+ common = load_yaml(SCHEMAS / "common-v1.schema.yaml")
140
+ registry = Registry().with_resources(
141
+ [
142
+ (common["$id"], Resource.from_contents(common)),
143
+ ((SCHEMAS / common["$id"]).as_uri(), Resource.from_contents(common)),
144
+ ]
145
+ )
146
+ gap_validator = jsonschema.Draft202012Validator(gap_schema, registry=registry)
147
+ for gap in sorted(root.glob("e2e/**/evaluations/*/gap-analysis.yaml")):
148
+ for error in gap_validator.iter_errors(load_yaml(gap)):
149
+ failures.append(f"{gap.relative_to(ROOT)}: schema: {error.message}")
150
+ return failures
151
+
152
+
153
+ def main() -> int:
154
+ parser = argparse.ArgumentParser()
155
+ parser.add_argument("--root", type=Path, default=DATA)
156
+ args = parser.parse_args()
157
+ failures = validate(args.root)
158
+ if failures:
159
+ print("\n".join(failures), file=sys.stderr)
160
+ return 1
161
+ print("All manifests are valid.")
162
+ return 0
163
+
164
+
165
+ if __name__ == "__main__":
166
+ raise SystemExit(main())
tests/fixtures/invalid-e2e-manifest.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ schema_version: e2e-manifest/v1
2
+ category: e2e
3
+ unexpected_field: rejected
tests/fixtures/valid-e2e-manifest.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version: e2e-manifest/v1
2
+ category: e2e
3
+ model: {id: org/model, revision: abcdef0}
4
+ identity: {hardware: H200, framework: vllm, framework_version: 1.0.0}
5
+ precision: fp8
6
+ parallelism: {label: tp1, tp: 1, pp: 1, dp: 1, ep: 1}
7
+ deployment: {mode: aggregated}
8
+ runtime: {image: example/image:1.0, image_digest: null}
9
+ workload: {input_tokens: 1, output_tokens: 1, concurrency: 1, arrival_policy: closed-loop, warmup_requests: 0, cache_state: cold, requested_requests: 1, completed_requests: 1, failed_requests: 0}
10
+ metrics:
11
+ - {name: ttft, value: 1, unit: ms, statistic: mean, timing_boundary: client}
12
+ sources:
13
+ - {project: example, url: 'https://example.com', revision: abcdef0, license: Apache-2.0, attribution: example, unofficial: false}
14
+ artifacts:
15
+ - {id: measurements, path: measurements.parquet, role: measurements, format: parquet, schema: e2e/v1, sha256: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bytes: 1, rows: 1}
16
+ evidence_gaps: []
tests/test_validation.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+
3
+ import yaml
4
+
5
+ from scripts.validate import DATA, schema_validator, validate, validate_manifest
6
+
7
+
8
+ FIXTURES = Path(__file__).parent / "fixtures"
9
+
10
+
11
+ def test_repository_data_is_valid():
12
+ assert validate() == []
13
+
14
+
15
+ def test_unknown_manifest_field_is_rejected(tmp_path: Path):
16
+ document = yaml.safe_load((FIXTURES / "invalid-e2e-manifest.yaml").read_text())
17
+ errors = list(schema_validator("e2e").iter_errors(document))
18
+ assert errors
19
+
20
+
21
+ def test_valid_fixture_matches_schema():
22
+ document = yaml.safe_load((FIXTURES / "valid-e2e-manifest.yaml").read_text())
23
+ assert list(schema_validator("e2e").iter_errors(document)) == []
24
+
25
+
26
+ def test_path_identity_is_enforced(tmp_path: Path):
27
+ source = next(DATA.glob("e2e/**/manifest.yaml"))
28
+ target = DATA / "e2e/deepseek-ai--DeepSeek-V4-Pro/H100/vllm/0.25.1/tp8/manifest.yaml"
29
+ target.parent.mkdir(parents=True, exist_ok=True)
30
+ target.write_bytes(source.read_bytes())
31
+ try:
32
+ assert any("path identity" in error for error in validate_manifest(target))
33
+ finally:
34
+ target.unlink()
35
+ for parent in [target.parent, target.parent.parent, target.parent.parent.parent, target.parent.parent.parent.parent]:
36
+ try:
37
+ parent.rmdir()
38
+ except OSError:
39
+ break