mlperf-sysinfo 1.0.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mlperf_sysinfo-1.0.0a1/.gitignore +14 -0
- mlperf_sysinfo-1.0.0a1/LICENSE +202 -0
- mlperf_sysinfo-1.0.0a1/PKG-INFO +316 -0
- mlperf_sysinfo-1.0.0a1/README.md +280 -0
- mlperf_sysinfo-1.0.0a1/pyproject.toml +79 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/__init__.py +73 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/cli.py +411 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/collector.py +399 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/config.py +488 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/errors.py +37 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/output.py +395 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/preflight.py +304 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/profiles/__init__.py +125 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/profiles/endpoints.yaml +32 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/profiles/inference.yaml +29 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/report.py +209 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/templates/endpoints.yaml +65 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/templates/inference.yaml +34 -0
- mlperf_sysinfo-1.0.0a1/src/mlperf_sysinfo/ui.py +101 -0
- mlperf_sysinfo-1.0.0a1/tests/__init__.py +0 -0
- mlperf_sysinfo-1.0.0a1/tests/conftest.py +68 -0
- mlperf_sysinfo-1.0.0a1/tests/test_check_and_capture.py +343 -0
- mlperf_sysinfo-1.0.0a1/tests/test_config.py +239 -0
- mlperf_sysinfo-1.0.0a1/tests/test_profiles_and_output.py +220 -0
- mlperf_sysinfo-1.0.0a1/tests/test_qa_regressions.py +269 -0
- mlperf_sysinfo-1.0.0a1/tests/test_report.py +134 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: mlperf-sysinfo
|
|
3
|
+
Version: 1.0.0a1
|
|
4
|
+
Summary: Capture MLPerf system descriptions: one config format, one CLI, per-working-group profiles.
|
|
5
|
+
Project-URL: Homepage, https://github.com/anandhu-eng/mlperf-sysinfo
|
|
6
|
+
Project-URL: Repository, https://github.com/anandhu-eng/mlperf-sysinfo
|
|
7
|
+
Project-URL: Documentation, https://anandhu-eng.github.io/mlperf-sysinfo/
|
|
8
|
+
Project-URL: Issues, https://github.com/anandhu-eng/mlperf-sysinfo/issues
|
|
9
|
+
Author: MLCommons contributors
|
|
10
|
+
License-Expression: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: benchmark,mlcommons,mlperf,submission,system-info
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: System :: Benchmark
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Requires-Dist: cyclopts>=3.0
|
|
25
|
+
Requires-Dist: mlc-scripts==1.2.0a1
|
|
26
|
+
Requires-Dist: pydantic>=2.7
|
|
27
|
+
Requires-Dist: pyyaml>=6.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
31
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
32
|
+
Provides-Extra: docs
|
|
33
|
+
Requires-Dist: mkdocs-material<10,>=9.5; extra == 'docs'
|
|
34
|
+
Requires-Dist: mkdocs<2,>=1.6; extra == 'docs'
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# mlperf-sysinfo
|
|
38
|
+
|
|
39
|
+
A tool that automatically captures the system description of a benchmarking
|
|
40
|
+
machine, built on top of the
|
|
41
|
+
[mlc-scripts](https://github.com/mlcommons/mlperf-automations) and
|
|
42
|
+
[mlcflow](https://github.com/mlcommons/mlcflow) automation.
|
|
43
|
+
|
|
44
|
+
**Documentation: <https://anandhu-eng.github.io/mlperf-sysinfo/>**
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install mlperf-sysinfo
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Quick Run
|
|
51
|
+
|
|
52
|
+
The steps below capture a system description for a CPU-only system, using
|
|
53
|
+
only the machine you run them on. No other node is contacted.
|
|
54
|
+
|
|
55
|
+
**Step 1 -- create a starter config**
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
mlperf-sysinfo init endpoints
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
<details>
|
|
62
|
+
<summary>Sample output</summary>
|
|
63
|
+
|
|
64
|
+
```console
|
|
65
|
+
$ mlperf-sysinfo init endpoints
|
|
66
|
+
|
|
67
|
+
Written template sysinfo.yaml to path: /home/user/sysinfo.yaml
|
|
68
|
+
|
|
69
|
+
profile: endpoints
|
|
70
|
+
|
|
71
|
+
Edit the template sysinfo.yaml before running the actual capture command.
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
</details>
|
|
75
|
+
|
|
76
|
+
**Step 2 -- edit `sysinfo.yaml`**
|
|
77
|
+
|
|
78
|
+
Fill in a system name, your organisation, a contact email, and the model
|
|
79
|
+
being served. `nodes.include_local` is already `true` with an empty `ssh`
|
|
80
|
+
list, so leave that section alone. For a CPU-only capture, set
|
|
81
|
+
`accelerator: none` and drop the `serving:` block entirely -- both fields
|
|
82
|
+
are optional here, and skipping them is a warning, not an error.
|
|
83
|
+
|
|
84
|
+
```yaml
|
|
85
|
+
profile: endpoints
|
|
86
|
+
|
|
87
|
+
output:
|
|
88
|
+
dir: results/sysinfo
|
|
89
|
+
|
|
90
|
+
system:
|
|
91
|
+
name: devbox1
|
|
92
|
+
category: datacenter
|
|
93
|
+
availability: available
|
|
94
|
+
accelerator: none
|
|
95
|
+
|
|
96
|
+
nodes:
|
|
97
|
+
include_local: true
|
|
98
|
+
ssh: []
|
|
99
|
+
|
|
100
|
+
submission:
|
|
101
|
+
submitter: MyOrg
|
|
102
|
+
contact: mlperf@myorg.example
|
|
103
|
+
division: standardized
|
|
104
|
+
model:
|
|
105
|
+
name: Llama-3.1-8B-Instruct
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Step 3 -- check the config**
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
mlperf-sysinfo check -c sysinfo.yaml
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
<details>
|
|
115
|
+
<summary>Sample output</summary>
|
|
116
|
+
|
|
117
|
+
```console
|
|
118
|
+
$ mlperf-sysinfo check -c sysinfo.yaml
|
|
119
|
+
|
|
120
|
+
profile endpoints (v6.0 rules)
|
|
121
|
+
output results/sysinfo/system_desc.json
|
|
122
|
+
|
|
123
|
+
NODES
|
|
124
|
+
✓ this machine included
|
|
125
|
+
|
|
126
|
+
REQUIRED BY PROFILE 'ENDPOINTS'
|
|
127
|
+
✓ 7 fields set
|
|
128
|
+
|
|
129
|
+
WORTH FILLING IN
|
|
130
|
+
! serving.url empty Enables framework and version detection from the live endpoint
|
|
131
|
+
! serving.node empty Enables parallelism and batch settings to be read from the startup log
|
|
132
|
+
! submission.model.precision empty Reviewers ask for this almost every round
|
|
133
|
+
! submission.dataset.name empty Identifies what the system was serving
|
|
134
|
+
|
|
135
|
+
Ready to capture.
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
</details>
|
|
139
|
+
|
|
140
|
+
The warnings above are expected for a config with no live endpoint -- they
|
|
141
|
+
don't block anything. `capture` always runs this check first, with no flag
|
|
142
|
+
to skip it; a missing *required* field or an unreachable node is what would
|
|
143
|
+
stop the run.
|
|
144
|
+
|
|
145
|
+
**Step 4 -- capture**
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
mlperf-sysinfo capture -c sysinfo.yaml
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
<details>
|
|
152
|
+
<summary>Sample output</summary>
|
|
153
|
+
|
|
154
|
+
```console
|
|
155
|
+
$ mlperf-sysinfo capture -c sysinfo.yaml
|
|
156
|
+
|
|
157
|
+
✓ pre-flight check passed -- 1 node(s), profile endpoints (v6.0 rules)
|
|
158
|
+
✓ collection 1 of 1 node(s) returned hardware
|
|
159
|
+
|
|
160
|
+
1 node(s) - profile endpoints
|
|
161
|
+
|
|
162
|
+
Written results/sysinfo/system_desc.json
|
|
163
|
+
|
|
164
|
+
Next: mlperf-sysinfo show results/sysinfo/system_desc.json
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
</details>
|
|
168
|
+
|
|
169
|
+
**Step 5 -- validate**
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
mlperf-sysinfo validate results/sysinfo/system_desc.json
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
<details>
|
|
176
|
+
<summary>Sample output</summary>
|
|
177
|
+
|
|
178
|
+
```console
|
|
179
|
+
$ mlperf-sysinfo validate results/sysinfo/system_desc.json
|
|
180
|
+
|
|
181
|
+
file results/sysinfo/system_desc.json
|
|
182
|
+
profile endpoints (v6.0 rules)
|
|
183
|
+
|
|
184
|
+
Valid. 7 required field(s) present.
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
</details>
|
|
188
|
+
|
|
189
|
+
## The config
|
|
190
|
+
|
|
191
|
+
Grouped by who owns the answer, not by which environment variable it sets.
|
|
192
|
+
|
|
193
|
+
```yaml
|
|
194
|
+
profile: endpoints
|
|
195
|
+
|
|
196
|
+
output:
|
|
197
|
+
dir: results/h100_run1
|
|
198
|
+
|
|
199
|
+
system:
|
|
200
|
+
name: H100x8_vLLM
|
|
201
|
+
category: datacenter
|
|
202
|
+
availability: available
|
|
203
|
+
accelerator: cuda
|
|
204
|
+
|
|
205
|
+
nodes:
|
|
206
|
+
include_local: false
|
|
207
|
+
ssh:
|
|
208
|
+
- root@node1
|
|
209
|
+
- root@node2:2222
|
|
210
|
+
|
|
211
|
+
serving:
|
|
212
|
+
url: http://node1:8000
|
|
213
|
+
node: root@node1
|
|
214
|
+
log: /tmp/serving.log
|
|
215
|
+
|
|
216
|
+
submission:
|
|
217
|
+
submitter: MyOrg
|
|
218
|
+
contact: mlperf@myorg.example
|
|
219
|
+
division: standardized
|
|
220
|
+
model:
|
|
221
|
+
name: Llama-3.1-8B-Instruct
|
|
222
|
+
precision: fp8
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Three rules worth knowing:
|
|
226
|
+
|
|
227
|
+
- **Anything detectable is never a config field.** CPU, memory, accelerators,
|
|
228
|
+
node counts and framework version are probed. If they appear here at all,
|
|
229
|
+
they are overrides.
|
|
230
|
+
- **`${VAR}` reads from the environment.** BMC and API credentials are
|
|
231
|
+
referenced, never written down.
|
|
232
|
+
- **The same file works embedded.** Drop it under a `system_info:` key in a
|
|
233
|
+
benchmark config and it validates identically.
|
|
234
|
+
|
|
235
|
+
Use `extends: ~/.mlperf/org.yaml` to share submitter details across configs.
|
|
236
|
+
|
|
237
|
+
## Profiles
|
|
238
|
+
|
|
239
|
+
A profile says which fields are required, which extra collection steps to run,
|
|
240
|
+
and what the output looks like.
|
|
241
|
+
|
|
242
|
+
| Profile | Output | Notes |
|
|
243
|
+
| --- | --- | --- |
|
|
244
|
+
| `endpoints` | grouped, keeps `node_types` | Probes the endpoint and parses the serving log |
|
|
245
|
+
| `inference` | flat, matches the submission checker | Hardware lifted to the top level |
|
|
246
|
+
|
|
247
|
+
`mlperf-sysinfo profiles` lists them. All profiles live in this repo and ship
|
|
248
|
+
with the package. A config may also point at a file --
|
|
249
|
+
`profile: ./my-profile.yaml` -- for building one before it is upstreamed.
|
|
250
|
+
|
|
251
|
+
Profiles always track the current MLPerf round; there is no version to pin. The
|
|
252
|
+
round that applied is stamped into every output file, so a captured file
|
|
253
|
+
records the rules that produced it.
|
|
254
|
+
|
|
255
|
+
## Embedding
|
|
256
|
+
|
|
257
|
+
```python
|
|
258
|
+
from mlperf_sysinfo import load_config, capture
|
|
259
|
+
|
|
260
|
+
config = load_config("sysinfo.yaml")
|
|
261
|
+
result = capture(config)
|
|
262
|
+
|
|
263
|
+
result.output_path # where the file landed
|
|
264
|
+
result.nodes # per-node status
|
|
265
|
+
result.complete # False if any node did not answer
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
`capture()` raises `CheckFailed` when pre-flight does not pass. Call
|
|
269
|
+
`mlperf_sysinfo.check(config)` on its own to run the same validation early --
|
|
270
|
+
at the start of a benchmark rather than at the end of one.
|
|
271
|
+
|
|
272
|
+
## Exit codes
|
|
273
|
+
|
|
274
|
+
`check` is meant to be scriptable, so the codes are a contract:
|
|
275
|
+
|
|
276
|
+
| Code | Meaning |
|
|
277
|
+
| --- | --- |
|
|
278
|
+
| 0 | All good |
|
|
279
|
+
| 1 | The run found problems (missing fields, unreachable nodes, invalid file) |
|
|
280
|
+
| 2 | The command or the config was wrong |
|
|
281
|
+
|
|
282
|
+
## Where files land
|
|
283
|
+
|
|
284
|
+
The deliverable is the only thing written to `output.dir`. Everything the
|
|
285
|
+
automation produces -- the raw intermediate, per-node files, and its log --
|
|
286
|
+
goes into `output.dir/.mlperf-sysinfo/`. Pass `--verbose` to see the automation
|
|
287
|
+
log on the terminal instead of in that directory.
|
|
288
|
+
|
|
289
|
+
Two caveats worth knowing:
|
|
290
|
+
|
|
291
|
+
- **Credentials can be echoed by the collection layer.** Keeping them in
|
|
292
|
+
`${VAR}` keeps them out of your config file and out of git, but the
|
|
293
|
+
underlying automation prints its own command lines, so a Redfish password may
|
|
294
|
+
appear in `automation.log`. Treat that directory as sensitive.
|
|
295
|
+
- **Remote scratch files are not confined.** When collecting over SSH, the
|
|
296
|
+
automation writes its own temporary files on each remote node (under `$HOME`
|
|
297
|
+
and `/tmp` there). This package cannot redirect those.
|
|
298
|
+
|
|
299
|
+
## Partial captures
|
|
300
|
+
|
|
301
|
+
An unreachable node stops the run. `--allow-partial` proceeds anyway, and the
|
|
302
|
+
output records `complete: false` along with how many nodes answered.
|
|
303
|
+
`validate` then refuses the file, so a partial capture cannot be mistaken for a
|
|
304
|
+
whole one.
|
|
305
|
+
|
|
306
|
+
## Development
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
uv venv && uv pip install -e ".[dev]"
|
|
310
|
+
uv run pytest
|
|
311
|
+
uv run ruff check .
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## License
|
|
315
|
+
|
|
316
|
+
Apache-2.0
|