neurarch 0.2.0 → 0.4.0

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.
package/NOTICE ADDED
@@ -0,0 +1,507 @@
1
+ Third-party notices
2
+
3
+ Neurarch's parallel layout check (src/utils/parallelLayout.ts and the files it
4
+ reads) and its pin check (src/utils/policy/pinCheck.ts) use data and code from the projects below, each under a permissive
5
+ licence. Their notices follow in full. Nothing else in this repository is
6
+ affected by them.
7
+
8
+ 1. NeuSight (https://github.com/scai-tech/NeuSight), MIT.
9
+ Used: measured linear-kernel latencies in scripts/asplos/data/dataset/{train,test}/linear.csv
10
+ and scripts/asplos/fp16mm.csv, at commit 6945927d9afcca2b9daf021f8395e53edc5b4eef, as
11
+ input to scripts/gemm-efficiency/fit_gemm_efficiency.py. Shipped as the fitted
12
+ table in src/utils/gemmEfficiency.table.ts (no rows are redistributed).
13
+
14
+ 2. Primus (https://github.com/AMD-AGI/Primus), MIT.
15
+ Used: the 1F1B and interleaved schedule tables and the schedule simulation,
16
+ ported to TypeScript in src/utils/pipelineSchedule.ts, from commit
17
+ cf1a75a5bb5b12d3a37ff3d1a3cb328aac7ec98e.
18
+
19
+ 3. vTrain (https://github.com/VIA-Research/vTrain), MIT.
20
+ Used: data/ground_truth_single.csv at commit 7b8032814f262260a560b7e5c0dc260a2f975fce,
21
+ copied unchanged to scripts/layout-calibration/external/vtrain/ as a held-out
22
+ check of predicted step time. Not used to fit anything.
23
+
24
+ 4. PyTorch (https://github.com/pytorch/pytorch), BSD-3-Clause.
25
+ Used: datasheet peaks transcribed from torch/_inductor/analysis/device_info.py
26
+ at commit 6a6db44e15f9678d573ad0af5e1f3e2b0713414a, into
27
+ src/utils/gemmEfficiency.table.ts.
28
+
29
+ 5. llm-foundry (https://github.com/mosaicml/llm-foundry), Apache-2.0.
30
+ Used: the MPT throughput tables in scripts/train/benchmarking/README.md at commit
31
+ 495218376830947dce625efabc4d86be7c47cc45, parsed by
32
+ scripts/layout-calibration/external/llm-foundry/parse.ts into rows.json in the
33
+ same directory (numbers only), and MPT geometry from
34
+ scripts/train/yamls/pretrain/mpt-*.yaml. A held-out check; not used to fit anything.
35
+
36
+ 6. torchtitan (https://github.com/pytorch/torchtitan), BSD-3-Clause.
37
+ Used: four BF16 throughput rows of docs/benchmarks/llama3_h100_202412_torchtitan.md
38
+ at commit 6f22255756ca247f343f2f517671c61f0a407e9b, transcribed to
39
+ scripts/layout-calibration/external/torchtitan/rows.json. A held-out check.
40
+
41
+ The pre-check record (src/utils/attestation/, packages/neurarch-cli/bin/attest.mjs)
42
+ uses the three below, each Apache-2.0 (full text above, under llm-foundry):
43
+
44
+ 7. model-transparency (https://github.com/sigstore/model-transparency), Apache-2.0,
45
+ Copyright 2024 The Sigstore Authors.
46
+ Used: how model_signing names and orders a model's files (POSIX paths relative
47
+ to the model root, sorted by path component), its default ignore list, and its
48
+ subject digest (sha256 over the file digests in manifest order), from
49
+ src/model_signing/_signing/signing.py, manifest.py and hashing.py at commit
50
+ f10871c550b945953c936b3eea9478557b4e577e, re-implemented in TypeScript in
51
+ src/utils/attestation/index.ts. No Python code is included.
52
+
53
+ 8. in-toto attestation (https://github.com/in-toto/attestation), Apache-2.0,
54
+ Copyright 2021 in-toto Developers.
55
+ Used: the Statement v1 and test-result v0.1 predicate formats and the
56
+ ResourceDescriptor rules (spec/v1, spec/predicates/test-result.md) at commit
57
+ fd2609c16bcb0ac53443e2b4612977f997e8f9a5. Formats only; no files copied.
58
+
59
+ 9. CycloneDX specification (https://github.com/CycloneDX/specification), Apache-2.0,
60
+ Copyright OWASP Foundation.
61
+ Used: schema/bom-1.6.schema.json, spdx.schema.json and jsf-0.82.schema.json at
62
+ tag 1.6.1 (commit 8a27bfd1be5be0dcb2c208a34d2f4fa0b6d75bd7), copied unchanged
63
+ to scripts/schemas/cyclonedx-1.6.1/ to validate the --cyclonedx output in tests.
64
+
65
+ 10. Bandit (https://github.com/PyCQA/bandit), Apache-2.0. Copyright the Bandit
66
+ authors (PyCQA).
67
+ Used: the B615 test logic of bandit/plugins/huggingface_unsafe_download.py
68
+ (which calls are downloads, what counts as a pinned revision, the local-path
69
+ and non-literal-revision exemptions), ported to TypeScript in
70
+ src/utils/policy/pinCheck.ts, and examples/huggingface_unsafe_download.py,
71
+ copied unchanged to src/utils/policy/fixtures/bandit-b615-examples.py.txt as
72
+ a test fixture, both at commit 68ebe11ef79263be27ec223184b94a4fc394a622.
73
+ The Apache License 2.0 text is reproduced in full above, under llm-foundry.
74
+
75
+ Cited, not copied (no code, text or data file from these is in the repository):
76
+ Megatron-LM's README weak-scaling table (nine rows of numbers transcribed to
77
+ scripts/layout-calibration/external/megatron/weak_scaling.json); nccl-tests'
78
+ doc/PERFORMANCE.md bus-bandwidth factors and issues #212 and #290 (restated in
79
+ src/utils/collectives.ts); the sustained matmul (MSMF) numbers of Stas Bekman's
80
+ ml-engineering (CC-BY-SA-4.0) in src/utils/gemmEfficiency.ts; the FlashAttention-2
81
+ and FlashAttention-3 papers' published utilisation.
82
+
83
+ ================================================================================
84
+ NeuSight
85
+ ================================================================================
86
+ MIT License
87
+
88
+ Copyright (c) 2025 Georgia Institute of Technology and Microsoft Corporation
89
+
90
+ Permission is hereby granted, free of charge, to any person obtaining a copy
91
+ of this software and associated documentation files (the "Software"), to deal
92
+ in the Software without restriction, including without limitation the rights
93
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
94
+ copies of the Software, and to permit persons to whom the Software is
95
+ furnished to do so, subject to the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be included in all
98
+ copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
101
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
102
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
103
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
104
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
105
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
106
+ SOFTWARE.
107
+ ================================================================================
108
+ Primus
109
+ ================================================================================
110
+ Copyright © 2025 Advanced Micro Devices, Inc. All rights reserved.
111
+
112
+ MIT License
113
+
114
+ Permission is hereby granted, free of charge, to any person obtaining a copy
115
+ of this software and associated documentation files (the "Software"), to deal
116
+ in the Software without restriction, including without limitation the rights
117
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
118
+ copies of the Software, and to permit persons to whom the Software is
119
+ furnished to do so, subject to the following conditions:
120
+
121
+ The above copyright notice and this permission notice shall be included in all
122
+ copies or substantial portions of the Software.
123
+
124
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
126
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
127
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
128
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
129
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
130
+ SOFTWARE.
131
+
132
+
133
+ ================================================================================
134
+ vTrain
135
+ ================================================================================
136
+ MIT License
137
+
138
+ Copyright (c) 2024, VIA Research Group at KAIST
139
+
140
+ Permission is hereby granted, free of charge, to any person obtaining a
141
+ copy of this software and associated documentation files (the
142
+ "Software"), to deal in the Software without restriction, including
143
+ without limitation the rights to use, copy, modify, merge, publish,
144
+ distribute, sublicense, and/or sell copies of the Software, and to
145
+ permit persons to whom the Software is furnished to do so, subject to
146
+ the following conditions:
147
+
148
+ The above copyright notice and this permission notice shall be included
149
+ in all copies or substantial portions of the Software.
150
+
151
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
152
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
153
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
154
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
155
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
156
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
157
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
158
+ ================================================================================
159
+ PyTorch
160
+ ================================================================================
161
+ From PyTorch:
162
+
163
+ Copyright (c) 2016- Facebook, Inc (Adam Paszke)
164
+ Copyright (c) 2014- Facebook, Inc (Soumith Chintala)
165
+ Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
166
+ Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
167
+ Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
168
+ Copyright (c) 2011-2013 NYU (Clement Farabet)
169
+ Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
170
+ Copyright (c) 2006 Idiap Research Institute (Samy Bengio)
171
+ Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
172
+
173
+ From Caffe2:
174
+
175
+ Copyright (c) 2016-present, Facebook Inc. All rights reserved.
176
+
177
+ All contributions by Facebook:
178
+ Copyright (c) 2016 Facebook Inc.
179
+
180
+ All contributions by Google:
181
+ Copyright (c) 2015 Google Inc.
182
+ All rights reserved.
183
+
184
+ All contributions by Yangqing Jia:
185
+ Copyright (c) 2015 Yangqing Jia
186
+ All rights reserved.
187
+
188
+ All contributions by Kakao Brain:
189
+ Copyright 2019-2020 Kakao Brain
190
+
191
+ All contributions by Cruise LLC:
192
+ Copyright (c) 2022 Cruise LLC.
193
+ All rights reserved.
194
+
195
+ All contributions by Tri Dao:
196
+ Copyright (c) 2024 Tri Dao.
197
+ All rights reserved.
198
+
199
+ All contributions by Arm:
200
+ Copyright (c) 2021, 2023-2025 Arm Limited and/or its affiliates
201
+
202
+ All contributions from Caffe:
203
+ Copyright(c) 2013, 2014, 2015, the respective contributors
204
+ All rights reserved.
205
+
206
+ All other contributions:
207
+ Copyright(c) 2015, 2016 the respective contributors
208
+ All rights reserved.
209
+
210
+ Caffe2 uses a copyright model similar to Caffe: each contributor holds
211
+ copyright over their contributions to Caffe2. The project versioning records
212
+ all such contribution and copyright details. If a contributor wants to further
213
+ mark their specific copyright on a particular contribution, they should
214
+ indicate their copyright solely in the commit message of the change when it is
215
+ committed.
216
+
217
+ All rights reserved.
218
+
219
+ Redistribution and use in source and binary forms, with or without
220
+ modification, are permitted provided that the following conditions are met:
221
+
222
+ 1. Redistributions of source code must retain the above copyright
223
+ notice, this list of conditions and the following disclaimer.
224
+
225
+ 2. Redistributions in binary form must reproduce the above copyright
226
+ notice, this list of conditions and the following disclaimer in the
227
+ documentation and/or other materials provided with the distribution.
228
+
229
+ 3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America
230
+ and IDIAP Research Institute nor the names of its contributors may be
231
+ used to endorse or promote products derived from this software without
232
+ specific prior written permission.
233
+
234
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
235
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
236
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
237
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
238
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
239
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
240
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
241
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
242
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
243
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
244
+ POSSIBILITY OF SUCH DAMAGE.
245
+ =========================================================================
246
+ llm-foundry
247
+ ================================================================================
248
+ Apache License
249
+ Version 2.0, January 2004
250
+ http://www.apache.org/licenses/
251
+
252
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
253
+
254
+ 1. Definitions.
255
+
256
+ "License" shall mean the terms and conditions for use, reproduction,
257
+ and distribution as defined by Sections 1 through 9 of this document.
258
+
259
+ "Licensor" shall mean the copyright owner or entity authorized by
260
+ the copyright owner that is granting the License.
261
+
262
+ "Legal Entity" shall mean the union of the acting entity and all
263
+ other entities that control, are controlled by, or are under common
264
+ control with that entity. For the purposes of this definition,
265
+ "control" means (i) the power, direct or indirect, to cause the
266
+ direction or management of such entity, whether by contract or
267
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
268
+ outstanding shares, or (iii) beneficial ownership of such entity.
269
+
270
+ "You" (or "Your") shall mean an individual or Legal Entity
271
+ exercising permissions granted by this License.
272
+
273
+ "Source" form shall mean the preferred form for making modifications,
274
+ including but not limited to software source code, documentation
275
+ source, and configuration files.
276
+
277
+ "Object" form shall mean any form resulting from mechanical
278
+ transformation or translation of a Source form, including but
279
+ not limited to compiled object code, generated documentation,
280
+ and conversions to other media types.
281
+
282
+ "Work" shall mean the work of authorship, whether in Source or
283
+ Object form, made available under the License, as indicated by a
284
+ copyright notice that is included in or attached to the work
285
+ (an example is provided in the Appendix below).
286
+
287
+ "Derivative Works" shall mean any work, whether in Source or Object
288
+ form, that is based on (or derived from) the Work and for which the
289
+ editorial revisions, annotations, elaborations, or other modifications
290
+ represent, as a whole, an original work of authorship. For the purposes
291
+ of this License, Derivative Works shall not include works that remain
292
+ separable from, or merely link (or bind by name) to the interfaces of,
293
+ the Work and Derivative Works thereof.
294
+
295
+ "Contribution" shall mean any work of authorship, including
296
+ the original version of the Work and any modifications or additions
297
+ to that Work or Derivative Works thereof, that is intentionally
298
+ submitted to Licensor for inclusion in the Work by the copyright owner
299
+ or by an individual or Legal Entity authorized to submit on behalf of
300
+ the copyright owner. For the purposes of this definition, "submitted"
301
+ means any form of electronic, verbal, or written communication sent
302
+ to the Licensor or its representatives, including but not limited to
303
+ communication on electronic mailing lists, source code control systems,
304
+ and issue tracking systems that are managed by, or on behalf of, the
305
+ Licensor for the purpose of discussing and improving the Work, but
306
+ excluding communication that is conspicuously marked or otherwise
307
+ designated in writing by the copyright owner as "Not a Contribution."
308
+
309
+ "Contributor" shall mean Licensor and any individual or Legal Entity
310
+ on behalf of whom a Contribution has been received by Licensor and
311
+ subsequently incorporated within the Work.
312
+
313
+ 2. Grant of Copyright License. Subject to the terms and conditions of
314
+ this License, each Contributor hereby grants to You a perpetual,
315
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
316
+ copyright license to reproduce, prepare Derivative Works of,
317
+ publicly display, publicly perform, sublicense, and distribute the
318
+ Work and such Derivative Works in Source or Object form.
319
+
320
+ 3. Grant of Patent License. Subject to the terms and conditions of
321
+ this License, each Contributor hereby grants to You a perpetual,
322
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
323
+ (except as stated in this section) patent license to make, have made,
324
+ use, offer to sell, sell, import, and otherwise transfer the Work,
325
+ where such license applies only to those patent claims licensable
326
+ by such Contributor that are necessarily infringed by their
327
+ Contribution(s) alone or by combination of their Contribution(s)
328
+ with the Work to which such Contribution(s) was submitted. If You
329
+ institute patent litigation against any entity (including a
330
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
331
+ or a Contribution incorporated within the Work constitutes direct
332
+ or contributory patent infringement, then any patent licenses
333
+ granted to You under this License for that Work shall terminate
334
+ as of the date such litigation is filed.
335
+
336
+ 4. Redistribution. You may reproduce and distribute copies of the
337
+ Work or Derivative Works thereof in any medium, with or without
338
+ modifications, and in Source or Object form, provided that You
339
+ meet the following conditions:
340
+
341
+ (a) You must give any other recipients of the Work or
342
+ Derivative Works a copy of this License; and
343
+
344
+ (b) You must cause any modified files to carry prominent notices
345
+ stating that You changed the files; and
346
+
347
+ (c) You must retain, in the Source form of any Derivative Works
348
+ that You distribute, all copyright, patent, trademark, and
349
+ attribution notices from the Source form of the Work,
350
+ excluding those notices that do not pertain to any part of
351
+ the Derivative Works; and
352
+
353
+ (d) If the Work includes a "NOTICE" text file as part of its
354
+ distribution, then any Derivative Works that You distribute must
355
+ include a readable copy of the attribution notices contained
356
+ within such NOTICE file, excluding those notices that do not
357
+ pertain to any part of the Derivative Works, in at least one
358
+ of the following places: within a NOTICE text file distributed
359
+ as part of the Derivative Works; within the Source form or
360
+ documentation, if provided along with the Derivative Works; or,
361
+ within a display generated by the Derivative Works, if and
362
+ wherever such third-party notices normally appear. The contents
363
+ of the NOTICE file are for informational purposes only and
364
+ do not modify the License. You may add Your own attribution
365
+ notices within Derivative Works that You distribute, alongside
366
+ or as an addendum to the NOTICE text from the Work, provided
367
+ that such additional attribution notices cannot be construed
368
+ as modifying the License.
369
+
370
+ You may add Your own copyright statement to Your modifications and
371
+ may provide additional or different license terms and conditions
372
+ for use, reproduction, or distribution of Your modifications, or
373
+ for any such Derivative Works as a whole, provided Your use,
374
+ reproduction, and distribution of the Work otherwise complies with
375
+ the conditions stated in this License.
376
+
377
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
378
+ any Contribution intentionally submitted for inclusion in the Work
379
+ by You to the Licensor shall be under the terms and conditions of
380
+ this License, without any additional terms or conditions.
381
+ Notwithstanding the above, nothing herein shall supersede or modify
382
+ the terms of any separate license agreement you may have executed
383
+ with Licensor regarding such Contributions.
384
+
385
+ 6. Trademarks. This License does not grant permission to use the trade
386
+ names, trademarks, service marks, or product names of the Licensor,
387
+ except as required for reasonable and customary use in describing the
388
+ origin of the Work and reproducing the content of the NOTICE file.
389
+
390
+ 7. Disclaimer of Warranty. Unless required by applicable law or
391
+ agreed to in writing, Licensor provides the Work (and each
392
+ Contributor provides its Contributions) on an "AS IS" BASIS,
393
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
394
+ implied, including, without limitation, any warranties or conditions
395
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
396
+ PARTICULAR PURPOSE. You are solely responsible for determining the
397
+ appropriateness of using or redistributing the Work and assume any
398
+ risks associated with Your exercise of permissions under this License.
399
+
400
+ 8. Limitation of Liability. In no event and under no legal theory,
401
+ whether in tort (including negligence), contract, or otherwise,
402
+ unless required by applicable law (such as deliberate and grossly
403
+ negligent acts) or agreed to in writing, shall any Contributor be
404
+ liable to You for damages, including any direct, indirect, special,
405
+ incidental, or consequential damages of any character arising as a
406
+ result of this License or out of the use or inability to use the
407
+ Work (including but not limited to damages for loss of goodwill,
408
+ work stoppage, computer failure or malfunction, or any and all
409
+ other commercial damages or losses), even if such Contributor
410
+ has been advised of the possibility of such damages.
411
+
412
+ 9. Accepting Warranty or Additional Liability. While redistributing
413
+ the Work or Derivative Works thereof, You may choose to offer,
414
+ and charge a fee for, acceptance of support, warranty, indemnity,
415
+ or other liability obligations and/or rights consistent with this
416
+ License. However, in accepting such obligations, You may act only
417
+ on Your own behalf and on Your sole responsibility, not on behalf
418
+ of any other Contributor, and only if You agree to indemnify,
419
+ defend, and hold each Contributor harmless for any liability
420
+ incurred by, or claims asserted against, such Contributor by reason
421
+ of your accepting any such warranty or additional liability.
422
+
423
+ END OF TERMS AND CONDITIONS
424
+
425
+ APPENDIX: How to apply the Apache License to your work.
426
+
427
+ To apply the Apache License to your work, attach the following
428
+ boilerplate notice, with the fields enclosed by brackets "[]"
429
+ replaced with your own identifying information. (Don't include
430
+ the brackets!) The text should be enclosed in the appropriate
431
+ comment syntax for the file format. We also recommend that a
432
+ file or class name and description of purpose be included on the
433
+ same "printed page" as the copyright notice for easier
434
+ identification within third-party archives.
435
+
436
+ Copyright 2022 MosaicML Examples authors
437
+
438
+ Licensed under the Apache License, Version 2.0 (the "License");
439
+ you may not use this file except in compliance with the License.
440
+ You may obtain a copy of the License at
441
+
442
+ http://www.apache.org/licenses/LICENSE-2.0
443
+
444
+ Unless required by applicable law or agreed to in writing, software
445
+ distributed under the License is distributed on an "AS IS" BASIS,
446
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
447
+ See the License for the specific language governing permissions and
448
+ limitations under the License.
449
+ ================================================================================
450
+ torchtitan
451
+ ================================================================================
452
+ BSD 3-Clause License
453
+
454
+ (c) Meta Platforms, Inc. and affiliates.
455
+
456
+ Redistribution and use in source and binary forms, with or without modification,
457
+ are permitted provided that the following conditions are met:
458
+
459
+ 1. Redistributions of source code must retain the above copyright notice,this list
460
+ of conditions and the following disclaimer.
461
+
462
+ 2. Redistributions in binary form must reproduce the above copyright notice, this
463
+ list of conditions and the following disclaimer in the documentation
464
+ and/or other materials provided with the distribution.
465
+
466
+ 3. Neither the name of the copyright holder nor the names of its contributors may
467
+ be used to endorse or promote products derived from this software without specific
468
+ prior written permission.
469
+
470
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY
471
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
472
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
473
+ SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
474
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
475
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
476
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
477
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
478
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
479
+ DAMAGE.
480
+ =======
481
+
482
+ ================================================================================
483
+ Serving pre-check: vLLM, SGLang and Hugging Face transformers (Apache-2.0)
484
+ ================================================================================
485
+ Neurarch's serving pre-check (src/utils/serveConfigCheck.ts, src/utils/vllmReceipt.ts
486
+ and src/utils/serveEngineTables.generated.ts) reproduces arithmetic and file
487
+ formats from these projects, each under the Apache License, Version 2.0
488
+ (https://www.apache.org/licenses/LICENSE-2.0). No source file is copied; the
489
+ formulas are ported to TypeScript and each function names the upstream file.
490
+
491
+ - vLLM (https://github.com/vllm-project/vllm), Copyright contributors to the vLLM
492
+ project. Ported: CUDA graph capture sizes (vllm/config/vllm.py
493
+ _set_cudagraph_sizes, vllm/config/compilation.py), the FULL/PIECEWISE capture
494
+ descriptors (vllm/v1/cudagraph_dispatcher.py), the structure of
495
+ profile_cudagraph_memory (vllm/v1/worker/gpu_model_runner.py,
496
+ vllm/v1/worker/gpu/cudagraph_utils.py), the multimodal encoder profiling budget
497
+ (vllm/multimodal/encoder_budget.py, vllm/v1/core/encoder_cache_manager.py,
498
+ vllm/model_executor/models/gemma3_mm.py), the KV cache specs and the reserve
499
+ (vllm/v1/worker/gpu_worker.py), and the startup plan file format and its
500
+ stale-plan rules (vllm/v1/worker/startup_plan.py), read at release tags
501
+ v0.11.0 through v0.32.0.
502
+ - SGLang (https://github.com/sgl-project/sglang), Copyright the SGLang authors.
503
+ Ported: mem_fraction_static and the CUDA graph capture lists
504
+ (python/sglang/srt/arg_groups/memory_hook.py).
505
+ - transformers (https://github.com/huggingface/transformers), Copyright the
506
+ Hugging Face team. Ported: Qwen2-VL smart_resize pixel limits and the
507
+ Gemma3TextConfig defaults (vocab_size, head_dim).