Alogotron commited on
Commit
0e8d6b0
·
verified ·
1 Parent(s): 396f20e

docs: add dataset card with findings, methodology, and reproduction notes

Browse files
Files changed (1) hide show
  1. README.md +157 -0
README.md ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - benchmark
5
+ - llm-inference
6
+ - mixture-of-experts
7
+ - tensor-parallelism
8
+ - consumer-gpu
9
+ - freetoken
10
+ - qwen
11
+ pretty_name: FreeToken Qwen3.6-35B-A3B Dual RTX 3090 Benchmarks
12
+ ---
13
+
14
+ # FreeToken Qwen3.6-35B-A3B — Dual RTX 3090 Consumer Benchmarks
15
+
16
+ Measured inference performance of **Qwen3.6-35B-A3B** (FP8 / NVFP4 / BF16 checkpoints) served by
17
+ [FreeToken](https://github.com/FlashML-org/FreeToken) on a **consumer dual-GPU workstation**
18
+ (2x RTX 3090 24 GB, 62 GB RAM), across quantization formats, tensor-parallel configurations,
19
+ MoE backends, RAM bandwidth regimes, and three engine revisions — including validation of two
20
+ upstream fixes that landed during testing.
21
+
22
+ This is, to our knowledge, the **first published set of consumer dual-GPU numbers for this stack**.
23
+ All figures were measured on real hardware; methodology and provenance below.
24
+
25
+ ## Hardware / software environment
26
+
27
+ | Component | Value |
28
+ |---|---|
29
+ | GPU | 2x NVIDIA RTX 3090 24 GB (Ampere, sm_86), PCIe |
30
+ | CPU | Intel Core i9-10980XE, 18c/36t (X299 platform) |
31
+ | RAM | 62 GB DDR4, tested at 2000 MT/s (JEDEC) and 3600 MT/s (XMP) |
32
+ | OS | Ubuntu 24.04 |
33
+ | Driver / CUDA | 580.173.02 / CUDA 13.0 (official toolkit — see reproduction notes) |
34
+ | NCCL | 2.31.2 (`libnccl2` + `libnccl-dev`) |
35
+ | Engine | FreeToken v0.1.2 (PyPI) + `freetoken_kernel_cache` 0.1.2+cu130; later PR #104 head `3c8b281` + stacked branch (`f1ff8e2`, then `c23ec78`) |
36
+ | Models | `nvidia/Qwen3.6-35B-A3B-FP8` (35 GB), `nvidia/Qwen3.6-35B-A3B-NVFP4` (22 GB), BF16 (~70 GB, OOM on this host) |
37
+
38
+ ## Headline findings
39
+
40
+ ### 1. Config ladder (decode throughput, tok/s)
41
+
42
+ | Config | Engine revision | Decode tok/s | Verdict |
43
+ |---|---|---|---|
44
+ | FP8, TP=1, offload | v0.1.2 | **93.9** | Speed champion on 2x 3090 |
45
+ | NVFP4, TP=1, hybrid | v0.1.2 | 61.0 → **~79** (RAM 3600 MT/s) | CPU/RAM-bound |
46
+ | NVFP4, TP=2, hybrid | PR #104 @ `f1ff8e2` | 2.2 | Broken: CPU executor core collision |
47
+ | NVFP4, TP=2, hybrid + `--moe-cpu-threads 8` | PR #104 @ `f1ff8e2` | 9.5 | Workaround (4.3x) |
48
+ | NVFP4, TP=2, offload | PR #104 @ `f1ff8e2` | 3.1 | PCIe + host all-reduce serialization |
49
+ | **NVFP4, TP=2, hybrid** | **PR #104 @ `c23ec78`** | **32.7 wall / 59.3 engine-instantaneous** | Affinity fix verified: **14.9x vs broken** |
50
+ | FP8, TP=2 | PR #104 @ `f1ff8e2` | — | OOM at load (62 GB RAM < ~35 GB banks + runtime) |
51
+ | BF16, TP=2 | PR #104 | — | OOM (67 GB model > 62 GB RAM) |
52
+
53
+ ### 2. KV-cache capacity is the real TP=2 prize
54
+
55
+ | TP | Usable KV tokens |
56
+ |---|---|
57
+ | 1 | 262,144 |
58
+ | 2 | **524,288** (2.4x claim confirmed) |
59
+
60
+ ### 3. RAM bandwidth scaling (2000 → 3600 MT/s)
61
+
62
+ | Metric | 2000 MT/s | 3600 MT/s | Change |
63
+ |---|---|---|---|
64
+ | CPU STREAM read | 54.1 GB/s | 80.8 GB/s | +49% |
65
+ | PCIe H2D | 8.6 GB/s | 8.5 GB/s | flat |
66
+ | CPU-MoE NVFP4 | 28.1 GB/s | 46.7 GB/s | +66% |
67
+ | CPU-MoE BF16 | 41.5 GB/s | 71.3 GB/s | +72% |
68
+ | Serving: NVFP4 hybrid decode | 60.1–63.8 tok/s | 76.0–80.9 tok/s | **+29–31%** |
69
+ | Serving: FP8 offload decode | ~90–106 tok/s | ~86–106 tok/s | **flat** (PCIe-bound) |
70
+
71
+ **Lesson:** RAM overclocking only pays off on CPU-compute (hybrid) MoE paths; pure offload is PCIe-bound.
72
+
73
+ ### 4. Engine findings reported upstream (PR #104)
74
+
75
+ 1. **CPU executor core collision (fixed in `c23ec78`)**: both TP ranks' hybrid executors pinned to the same
76
+ physical cores. Per-rank disjoint core partitioning recovered 13.5–14.9x across three independent machines
77
+ (this dataset's host + two author machines).
78
+ 2. **Offload + `--disable-pynccl` serialization**: in offload mode, per-token PCIe expert streams and the
79
+ host-staged all-reduce contend on the same bus. Machine-dependent: hybrid wins on bare metal, offload can
80
+ win in VMs.
81
+ 3. **Fused MoE gate** (`freetoken/engine/engine.py`, `applied_nv`/`applied_fp` guards): `--moe-backend fused`
82
+ refuses NVFP4/FP8 ("bf16-only for now"). At TP=2 the sharded NVFP4 experts (~11 GB/rank) would fit in
83
+ 24 GB of VRAM — lifting this gate would likely beat every row in this dataset.
84
+
85
+ Also verified: the `lm_head` vocab-sharding fix (`f1ff8e2`) — both FP8 and NVFP4 now load past the previous
86
+ crash point at TP=2.
87
+
88
+ ## Data
89
+
90
+ `benchmarks.jsonl` — one row per measurement. Schema:
91
+
92
+ | Column | Type | Meaning |
93
+ |---|---|---|
94
+ | `date` | string | Measurement date (UTC) |
95
+ | `engine` | string | FreeToken version / commit |
96
+ | `model` | string | Checkpoint served |
97
+ | `quant` | string | `fp8` / `nvfp4` / `bf16` |
98
+ | `tp_size` | int | Tensor-parallel size |
99
+ | `moe_backend` | string | `offload` / `hybrid` / n/a |
100
+ | `attention_backend` | string | e.g. `hybrid_linear`, `triton` |
101
+ | `extra_flags` | string | Non-default serve flags |
102
+ | `ram_mts` | int | DDR4 transfer rate during run |
103
+ | `category` | string | `serving` / `bandwidth` / `capacity` / `load_test` |
104
+ | `metric` | string | `decode_tok_s`, `ttft_s`, `bandwidth_gbs`, `kv_usable_tokens`, `load_status` |
105
+ | `target` | string | For bandwidth rows: the subsystem measured |
106
+ | `value` | number/string | Measured value (or status string) |
107
+ | `value_max` | number | Upper bound when the run produced a range |
108
+ | `unit` | string | Unit of `value` |
109
+ | `notes` | string | Context, caveats, cross-references |
110
+
111
+ ## Methodology
112
+
113
+ - Serving numbers: OpenAI-compatible endpoint (`127.0.0.1`, local), scripted client, representative prompt
114
+ batches (up to 399 output tokens); decode throughput = generated tokens / decode-phase wall time unless
115
+ noted (`engine-instantaneous` = the server's own logged per-batch gen throughput).
116
+ - "Warm" = after first request; "cold" includes FlashInfer JIT compilation.
117
+ - Bandwidth rows: `ft bench bw` calibration output.
118
+ - Every TP=2 row was run on an otherwise idle host; a contaminated first offload measurement (a stale server
119
+ holding both GPUs) was discarded and re-run clean — the discarded number is not in this dataset.
120
+
121
+ ## Reproduction notes (the parts the docs understate)
122
+
123
+ 1. **Do not use pip-installed CUDA packages with FreeToken.** FlashInfer JIT-compiles kernels lazily
124
+ (including at first inference), so a partial toolkit fails *after* the server reports ready. Install the
125
+ official toolkit: `cuda-nvcc-13-0 cuda-cudart-dev-13-0 libcurand-dev-13-0`, `CUDA_HOME=/usr/local/cuda-13.0`.
126
+ 2. Multi-GPU needs NCCL dev libs: `sudo apt-get install libnccl2 libnccl-dev` (upstream docs PR #90).
127
+ 3. After killing `ft serve`, orphaned multiprocessing workers can hold VRAM and port 1920;
128
+ `pkill -9 -f "multiprocessing.spawn"` cleans them.
129
+ 4. DDR4-3600 stability on X299 quad-channel may need VCCSA/VCCIO raised (1.2 V / 1.15 V worked here) —
130
+ vdimm alone at 1.35–1.41 V was not sufficient.
131
+ 5. `bench_decode_moe.py` (upstream) hangs spawning its own server in this environment; direct `ft serve` +
132
+ scripted client was used instead.
133
+
134
+ ## Provenance
135
+
136
+ - Engine: [FlashML-org/FreeToken](https://github.com/FlashML-org/FreeToken)
137
+ - TP support work: [PR #104](https://github.com/FlashML-org/FreeToken/pull/104) (+ stacked branch by CraigStone-Dev)
138
+ - Tracking issues: [#29](https://github.com/FlashML-org/FreeToken/issues/29) (Qwen3.5/3.6 MoE TP=1 gate), [#15](https://github.com/FlashML-org/FreeToken/issues/15) (multi-GPU roadmap)
139
+ - Benchmarks and fix validation on this hardware: [Alogotron](https://huggingface.co/Alogotron)
140
+
141
+ ## Limitations
142
+
143
+ - Single hardware sample (Ampere consumer); NVFP4 carries a software-dequant penalty here — Blackwell cards
144
+ should shift the hybrid/offload balance.
145
+ - Decode figures are single-client, moderate batch; no concurrency sweep.
146
+ - BF16 rows are load-test only (host RAM bound).
147
+
148
+ ## Citation
149
+
150
+ ```bibtex
151
+ @misc{freetoken_qwen36_dual3090_benchmarks,
152
+ title = {FreeToken Qwen3.6-35B-A3B — Dual RTX 3090 Consumer Benchmarks},
153
+ author = {Alogotron},
154
+ year = {2026},
155
+ url = {https://huggingface.co/datasets/Alogotron/freetoken-qwen36-dual3090-benchmarks}
156
+ }
157
+ ```