aiinfra-tools 0.2.0 → 0.3.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/CHANGELOG.md +210 -0
- package/README.md +14 -3
- package/bin/aiinfra.mjs +5 -2
- package/bin/report.mjs +177 -0
- package/fleetops/README.md +33 -1
- package/fleetops/deploy/shadow-gate/argo-analysistemplate.yaml +34 -0
- package/fleetops/deploy/shadow-gate/argo-rollout-example.yaml +38 -0
- package/fleetops/deploy/shadow-gate/flagger-canary.yaml +34 -0
- package/fleetops/deploy/shadow-gate/judge.yaml +51 -0
- package/fleetops/deploy/shadow-gate/llmd-canary-example.yaml +35 -0
- package/fleetops/deploy/shadow-gate/podmonitor-vllm.yaml +20 -0
- package/fleetops/deploy/shadow-live/README.md +33 -0
- package/fleetops/deploy/shadow-live/kit.yaml +121 -0
- package/fleetops/deploy/shadow-live/load-canary.yaml +26 -0
- package/fleetops/deploy/shadow-live/run.sh +48 -0
- package/fleetops/docs/ADMISSION.md +9 -9
- package/fleetops/docs/FABRIC-STORAGE.md +1 -1
- package/fleetops/docs/SERVING.md +11 -1
- package/fleetops/docs/SHADOW.md +250 -0
- package/fleetops/docs/SIGNALS.md +5 -2
- package/fleetops/docs/WORKLOADS.md +1 -1
- package/fleetops/package.json +7 -4
- package/fleetops/src/adapters/fabric.mjs +19 -7
- package/fleetops/src/adapters/live.mjs +38 -5
- package/fleetops/src/adapters/logs.mjs +10 -7
- package/fleetops/src/adapters/nvsentinel.mjs +95 -0
- package/fleetops/src/adapters/topology.mjs +53 -1
- package/fleetops/src/admission.mjs +26 -18
- package/fleetops/src/api.mjs +2 -1
- package/fleetops/src/bundle.mjs +3 -0
- package/fleetops/src/calibrate.mjs +1 -1
- package/fleetops/src/detect.mjs +1 -1
- package/fleetops/src/export.mjs +5 -1
- package/fleetops/src/goodput.mjs +0 -2
- package/fleetops/src/incidents.mjs +1 -2
- package/fleetops/src/ingest.mjs +1 -1
- package/fleetops/src/inject.mjs +2 -2
- package/fleetops/src/live.mjs +2 -1
- package/fleetops/src/llmd.mjs +7 -3
- package/fleetops/src/optimize.mjs +1 -1
- package/fleetops/src/power.mjs +7 -7
- package/fleetops/src/procure.mjs +67 -0
- package/fleetops/src/rca.mjs +1 -1
- package/fleetops/src/rollout.mjs +1 -1
- package/fleetops/src/schema.mjs +3 -2
- package/fleetops/src/security.mjs +1 -1
- package/fleetops/src/serving.mjs +21 -9
- package/fleetops/src/shadow-canary.mjs +74 -0
- package/fleetops/src/shadow-gate.mjs +49 -0
- package/fleetops/src/shadow-prom.mjs +205 -0
- package/fleetops/src/shadow-replay.mjs +147 -0
- package/fleetops/src/shadow.mjs +291 -0
- package/fleetops/src/stats.mjs +14 -0
- package/fleetops/src/traces.mjs +0 -5
- package/fleetops/tests/fixtures/real/README.md +5 -0
- package/fleetops/tools/admit-node.sh +51 -16
- package/fleetops/tools/amd-admit.py +111 -0
- package/fleetops/tools/cmd/calibrate.mjs +61 -0
- package/fleetops/tools/cmd/capacity.mjs +116 -0
- package/fleetops/tools/cmd/common.mjs +32 -0
- package/fleetops/tools/cmd/data.mjs +343 -0
- package/fleetops/tools/cmd/help.mjs +243 -0
- package/fleetops/tools/cmd/incidents.mjs +216 -0
- package/fleetops/tools/cmd/rollout.mjs +122 -0
- package/fleetops/tools/cmd/server.mjs +122 -0
- package/fleetops/tools/cmd/serving.mjs +95 -0
- package/fleetops/tools/cmd/shadow.mjs +204 -0
- package/fleetops/tools/cmd/training.mjs +79 -0
- package/fleetops/tools/collect.sh +6 -1
- package/fleetops/tools/fleetops.mjs +18 -1308
- package/fleetops/tools/loop-demo.mjs +1 -1
- package/fleetops/tools/workload-profile.mjs +0 -1
- package/fleetscope/README.md +5 -1
- package/fleetscope/build.mjs +1 -0
- package/fleetscope/dist/index.html +295 -26
- package/fleetscope/docs/AGENTIC.md +89 -0
- package/fleetscope/docs/PLANNING.md +4 -2
- package/fleetscope/docs/VALIDATION-AGENTIC.md +37 -0
- package/fleetscope/package.json +4 -3
- package/fleetscope/src/agentic.js +288 -0
- package/fleetscope/src/ask.js +0 -1
- package/fleetscope/src/cluster-ui.js +1 -0
- package/fleetscope/src/engine.js +10 -11
- package/fleetscope/src/index.src.html +9 -5
- package/fleetscope/src/inference-ui.js +1 -0
- package/fleetscope/src/ingest.js +89 -3
- package/fleetscope/src/optimize.js +11 -5
- package/fleetscope/src/plan.js +1 -1
- package/fleetscope/src/training-ui.js +1 -0
- package/fleetscope/tools/agentic.mjs +148 -0
- package/fleetscope/tools/tracelab-data.mjs +27 -0
- package/gpu-health/README.md +13 -2
- package/gpu-health/docs/CONFIG.md +29 -1
- package/gpu-health/package.json +7 -4
- package/gpu-health/src/actions.mjs +16 -3
- package/gpu-health/src/analyze.mjs +3 -0
- package/gpu-health/src/config.mjs +3 -0
- package/gpu-health/src/executors.mjs +9 -4
- package/gpu-health/src/health.mjs +1 -1
- package/gpu-health/src/ingest.mjs +27 -3
- package/gpu-health/src/platforms.mjs +109 -0
- package/gpu-health/src/vendors.mjs +12 -5
- package/gpu-health/tools/gpu-health.mjs +6 -4
- package/gpu-ledger/README.md +3 -1
- package/gpu-ledger/package.json +12 -4
- package/gpu-ledger/src/adapters.mjs +3 -2
- package/gpu-ledger/src/cloud.mjs +104 -0
- package/gpu-ledger/src/core.mjs +12 -10
- package/gpu-ledger/tools/ledger.mjs +8 -2
- package/harness-ledger/README.md +152 -0
- package/harness-ledger/docs/FORMATS.md +114 -0
- package/harness-ledger/docs/METHOD.md +133 -0
- package/harness-ledger/docs/VALIDATION-ECONOMICS.md +59 -0
- package/harness-ledger/docs/VALIDATION-SWEBENCH.md +26 -0
- package/harness-ledger/docs/VALIDATION-TRACELAB.md +56 -0
- package/harness-ledger/package.json +19 -0
- package/harness-ledger/src/demo.mjs +115 -0
- package/harness-ledger/src/economics.mjs +184 -0
- package/harness-ledger/src/gpu.mjs +80 -0
- package/harness-ledger/src/html.mjs +63 -0
- package/harness-ledger/src/importers.mjs +247 -0
- package/harness-ledger/src/ledger.mjs +128 -0
- package/harness-ledger/src/opencost.mjs +55 -0
- package/harness-ledger/src/outcomes.mjs +67 -0
- package/harness-ledger/src/prices.mjs +75 -0
- package/harness-ledger/src/record.mjs +52 -0
- package/harness-ledger/src/waste.mjs +136 -0
- package/harness-ledger/tools/harness-ledger.mjs +199 -0
- package/harness-ledger/tools/validate-economics.mjs +69 -0
- package/harness-ledger/tools/validate-swebench.mjs +57 -0
- package/harness-ledger/tools/validate-tracelab.mjs +74 -0
- package/hybrid-tracing/package.json +4 -3
- package/hybrid-tracing/tools/fix-skew.mjs +1 -1
- package/inference-sizer/README.md +5 -1
- package/inference-sizer/build.mjs +1 -0
- package/inference-sizer/dist/index.html +205 -22
- package/inference-sizer/docs/ACCELERATORS.md +62 -0
- package/inference-sizer/docs/VALIDATION-INFERENCEX.md +37 -0
- package/inference-sizer/package.json +4 -3
- package/inference-sizer/src/accelerators.js +172 -0
- package/inference-sizer/src/catalog.js +7 -20
- package/inference-sizer/src/fit-ui.js +1 -1
- package/inference-sizer/src/index.src.html +3 -0
- package/inference-sizer/src/model.js +22 -1
- package/inference-sizer/tools/validate-agentx.mjs +110 -0
- package/inference-sizer/tools/validate-inferencex.mjs +132 -0
- package/mcp/README.md +6 -1
- package/mcp/server.mjs +34 -0
- package/package.json +9 -4
- package/schemas/README.md +3 -0
- package/schemas/aiinfra.report.schema.json +474 -0
- package/schemas/commands.mjs +14 -0
- package/schemas/fleetops.shadow.canary.schema.json +96 -0
- package/schemas/fleetops.shadow.compare.schema.json +266 -0
- package/schemas/fleetops.shadow.prom.schema.json +354 -0
- package/schemas/harness-ledger.economics.schema.json +567 -0
- package/schemas/sizer.list.schema.json +15 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hybrid-tracing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "One trace view across on-prem and neocloud: shared clock reference, collector tiers, and clock-skew correction for OTLP traces.",
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test": "node --test tests/*.test.mjs",
|
|
10
10
|
"demo": "node tools/fix-skew.mjs --demo",
|
|
11
|
-
"start": "node tools/skew-corrector.mjs"
|
|
11
|
+
"start": "node tools/skew-corrector.mjs",
|
|
12
|
+
"test:coverage": "node --test --experimental-test-coverage --test-coverage-exclude='tests/**' --test-coverage-exclude='../**' --test-coverage-lines=97 --test-coverage-branches=80 tests/*.test.mjs"
|
|
12
13
|
},
|
|
13
14
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
15
|
+
"node": ">=22"
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// Exit code: 0 corrected (or nothing to do), 1 causality violations remain, 2 usage error.
|
|
10
10
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
11
11
|
import { readRequests, fix } from '../src/skew.mjs';
|
|
12
|
-
import { generate
|
|
12
|
+
import { generate } from '../src/synth.mjs';
|
|
13
13
|
|
|
14
14
|
const args = process.argv.slice(2), opt = {}, files = [];
|
|
15
15
|
for (let i = 0; i < args.length; i++) {
|
|
@@ -31,11 +31,13 @@ node tools/size.mjs --model llama33-70b --gpu H200 --set conc=800 --calibration
|
|
|
31
31
|
|
|
32
32
|
**What fits on my GPUs.** The page has a second view (the button at the top right, or `dist/index.html#fit`). Pick a GPU and a node count, the median prompt and output length, the TTFT and TPOT targets and, optionally, a request rate. It lists every catalog model with the requests per second it carries in production (15% headroom, an N+1 spare node, 10% inside the targets) and flat out, output tokens per second, dollars per million output tokens and the layout. Models too big for the hardware say why. Click one for its concurrency, the longest prompt that still meets the target, and the `fleetops serving deploy` command for it. Rank by size (a stand-in for capability, not a quality score) or by throughput. The same engine is `fleetops serving fit` and `fleetops serving capacity` on the command line.
|
|
33
33
|
|
|
34
|
+
**How accurate is it?** Against 198 measured InferenceX runs of DeepSeek-R1 (B200, B300, H200, MI300X, MI325X, MI355X), the defaults are off by a median 46–47% and optimistic; calibrated per GPU on one workload shape, 17–18% on the others (6–16% on NVIDIA, 11–38% on AMD). Details, by GPU, framework and concurrency: [docs/VALIDATION-INFERENCEX.md](docs/VALIDATION-INFERENCEX.md); rerun with `node tools/validate-inferencex.mjs`.
|
|
35
|
+
|
|
34
36
|
Develop: `npm test`, then `npm run build` to rebuild `dist/index.html` from `src/`.
|
|
35
37
|
|
|
36
38
|
## What it covers
|
|
37
39
|
|
|
38
|
-
- **GPUs:** B200, B300, GB200 NVL72, H200, H100, A100, L40S and
|
|
40
|
+
- **GPUs:** B200, B300, GB200 NVL72, GB300 NVL72, H200, H100, A100, L40S, MI300X, MI325X and MI355X built in, from the shared [accelerator registry](docs/ACCELERATORS.md). The model reads everything from a spec sheet: HBM size and bandwidth; BF16, FP8 and FP4 dense TFLOPS; link speeds; GPUs per scale-up domain (8 for HGX, 72 for NVL72); power; price.
|
|
39
41
|
- **Models:** 12 built in, dense and MoE, including GQA, MLA (DeepSeek, Kimi) and sliding-window attention (gpt-oss, Llama 4). From 8B to the 1T-parameter Kimi K2.
|
|
40
42
|
- **Precision:** BF16, FP8 or FP4 weights; BF16 or FP8 KV cache. A GPU without FP4 or FP8 tensor cores keeps the memory saving but computes at the next precision up.
|
|
41
43
|
- **Context window:** it caps the longest request, and one full-length request must fit an instance. With *reserve the full context per session*, the window sets KV memory for every session.
|
|
@@ -105,4 +107,6 @@ In FleetScope, **Load graph JSON** runs it. The same recommendation replays at 9
|
|
|
105
107
|
| `src/ui.js`, `src/fit-ui.js`, `src/index.src.html` | The page: the sizing view and the "What fits" view |
|
|
106
108
|
| `specs/example.json` | Example spec sheet (one GPU, one model) |
|
|
107
109
|
| `tools/size.mjs` | CLI |
|
|
110
|
+
| `tools/validate-inferencex.mjs` | The sizer against InferenceX's measured runs ([docs/VALIDATION-INFERENCEX.md](docs/VALIDATION-INFERENCEX.md)) |
|
|
111
|
+
| `tools/validate-agentx.mjs` | The sizer against AgentX agentic results (long contexts, high cache hits), with per-GPU calibration; run on results downloaded from InferenceX (`--results DIR`), adding missing models with `--hf-config` |
|
|
108
112
|
| `tests/` | Catalog, model, "What fits" (in Node and in headless Chrome when there is one) and cross-tool FleetScope tests |
|
|
@@ -8,6 +8,7 @@ const here = dirname(fileURLToPath(import.meta.url));
|
|
|
8
8
|
const read = p => readFileSync(join(here, p), 'utf8');
|
|
9
9
|
|
|
10
10
|
const inlined = {
|
|
11
|
+
'/*ACCELERATORS*/': read('src/accelerators.js'),
|
|
11
12
|
'/*CATALOG*/': read('src/catalog.js'),
|
|
12
13
|
'/*MODEL*/': read('src/model.js'),
|
|
13
14
|
'/*FLEETSCOPE*/': read('src/fleetscope.js'),
|
|
@@ -226,6 +226,181 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
226
226
|
</div>
|
|
227
227
|
<div class="overlay" id="dialog" hidden></div>
|
|
228
228
|
<script>
|
|
229
|
+
/* The accelerator registry: every chip the tools know, in one place, and what each vendor's stack needs.
|
|
230
|
+
The Inference Sizer's catalog, FleetScope's GPU table, fleetops' power model and serving manifests all read it, so a
|
|
231
|
+
new chip or vendor is one edit here (plus a gpu-health vendor profile if its exporter is new).
|
|
232
|
+
|
|
233
|
+
ACCELERATORS chips with full spec-sheet figures, usable for sizing and simulation
|
|
234
|
+
id, label, vendor (display), vendorKey (key into VENDORS and gpu-health's vendor profiles), kind (gpu | tpu | …)
|
|
235
|
+
hbmGB, hbmTBs, tfBf16, tfFp8, tfFp4 per chip, dense (sparsity figures halved; rack or system totals divided)
|
|
236
|
+
scaleUpGBs chip-to-chip link, per direction (NVLink, Infinity Fabric, ICI); domain: chips per scale-up domain
|
|
237
|
+
nicGbps scale-out network per chip; nodeKW: max power per domain where the vendor publishes it
|
|
238
|
+
tdpW board power on the spec sheet (TBP/TDP; none for cloud-only chips that don't publish it); match: regex
|
|
239
|
+
for the SKU names telemetry, Kubernetes labels and bills report
|
|
240
|
+
gkeAccelerator GKE's cloud.google.com/gke-tpu-accelerator value, for TPU node selectors
|
|
241
|
+
price, onprem placeholder $/chip-hour (rent, and amortized on-prem cost for FleetScope), not quotes
|
|
242
|
+
short FleetScope's key and short label, where it differs from id; source: spec sheet URL
|
|
243
|
+
OTHER_SKUS chips seen in telemetry but not sized (only power and vendor): id, vendorKey, kind, tdpW, match
|
|
244
|
+
VENDORS per vendor: Kubernetes resource and labels, telemetry tools, collective library, serving images
|
|
245
|
+
INSTANCES cloud instance types → { cloud, chip (registry id or SKU), gpus }, for bills and node labels
|
|
246
|
+
|
|
247
|
+
Order matters for match: more specific names first (GB200 before B200, H100 PCIe before H100). */
|
|
248
|
+
(function (root) {
|
|
249
|
+
'use strict';
|
|
250
|
+
|
|
251
|
+
const VENDORS = {
|
|
252
|
+
nvidia: {
|
|
253
|
+
name: 'NVIDIA', kind: 'gpu', k8sResource: 'nvidia.com/gpu', productLabels: ['nvidia.com/gpu.product', 'cloud.google.com/gke-accelerator'],
|
|
254
|
+
smi: 'nvidia-smi', exporter: 'dcgm-exporter', collectives: 'NCCL', kvBufferDevice: 'cuda',
|
|
255
|
+
images: { vllm: 'vllm/vllm-openai', llmdVllm: 'docker.io/vllm/vllm-openai:v0.31.0' },
|
|
256
|
+
},
|
|
257
|
+
amd: {
|
|
258
|
+
name: 'AMD', kind: 'gpu', k8sResource: 'amd.com/gpu', productLabels: ['amd.com/gpu.product-name'],
|
|
259
|
+
smi: 'amd-smi', exporter: 'device-metrics-exporter', collectives: 'RCCL',
|
|
260
|
+
// NIXL's UCX path on ROCm stages the KV cache through host memory in llm-d's P/D guide
|
|
261
|
+
kvBufferDevice: 'cpu',
|
|
262
|
+
images: { vllm: 'rocm/vllm', llmdVllm: 'docker.io/vllm/vllm-openai-rocm:v0.31.0' },
|
|
263
|
+
},
|
|
264
|
+
// Cloud TPU on GKE: chips requested as google.com/tpu, the slice chosen by accelerator and topology node labels.
|
|
265
|
+
// vLLM on TPU: the vllm/vllm-tpu image (GKE's Trillium tutorial). No llm-d P/D image validated for TPU here.
|
|
266
|
+
tpu: {
|
|
267
|
+
name: 'Google Cloud TPU', kind: 'tpu', k8sResource: 'google.com/tpu', productLabels: ['cloud.google.com/gke-tpu-accelerator'],
|
|
268
|
+
topologyLabel: 'cloud.google.com/gke-tpu-topology', smi: 'tpu-info', exporter: 'Cloud Monitoring (accelerator metrics) or libtpu', collectives: 'XLA collectives over ICI',
|
|
269
|
+
images: { vllm: 'vllm/vllm-tpu' },
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
const A = (o) => Object.assign({ kind: 'gpu', tfFp4: 0 }, o);
|
|
274
|
+
const ACCELERATORS = [
|
|
275
|
+
A({ id: 'GB300-NVL72', short: 'GB300', label: 'NVIDIA GB300 NVL72 (72-GPU rack)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 278, hbmTBs: 8, tfBf16: 2500, tfFp8: 5000, tfFp4: 15000, scaleUpGBs: 900, domain: 72, nicGbps: 800, tdpW: 1400, price: 7.5, onprem: 4.4, match: 'GB300',
|
|
276
|
+
// rack figures ÷ 72: 20 TB HBM, 576 TB/s, 360/720/1080 PFLOPS BF16 (sparse)/FP8 (sparse)/FP4 (dense); board power from InferenceX's chip page
|
|
277
|
+
source: 'https://www.nvidia.com/en-us/data-center/gb300-nvl72/' }),
|
|
278
|
+
A({ id: 'GB200-NVL72', short: 'GB200', label: 'NVIDIA GB200 NVL72 (72-GPU rack)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 186, hbmTBs: 8, tfBf16: 2500, tfFp8: 5000, tfFp4: 10000, scaleUpGBs: 900, domain: 72, nicGbps: 400, nodeKW: 120, tdpW: 1200, price: 6.0, onprem: 3.6, match: 'GB200',
|
|
279
|
+
source: 'https://www.nvidia.com/en-us/data-center/gb200-nvl72/' }),
|
|
280
|
+
A({ id: 'B300', label: 'NVIDIA B300 (HGX, 8-GPU)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 262, hbmTBs: 8, tfBf16: 2250, tfFp8: 4500, tfFp4: 13500, scaleUpGBs: 900, domain: 8, nicGbps: 800, nodeKW: 14.5, tdpW: 1100, price: 7.0, onprem: 4.0, match: 'B300',
|
|
281
|
+
source: 'https://www.nvidia.com/en-us/data-center/hgx/' }),
|
|
282
|
+
A({ id: 'B200', label: 'NVIDIA B200 (HGX, 8-GPU)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 180, hbmTBs: 8, tfBf16: 2250, tfFp8: 4500, tfFp4: 9000, scaleUpGBs: 900, domain: 8, nicGbps: 400, nodeKW: 14.3, tdpW: 1000, price: 5.5, onprem: 3.2, match: 'B200',
|
|
283
|
+
source: 'https://www.nvidia.com/en-us/data-center/dgx-b200/' }),
|
|
284
|
+
A({ id: 'H200', label: 'NVIDIA H200 SXM (8-GPU)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 141, hbmTBs: 4.8, tfBf16: 989, tfFp8: 1979, scaleUpGBs: 450, domain: 8, nicGbps: 400, nodeKW: 10.2, tdpW: 700, price: 3.5, onprem: 2.0, match: 'H200',
|
|
285
|
+
source: 'https://www.nvidia.com/en-us/data-center/h200/' }),
|
|
286
|
+
A({ id: 'H100', label: 'NVIDIA H100 SXM (8-GPU)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 80, hbmTBs: 3.35, tfBf16: 989, tfFp8: 1979, scaleUpGBs: 450, domain: 8, nicGbps: 400, nodeKW: 10.2, tdpW: 700, price: 2.4, onprem: 1.4, match: 'H100(?!.*PCIe)|H800',
|
|
287
|
+
source: 'https://www.nvidia.com/en-us/data-center/h100/' }),
|
|
288
|
+
A({ id: 'A100', label: 'NVIDIA A100 80GB SXM (8-GPU)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 80, hbmTBs: 2.0, tfBf16: 312, tfFp8: 0, scaleUpGBs: 300, domain: 8, nicGbps: 200, nodeKW: 6.5, tdpW: 400, price: 1.6, onprem: 0.9, match: 'A100(?!.*PCIe)|A800',
|
|
289
|
+
source: 'https://www.nvidia.com/en-us/data-center/a100/' }),
|
|
290
|
+
A({ id: 'L40S', label: 'NVIDIA L40S (PCIe, 8 per server)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 48, hbmTBs: 0.864, tfBf16: 362, tfFp8: 733, scaleUpGBs: 32, domain: 8, nicGbps: 200, nodeKW: 5, tdpW: 350, price: 1.1, onprem: 0.7, match: 'L40S',
|
|
291
|
+
source: 'https://www.nvidia.com/en-us/data-center/l40s/' }),
|
|
292
|
+
A({ id: 'MI355X', label: 'AMD Instinct MI355X (8-GPU)', vendor: 'AMD', vendorKey: 'amd', hbmGB: 288, hbmTBs: 8, tfBf16: 2516.6, tfFp8: 5033.2, tfFp4: 10066.3, scaleUpGBs: 504, domain: 8, nicGbps: 400, tdpW: 1400, price: 4.5, onprem: 2.6, match: 'MI355',
|
|
293
|
+
// Infinity Fabric: 7 links × 144 GB/s (bidirectional) = 504 GB/s per direction
|
|
294
|
+
source: 'https://www.amd.com/en/products/accelerators/instinct/mi350/mi355x.html' }),
|
|
295
|
+
A({ id: 'MI325X', label: 'AMD Instinct MI325X (8-GPU)', vendor: 'AMD', vendorKey: 'amd', hbmGB: 256, hbmTBs: 6, tfBf16: 1307.4, tfFp8: 2614.9, scaleUpGBs: 448, domain: 8, nicGbps: 400, tdpW: 1000, price: 2.9, onprem: 1.7, match: 'MI325',
|
|
296
|
+
// platform peer-to-peer I/O 896 GB/s bidirectional = 448 GB/s per direction
|
|
297
|
+
source: 'https://www.amd.com/en/products/accelerators/instinct/mi300/mi325x.html' }),
|
|
298
|
+
// Cloud TPU: per chip, from cloud.google.com/tpu/docs (v6e, tpu7x pages). ICI figures are bidirectional there, halved
|
|
299
|
+
// here. domain = chips per TPU VM host; ICI across hosts in a slice is modelled as the data-center network, so
|
|
300
|
+
// tensor parallelism beyond one host is costed pessimistically. Prices: on-demand $/chip-hour, us-east1/us-central1.
|
|
301
|
+
A({ id: 'TPU7x', label: 'Google TPU7x (Ironwood), 4 per host', vendor: 'Google', vendorKey: 'tpu', kind: 'tpu', hbmGB: 192, hbmTBs: 7.37, tfBf16: 2307, tfFp8: 4614, scaleUpGBs: 600, domain: 4, nicGbps: 100, price: 12.0, gkeAccelerator: 'tpu7x', match: 'tpu7x|ironwood|TpuV7',
|
|
302
|
+
source: 'https://docs.cloud.google.com/tpu/docs/tpu7x' }),
|
|
303
|
+
A({ id: 'TPU-v6e', short: 'v6e', label: 'Google TPU v6e (Trillium), 8 per host', vendor: 'Google', vendorKey: 'tpu', kind: 'tpu', hbmGB: 32, hbmTBs: 1.64, tfBf16: 918, tfFp8: 918, scaleUpGBs: 400, domain: 8, nicGbps: 100, price: 2.7, gkeAccelerator: 'tpu-v6e-slice', match: 'v6e|trillium',
|
|
304
|
+
source: 'https://docs.cloud.google.com/tpu/docs/v6e' }),
|
|
305
|
+
A({ id: 'TPU-v5p', short: 'v5p', label: 'Google TPU v5p, 4 per host', vendor: 'Google', vendorKey: 'tpu', kind: 'tpu', hbmGB: 102, hbmTBs: 2.765, tfBf16: 459, tfFp8: 459, scaleUpGBs: 600, domain: 4, nicGbps: 50, price: 4.2, gkeAccelerator: 'tpu-v5p-slice', match: 'v5p',
|
|
306
|
+
// 95 GiB HBM per chip
|
|
307
|
+
source: 'https://docs.cloud.google.com/tpu/docs/tpu7x' }),
|
|
308
|
+
A({ id: 'MI300X', label: 'AMD Instinct MI300X (8-GPU)', vendor: 'AMD', vendorKey: 'amd', hbmGB: 192, hbmTBs: 5.3, tfBf16: 1307, tfFp8: 2615, scaleUpGBs: 448, domain: 8, nicGbps: 400, nodeKW: 10, tdpW: 750, price: 2.6, onprem: 1.5, match: 'MI300X',
|
|
309
|
+
source: 'https://www.amd.com/en/products/accelerators/instinct/mi300/mi300x.html' }),
|
|
310
|
+
];
|
|
311
|
+
|
|
312
|
+
const OTHER_SKUS = [
|
|
313
|
+
{ id: 'H100-PCIe', vendorKey: 'nvidia', kind: 'gpu', tdpW: 350, match: 'H100.*PCIe' },
|
|
314
|
+
{ id: 'H20', vendorKey: 'nvidia', kind: 'gpu', tdpW: 400, match: 'H20\\b' },
|
|
315
|
+
{ id: 'A100-PCIe', vendorKey: 'nvidia', kind: 'gpu', tdpW: 300, match: 'A100.*PCIe' },
|
|
316
|
+
{ id: 'A100-40GB', vendorKey: 'nvidia', kind: 'gpu', tdpW: 400, match: 'A100.*40\\s?GB' },
|
|
317
|
+
{ id: 'A10G', vendorKey: 'nvidia', kind: 'gpu', tdpW: 300, match: 'A10G' },
|
|
318
|
+
{ id: 'L4', vendorKey: 'nvidia', kind: 'gpu', tdpW: 72, match: 'L4\\b' },
|
|
319
|
+
{ id: 'A10', vendorKey: 'nvidia', kind: 'gpu', tdpW: 150, match: 'A10\\b' },
|
|
320
|
+
{ id: 'T4', vendorKey: 'nvidia', kind: 'gpu', tdpW: 70, match: 'T4\\b' },
|
|
321
|
+
{ id: 'V100', vendorKey: 'nvidia', kind: 'gpu', tdpW: 300, match: 'V100' },
|
|
322
|
+
{ id: 'MI350X', vendorKey: 'amd', kind: 'gpu', tdpW: 1000, match: 'MI350' },
|
|
323
|
+
{ id: 'MI250', vendorKey: 'amd', kind: 'gpu', tdpW: 560, match: 'MI250' },
|
|
324
|
+
{ id: 'TPU-v5e', vendorKey: 'tpu', kind: 'tpu', match: 'v5e|v5-?lite' },
|
|
325
|
+
];
|
|
326
|
+
|
|
327
|
+
// ---------- cloud instance types ----------
|
|
328
|
+
// AWS: docs.aws.amazon.com/AWSEC2/latest/UserGuide/accelerated-computing-instances.html and aws.amazon.com/ec2/instance-types/p6/
|
|
329
|
+
const INSTANCES = {};
|
|
330
|
+
const add = (cloud, chip, list) => { for (const [type, gpus] of list) INSTANCES[type] = { cloud, chip, gpus }; };
|
|
331
|
+
const sizes = (fam, one, more) => one.map(s => [`${fam}.${s}`, 1]).concat(more.map(([s, n]) => [`${fam}.${s}`, n]));
|
|
332
|
+
add('aws', 'A100-40GB', [['p4d.24xlarge', 8]]);
|
|
333
|
+
add('aws', 'A100', [['p4de.24xlarge', 8]]);
|
|
334
|
+
add('aws', 'H100', [['p5.4xlarge', 1], ['p5.48xlarge', 8]]);
|
|
335
|
+
add('aws', 'H200', [['p5e.48xlarge', 8], ['p5en.48xlarge', 8]]);
|
|
336
|
+
add('aws', 'B200', [['p6-b200.48xlarge', 8]]);
|
|
337
|
+
add('aws', 'B300', [['p6-b300.48xlarge', 8]]);
|
|
338
|
+
add('aws', 'GB200-NVL72', [['p6e-gb200.36xlarge', 4]]); // sold as UltraServers of 36 or 72 GPUs (u-p6e-gb200x36, x72)
|
|
339
|
+
add('aws', 'L40S', sizes('g6e', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['24xlarge', 4], ['48xlarge', 8]]));
|
|
340
|
+
add('aws', 'L4', sizes('g6', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['24xlarge', 4], ['48xlarge', 8]]));
|
|
341
|
+
add('aws', 'A10G', sizes('g5', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['24xlarge', 4], ['48xlarge', 8]]));
|
|
342
|
+
add('aws', 'T4', sizes('g4dn', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['metal', 8]]));
|
|
343
|
+
// GCP: docs.cloud.google.com/compute/docs/gpus and /compute/docs/tpus/tpu-machines; GKE TPU machine types
|
|
344
|
+
const gpuN = (fam, chip, ns) => add('gcp', chip, ns.map(n => [`${fam}-${n}g`, n]));
|
|
345
|
+
gpuN('a2-highgpu', 'A100-40GB', [1, 2, 4, 8]); add('gcp', 'A100-40GB', [['a2-megagpu-16g', 16]]);
|
|
346
|
+
gpuN('a2-ultragpu', 'A100', [1, 2, 4, 8]);
|
|
347
|
+
gpuN('a3-highgpu', 'H100', [1, 2, 4, 8]); add('gcp', 'H100', [['a3-megagpu-8g', 8], ['a3-edgegpu-8g', 8]]);
|
|
348
|
+
add('gcp', 'H200', [['a3-ultragpu-8g', 8]]);
|
|
349
|
+
add('gcp', 'B200', [['a4-highgpu-8g', 8]]);
|
|
350
|
+
add('gcp', 'GB200-NVL72', [['a4x-highgpu-4g', 4]]);
|
|
351
|
+
add('gcp', 'L4', [4, 8, 12, 16, 32].map(n => [`g2-standard-${n}`, 1]).concat([['g2-standard-24', 2], ['g2-standard-48', 4], ['g2-standard-96', 8]]));
|
|
352
|
+
add('gcp', 'TPU-v6e', [['ct6e-standard-1t', 1], ['ct6e-standard-4t', 4], ['ct6e-standard-8t', 8]]);
|
|
353
|
+
add('gcp', 'TPU-v5p', [['ct5p-hightpu-4t', 4]]);
|
|
354
|
+
add('gcp', 'TPU7x', [['tpu7x-standard-4t', 4]]);
|
|
355
|
+
add('gcp', 'TPU-v5e', [['ct5lp-hightpu-1t', 1], ['ct5lp-hightpu-4t', 4], ['ct5lp-hightpu-8t', 8]]);
|
|
356
|
+
const instanceOf = type => INSTANCES[String(type || '').toLowerCase()] || null;
|
|
357
|
+
// TPU slice topology for a chip count: 2D (v5e, v6e) or 3D torus (v4, v5p, 7x), as GKE's node selector wants it
|
|
358
|
+
const TOPO2 = { 1: '1x1', 4: '2x2', 8: '2x4', 16: '4x4', 32: '4x8', 64: '8x8', 128: '8x16', 256: '16x16' };
|
|
359
|
+
const TOPO3 = { 4: '2x2x1', 8: '2x2x2', 16: '2x2x4', 32: '2x4x4', 64: '4x4x4' };
|
|
360
|
+
function tpuTopology(chip, chips) { const a = byId(chip) || match(chip); if (!a) return null; return (/v6e|v5e/i.test(a.id) ? TOPO2 : TOPO3)[chips] || null; }
|
|
361
|
+
|
|
362
|
+
// telemetry SKU string ("NVIDIA H100 80GB HBM3", "AMD Instinct MI300X", …) → registry entry, most specific first
|
|
363
|
+
const ORDER = (() => {
|
|
364
|
+
const all = ACCELERATORS.concat(OTHER_SKUS).map(x => ({ x, re: new RegExp(x.match, 'i') }));
|
|
365
|
+
// a PCIe or 40 GB variant before its sibling; otherwise registry order (which lists GB* before B*)
|
|
366
|
+
const first = a => /PCIe|40GB/.test(a.x.id);
|
|
367
|
+
return all.filter(first).concat(all.filter(a => !first(a)));
|
|
368
|
+
})();
|
|
369
|
+
function match(sku) {
|
|
370
|
+
const s = String(sku || '');
|
|
371
|
+
if (!s) return null;
|
|
372
|
+
const exact = ACCELERATORS.concat(OTHER_SKUS).find(x => x.id.toLowerCase() === s.toLowerCase() || (x.short && x.short.toLowerCase() === s.toLowerCase()));
|
|
373
|
+
if (exact) return exact;
|
|
374
|
+
const hit = ORDER.find(a => a.re.test(s));
|
|
375
|
+
return hit ? hit.x : null;
|
|
376
|
+
}
|
|
377
|
+
const byId = id => ACCELERATORS.find(x => x.id === id || x.short === id) || null;
|
|
378
|
+
const tdpOf = sku => { const m = match(sku); return m ? m.tdpW : null; };
|
|
379
|
+
// vendor key for an entry, a SKU string or a display vendor ("AMD"); null when unknown
|
|
380
|
+
function vendorKeyOf(x) {
|
|
381
|
+
if (!x) return null;
|
|
382
|
+
if (typeof x === 'object') return x.vendorKey || vendorKeyOf(x.vendor) || vendorKeyOf(x.id);
|
|
383
|
+
const s = String(x).toLowerCase();
|
|
384
|
+
if (VENDORS[s]) return s;
|
|
385
|
+
const v = Object.keys(VENDORS).find(k => VENDORS[k].name.toLowerCase() === s);
|
|
386
|
+
if (v) return v;
|
|
387
|
+
const m = match(x);
|
|
388
|
+
return m ? m.vendorKey : null;
|
|
389
|
+
}
|
|
390
|
+
// the vendor's deployment adapter; throws with the known vendors when there is none
|
|
391
|
+
function vendor(x) {
|
|
392
|
+
const k = vendorKeyOf(x);
|
|
393
|
+
if (!k || !VENDORS[k]) throw new Error(`no vendor adapter for ${typeof x === 'object' ? (x.id || x.vendor) : x}; known: ${Object.keys(VENDORS).join(', ')}`);
|
|
394
|
+
return Object.assign({ key: k }, VENDORS[k]);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
const api = { VENDORS, ACCELERATORS, OTHER_SKUS, INSTANCES, instanceOf, tpuTopology, match, byId, tdpOf, vendorKeyOf, vendor };
|
|
398
|
+
if (typeof module !== 'undefined' && module.exports) module.exports = api;
|
|
399
|
+
else root.AIInfraAccelerators = api;
|
|
400
|
+
})(typeof globalThis !== 'undefined' ? globalThis : this);
|
|
401
|
+
|
|
402
|
+
</script>
|
|
403
|
+
<script>
|
|
229
404
|
/* Inference Sizer catalog: GPUs and models, spec-sheet import/export, and Hugging Face config.json parsing.
|
|
230
405
|
Plain data plus validation, so the browser page, the CLI and FleetScope can share it. */
|
|
231
406
|
(function (root) {
|
|
@@ -273,26 +448,13 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
273
448
|
];
|
|
274
449
|
|
|
275
450
|
// ---------- built-in GPUs ----------
|
|
276
|
-
//
|
|
277
|
-
//
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
{ id: 'GB200-NVL72', label: 'NVIDIA GB200 NVL72 (72-GPU rack)', vendor: 'NVIDIA', hbmGB: 186, hbmTBs: 8, tfBf16: 2500, tfFp8: 5000, tfFp4: 10000, scaleUpGBs: 900, domain: 72, nicGbps: 400, nodeKW: 120, price: 6.0,
|
|
284
|
-
source: 'https://www.nvidia.com/en-us/data-center/gb200-nvl72/' },
|
|
285
|
-
{ id: 'H200', label: 'NVIDIA H200 SXM (8-GPU)', vendor: 'NVIDIA', hbmGB: 141, hbmTBs: 4.8, tfBf16: 989, tfFp8: 1979, tfFp4: 0, scaleUpGBs: 450, domain: 8, nicGbps: 400, nodeKW: 10.2, price: 3.5,
|
|
286
|
-
source: 'https://www.nvidia.com/en-us/data-center/h200/' },
|
|
287
|
-
{ id: 'H100', label: 'NVIDIA H100 SXM (8-GPU)', vendor: 'NVIDIA', hbmGB: 80, hbmTBs: 3.35, tfBf16: 989, tfFp8: 1979, tfFp4: 0, scaleUpGBs: 450, domain: 8, nicGbps: 400, nodeKW: 10.2, price: 2.4,
|
|
288
|
-
source: 'https://www.nvidia.com/en-us/data-center/h100/' },
|
|
289
|
-
{ id: 'A100', label: 'NVIDIA A100 80GB SXM (8-GPU)', vendor: 'NVIDIA', hbmGB: 80, hbmTBs: 2.0, tfBf16: 312, tfFp8: 0, tfFp4: 0, scaleUpGBs: 300, domain: 8, nicGbps: 200, nodeKW: 6.5, price: 1.6,
|
|
290
|
-
source: 'https://www.nvidia.com/en-us/data-center/a100/' },
|
|
291
|
-
{ id: 'L40S', label: 'NVIDIA L40S (PCIe, 8 per server)', vendor: 'NVIDIA', hbmGB: 48, hbmTBs: 0.864, tfBf16: 362, tfFp8: 733, tfFp4: 0, scaleUpGBs: 32, domain: 8, nicGbps: 200, nodeKW: 5, price: 1.1,
|
|
292
|
-
source: 'https://www.nvidia.com/en-us/data-center/l40s/' },
|
|
293
|
-
{ id: 'MI300X', label: 'AMD Instinct MI300X (8-GPU)', vendor: 'AMD', hbmGB: 192, hbmTBs: 5.3, tfBf16: 1307, tfFp8: 2615, tfFp4: 0, scaleUpGBs: 448, domain: 8, nicGbps: 400, nodeKW: 10, price: 2.6,
|
|
294
|
-
source: 'https://www.amd.com/en/products/accelerators/instinct/mi300/mi300x.html' },
|
|
295
|
-
];
|
|
451
|
+
// From the shared accelerator registry (accelerators.js): per-GPU dense figures, HGX/DGX system totals divided by 8
|
|
452
|
+
// (or 72 for NVL72), "with sparsity" figures halved. Prices are placeholder on-demand rents, not quotes.
|
|
453
|
+
const REG = (typeof module !== 'undefined' && module.exports) ? require('./accelerators.js') : root.AIInfraAccelerators;
|
|
454
|
+
const ORDER = ['B200', 'B300', 'GB200-NVL72', 'GB300-NVL72', 'H200', 'H100', 'A100', 'L40S', 'MI300X', 'MI325X', 'MI355X', 'TPU7x', 'TPU-v6e', 'TPU-v5p'];
|
|
455
|
+
const KEEP = ['id', 'kind', 'vendorKey', 'gkeAccelerator', 'tdpW'].concat(GPU_FIELDS.map(f => f.k)); // tdpW: board power, for tokens per MW
|
|
456
|
+
const GPUS = REG.ACCELERATORS.slice().sort((a, b) => (ORDER.indexOf(a.id) + 1 || 99) - (ORDER.indexOf(b.id) + 1 || 99))
|
|
457
|
+
.map(g => Object.fromEntries(KEEP.filter(k => g[k] !== undefined).map(k => [k, g[k]])));
|
|
296
458
|
|
|
297
459
|
// ---------- built-in models ----------
|
|
298
460
|
const MLA = { attn: 'mla', kvHeads: 1, headDim: 128, mlaLatent: 512, mlaRope: 64, mlaNope: 128, mlaV: 128 };
|
|
@@ -762,6 +924,27 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
762
924
|
return { rows, best };
|
|
763
925
|
}
|
|
764
926
|
|
|
927
|
+
// The operating point of one fixed layout at a fixed concurrency: what an engine running config c with B sequences
|
|
928
|
+
// in flight delivers, by the same physics sizeAgg uses (each step carries the decode batch plus prefill chunks; the
|
|
929
|
+
// prefill share fp slows the compute part). For checking the model against measured runs (e.g. InferenceX):
|
|
930
|
+
// returns TPOT, TTFT, and output tokens/s per GPU.
|
|
931
|
+
function operatingPoint(s, md, c, B) {
|
|
932
|
+
const st = decodeStep(s, md, c, B), ps = prefillStats(s, md, c), osl = s.avgOut, isl = Math.min(s.avgIn, s.ctx);
|
|
933
|
+
let tpot = st.t, ttft = ps.Sbatch, fp = 0;
|
|
934
|
+
for (let i = 0; i < 50; i++) {
|
|
935
|
+
const lam = B / (osl * tpot + ttft); // requests/s through this instance
|
|
936
|
+
fp = Math.min(0.95, lam * isl / ps.cap); // share of compute spent on prefill
|
|
937
|
+
const t = Math.max(st.tm, st.tc / (1 - fp)) * 1.1 + st.comm + st.ovh;
|
|
938
|
+
// a new prompt is prefilled in chunks between decode steps: its share of each step is what decode leaves
|
|
939
|
+
const free = Math.max(0.05, 1 - Math.max(st.tm, st.tc) / t);
|
|
940
|
+
const tt = prefillTime(s, md, c, isl, 0, 1) / free + mdWait(Math.min(0.85, fp), isl / ps.cap) + t;
|
|
941
|
+
if (Math.abs(t - tpot) < 1e-7 && Math.abs(tt - ttft) < 1e-6) { tpot = t; ttft = tt; break; }
|
|
942
|
+
tpot = t; ttft = tt;
|
|
943
|
+
}
|
|
944
|
+
const outPerGpu = B * osl / (osl * tpot + ttft) / c.g;
|
|
945
|
+
return { tpot, ttft, outPerGpu, prefillShare: fp, bound: st.bound, step: st };
|
|
946
|
+
}
|
|
947
|
+
|
|
765
948
|
// Nodes (scale-up domains) needed: instances that span domains take whole domains; smaller ones pack first-fit-decreasing.
|
|
766
949
|
function packNodes(pools, D) {
|
|
767
950
|
const items = [];
|
|
@@ -826,7 +1009,7 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
826
1009
|
return res;
|
|
827
1010
|
}
|
|
828
1011
|
|
|
829
|
-
const api = { SETTINGS, plan, derive, kvBytes, decodeStep, memInfo, prefillStats, configs, computeLoad, decodeLabel, prefillLabel, decodeCap, packNodes };
|
|
1012
|
+
const api = { SETTINGS, plan, derive, kvBytes, decodeStep, memInfo, prefillStats, prefillTime, configs, computeLoad, decodeLabel, prefillLabel, decodeCap, packNodes, operatingPoint };
|
|
830
1013
|
if (typeof module !== 'undefined' && module.exports) module.exports = api; else root.SizerModel = api;
|
|
831
1014
|
})(this);
|
|
832
1015
|
|
|
@@ -1699,7 +1882,7 @@ function detailHTML() {
|
|
|
1699
1882
|
}
|
|
1700
1883
|
|
|
1701
1884
|
function schedule() { clearTimeout(timer); timer = setTimeout(() => { save(st); run(); }, 120); }
|
|
1702
|
-
function onInput(e) { const k = e.target.dataset.k; if (!k) return; st[k] = e.target.type === 'number' ? (e.target.value === '' ? '' : +e.target.value) : e.target.value;
|
|
1885
|
+
function onInput(e) { const k = e.target.dataset.k; if (!k) return; st[k] = e.target.type === 'number' ? (e.target.value === '' ? '' : +e.target.value) : e.target.value; schedule(); }
|
|
1703
1886
|
function pick(m) { st.pick = st.pick === m ? null : m; save(st); render(); const d = document.getElementById('fit-detail'); if (st.pick && d) d.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }
|
|
1704
1887
|
|
|
1705
1888
|
function show(view) {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Accelerator registry
|
|
2
|
+
|
|
3
|
+
`src/accelerators.js` is the one list of chips and vendors that every tool in the repo reads:
|
|
4
|
+
|
|
5
|
+
| Reader | What it takes |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| Inference Sizer catalog (`src/catalog.js`) | the spec-sheet figures, for sizing |
|
|
8
|
+
| FleetScope engine | the same figures plus board power and on-prem cost, for simulation |
|
|
9
|
+
| fleetops power model | board power by telemetry SKU name, when the exporter doesn't report the limit |
|
|
10
|
+
| fleetops serving manifests (vLLM, llm-d) | the vendor's Kubernetes resource, vLLM images and KV-cache buffer device |
|
|
11
|
+
| fleetops Kubernetes inventory | the vendor's resource and product labels |
|
|
12
|
+
| gpu-health | nothing directly; every `vendorKey` must have a gpu-health vendor profile (`gpu-health/src/vendors.mjs`), and a test checks that |
|
|
13
|
+
|
|
14
|
+
## Add a chip
|
|
15
|
+
|
|
16
|
+
Add an entry to `ACCELERATORS`. Use per-chip dense figures: halve "with sparsity" numbers, and divide rack or system
|
|
17
|
+
totals by the chip count. Set `source` to the vendor's spec page, and give board power (`tdpW`) and a `match` regex
|
|
18
|
+
for the names telemetry reports. Put more specific names first; for example, GB200 must come before B200. Prices are
|
|
19
|
+
placeholders, not quotes. Then run `npm test` at the repo root: `tests/accelerators.test.mjs` validates every entry.
|
|
20
|
+
|
|
21
|
+
A chip that only shows up in telemetry, with no full spec sheet, goes in `OTHER_SKUS` with `tdpW` and `match`.
|
|
22
|
+
|
|
23
|
+
## Add a vendor
|
|
24
|
+
|
|
25
|
+
Add an entry to `VENDORS` with:
|
|
26
|
+
- the Kubernetes resource and product labels;
|
|
27
|
+
- the telemetry tool and exporter;
|
|
28
|
+
- the collective library;
|
|
29
|
+
- the vLLM images;
|
|
30
|
+
- the KV-cache buffer device.
|
|
31
|
+
|
|
32
|
+
Then add a gpu-health vendor profile, which maps the exporter's metrics, fault codes and repair commands. Any tool
|
|
33
|
+
that meets a vendor without an adapter stops with an error that lists the vendors it knows. It never falls back to
|
|
34
|
+
NVIDIA.
|
|
35
|
+
|
|
36
|
+
## Cloud TPUs
|
|
37
|
+
|
|
38
|
+
TPU v6e (Trillium), v5p and TPU7x (Ironwood) are in the registry with `kind: 'tpu'`, from Google's TPU pages. Their
|
|
39
|
+
figures are adjusted to the sizer's model:
|
|
40
|
+
- ICI bandwidth is halved to per direction.
|
|
41
|
+
- `domain` is the chips on one TPU VM host: 8 on v6e, 4 on v5p and TPU7x. The sizer treats ICI between hosts in a
|
|
42
|
+
slice as data-center network, so tensor parallelism beyond one host is costed pessimistically.
|
|
43
|
+
- TPUs publish no board power, so FleetScope's power model leaves them out.
|
|
44
|
+
- Prices are on-demand $ per chip-hour.
|
|
45
|
+
|
|
46
|
+
## Cloud instance types
|
|
47
|
+
|
|
48
|
+
`INSTANCES` maps machine types to a chip and a count, so bills and node labels name the GPU:
|
|
49
|
+
- AWS: P4, P5, P6, G4dn, G5, G6, G6e.
|
|
50
|
+
- GCP: A2, A3, A4, A4X, G2, and the TPU machine types (`ct6e-…`, `ct5p-…`, `tpu7x-…`, `ct5lp-…`).
|
|
51
|
+
|
|
52
|
+
`tpuTopology(chip, n)` gives GKE's slice topology for `n` chips (`2x4`, `2x2x1`, …).
|
|
53
|
+
|
|
54
|
+
## Sources for the newer chips
|
|
55
|
+
|
|
56
|
+
| Chip | Figures | Source |
|
|
57
|
+
| --- | --- | --- |
|
|
58
|
+
| MI355X | 288 GB HBM3E, 8 TB/s, 2516.6 / 5033.2 / 10066.3 dense BF16 / FP8 / FP4 TFLOPS, 7 × 144 GB/s Infinity Fabric (504 GB/s per direction), 1400 W | [AMD product page](https://www.amd.com/en/products/accelerators/instinct/mi350/mi355x.html), [brochure](https://www.amd.com/content/dam/amd/en/documents/instinct-tech-docs/product-briefs/amd-instinct-mi355x-gpu-brochure.pdf) |
|
|
59
|
+
| MI325X | 256 GB HBM3E, 6 TB/s, 1307.4 / 2614.9 dense BF16 / FP8 TFLOPS, 896 GB/s peer-to-peer (448 per direction), 1000 W | [AMD product page](https://www.amd.com/en/products/accelerators/instinct/mi300/mi325x.html), [datasheet](https://www.amd.com/content/dam/amd/en/documents/instinct-tech-docs/product-briefs/instinct-mi325x-datasheet.pdf) |
|
|
60
|
+
| TPU v6e | 32 GB HBM, 1.64 TB/s, 918 BF16 TFLOPS, ICI 800 GB/s bidirectional, 8 chips per host, 4 × 200 Gbps NICs per host | [Cloud TPU v6e](https://docs.cloud.google.com/tpu/docs/v6e) |
|
|
61
|
+
| TPU v5p, TPU7x | v5p: 95 GiB, 2765 GB/s, 459 TFLOPS. TPU7x: 192 GiB, 7.37 TB/s, 2307 BF16 / 4614 FP8 TFLOPS. ICI 1200 GB/s bidirectional for both | [TPU7x (Ironwood)](https://docs.cloud.google.com/tpu/docs/tpu7x) |
|
|
62
|
+
| GB300 NVL72 | rack: 20 TB HBM3e and 576 TB/s, 360 / 720 PFLOPS BF16 / FP8 (with sparsity), 1080 PFLOPS FP4 dense, 1.8 TB/s NVLink per GPU; ÷ 72 per GPU. Board power 1400 W from [InferenceX](https://inferencex.semianalysis.com/chips/gb300-nvl72) | [NVIDIA GB300 NVL72](https://www.nvidia.com/en-us/data-center/gb300-nvl72/) |
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Inference Sizer against InferenceX
|
|
2
|
+
|
|
3
|
+
Generated by `node inference-sizer/tools/validate-inferencex.mjs --markdown`. Data: 198 measured runs (aggregated, one node) of DeepSeek-R1 on MI355X, B200, MI325X, H200, MI300X, B300, from a snapshot of the [InferenceX](https://github.com/SemiAnalysisAI/InferenceX) public API (runs dated 2025-11-02 to 2026-06-11; [snapshot](https://github.com/SemiAnalysisAI/InferenceX-app/blob/187628924b6ec899b1f3f771617655dd4cd61d8c/packages/app/cypress/fixtures/api/benchmarks.json), SHA-256 `f46823a76cb63248…`). For each run the sizer predicts the same layout (TP, DP-attention) at the same concurrency, input and output lengths and precision.
|
|
4
|
+
|
|
5
|
+
Error is how far off the prediction is either way, as a ratio: 40% means 1.4× too high or 1.4× too low. "Predicted ÷ measured" says which way: for TPOT, below 1 means the sizer predicts faster tokens than were measured; for throughput, above 1 means it predicts more than was measured. Both are the optimistic direction.
|
|
6
|
+
|
|
7
|
+
## Overall
|
|
8
|
+
|
|
9
|
+
| | Runs | TPOT: median error | p90 | median predicted ÷ measured | Output tok/s per GPU: median error | p90 | median predicted ÷ measured |
|
|
10
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
11
|
+
| Datasheet roofline (100% of spec, no overhead) | 198 | 141% | 263% | 0.41× | 148% | 279% | 2.48× |
|
|
12
|
+
| Sizer defaults | 198 | 46% | 116% | 0.70× | 47% | 128% | 1.47× |
|
|
13
|
+
| Sizer defaults, held-out runs only | 128 | 51% | 122% | 0.68× | 53% | 133% | 1.53× |
|
|
14
|
+
| **Calibrated per GPU on 1k/1k, scored on 8k/1k and 1k/8k** | 128 | 17% | 79% | 1.04× | 18% | 75% | 0.95× |
|
|
15
|
+
| Calibrated, on the runs it was fitted to | 70 | 9% | 32% | 1.02× | 8% | 33% | 1.03× |
|
|
16
|
+
|
|
17
|
+
## By GPU (sizer defaults; calibrated on held-out runs)
|
|
18
|
+
|
|
19
|
+
| GPU | Runs | Defaults: TPOT error | Defaults: tok/s error | Defaults: tok/s predicted ÷ measured | Calibrated (held out): TPOT error | Calibrated: tok/s error | Fitted efficiencies (decode BW, decode compute, step ms, prefill) |
|
|
20
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
21
|
+
| MI355X | 58 | 35% | 45% | 1.44× | 38% | 35% | 0.9, 0.02, 6, 0.03 |
|
|
22
|
+
| B200 | 60 | 39% | 43% | 1.41× | 14% | 16% | 0.6, 0.08, 4.5, 0.05 |
|
|
23
|
+
| MI325X | 15 | 89% | 97% | 1.97× | 25% | 20% | 0.8, 0.02, 10, 0.08 |
|
|
24
|
+
| H200 | 30 | 22% | 19% | 1.16× | 12% | 14% | 0.8, 0.15, 6, 0.05 |
|
|
25
|
+
| MI300X | 15 | 90% | 99% | 1.99× | 14% | 11% | 0.7, 0.02, 10, 0.03 |
|
|
26
|
+
| B300 | 20 | 37% | 42% | 1.42× | 6% | 7% | 0.7, 0.06, 4.5, 0.08 |
|
|
27
|
+
|
|
28
|
+
## By framework and concurrency (sizer defaults)
|
|
29
|
+
|
|
30
|
+
| | Runs | TPOT error | tok/s error | tok/s predicted ÷ measured |
|
|
31
|
+
| --- | --- | --- | --- | --- |
|
|
32
|
+
| sglang | 123 | 50% | 54% | 1.54× |
|
|
33
|
+
| trt | 45 | 37% | 39% | 1.36× |
|
|
34
|
+
| atom | 30 | 39% | 45% | 1.32× |
|
|
35
|
+
| concurrency 1–8 | 77 | 70% | 75% | 1.75× |
|
|
36
|
+
| concurrency 16–32 | 58 | 22% | 29% | 1.28× |
|
|
37
|
+
| concurrency 64– | 63 | 33% | 43% | 1.40× |
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inference-sizer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "Size a GPU fleet for LLM serving: GPUs, layout and cost to meet TTFT/TPOT targets. Exports to FleetScope.",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "node build.mjs",
|
|
9
9
|
"test": "node --test tests/*.test.mjs",
|
|
10
|
-
"size": "node tools/size.mjs"
|
|
10
|
+
"size": "node tools/size.mjs",
|
|
11
|
+
"test:coverage": "node --test --experimental-test-coverage --test-coverage-exclude='tests/**' --test-coverage-exclude='../**' --test-coverage-lines=88 --test-coverage-branches=80 tests/*.test.mjs"
|
|
11
12
|
},
|
|
12
13
|
"engines": {
|
|
13
|
-
"node": ">=
|
|
14
|
+
"node": ">=22"
|
|
14
15
|
}
|
|
15
16
|
}
|