|
Download README.md from paleumm/phantora-train: direct link, hf CLI and curl.
- Browser
- Download file 27 kB
-
https://huggingface.co/datasets/paleumm/phantora-train/resolve/main/README.md
- Command line
-
hf download hf://datasets/paleumm/phantora-train/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/paleumm/phantora-train/resolve/main/README.md
27 kB
| license: apache-2.0 | |
| pretty_name: Phantora training traffic traces | |
| tags: | |
| - distributed-training | |
| - network-traffic | |
| - simulation | |
| - nccl | |
| configs: | |
| - config_name: meta_scale_runs | |
| data_files: data/meta_scale/runs.csv | |
| - config_name: meta_scale_server_bytes | |
| data_files: data/meta_scale/server_bytes.csv | |
| - config_name: meta_scale_bins | |
| data_files: data/meta_scale/bins.csv | |
| - config_name: runs_v2 | |
| data_files: data/phantora_v2/runs.csv | |
| - config_name: flows_100ms_v2 | |
| data_files: data/phantora_v2/flows_100ms.csv | |
| - config_name: windows_v2 | |
| data_files: data/phantora_v2/windows.csv | |
| - config_name: runs_v1 | |
| data_files: data/phantora_v1/runs.csv | |
| - config_name: flows_100ms_v1 | |
| data_files: data/phantora_v1/flows_100ms.csv | |
| - config_name: windows_v1 | |
| data_files: data/phantora_v1/windows.csv | |
| - config_name: runs | |
| data_files: data/phantora_v0/runs.csv | |
| - config_name: flows_100ms | |
| data_files: data/phantora_v0/flows_100ms.csv | |
| - config_name: windows | |
| data_files: data/phantora_v0/windows.csv | |
| # Phantora training traffic traces | |
| Node-to-node network traffic of distributed LLM training, simulated with | |
| [Phantora](https://github.com/QDelta/Phantora) (NSDI 2026). Phantora | |
| intercepts the CUDA and NCCL calls of unmodified Megatron, DeepSpeed and | |
| TorchTitan scripts and simulates kernels and collectives on a virtual cluster, | |
| so no real GPU cluster is used. | |
| > **Three versions.** | |
| > - **v2 (recommended)** — the same 264 runs as v1, simulated with re-recorded GPU | |
| > timing databases whose kernel timings match real A100s within about 1% | |
| > (below). Configs `runs_v2`, `flows_100ms_v2`, `windows_v2`; traces in | |
| > `traces/<gpu>_v2/`; databases in `perfdb/<gpu>_v2/`. | |
| > - **v1** — 264 runs: 7 workloads (W1–W7) on 6 GPU timing sets | |
| > (L40S, A100-40GB, H100, H200, B200, B300) at 5 layouts, plus skewed-MoE | |
| > variants. Configs `runs_v1`, `flows_100ms_v1`, `windows_v1`; traces in | |
| > `traces/<gpu>_v1/`. Built with an extended Phantora (below). Its optimizer | |
| > kernels are timed too fast, most of all for MoE models on older GPUs. | |
| > - **v0** — the 26 Phase 1 runs with unmodified Phantora (configs `runs`, | |
| > `flows_100ms`, `windows`; traces in `traces/l40s/` and `traces/a100_40g/`). | |
| > Kept for comparison; its compute timing misses 35–45% of real GPU work. | |
| ## Meta scale: Llama 3 405B on 8,192 and 16,384 GPUs (Dec 2026) | |
| Step times and traffic between servers for Meta's Llama 3 405B pre-training layouts (Llama 3 | |
| paper, Table 4), simulated at full size on one server. Configs `meta_scale_runs`, | |
| `meta_scale_server_bytes`, `meta_scale_bins`; run folders and flow logs in `data/meta_scale/runs/`. | |
| | config | GPUs | layout | micro-batches per replica | schedules | | |
| |---|---|---|---|---| | |
| | `405b-meta8k` | 8,192 (1,024 servers) | TP 8 x PP 16 x DP 64 | 32 | 1F1B, interleaved (2 chunks) | | |
| | `405b-meta16k` | 16,384 (2,048 servers) | TP 8 x PP 16 x DP 128 | 16 | 1F1B, interleaved (2 chunks) | | |
| | `405b-meta-slice` | 256 (32 servers) | TP 8 x PP 16 x DP 2 | 32 | 1F1B, interleaved (2 chunks) | | |
| All: 128 layers, sequence 8,192, 16M tokens per step (slice: 512K), Megatron with full activation | |
| recompute and the distributed optimizer, H100 timings (`h100_v2`). Cluster: 8 H100 per server, | |
| 400 Gbit/s per GPU, non-blocking pods of 256 servers joined at 1:7 oversubscription. | |
| **How.** These are not traces: they come from fast mode (`--lite`), which records step markers and | |
| flows between servers only. One process per pipeline stage of one data-parallel replica runs; the | |
| other tensor-parallel ranks and replicas are simulated from it (virtual TP and virtual DP; flows of | |
| the replicas are kept as bundles in the network model). Checked against full simulations: step time | |
| within 0.5% (most within 0.1%), bytes between servers identical. See cluster-sim `docs/scaling.md`. | |
| **Tables.** | |
| - `runs.csv`: one row per run: layout, model, cluster, step time (`step_time_s`, steady; `step0_time_s`), | |
| `tokens_per_s_per_gpu`, `network_bytes_per_step` (between servers), validity (`ok`, | |
| `missing_db_shapes`), and how long the simulation took (`simulation_wall_s`). | |
| - `server_bytes.csv`: per run, step and server: bytes sent to and received from other servers. | |
| - `bins.csv`: per run and step: bytes between servers in 10 ms windows from the step's start. | |
| Not modelled: traffic inside a server, NCCL channels (one flow per ring hop), fused attention | |
| kernels (attention is plain PyTorch), and the real cluster's ToR / cluster-switch hops. | |
| ## v2 (Nov 2026) | |
| ### What changed from v1 | |
| Only the GPU timing databases. Workloads, layouts, simulator, checks and CSV schema | |
| are the same as v1 (described below), so v1 and v2 rows compare one to one; | |
| `source` is `phantora_v2`. | |
| We ran W1 and W4 for real on two A100s and compared them op by op with the | |
| simulation. Three bugs in the timing benchmark (`tests/perfdb/bench.py` in our | |
| Phantora fork) made kernel times wrong: | |
| | Bug | Effect in v1 | | |
| | --- | --- | | |
| | Operands of the same size shared one GPU buffer (inherited from upstream Phantora). Inside a tensor list this collapses, e.g., 256 expert tensors into one 6 MB buffer that sits in L2 cache | Memory-bound optimizer steps (Adam's `_foreach_*`, gradient `add_`) far too fast: one 4.8 GB-per-operand `_foreach_addcmul_` timed 2.1 ms on L40S, faster than its memory bandwidth allows (v2: 27.2 ms) | | |
| | Wrapped Python scalars (e.g. `flat_grad.mul_(1/scale)`) were placed on the GPU | That op 2.4× too slow on A100 | | |
| | Generic float arguments were replayed as 0.5 | `linalg_vector_norm` took the p-norm path, 2.4× too slow | | |
| v2 databases re-record the same 3,173 compute + 207 memcpy shapes on all six GPUs | |
| with the fixes (stock PyTorch 2.9.1 on Modal). Kernels the profiler dropped (0 ns on | |
| one GPU, non-zero on others) were re-timed once; two on B300 stayed at 0 and were | |
| filled from B200 (`perfdb/b300_v2/FILLED.md`). One exception to stock 2.9.1: on B300, | |
| 2.9.1 runs fused AdamW about 7× slower than on B200 (no sm_103 build of its kernel), so | |
| W7's two `_fused_adamw_` entries were re-timed with PyTorch 2.14.1, also listed in | |
| `FILLED.md`. The five B300 W7 runs were re-run and replaced on 2026-11-23. | |
| Against real A100s (one host, 2 GPUs), simulated kernel time is now within 1.5% of | |
| real, and step time is 4–6% fast instead of 10–20%: | |
| | | real ms/step | v1 | v2 | | |
| | --- | --- | --- | --- | | |
| | W1 (Megatron TP=2), rank 0 | 120.5 | 95.8 (−20.5%) | 112.9 (−6.3%) | | |
| | W4 (DeepSpeed DP) | 226.8 | 204.6 (−9.8%) | 214.0 (−5.6%) | | |
| The rest is communication between GPUs inside a host, which the simulator treats | |
| as nearly free; it does not change the network flows between hosts. | |
| ### Median step time (ms), and change from v1 | |
| At 2 × 1 (2 GPUs, all traffic on the network): | |
| | Workload | L40S | A100 40GB | H100 | H200 | B200 | B300 | | |
| |---|---|---|---|---|---|---| | |
| | W1 | 189.2 (+18%) | 113.5 (+18%) | 50.5 (+16%) | 39.9 (+13%) | 29.2 (+9%) | 28.0 (+9%) | | |
| | W2 | OOM | OOM | 155.2 (+10%) | 122.4 (+4%) | 89.6 (−3%) | 86.3 (−3%) | | |
| | W3 | 315.4 (+82%) | 217.3 (+30%) | 102.3 (+21%) | 85.2 (+10%) | 73.2 (+2%) | 70.1 (+4%) | | |
| | W4 | 398.3 (+11%) | 255.7 (+4%) | 145.1 (+2%) | 126.0 (−3%) | 107.2 (−6%) | 104.7 (−6%) | | |
| | W5 | OOM | OOM | 237.6 (+5%) | 210.5 (+3%) | 190.2 (0%) | 189.7 (0%) | | |
| | W6 | 34.3 (+3%) | 49.6 (+1%) | 27.2 (−2%) | 26.4 (−3%) | 23.8 (−1%) | 22.4 (−4%) | | |
| | W7 | 73.1 (+21%) | 136.4 (+6%) | 40.1 (+3%) | 36.2 (+1%) | 38.5 (+1%) | 34.9 (−29%)² | | |
| At 4 × 2 (8 GPUs): | |
| | Workload | L40S | A100 40GB | H100 | H200 | B200 | B300 | | |
| |---|---|---|---|---|---|---| | |
| | W1 | 115.3 (+12%) | 88.6¹ (+2%) | 71.7 (+1%) | 69.0 (+1%) | 65.9 (0%) | 65.5 (0%) | | |
| | W2 | 230.3 (+13%) | 149.1 (+7%) | 68.6 (+5%) | 58.7 (+3%) | 44.5 (−2%) | 43.0 (−1%) | | |
| | W3 | 152.7 (+33%) | 121.2 (+11%) | 61.9 (+6%) | 55.5 (+1%) | 48.8 (−2%) | 47.8 (−1%) | | |
| | W4 | 342.6 (+7%) | 247.9 (0%) | 165.2 (−1%) | 152.6 (−4%) | 138.6 (−5%) | 136.3 (−5%) | | |
| | W5 | 434.4 (+6%) | 304.3 (+5%) | 255.1 (+1%) | 246.7 (+1%) | 241.4 (0%) | 241.4 (0%) | | |
| | W6 | 34.4 (+3%) | 49.7 (+1%) | 27.4 (−2%) | 26.6 (−3%) | 24.0 (−1%) | 22.6 (−4%) | | |
| | W7 | 64.6 (+20%) | 117.5 (+4%) | 35.0 (0%) | 32.5 (−1%) | 33.7 (+1%) | 30.9 (−32%)² | | |
| ¹ step time varies by more than 1% between steps with identical traffic | |
| (`ok_jitter`). ² B300 W7 with fused AdamW re-timed on PyTorch 2.14.1 (see above); | |
| v1 still has the slow 2.9.1 timing. Steps got slower where optimizer and other memory-bound kernels take | |
| a large share (MoE models, older GPUs with less bandwidth). The few that got faster | |
| had over-long scalar and norm kernels in v1. | |
| ### Checks | |
| All 264 v2 traces pass the four checks, 249 strictly and 15 with step-time jitter | |
| above 1% but identical bytes. The same six configs as in v1 do not fit in memory. | |
| ## v1 (Nov 2026) | |
| ### What changed from v0 | |
| v1 uses Phantora commit `301d9d9` plus our branch `phantora-train/op-coverage`: | |
| | Change | Effect on the data | | |
| | --- | --- | | |
| | **Kernel coverage**: every PyTorch op that launches GPU work is timed (unmodelled ops become `Generic` and are timed through `torch.ops.aten`), not only Phantora's 37 modelled ops | Compute timing is much closer to real: W1 on A100 went from 61 ms to 98 ms per step against 120 ms measured on real A100s (v0 missed 35–45% of GPU compute in every workload) | | |
| | **Step markers** (`PhantoraMarker` events) | Steps come from recorded boundaries, not inference | | |
| | **Sender rank per flow** + `comms.json` per run | Every flow maps to its sending GPU (host, process, device, global rank) | | |
| | **NCCL latency**: base 6.6 µs + 2.7 µs per ring step (NCCL 2.27's ring/LL network constants) | Small collectives no longer take 0 µs | | |
| | **Skewed MoE routing** option (Zipf 1.2, fixed per layer) | `*_zipf` runs of W2/W3 have unequal expert all-to-all traffic | | |
| | TorchTitan fixed in the image; visualizer send/recv and output-speed fixes | W6/W7 included; MoE traces convert | | |
| The full source change is `tools/phantora_v1_op-coverage.patch` (apply to Phantora `301d9d9`); `tools/record_perfdb.py` and `tools/gpu_memory_modal.py` record a timing database and measure a GPU's memory on Modal. | |
| GPU timing databases (`perfdb/<gpu>_v1/`) were all re-timed from one shared set of | |
| 3,173 compute + 207 memcpy shapes with `tests/perfdb/bench.py`: L40S, H100, H200, | |
| B200, B300 on Modal (exact GPU types pinned), A100-40GB on our own GPU. Three | |
| entries the profiler returned as 0 ns on B200/B300 were filled from a sibling GPU | |
| (`FILLED.md` in each database). | |
| ### Workloads | |
| | # | Framework | Model (simulated) | Parallelism as GPUs grow | | |
| | --- | --- | --- | --- | | |
| | W1 | Megatron | Llama3-8B, 4 layers | TP=2, DP over the rest | | |
| | W2 | Megatron | Mixtral 8×7B, 4 layers | EP = GPUs (max 8) | | |
| | W3 | Megatron | Qwen3-30B-A3B, 4 layers | EP = GPUs | | |
| | W4 | DeepSpeed | Llama3-8B, 4 layers | DP = GPUs | | |
| | W5 | DeepSpeed | gpt-oss-20B, 4 layers | ZeRO-3, DP = GPUs | | |
| | W6 | TorchTitan | Llama3 debug model (6.2 M params) | FSDP2 = GPUs | | |
| | W7 | TorchTitan | Qwen3 MoE debug model (316 M params) | FSDP2 = GPUs, EP for MoE | | |
| Layouts: 2×1, 2×2, 4×1, 2×4, 4×2 (nodes × GPUs per node). Simulated GPU memory is | |
| each card's real capacity. | |
| ### Median step time (ms) | |
| At 2 × 1 (2 GPUs, all traffic on the network): | |
| | Workload | L40S | A100 40GB | H100 | H200 | B200 | B300 | | |
| |---|---|---|---|---|---|---| | |
| | W1 | 161.0 | 96.4 | 43.4 | 35.2 | 26.8 | 25.7 | | |
| | W2 | OOM | OOM | 141.7 | 117.5 | 92.5 | 88.9 | | |
| | W3 | 173.8 | 166.9 | 84.8 | 77.4 | 71.7 | 67.4 | | |
| | W4 | 359.4 | 246.2 | 142.7 | 129.4 | 113.6 | 110.9 | | |
| | W5 | OOM | OOM | 226.0 | 204.5 | 189.6 | 189.2 | | |
| | W6 | 33.3 | 49.2 | 27.7 | 27.4 | 24.2 | 23.3 | | |
| | W7 | 60.5 | 128.5 | 38.9 | 35.9 | 38.3 | 49.1 | | |
| At 4 × 2 (8 GPUs): | |
| | Workload | L40S | A100 40GB | H100 | H200 | B200 | B300 | | |
| |---|---|---|---|---|---|---| | |
| | W1 | 102.5 | 86.4 | 70.9 | 68.5 | 65.9 | 65.5 | | |
| | W2 | 203.1 | 139.0 | 65.1 | 57.1 | 45.6¹ | 43.6¹ | | |
| | W3 | 114.9 | 109.4 | 58.4 | 54.7 | 49.9 | 48.4 | | |
| | W4 | 320.9 | 248.7 | 167.6 | 158.9 | 146.6 | 144.2 | | |
| | W5 | 408.9 | 289.8 | 252.2 | 245.3 | 241.0 | 241.1 | | |
| | W6 | 33.5 | 49.4 | 27.9 | 27.6 | 24.3 | 23.5 | | |
| | W7 | 54.0 | 113.1 | 34.9 | 32.6¹ | 33.4 | 45.3 | | |
| OOM = the model does not fit that card's memory at that layout (W2 and W5 on the | |
| 40–46 GB cards at 2 GPUs). ¹ step time varies by more than 1% between steps with | |
| identical traffic (simulated network jitter; flagged `ok_jitter` in the checks). | |
| All per-run numbers, including the other layouts and the `_zipf` variants, are in | |
| `runs_v1`. | |
| ### Checks | |
| All 264 traces pass the four checks (network flows; same collectives every step; | |
| every flow's bytes match the ring formula for its op and group size; equal steps), | |
| 247 strictly and 17 with step-time jitter above 1% but identical bytes. Two | |
| relaxations, both reported in each run's `checks.txt`: steps count as identical if | |
| the collectives that differ carry at most 0.01% of the step's bytes (TorchTitan's | |
| 4-byte metric all-reduces; ZeRO-3 prefetches of bias parameters near a step | |
| boundary). | |
| ### Things to know | |
| - W7 runs slower on B300 than on B200 or H100. B300 is the only database timed with | |
| the CUDA 13.0 build of PyTorch; not yet investigated. | |
| - On the TorchTitan debug models (W6, W7) L40S beats A100: they are dominated by | |
| small kernels, which the L40S database times about 1.4× faster than A100. | |
| - Compute timing is about 20% faster than real on W1/A100. The cause was found and | |
| fixed in v2 (shared operand buffers in the timing benchmark); use v2. | |
| ## What the data is | |
| - **Raw traces** (`traces/`): every simulated communication event, with bytes, | |
| source host, destination host, NCCL op, element count, dtype and start/end | |
| time. Computation events, with kernel or torch op and duration, are | |
| included too. | |
| - **Dataset CSVs** (`data/phantora_v0/`): the same traffic in the schema of | |
| our v1 FakeTensor dataset. That is bytes per (source node, destination node) | |
| per 100 ms bin over a 180 s window, plus one summary row per run and | |
| per-window detector features. | |
| ## How it was made | |
| 1. **Kernel timings.** Phantora (commit `301d9d9`, unmodified) replays kernel | |
| times from a performance database: | |
| - **L40S:** the database that ships with Phantora. It only covers 2-GPU | |
| configs, so L40S runs are 2 × 1 only. | |
| - **A100 40GB:** recorded by us on an A100-SXM4-40GB, using Phantora's | |
| record mode, for every config here. It is included in `perfdb/a100_40g/`. | |
| 2. **Simulate.** Each config runs in Docker in replay mode, with no GPU and | |
| 20 iterations. `phantora_server --timeline-file` logs every event. | |
| 3. **Convert.** The log is turned into Chrome/Perfetto JSON | |
| (`timeline.json.gz`). We use Phantora's `phantora_visualizer` with a | |
| one-line fix (`tools/visualizer.patch`): the original panics on | |
| `NcclSend`/`NcclRecv` events, which make up MoE all-to-all. On traces | |
| without those events, its output is byte-identical to the original's. | |
| 4. **Check.** Each trace is checked before it is published (`checks.txt` in | |
| each run folder): | |
| - network flows exist; | |
| - every steady step has the same set of collectives; | |
| - every flow's bytes match the ring formula for its op, with one group size | |
| n per communicator: all-reduce 2(n−1)/n × S, all-gather and | |
| reduce-scatter (n−1) × S, send/recv S; | |
| - steady steps have the same bytes and nearly the same duration. | |
| 5. **Build the dataset.** One steady-state step is repeated for 180 s with | |
| ±2% step jitter and a random start phase. Each node adds 5 kB/s of control | |
| traffic, and the result is summed into 100 ms bins. This is the same code | |
| as the v1 dataset. CSV totals were checked to equal the trace's network | |
| bytes exactly. | |
| ## Runs | |
| 26 runs from 5 workloads. The step time is the median steady-state step. The bytes are inter-host network bytes per step, both directions combined. | |
| | run_id | # | Framework | Model | Parallelism | Nodes × GPUs | GPU timings | Step time | Inter-node bytes/step | | |
| |---|---|---|---|---|---|---|---|---| | |
| | `phantora_l40s_W1_2x1` | W1 | Megatron | Llama3-8B, 4 layers | tp=2,dp=1 | 2 × 1 | L40S | 90.9 ms | 0.30 GB | | |
| | `phantora_a100_40g_W1_2x1` | W1 | Megatron | Llama3-8B, 4 layers | tp=2,dp=1 | 2 × 1 | A100 40GB | 61.5 ms | 0.30 GB | | |
| | `phantora_a100_40g_W1_2x2` | W1 | Megatron | Llama3-8B, 4 layers | tp=2,dp=2 | 2 × 2 | A100 40GB | 70.3 ms | 7.69 GB | | |
| | `phantora_a100_40g_W1_4x1` | W1 | Megatron | Llama3-8B, 4 layers | tp=2,dp=2 | 4 × 1 | A100 40GB | 70.8 ms | 8.30 GB | | |
| | `phantora_a100_40g_W1_2x4` | W1 | Megatron | Llama3-8B, 4 layers | tp=2,dp=4 | 2 × 4 | A100 40GB | 75.9 ms | 11.54 GB | | |
| | `phantora_a100_40g_W1_4x2` | W1 | Megatron | Llama3-8B, 4 layers | tp=2,dp=4 | 4 × 2 | A100 40GB | 75.9 ms | 23.08 GB | | |
| | `phantora_a100_40g_W2_2x2` | W2 | Megatron | Mixtral 8×7B, 4 layers | ep=4 | 2 × 2 | A100 40GB | 147.2 ms | 3.12 GB | | |
| | `phantora_a100_40g_W2_4x1` | W2 | Megatron | Mixtral 8×7B, 4 layers | ep=4 | 4 × 1 | A100 40GB | 147.2 ms | 5.36 GB | | |
| | `phantora_a100_40g_W2_2x4` | W2 | Megatron | Mixtral 8×7B, 4 layers | ep=8 | 2 × 4 | A100 40GB | 116.2 ms | 4.08 GB | | |
| | `phantora_a100_40g_W2_4x2` | W2 | Megatron | Mixtral 8×7B, 4 layers | ep=8 | 4 × 2 | A100 40GB | 116.2 ms | 6.02 GB | | |
| | `phantora_l40s_W3_2x1` | W3 | Megatron | Qwen3-30B-A3B, 4 layers | ep=2 | 2 × 1 | L40S | 108.5 ms | 3.33 GB | | |
| | `phantora_a100_40g_W3_2x1` | W3 | Megatron | Qwen3-30B-A3B, 4 layers | ep=2 | 2 × 1 | A100 40GB | 122.4 ms | 3.33 GB | | |
| | `phantora_a100_40g_W3_2x2` | W3 | Megatron | Qwen3-30B-A3B, 4 layers | ep=4 | 2 × 2 | A100 40GB | 91.8 ms | 5.27 GB | | |
| | `phantora_a100_40g_W3_4x1` | W3 | Megatron | Qwen3-30B-A3B, 4 layers | ep=4 | 4 × 1 | A100 40GB | 91.8 ms | 8.39 GB | | |
| | `phantora_a100_40g_W3_2x4` | W3 | Megatron | Qwen3-30B-A3B, 4 layers | ep=8 | 2 × 4 | A100 40GB | 82.2 ms | 7.04 GB | | |
| | `phantora_a100_40g_W3_4x2` | W3 | Megatron | Qwen3-30B-A3B, 4 layers | ep=8 | 4 × 2 | A100 40GB | 82.2 ms | 9.78 GB | | |
| | `phantora_l40s_W4_2x1` | W4 | DeepSpeed | Llama3-8B, 4 layers | dp=2 | 2 × 1 | L40S | 234.9 ms | 11.54 GB | | |
| | `phantora_a100_40g_W4_2x1` | W4 | DeepSpeed | Llama3-8B, 4 layers | dp=2 | 2 × 1 | A100 40GB | 178.2 ms | 11.54 GB | | |
| | `phantora_a100_40g_W4_2x2` | W4 | DeepSpeed | Llama3-8B, 4 layers | dp=4 | 2 × 2 | A100 40GB | 194.8 ms | 17.31 GB | | |
| | `phantora_a100_40g_W4_4x1` | W4 | DeepSpeed | Llama3-8B, 4 layers | dp=4 | 4 × 1 | A100 40GB | 194.8 ms | 34.62 GB | | |
| | `phantora_a100_40g_W4_2x4` | W4 | DeepSpeed | Llama3-8B, 4 layers | dp=8 | 2 × 4 | A100 40GB | 203.0 ms | 20.19 GB | | |
| | `phantora_a100_40g_W4_4x2` | W4 | DeepSpeed | Llama3-8B, 4 layers | dp=8 | 4 × 2 | A100 40GB | 203.0 ms | 40.39 GB | | |
| | `phantora_a100_40g_W5_2x2` | W5 | DeepSpeed | gpt-oss-20B, 4 layers | dp=4,zero=3 | 2 × 2 | A100 40GB | 251.0 ms ¹ | 38.32 GB | | |
| | `phantora_a100_40g_W5_4x1` | W5 | DeepSpeed | gpt-oss-20B, 4 layers | dp=4,zero=3 | 4 × 1 | A100 40GB | 249.2 ms ¹ | 76.64 GB | | |
| | `phantora_a100_40g_W5_2x4` | W5 | DeepSpeed | gpt-oss-20B, 4 layers | dp=8,zero=3 | 2 × 4 | A100 40GB | 252.4 ms | 44.71 GB | | |
| | `phantora_a100_40g_W5_4x2` | W5 | DeepSpeed | gpt-oss-20B, 4 layers | dp=8,zero=3 | 4 × 2 | A100 40GB | 252.4 ms | 89.41 GB | | |
| ¹ The bytes per step are identical in every step. The simulator's own step times vary by up to 4.4% in this config, which is real simulated jitter. | |
| **Configs with no trace.** Simulated memory is the card's real capacity (L40S 46 GB, A100 40 GB), so these did not fit: | |
| - `phantora_l40s_W2_2x1` (ep=2, 2 × 1, L40S): out of memory | |
| - `phantora_a100_40g_W2_2x1` (ep=2, 2 × 1, A100 40GB): out of memory | |
| - `phantora_l40s_W5_2x1` (dp=2,zero=3, 2 × 1, L40S): out of memory | |
| - `phantora_a100_40g_W5_2x1` (dp=2,zero=3, 2 × 1, A100 40GB): out of memory | |
| Run ids are `phantora_<gpu>_<workload>_<nodes>x<gpus>`. They match the folder `traces/<gpu>/<workload>_<nodes>x<gpus>/`. | |
| ### Parallelism | |
| - **W1:** TP=2, with data parallelism (DP) over the remaining GPUs. | |
| - **W2 and W3:** expert parallelism (EP) equals the GPU count; Mixtral (W2) has at most 8 experts. | |
| - **W4:** data parallelism across all GPUs. | |
| - **W5:** ZeRO-3 across all GPUs. | |
| - **Visibility:** traffic between GPUs inside one node stays on the host and is not in the network flows. For example, at 2 or 4 GPUs per node, W1's TP traffic is invisible. | |
| ## Usage | |
| The dataset is public with gated access: request access on this page (the owner | |
| approves requests), then log in with `hf auth login` or set `HF_TOKEN`. | |
| ```bash | |
| pip install datasets huggingface_hub pandas | |
| ``` | |
| ### Dataset CSVs | |
| ```python | |
| from datasets import load_dataset | |
| runs = load_dataset("paleumm/phantora-train", "runs_v2", split="train").to_pandas() | |
| flows = load_dataset("paleumm/phantora-train", "flows_100ms_v2", split="train").to_pandas() | |
| # also: "windows_v2"; v1 as "runs_v1" ...; v0 as "runs", "flows_100ms", "windows" | |
| print(runs[["run_id", "layout", "n_nodes", "step_time_s", "inter_node_bytes_per_step"]]) | |
| # Average bytes/s per directed node pair for one run (180 s window) | |
| f = flows[flows.run_id == "phantora_h100_v2_W1_2x1"] | |
| print(f.groupby(["src_node", "dst_node"]).bytes.sum() / 180.0) | |
| ``` | |
| Join the three tables on `run_id`. `flows_100ms` covers every run, so filter | |
| it by `run_id` before plotting. | |
| ### Raw trace | |
| ```python | |
| import gzip, json | |
| from huggingface_hub import hf_hub_download | |
| path = hf_hub_download("paleumm/phantora-train", | |
| "traces/h100_v2/W1_2x1/timeline.json.gz", repo_type="dataset") | |
| events = json.load(gzip.open(path)) # list of Chrome trace events, NOT sorted by time | |
| for e in sorted((e for e in events if e["cat"] == "Communication"), key=lambda e: e["ts"]): | |
| flow, call = e["args"]["Communication"] | |
| (op, info), = call.items() # e.g. "NcclAllReduce", {count, dtype, comm, ...} | |
| if flow["src"] != flow["dst"]: # network flows only | |
| print(e["ts"], e["dur"], flow["src"], flow["dst"], flow["bytes"], op, info["count"], info["dtype"]) | |
| ``` | |
| `ts` and `dur` are in simulated microseconds. Computation events have | |
| `"cat": "Computation"` and name the kernel or torch op. | |
| ### Whole run folder, or view in Perfetto | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| d = snapshot_download("paleumm/phantora-train", repo_type="dataset", | |
| allow_patterns=["traces/l40s/W1_2x1/*"]) | |
| ``` | |
| To browse a trace, gunzip `timeline.json.gz` and open it in | |
| [ui.perfetto.dev](https://ui.perfetto.dev). Each host is one process track, | |
| and communication spans sit on their own track. To regenerate the JSON from | |
| `timeline.bin`, use `phantora_visualizer -t timeline.bin -o timeline.json` | |
| from the Phantora Docker image. For MoE traces (W2, W3), first apply | |
| `tools/visualizer.patch`. | |
| ## Layout | |
| ``` | |
| traces/<gpu>/<workload>_<nodes>x<gpus>/ | |
| timeline.bin raw Phantora timeline (read with phantora_visualizer) | |
| timeline.json.gz Chrome/Perfetto JSON; open in ui.perfetto.dev | |
| run.log training stdout: per-iteration simulated time, peak memory | |
| config/ compose.yaml, netconfig.toml, hostfile, command.txt (exact commands) | |
| checks.txt output of the sanity checks for this trace | |
| data/phantora_v0/ | |
| runs.csv one row per run | |
| flows_100ms.csv run_id, t, src_node, dst_node, bytes | |
| windows.csv detector features per 1 s and 15 s window | |
| perfdb/a100_40g/ A100-SXM4-40GB kernel timings (Phantora perf DB format) | |
| tools/visualizer.patch the one-line visualizer fix | |
| ``` | |
| ### Trace events | |
| In `timeline.json.gz`, every event with `"cat": "Communication"` has | |
| `args.Communication = [flow, nccl_call]`: | |
| - `flow`: `bytes`, `src`, `dst` (host names, `host-1` …), `id`. | |
| - `nccl_call`: `{op: {count, dtype, op, comm: {rank, id}, stream}}`. | |
| - `ts` and `dur` are in simulated microseconds since the start of the run. | |
| ### CSV schema | |
| The columns are identical to the v1 dataset (`runs.csv`, `flows_100ms.csv`, | |
| `windows.csv`). Units are bytes and seconds. Host `host-k` is node `k−1`. In | |
| `runs.csv`, `source = phantora_v0`. Columns that only make sense for a | |
| roofline model (`flops_per_step`, `mfu`, `peak_flops`, `alpha`) are empty, | |
| because timing comes from measured kernel times. `nic_bw` is the simulated | |
| host link in bytes/s. | |
| `runs.csv` written by cluster-sim after Nov 26 2026 ends with three columns that are | |
| not in v1 (rows from earlier releases do not have them): | |
| - `includes_untimed_kernels` (true / false; empty: not known): the run launched GPU | |
| kernels outside PyTorch's own libraries (CUDA extensions, `torch.library` ops, Triton). | |
| The simulator charges those **0 time**, so the step time is too short by their real | |
| cost. The flag goes away for a kernel once it gets a timing. Empty for runs simulated | |
| before this was recorded reliably. | |
| - `untimed_kernels`: how many distinct such kernels (names in the run folder's | |
| `dropped_ops.csv` and `status.json`); empty: not known, as above. | |
| - `run_check_warnings`: restriction checks that warned on this run, `;`-separated | |
| (empty: none; `not_checked`: the run was simulated before the checks existed, so | |
| nothing is known either way). Each names a way the simulated numbers can be wrong, | |
| described in `docs/restrictions/<name>.md` of the cluster-sim repository: | |
| `non_nccl_traffic`, `gpu_stream_overlap`, `cpu_time_per_step`, `untimed_kernels`, | |
| `cluster_design`, `time_outside_kernels`, `rank_order`. | |
| ## Simulated cluster | |
| - **Topology:** two-layer leaf-spine (`TwoLayerMultiPath`), 2 hosts per rack, | |
| 2 spines, ECMP. | |
| - **Links:** 800 Gbps per host and per rack uplink. | |
| - **Flow sharing:** per-flow max-min fairness. | |
| ## Known limits | |
| - **Endpoints are hosts, not GPUs or NICs.** Traffic between GPUs in the same | |
| host is not in the network flows. | |
| - **Each ring hop is one bulk flow.** Fine burst shape inside a collective is | |
| not modelled. | |
| - **MoE experts are forced to be balanced.** Routing imbalance is not | |
| represented. | |
| - **Small models.** Runs use a 4-layer slice of each model, so per-layer | |
| traffic is exact but per-step totals are for 4 layers. | |
| - **Kernel timing comes from one GPU of each type.** L40S timings come from | |
| Phantora's shipped database, and A100 timings come from one A100-SXM4-40GB. | |
| Collective timing comes from Phantora's flow-level network simulator. | |
| - **Step time barely depends on where GPUs sit.** In W2–W5, 2 × 2 and 4 × 1 | |
| (and 2 × 4 and 4 × 2) have the same step time even though their network | |
| bytes differ. We have not yet checked whether the network is on the | |
| critical path in these runs. | |
| - **No step markers in the trace.** Steps are found from each communicator's | |
| repeating sequence of collectives. | |
| - **TorchTitan is not included.** The Phantora image's pyarrow needs NumPy 2, | |
| while the image pins NumPy 1.26. | |
| - **Tiny collectives (≤ 4 KiB) show 0 µs duration.** | |
| - **The ±2% step jitter in the CSVs is added on purpose** (as in v1). The | |
| simulated steps themselves vary by about 0.1%. | |
| ## License | |
| Apache-2.0, following Phantora. See `LICENSE` and `NOTICE`. | |