aiinfra-tools 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/CHANGELOG.md +268 -0
- package/README.md +27 -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 +41 -0
- package/fleetops/deploy/shadow-live/kit.yaml +123 -0
- package/fleetops/deploy/shadow-live/load-canary.yaml +26 -0
- package/fleetops/deploy/shadow-live/run.sh +53 -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 +10 -3
- 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 +32 -10
- 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 +4 -0
- package/fleetscope/dist/index.html +1013 -28
- 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 +29 -13
- package/fleetscope/src/index.src.html +15 -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 +299 -31
- package/inference-sizer/docs/ACCELERATORS.md +62 -0
- package/inference-sizer/docs/CATALOG.md +71 -0
- package/inference-sizer/docs/METHOD.md +1 -1
- package/inference-sizer/docs/VALIDATION-INFERENCEX.md +37 -0
- package/inference-sizer/package.json +4 -3
- package/inference-sizer/src/accelerators.js +194 -0
- package/inference-sizer/src/catalog.js +55 -22
- package/inference-sizer/src/fit-ui.js +1 -1
- package/inference-sizer/src/index.src.html +3 -0
- package/inference-sizer/src/model.js +45 -7
- package/inference-sizer/src/ui.js +1 -1
- package/inference-sizer/tools/validate-agentx.mjs +116 -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 +10 -6
- 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.4.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,203 @@ 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
|
+
// Vera Rubin NVL72 (VR200; first called NVL144 for its 144 dies): per Rubin package, 288 GB HBM4 at 22 TB/s; dense
|
|
276
|
+
// NVFP4 35 PF (the 50 PF inference figure uses adaptive compression), FP8 17.5 PF, BF16 4 PF; NVLink 6 3.6 TB/s
|
|
277
|
+
// bidirectional; ConnectX-9 1.6 Tb/s. NVIDIA publishes no board power: 2.3 kW is the reported Max-P TGP.
|
|
278
|
+
A({ id: 'VR200-NVL72', short: 'VR200', label: 'NVIDIA Vera Rubin NVL72 (72-GPU rack)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 288, hbmTBs: 22, tfBf16: 4000, tfFp8: 17500, tfFp4: 35000, scaleUpGBs: 1800, domain: 72, nicGbps: 1600, tdpW: 2300, price: 11.0, onprem: 6.5, match: 'Rubin(?!.*CPX)|VR200|\\bR200\\b',
|
|
279
|
+
source: 'https://developer.nvidia.com/blog/inside-the-NVIDIA-rubin-platform-six-new-chips-one-ai-supercomputer' }),
|
|
280
|
+
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',
|
|
281
|
+
// 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
|
|
282
|
+
source: 'https://www.nvidia.com/en-us/data-center/gb300-nvl72/' }),
|
|
283
|
+
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',
|
|
284
|
+
source: 'https://www.nvidia.com/en-us/data-center/gb200-nvl72/' }),
|
|
285
|
+
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',
|
|
286
|
+
source: 'https://www.nvidia.com/en-us/data-center/hgx/' }),
|
|
287
|
+
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',
|
|
288
|
+
source: 'https://www.nvidia.com/en-us/data-center/dgx-b200/' }),
|
|
289
|
+
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',
|
|
290
|
+
source: 'https://www.nvidia.com/en-us/data-center/h200/' }),
|
|
291
|
+
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',
|
|
292
|
+
source: 'https://www.nvidia.com/en-us/data-center/h100/' }),
|
|
293
|
+
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',
|
|
294
|
+
source: 'https://www.nvidia.com/en-us/data-center/a100/' }),
|
|
295
|
+
// RTX PRO 6000 Blackwell Server Edition: 96 GB GDDR7 at 1.6 TB/s; 4 / 2 / 1 PF FP4 / FP8 / BF16 with sparsity
|
|
296
|
+
// (halved here); PCIe 5.0 x16 between cards; up to 600 W
|
|
297
|
+
A({ id: 'RTX-PRO-6000', short: 'RTXPRO6000', label: 'NVIDIA RTX PRO 6000 Blackwell Server (PCIe, 8 per server)', vendor: 'NVIDIA', vendorKey: 'nvidia', hbmGB: 96, hbmTBs: 1.6, tfBf16: 500, tfFp8: 1000, tfFp4: 2000, scaleUpGBs: 64, domain: 8, nicGbps: 400, tdpW: 600, price: 1.8, onprem: 1.0, match: 'RTX ?PRO ?6000|RTX-PRO-6000',
|
|
298
|
+
source: 'https://www.nvidia.com/en-us/data-center/rtx-pro-6000-blackwell-server-edition/' }),
|
|
299
|
+
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',
|
|
300
|
+
source: 'https://www.nvidia.com/en-us/data-center/l40s/' }),
|
|
301
|
+
// Helios rack: 72 MI455X, 432 GB HBM4 at 23.3 TB/s, 40 / 20 / 5 PF MXFP4 / MXFP8 / BF16, 3.6 TB/s scale-up
|
|
302
|
+
// (UALink over Ethernet, bidirectional), 43 TB/s scale-out per rack (2.4 Tb/s per GPU per direction), 246 kW per
|
|
303
|
+
// rack (AMD's validated reference design). AMD publishes no board power: ~1.7 kW is the reported projection.
|
|
304
|
+
A({ id: 'MI455X-Helios', short: 'MI455X', label: 'AMD Instinct MI455X Helios (72-GPU rack)', vendor: 'AMD', vendorKey: 'amd', hbmGB: 432, hbmTBs: 23.3, tfBf16: 5000, tfFp8: 20000, tfFp4: 40000, scaleUpGBs: 1800, domain: 72, nicGbps: 2400, nodeKW: 246, tdpW: 1700, price: 8.0, onprem: 4.8, match: 'MI455',
|
|
305
|
+
source: 'https://www.amd.com/en/products/accelerators/instinct/mi400.html' }),
|
|
306
|
+
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',
|
|
307
|
+
// Infinity Fabric: 7 links × 144 GB/s (bidirectional) = 504 GB/s per direction
|
|
308
|
+
source: 'https://www.amd.com/en/products/accelerators/instinct/mi350/mi355x.html' }),
|
|
309
|
+
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',
|
|
310
|
+
// platform peer-to-peer I/O 896 GB/s bidirectional = 448 GB/s per direction
|
|
311
|
+
source: 'https://www.amd.com/en/products/accelerators/instinct/mi300/mi325x.html' }),
|
|
312
|
+
// Cloud TPU: per chip, from cloud.google.com/tpu/docs (v6e, tpu7x pages). ICI figures are bidirectional there, halved
|
|
313
|
+
// here. domain = chips per TPU VM host; ICI across hosts in a slice is modelled as the data-center network, so
|
|
314
|
+
// tensor parallelism beyond one host is costed pessimistically. Prices: on-demand $/chip-hour, us-east1/us-central1.
|
|
315
|
+
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',
|
|
316
|
+
source: 'https://docs.cloud.google.com/tpu/docs/tpu7x' }),
|
|
317
|
+
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',
|
|
318
|
+
source: 'https://docs.cloud.google.com/tpu/docs/v6e' }),
|
|
319
|
+
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',
|
|
320
|
+
// 95 GiB HBM per chip
|
|
321
|
+
source: 'https://docs.cloud.google.com/tpu/docs/tpu7x' }),
|
|
322
|
+
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',
|
|
323
|
+
source: 'https://www.amd.com/en/products/accelerators/instinct/mi300/mi300x.html' }),
|
|
324
|
+
];
|
|
325
|
+
|
|
326
|
+
const OTHER_SKUS = [
|
|
327
|
+
{ id: 'H100-PCIe', vendorKey: 'nvidia', kind: 'gpu', tdpW: 350, match: 'H100.*PCIe' },
|
|
328
|
+
{ id: 'H20', vendorKey: 'nvidia', kind: 'gpu', tdpW: 400, match: 'H20\\b' },
|
|
329
|
+
{ id: 'A100-PCIe', vendorKey: 'nvidia', kind: 'gpu', tdpW: 300, match: 'A100.*PCIe' },
|
|
330
|
+
{ id: 'A100-40GB', vendorKey: 'nvidia', kind: 'gpu', tdpW: 400, match: 'A100.*40\\s?GB' },
|
|
331
|
+
{ id: 'A10G', vendorKey: 'nvidia', kind: 'gpu', tdpW: 300, match: 'A10G' },
|
|
332
|
+
{ id: 'L4', vendorKey: 'nvidia', kind: 'gpu', tdpW: 72, match: 'L4\\b' },
|
|
333
|
+
{ id: 'A10', vendorKey: 'nvidia', kind: 'gpu', tdpW: 150, match: 'A10\\b' },
|
|
334
|
+
{ id: 'T4', vendorKey: 'nvidia', kind: 'gpu', tdpW: 70, match: 'T4\\b' },
|
|
335
|
+
{ id: 'V100', vendorKey: 'nvidia', kind: 'gpu', tdpW: 300, match: 'V100' },
|
|
336
|
+
{ id: 'MI350X', vendorKey: 'amd', kind: 'gpu', tdpW: 1000, match: 'MI350' },
|
|
337
|
+
{ id: 'MI250', vendorKey: 'amd', kind: 'gpu', tdpW: 560, match: 'MI250' },
|
|
338
|
+
{ id: 'TPU-v5e', vendorKey: 'tpu', kind: 'tpu', match: 'v5e|v5-?lite' },
|
|
339
|
+
];
|
|
340
|
+
|
|
341
|
+
// ---------- cloud instance types ----------
|
|
342
|
+
// AWS: docs.aws.amazon.com/AWSEC2/latest/UserGuide/accelerated-computing-instances.html and aws.amazon.com/ec2/instance-types/p6/
|
|
343
|
+
const INSTANCES = {};
|
|
344
|
+
const add = (cloud, chip, list) => { for (const [type, gpus] of list) INSTANCES[type.toLowerCase()] = { cloud, chip, gpus }; };
|
|
345
|
+
const sizes = (fam, one, more) => one.map(s => [`${fam}.${s}`, 1]).concat(more.map(([s, n]) => [`${fam}.${s}`, n]));
|
|
346
|
+
add('aws', 'A100-40GB', [['p4d.24xlarge', 8]]);
|
|
347
|
+
add('aws', 'A100', [['p4de.24xlarge', 8]]);
|
|
348
|
+
add('aws', 'H100', [['p5.4xlarge', 1], ['p5.48xlarge', 8]]);
|
|
349
|
+
add('aws', 'H200', [['p5e.48xlarge', 8], ['p5en.48xlarge', 8]]);
|
|
350
|
+
add('aws', 'B200', [['p6-b200.48xlarge', 8]]);
|
|
351
|
+
add('aws', 'B300', [['p6-b300.48xlarge', 8]]);
|
|
352
|
+
add('aws', 'GB200-NVL72', [['p6e-gb200.36xlarge', 4]]); // sold as UltraServers of 36 or 72 GPUs (u-p6e-gb200x36, x72)
|
|
353
|
+
add('aws', 'L40S', sizes('g6e', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['24xlarge', 4], ['48xlarge', 8]]));
|
|
354
|
+
add('aws', 'L4', sizes('g6', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['24xlarge', 4], ['48xlarge', 8]]));
|
|
355
|
+
add('aws', 'A10G', sizes('g5', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['24xlarge', 4], ['48xlarge', 8]]));
|
|
356
|
+
add('aws', 'T4', sizes('g4dn', ['xlarge', '2xlarge', '4xlarge', '8xlarge', '16xlarge'], [['12xlarge', 4], ['metal', 8]]));
|
|
357
|
+
// GCP: docs.cloud.google.com/compute/docs/gpus and /compute/docs/tpus/tpu-machines; GKE TPU machine types
|
|
358
|
+
const gpuN = (fam, chip, ns) => add('gcp', chip, ns.map(n => [`${fam}-${n}g`, n]));
|
|
359
|
+
gpuN('a2-highgpu', 'A100-40GB', [1, 2, 4, 8]); add('gcp', 'A100-40GB', [['a2-megagpu-16g', 16]]);
|
|
360
|
+
gpuN('a2-ultragpu', 'A100', [1, 2, 4, 8]);
|
|
361
|
+
gpuN('a3-highgpu', 'H100', [1, 2, 4, 8]); add('gcp', 'H100', [['a3-megagpu-8g', 8], ['a3-edgegpu-8g', 8]]);
|
|
362
|
+
add('gcp', 'H200', [['a3-ultragpu-8g', 8]]);
|
|
363
|
+
add('gcp', 'B200', [['a4-highgpu-8g', 8]]);
|
|
364
|
+
add('gcp', 'GB200-NVL72', [['a4x-highgpu-4g', 4]]);
|
|
365
|
+
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]]));
|
|
366
|
+
add('gcp', 'TPU-v6e', [['ct6e-standard-1t', 1], ['ct6e-standard-4t', 4], ['ct6e-standard-8t', 8]]);
|
|
367
|
+
add('gcp', 'TPU-v5p', [['ct5p-hightpu-4t', 4]]);
|
|
368
|
+
add('gcp', 'TPU7x', [['tpu7x-standard-4t', 4]]);
|
|
369
|
+
add('gcp', 'TPU-v5e', [['ct5lp-hightpu-1t', 1], ['ct5lp-hightpu-4t', 4], ['ct5lp-hightpu-8t', 8]]);
|
|
370
|
+
// Azure: learn.microsoft.com/azure/virtual-machines/sizes/gpu-accelerated (ND H100/H200/MI300X v5, ND GB200 v6, ND A100 v4);
|
|
371
|
+
// AKS puts the size in node.kubernetes.io/instance-type with this capitalisation (matched case-insensitively)
|
|
372
|
+
add('azure', 'H100', [['Standard_ND96isr_H100_v5', 8]]);
|
|
373
|
+
add('azure', 'H200', [['Standard_ND96isr_H200_v5', 8]]);
|
|
374
|
+
add('azure', 'MI300X', [['Standard_ND96isr_MI300X_v5', 8]]);
|
|
375
|
+
add('azure', 'GB200-NVL72', [['Standard_ND128isr_NDR_GB200_v6', 4]]); // 18 VMs per NVL72 rack
|
|
376
|
+
add('azure', 'A100-40GB', [['Standard_ND96asr_v4', 8]]);
|
|
377
|
+
add('azure', 'A100', [['Standard_ND96amsr_A100_v4', 8]]);
|
|
378
|
+
const instanceOf = type => INSTANCES[String(type || '').toLowerCase()] || null;
|
|
379
|
+
// TPU slice topology for a chip count: 2D (v5e, v6e) or 3D torus (v4, v5p, 7x), as GKE's node selector wants it
|
|
380
|
+
const TOPO2 = { 1: '1x1', 4: '2x2', 8: '2x4', 16: '4x4', 32: '4x8', 64: '8x8', 128: '8x16', 256: '16x16' };
|
|
381
|
+
const TOPO3 = { 4: '2x2x1', 8: '2x2x2', 16: '2x2x4', 32: '2x4x4', 64: '4x4x4' };
|
|
382
|
+
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; }
|
|
383
|
+
|
|
384
|
+
// telemetry SKU string ("NVIDIA H100 80GB HBM3", "AMD Instinct MI300X", …) → registry entry, most specific first
|
|
385
|
+
const ORDER = (() => {
|
|
386
|
+
const all = ACCELERATORS.concat(OTHER_SKUS).map(x => ({ x, re: new RegExp(x.match, 'i') }));
|
|
387
|
+
// a PCIe or 40 GB variant before its sibling; otherwise registry order (which lists GB* before B*)
|
|
388
|
+
const first = a => /PCIe|40GB/.test(a.x.id);
|
|
389
|
+
return all.filter(first).concat(all.filter(a => !first(a)));
|
|
390
|
+
})();
|
|
391
|
+
function match(sku) {
|
|
392
|
+
const s = String(sku || '');
|
|
393
|
+
if (!s) return null;
|
|
394
|
+
const exact = ACCELERATORS.concat(OTHER_SKUS).find(x => x.id.toLowerCase() === s.toLowerCase() || (x.short && x.short.toLowerCase() === s.toLowerCase()));
|
|
395
|
+
if (exact) return exact;
|
|
396
|
+
const hit = ORDER.find(a => a.re.test(s));
|
|
397
|
+
return hit ? hit.x : null;
|
|
398
|
+
}
|
|
399
|
+
const byId = id => ACCELERATORS.find(x => x.id === id || x.short === id) || null;
|
|
400
|
+
const tdpOf = sku => { const m = match(sku); return m ? m.tdpW : null; };
|
|
401
|
+
// vendor key for an entry, a SKU string or a display vendor ("AMD"); null when unknown
|
|
402
|
+
function vendorKeyOf(x) {
|
|
403
|
+
if (!x) return null;
|
|
404
|
+
if (typeof x === 'object') return x.vendorKey || vendorKeyOf(x.vendor) || vendorKeyOf(x.id);
|
|
405
|
+
const s = String(x).toLowerCase();
|
|
406
|
+
if (VENDORS[s]) return s;
|
|
407
|
+
const v = Object.keys(VENDORS).find(k => VENDORS[k].name.toLowerCase() === s);
|
|
408
|
+
if (v) return v;
|
|
409
|
+
const m = match(x);
|
|
410
|
+
return m ? m.vendorKey : null;
|
|
411
|
+
}
|
|
412
|
+
// the vendor's deployment adapter; throws with the known vendors when there is none
|
|
413
|
+
function vendor(x) {
|
|
414
|
+
const k = vendorKeyOf(x);
|
|
415
|
+
if (!k || !VENDORS[k]) throw new Error(`no vendor adapter for ${typeof x === 'object' ? (x.id || x.vendor) : x}; known: ${Object.keys(VENDORS).join(', ')}`);
|
|
416
|
+
return Object.assign({ key: k }, VENDORS[k]);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
const api = { VENDORS, ACCELERATORS, OTHER_SKUS, INSTANCES, instanceOf, tpuTopology, match, byId, tdpOf, vendorKeyOf, vendor };
|
|
420
|
+
if (typeof module !== 'undefined' && module.exports) module.exports = api;
|
|
421
|
+
else root.AIInfraAccelerators = api;
|
|
422
|
+
})(typeof globalThis !== 'undefined' ? globalThis : this);
|
|
423
|
+
|
|
424
|
+
</script>
|
|
425
|
+
<script>
|
|
229
426
|
/* Inference Sizer catalog: GPUs and models, spec-sheet import/export, and Hugging Face config.json parsing.
|
|
230
427
|
Plain data plus validation, so the browser page, the CLI and FleetScope can share it. */
|
|
231
428
|
(function (root) {
|
|
@@ -267,32 +464,23 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
267
464
|
{ k: 'topk', label: 'Experts per token', min: 0, max: 1e4, int: true },
|
|
268
465
|
{ k: 'swaFrac', label: 'Share of sliding-window layers', min: 0, max: 1 },
|
|
269
466
|
{ k: 'swaWindow', label: 'Sliding window', unit: 'tokens', min: 0, max: 1e8, int: true },
|
|
467
|
+
{ k: 'linFrac', label: 'Share of linear-attention layers', min: 0, max: 1, hint: 'Kimi Delta Attention, Gated DeltaNet: a fixed state per sequence instead of KV per token.' },
|
|
468
|
+
{ k: 'linStateMB', label: 'Linear-attention state per layer', unit: 'MB', min: 0, max: 1e4, hint: 'Per sequence: value heads × key dim × value dim × 4 bytes (fp32).' },
|
|
469
|
+
{ k: 'kvKeep', label: 'Share of tokens whose KV is kept', min: 0.0001, max: 1, hint: 'Compressed attention (DeepSeek V4): average over layers. 1 for ordinary attention.' },
|
|
470
|
+
{ k: 'sparseTopK', label: 'Tokens attended per query (sparse attention)', unit: 'tokens', min: 0, max: 1e8, int: true, hint: 'DSA / CSA / MSA index top-k. 0 = attends every kept token.' },
|
|
270
471
|
{ k: 'maxCtx', label: 'Max context', unit: 'tokens', min: 256, max: 1e8, int: true, required: true },
|
|
271
472
|
{ k: 'wprec', type: 'enum', opts: ['bf16', 'fp8', 'fp4'], label: 'Default weight precision' },
|
|
272
473
|
{ k: 'source', type: 'text', label: 'Model card URL' },
|
|
273
474
|
];
|
|
274
475
|
|
|
275
476
|
// ---------- 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
|
-
];
|
|
477
|
+
// From the shared accelerator registry (accelerators.js): per-GPU dense figures, HGX/DGX system totals divided by 8
|
|
478
|
+
// (or 72 for NVL72), "with sparsity" figures halved. Prices are placeholder on-demand rents, not quotes.
|
|
479
|
+
const REG = (typeof module !== 'undefined' && module.exports) ? require('./accelerators.js') : root.AIInfraAccelerators;
|
|
480
|
+
const ORDER = ['B200', 'B300', 'GB200-NVL72', 'GB300-NVL72', 'VR200-NVL72', 'H200', 'H100', 'A100', 'L40S', 'RTX-PRO-6000', 'MI300X', 'MI325X', 'MI355X', 'MI455X-Helios', 'TPU7x', 'TPU-v6e', 'TPU-v5p'];
|
|
481
|
+
const KEEP = ['id', 'kind', 'vendorKey', 'gkeAccelerator', 'tdpW'].concat(GPU_FIELDS.map(f => f.k)); // tdpW: board power, for tokens per MW
|
|
482
|
+
const GPUS = REG.ACCELERATORS.slice().sort((a, b) => (ORDER.indexOf(a.id) + 1 || 99) - (ORDER.indexOf(b.id) + 1 || 99))
|
|
483
|
+
.map(g => Object.fromEntries(KEEP.filter(k => g[k] !== undefined).map(k => [k, g[k]])));
|
|
296
484
|
|
|
297
485
|
// ---------- built-in models ----------
|
|
298
486
|
const MLA = { attn: 'mla', kvHeads: 1, headDim: 128, mlaLatent: 512, mlaRope: 64, mlaNope: 128, mlaV: 128 };
|
|
@@ -310,8 +498,36 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
310
498
|
Object.assign({}, G, { id: 'qwen3-coder-480b', name: 'Qwen3-Coder 480B-A35B (MoE)', total: 480, active: 35, layers: 62, hidden: 6144, qHeads: 96, kvHeads: 8, headDim: 128, experts: 160, topk: 8, maxCtx: 262144, wprec: 'fp8', source: 'https://huggingface.co/Qwen/Qwen3-Coder-480B-A35B-Instruct' }),
|
|
311
499
|
Object.assign({}, G, MLA, { id: 'deepseek-v3', name: 'DeepSeek-V3 / R1 671B (MoE, MLA)', total: 671, active: 37, layers: 61, hidden: 7168, qHeads: 128, experts: 256, topk: 8, maxCtx: 131072, wprec: 'fp8', source: 'https://huggingface.co/deepseek-ai/DeepSeek-V3' }),
|
|
312
500
|
Object.assign({}, G, MLA, { id: 'kimi-k2', name: 'Kimi K2 1T (MoE, MLA)', total: 1040, active: 32, layers: 61, hidden: 7168, qHeads: 64, experts: 384, topk: 8, maxCtx: 131072, wprec: 'fp8', source: 'https://huggingface.co/moonshotai/Kimi-K2-Instruct' }),
|
|
501
|
+
// ---- 2026 open-weight models (config.json values; see docs/CATALOG.md for where each figure comes from) ----
|
|
502
|
+
// Kimi K3 (K3.1 Pro shares the architecture): 69 Kimi Delta Attention layers (96 heads × 128 × 128 fp32 state) and
|
|
503
|
+
// 24 gated MLA layers; MXFP4 weights from quantization-aware training.
|
|
504
|
+
Object.assign({}, G, MLA, { id: 'kimi-k3', name: 'Kimi K3 / K3.1 Pro 2.8T-A104B (MoE, KDA + MLA)', total: 2800, active: 104, layers: 93, hidden: 7168, qHeads: 96, experts: 896, topk: 16, linFrac: 69 / 93, linStateMB: 6.29, maxCtx: 1048576, wprec: 'fp4', source: 'https://huggingface.co/moonshotai/Kimi-K3' }),
|
|
505
|
+
// Kimi K2.5 / K2.6: K2's shape with 256K context and native INT4 weights (sized as 4-bit)
|
|
506
|
+
Object.assign({}, G, MLA, { id: 'kimi-k26', name: 'Kimi K2.6 1T-A32B (MoE, MLA, INT4)', total: 1000, active: 32, layers: 61, hidden: 7168, qHeads: 64, experts: 384, topk: 8, maxCtx: 262144, wprec: 'fp4', source: 'https://huggingface.co/moonshotai/Kimi-K2.6' }),
|
|
507
|
+
// DeepSeek V4: one 512-wide latent per token, kept at 1/4 (CSA) or 1/128 (HCA) on alternating layers (≈ 0.129 on
|
|
508
|
+
// average); CSA attends its index top-1024, HCA all compressed blocks: modelled as 2048 attended tokens per query.
|
|
509
|
+
// Experts in FP4, the rest FP8.
|
|
510
|
+
Object.assign({}, G, MLA, { id: 'deepseek-v4-pro', name: 'DeepSeek-V4-Pro 1.6T-A49B (MoE, compressed sparse attention)', total: 1600, active: 49, layers: 61, hidden: 7168, qHeads: 128, mlaLatent: 448, mlaRope: 64, mlaNope: 448, mlaV: 512, kvKeep: 0.129, sparseTopK: 2048, experts: 384, topk: 6, maxCtx: 1048576, wprec: 'fp4', source: 'https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro' }),
|
|
511
|
+
Object.assign({}, G, MLA, { id: 'deepseek-v4-flash', name: 'DeepSeek-V4-Flash 284B-A13B (MoE, compressed sparse attention)', total: 284, active: 13, layers: 43, hidden: 4096, qHeads: 64, mlaLatent: 448, mlaRope: 64, mlaNope: 448, mlaV: 512, kvKeep: 0.129, sparseTopK: 2048, experts: 256, topk: 6, maxCtx: 1048576, wprec: 'fp8', source: 'https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash' }),
|
|
512
|
+
// GLM-5.1 and GLM-5.3: MLA with DeepSeek-style sparse attention (index top-2048); GLM-5.3 extends the context to 1M.
|
|
513
|
+
// GLM-5.3's active parameters are not published: the GLM-5 lineage's 40B is assumed.
|
|
514
|
+
Object.assign({}, G, MLA, { id: 'glm-5.1', name: 'GLM-5.1 744B-A40B (MoE, MLA, sparse)', total: 744, active: 40, layers: 78, hidden: 6144, qHeads: 64, mlaNope: 192, mlaV: 256, sparseTopK: 2048, experts: 256, topk: 8, maxCtx: 202752, wprec: 'fp8', source: 'https://huggingface.co/zai-org/GLM-5.1' }),
|
|
515
|
+
Object.assign({}, G, MLA, { id: 'glm-5.3', name: 'GLM-5.3 753B (MoE, MLA, sparse, 1M)', total: 753, active: 40, layers: 78, hidden: 6144, qHeads: 64, mlaNope: 192, mlaV: 256, sparseTopK: 2048, experts: 256, topk: 8, maxCtx: 1048576, wprec: 'fp8', source: 'https://huggingface.co/zai-org/GLM-5.3' }),
|
|
516
|
+
// Mistral Large 4: MLA with sparse token selection (top-2048); nope/v head dims not published (DeepSeek's 128 assumed)
|
|
517
|
+
Object.assign({}, G, MLA, { id: 'mistral-large-4', name: 'Mistral Large 4 1.05T-A52B (MoE, MLA, sparse)', total: 1050, active: 52, layers: 72, hidden: 6144, qHeads: 64, sparseTopK: 2048, experts: 128, topk: 4, maxCtx: 1048576, wprec: 'fp8', source: 'https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B' }),
|
|
518
|
+
// Qwen3.5-397B and Qwen3.8 27B: three Gated DeltaNet layers per gated-attention layer (64 / 48 value heads × 128 × 128 fp32 state)
|
|
519
|
+
Object.assign({}, G, { id: 'qwen35-397b', name: 'Qwen3.5 397B-A17B (MoE, Gated DeltaNet hybrid)', total: 397, active: 17, layers: 60, hidden: 4096, qHeads: 32, kvHeads: 2, headDim: 256, linFrac: 0.75, linStateMB: 4.19, experts: 512, topk: 10, maxCtx: 262144, wprec: 'fp8', source: 'https://huggingface.co/Qwen/Qwen3.5-397B-A17B' }),
|
|
520
|
+
Object.assign({}, G, { id: 'qwen38-27b', name: 'Qwen3.8 27B (Gated DeltaNet hybrid)', total: 27, active: 27, layers: 64, hidden: 5120, qHeads: 24, kvHeads: 4, headDim: 256, linFrac: 0.75, linStateMB: 3.15, maxCtx: 262144, wprec: 'fp8', source: 'https://huggingface.co/Qwen/Qwen3.8-27B' }),
|
|
521
|
+
// MiniMax M3: sparse attention (16 blocks of 128 tokens) in 57 of 60 layers, modelled on all of them
|
|
522
|
+
Object.assign({}, G, { id: 'minimax-m3', name: 'MiniMax M3 428B-A23B (MoE, sparse)', total: 428, active: 23, layers: 60, hidden: 6144, qHeads: 64, kvHeads: 4, headDim: 128, sparseTopK: 2048, experts: 128, topk: 4, maxCtx: 1048576, wprec: 'fp8', source: 'https://huggingface.co/MiniMaxAI/MiniMax-M3' }),
|
|
523
|
+
Object.assign({}, G, { id: 'minimax-m27', name: 'MiniMax M2.7 229B-A10B (MoE)', total: 229, active: 10, layers: 62, hidden: 3072, qHeads: 48, kvHeads: 8, headDim: 128, experts: 256, topk: 8, maxCtx: 204800, wprec: 'fp8', source: 'https://huggingface.co/MiniMaxAI/MiniMax-M2.7' }),
|
|
524
|
+
// Muse Spark Open: 46 sliding-window layers (2048 tokens) and 16 full-attention layers
|
|
525
|
+
Object.assign({}, G, { id: 'muse-spark-open', name: 'Muse Spark Open 816B-A42B (MoE)', total: 816, active: 42, layers: 62, hidden: 8192, qHeads: 128, kvHeads: 16, headDim: 64, swaFrac: 46 / 62, swaWindow: 2048, experts: 256, topk: 8, maxCtx: 1048576, wprec: 'fp4', source: 'https://huggingface.co/meta-models/Muse-Spark-Open-816B-A42B' }),
|
|
526
|
+
// Gemma 4 31B: 50 sliding-window layers (1024 tokens) and 10 global layers with 4 KV heads of 512 and keys reused as
|
|
527
|
+
// values (the KV of 4 × 256 K+V pairs). The sliding layers' 16 heads are sized as 4: their KV is capped at 1024 tokens.
|
|
528
|
+
Object.assign({}, G, { id: 'gemma4-31b', name: 'Gemma 4 31B', total: 30.7, active: 30.7, layers: 60, hidden: 5376, qHeads: 32, kvHeads: 4, headDim: 256, swaFrac: 50 / 60, swaWindow: 1024, maxCtx: 262144, wprec: 'fp8', source: 'https://huggingface.co/google/gemma-4-31B' }),
|
|
313
529
|
];
|
|
314
|
-
const MODEL_DEFAULTS = { attn: 'gqa', experts: 0, topk: 0, swaFrac: 0, swaWindow: 0, mlaLatent: 512, mlaRope: 64, mlaNope: 128, mlaV: 128, wprec: 'fp8' };
|
|
530
|
+
const MODEL_DEFAULTS = { attn: 'gqa', experts: 0, topk: 0, swaFrac: 0, swaWindow: 0, linFrac: 0, linStateMB: 0, kvKeep: 1, sparseTopK: 0, mlaLatent: 512, mlaRope: 64, mlaNope: 128, mlaV: 128, wprec: 'fp8' };
|
|
315
531
|
const GPU_DEFAULTS = { tfFp8: 0, tfFp4: 0, nodeKW: 0, price: 0, vendor: '' };
|
|
316
532
|
|
|
317
533
|
// ---------- validation ----------
|
|
@@ -341,6 +557,7 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
341
557
|
out[f.k] = v;
|
|
342
558
|
}
|
|
343
559
|
if (kind === 'Model' && out.active > out.total) errors.push(`Model "${out.name}": active params (${out.active}B) exceed total (${out.total}B).`);
|
|
560
|
+
if (kind === 'Model' && (out.swaFrac || 0) + (out.linFrac || 0) > 1) errors.push(`Model "${out.name}": sliding-window and linear-attention shares add up to more than all layers.`);
|
|
344
561
|
if (kind === 'Model' && out.experts > 0 && !(out.topk > 0 && out.topk < out.experts)) errors.push(`Model "${out.name}": experts per token must be between 1 and ${out.experts - 1}.`);
|
|
345
562
|
if (kind === 'Model' && out.experts > 0 && out.active >= out.total) errors.push(`Model "${out.name}": an MoE model needs active params below total params.`);
|
|
346
563
|
return { ok: errors.length === 0, errors, value: out };
|
|
@@ -423,6 +640,19 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
423
640
|
notes.push('Chunked-attention layers modelled as sliding-window layers.');
|
|
424
641
|
}
|
|
425
642
|
if (c.sliding_window && !swaFrac) notes.push('sliding_window is set but not enabled for these layers; KV is sized for full attention.');
|
|
643
|
+
// linear-attention layers (Qwen3-Next / Qwen3.5 Gated DeltaNet: layer_types "linear_attention" or full_attention_interval)
|
|
644
|
+
let linFrac = 0, linStateMB = 0;
|
|
645
|
+
const linN = Array.isArray(c.layer_types) ? c.layer_types.filter(t => /linear/i.test(String(t))).length
|
|
646
|
+
: c.full_attention_interval > 1 ? layers - Math.floor(layers / c.full_attention_interval) : 0;
|
|
647
|
+
if (linN) {
|
|
648
|
+
linFrac = +(linN / layers).toFixed(4);
|
|
649
|
+
const vh = +first(c, ['linear_num_value_heads'], qHeads), kd = +first(c, ['linear_key_head_dim'], 128), vd = +first(c, ['linear_value_head_dim'], 128);
|
|
650
|
+
linStateMB = +(vh * kd * vd * 4 / 1e6).toFixed(3);
|
|
651
|
+
notes.push(`${linN} linear-attention layers: a ${linStateMB} MB state per layer per sequence (fp32), no KV per token.`);
|
|
652
|
+
}
|
|
653
|
+
// sparse attention: an index picks the tokens each query attends (DeepSeek Sparse Attention and its descendants)
|
|
654
|
+
const sparseTopK = c.index_topk ? +c.index_topk : 0;
|
|
655
|
+
if (sparseTopK) notes.push(`Sparse attention: each query attends ${sparseTopK} selected tokens.`);
|
|
426
656
|
// context
|
|
427
657
|
let maxCtx = +first(c, ['max_position_embeddings', 'n_positions', 'seq_length', 'max_sequence_length'], 4096);
|
|
428
658
|
const rs = c.rope_scaling;
|
|
@@ -457,7 +687,7 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
457
687
|
const name = String(first(j, ['_name_or_path', 'name_or_path'], '') || '').split('/').pop() || (c.model_type ? c.model_type + ' ' + (total / 1e9).toFixed(0) + 'B' : 'Imported model');
|
|
458
688
|
const model = {
|
|
459
689
|
name, total: +(total / 1e9).toFixed(2), active: +(active / 1e9).toFixed(2), layers, hidden, qHeads, kvHeads, headDim,
|
|
460
|
-
attn: mla ? 'mla' : 'gqa', mlaLatent, mlaRope, mlaNope, mlaV, experts, topk, swaFrac, swaWindow, maxCtx,
|
|
690
|
+
attn: mla ? 'mla' : 'gqa', mlaLatent, mlaRope, mlaNope, mlaV, experts, topk, swaFrac, swaWindow, linFrac, linStateMB, sparseTopK, maxCtx,
|
|
461
691
|
wprec: /fp8|float8/i.test(JSON.stringify(j.quantization_config || '')) ? 'fp8' : /mxfp4|nvfp4|fp4/i.test(JSON.stringify(j.quantization_config || '')) ? 'fp4' : 'fp8',
|
|
462
692
|
};
|
|
463
693
|
return { model, notes };
|
|
@@ -496,6 +726,12 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
496
726
|
const mla = s.attn === 'mla';
|
|
497
727
|
const lat = s.mlaLatent || 512, rope = s.mlaRope == null ? 64 : s.mlaRope, nope = s.mlaNope == null ? 128 : s.mlaNope, vh = s.mlaV || 128;
|
|
498
728
|
const swaLayers = s.swaWindow > 0 ? Math.round(s.layers * (s.swaFrac || 0)) : 0;
|
|
729
|
+
// linear-attention layers (Kimi Delta Attention, Gated DeltaNet): a fixed recurrent state per sequence, no KV per token
|
|
730
|
+
const linLayers = s.linFrac > 0 ? Math.min(s.layers - swaLayers, Math.round(s.layers * s.linFrac)) : 0;
|
|
731
|
+
const linState = linLayers * (s.linStateMB || 0) * 1e6;
|
|
732
|
+
// compressed attention keeps the KV of a share of the tokens (DeepSeek V4: 1/4 or 1/128 per layer); sparse attention
|
|
733
|
+
// (DSA, CSA, MSA) attends a fixed number of selected tokens per query instead of all of them
|
|
734
|
+
const keep = s.kvKeep > 0 && s.kvKeep < 1 ? s.kvKeep : 1, topK = s.sparseTopK > 0 ? s.sparseTopK : 0;
|
|
499
735
|
// tensor-core rate for the weight precision; fall back when the GPU lacks that precision
|
|
500
736
|
const tf = { bf16: s.tfBf16, fp8: s.tfFp8 || s.tfBf16, fp4: s.tfFp4 || s.tfFp8 || s.tfBf16 }[s.wprec] || s.tfBf16;
|
|
501
737
|
const computeFallback = (s.wprec === 'fp4' && !s.tfFp4) ? (s.tfFp8 ? 'fp8' : 'bf16') : (s.wprec === 'fp8' && !s.tfFp8) ? 'bf16' : null;
|
|
@@ -504,7 +740,9 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
504
740
|
Wd: dense * 1e9 * bpp, We: Eall * 1e9 * bpp,
|
|
505
741
|
denseP: dense * 1e9, activeP: (isMoE ? s.active : s.total) * 1e9,
|
|
506
742
|
kvTokLayer: mla ? (lat + rope) * kvb : 2 * s.kvHeads * s.headDim * kvb,
|
|
507
|
-
swaLayers, fullLayers: s.layers - swaLayers, win: s.swaWindow || 0,
|
|
743
|
+
swaLayers, linLayers, fullLayers: s.layers - swaLayers - linLayers, win: s.swaWindow || 0, keep, topK, linState,
|
|
744
|
+
// FLOPs per token per linear-attention layer: read and update the state (fp32, 4 bytes an element), ~4 FLOPs an element
|
|
745
|
+
Alin: (s.linStateMB || 0) * 1e6,
|
|
508
746
|
// attention FLOPs per (query token, context token) per layer
|
|
509
747
|
Apre: mla ? s.qHeads * (2 * (nope + rope) + 2 * vh) : 4 * s.qHeads * s.headDim,
|
|
510
748
|
Adec: mla ? s.qHeads * (2 * (lat + rope) + 2 * lat) : 4 * s.qHeads * s.headDim,
|
|
@@ -515,17 +753,26 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
515
753
|
};
|
|
516
754
|
}
|
|
517
755
|
|
|
756
|
+
// KV bytes one sequence of L tokens holds: full-attention layers keep (a share of) every token, sliding-window layers
|
|
757
|
+
// the last W, linear-attention layers a fixed state
|
|
518
758
|
function kvBytes(md, L) {
|
|
519
|
-
const w = md.win || L;
|
|
520
|
-
return md.kvTokLayer * (md.fullLayers * L + md.swaLayers * Math.min(L, w));
|
|
759
|
+
const w = md.win || L, keep = md.keep || 1;
|
|
760
|
+
return md.kvTokLayer * (md.fullLayers * L * keep + md.swaLayers * Math.min(L, w)) + (md.linState || 0);
|
|
761
|
+
}
|
|
762
|
+
// context tokens one query attends in a full-attention layer, and its integral over query positions 0..x
|
|
763
|
+
const attended = (md, L) => { const n = L * (md.keep || 1); return md.topK ? Math.min(n, md.topK) : n; };
|
|
764
|
+
function attendedSum(md, x) {
|
|
765
|
+
const k = md.keep || 1;
|
|
766
|
+
if (!md.topK) return k * x * x / 2;
|
|
767
|
+
const t = md.topK / k;
|
|
768
|
+
return x <= t ? k * x * x / 2 : k * t * t / 2 + md.topK * (x - t);
|
|
521
769
|
}
|
|
522
770
|
function attnPre(md, Lc, L) {
|
|
523
771
|
const W = md.win;
|
|
524
|
-
const f = x => x * x / 2;
|
|
525
772
|
const g = x => x <= W ? x * x / 2 : W * W / 2 + W * (x - W);
|
|
526
|
-
return md.Apre * (md.fullLayers * (
|
|
773
|
+
return md.Apre * (md.fullLayers * (attendedSum(md, L) - attendedSum(md, Lc)) + md.swaLayers * (g(L) - g(Lc))) + (md.linLayers || 0) * (md.Alin || 0) * (L - Lc);
|
|
527
774
|
}
|
|
528
|
-
function attnDec(md, L) { return md.Adec * (md.fullLayers * L + md.swaLayers * Math.min(L, md.win || L)); }
|
|
775
|
+
function attnDec(md, L) { return md.Adec * (md.fullLayers * attended(md, L) + md.swaLayers * Math.min(L, md.win || L)) + (md.linLayers || 0) * (md.Alin || 0); }
|
|
529
776
|
|
|
530
777
|
// ---------- parallel layouts ----------
|
|
531
778
|
// Instances of g GPUs. Inside one scale-up domain (D GPUs): TP, or TP+EP for MoE, or DP-attention+EP for MLA.
|
|
@@ -762,6 +1009,27 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
762
1009
|
return { rows, best };
|
|
763
1010
|
}
|
|
764
1011
|
|
|
1012
|
+
// The operating point of one fixed layout at a fixed concurrency: what an engine running config c with B sequences
|
|
1013
|
+
// in flight delivers, by the same physics sizeAgg uses (each step carries the decode batch plus prefill chunks; the
|
|
1014
|
+
// prefill share fp slows the compute part). For checking the model against measured runs (e.g. InferenceX):
|
|
1015
|
+
// returns TPOT, TTFT, and output tokens/s per GPU.
|
|
1016
|
+
function operatingPoint(s, md, c, B) {
|
|
1017
|
+
const st = decodeStep(s, md, c, B), ps = prefillStats(s, md, c), osl = s.avgOut, isl = Math.min(s.avgIn, s.ctx);
|
|
1018
|
+
let tpot = st.t, ttft = ps.Sbatch, fp = 0;
|
|
1019
|
+
for (let i = 0; i < 50; i++) {
|
|
1020
|
+
const lam = B / (osl * tpot + ttft); // requests/s through this instance
|
|
1021
|
+
fp = Math.min(0.95, lam * isl / ps.cap); // share of compute spent on prefill
|
|
1022
|
+
const t = Math.max(st.tm, st.tc / (1 - fp)) * 1.1 + st.comm + st.ovh;
|
|
1023
|
+
// a new prompt is prefilled in chunks between decode steps: its share of each step is what decode leaves
|
|
1024
|
+
const free = Math.max(0.05, 1 - Math.max(st.tm, st.tc) / t);
|
|
1025
|
+
const tt = prefillTime(s, md, c, isl, 0, 1) / free + mdWait(Math.min(0.85, fp), isl / ps.cap) + t;
|
|
1026
|
+
if (Math.abs(t - tpot) < 1e-7 && Math.abs(tt - ttft) < 1e-6) { tpot = t; ttft = tt; break; }
|
|
1027
|
+
tpot = t; ttft = tt;
|
|
1028
|
+
}
|
|
1029
|
+
const outPerGpu = B * osl / (osl * tpot + ttft) / c.g;
|
|
1030
|
+
return { tpot, ttft, outPerGpu, prefillShare: fp, bound: st.bound, step: st };
|
|
1031
|
+
}
|
|
1032
|
+
|
|
765
1033
|
// Nodes (scale-up domains) needed: instances that span domains take whole domains; smaller ones pack first-fit-decreasing.
|
|
766
1034
|
function packNodes(pools, D) {
|
|
767
1035
|
const items = [];
|
|
@@ -826,7 +1094,7 @@ nav.views .chip { font-size: 12.5px; padding: 4px 12px; }
|
|
|
826
1094
|
return res;
|
|
827
1095
|
}
|
|
828
1096
|
|
|
829
|
-
const api = { SETTINGS, plan, derive, kvBytes, decodeStep, memInfo, prefillStats, configs, computeLoad, decodeLabel, prefillLabel, decodeCap, packNodes };
|
|
1097
|
+
const api = { SETTINGS, plan, derive, kvBytes, attnPre, attnDec, decodeStep, memInfo, prefillStats, prefillTime, configs, computeLoad, decodeLabel, prefillLabel, decodeCap, packNodes, operatingPoint };
|
|
830
1098
|
if (typeof module !== 'undefined' && module.exports) module.exports = api; else root.SizerModel = api;
|
|
831
1099
|
})(this);
|
|
832
1100
|
|
|
@@ -1382,7 +1650,7 @@ function memoryHTML(r) {
|
|
|
1382
1650
|
<div class="membar">${parts.map(p => `<div style="width:${Math.max(0, 100 * p[1] / hbm).toFixed(2)}%;background:${p[2]}" title="${p[0]}"></div>`).join('')}</div>
|
|
1383
1651
|
<div class="memlegend">${parts.map(p => `<i style="background:${p[2]}"></i><span>${p[0]}</span><span class="mono">${fGB(p[1])}</span>`).join('')}</div>
|
|
1384
1652
|
<dl class="kv" style="margin-top:14px">
|
|
1385
|
-
<dt>KV per token (all layers)</dt><dd>${fGB(md.
|
|
1653
|
+
<dt>KV per token (all layers, averaged over a full context)</dt><dd>${fGB(M.kvBytes(md, s.ctx) / s.ctx)}</dd>
|
|
1386
1654
|
<dt>KV for one ${fCtx(s.ctx)} full-context request</dt><dd>${fGB(mi.ctxBytes)}</dd>
|
|
1387
1655
|
<dt>KV for an average request (${fInt(s.avgIn + s.avgOut)} tokens)</dt><dd>${fGB(M.kvBytes(md, Math.min(s.ctx, s.avgIn + s.avgOut)))}</dd>
|
|
1388
1656
|
<dt>KV capacity per instance</dt><dd>${fGB(mi.cap)}</dd>
|
|
@@ -1699,7 +1967,7 @@ function detailHTML() {
|
|
|
1699
1967
|
}
|
|
1700
1968
|
|
|
1701
1969
|
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;
|
|
1970
|
+
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
1971
|
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
1972
|
|
|
1705
1973
|
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/) |
|