EXDai commited on
Commit
cfdea0a
·
verified ·
1 Parent(s): 6f371da

Upload benchmarks/qwen3.6-35b-a3b-llama-benchy.md with huggingface_hub

Browse files
benchmarks/qwen3.6-35b-a3b-llama-benchy.md ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Qwen3.6 35B-A3B llama-benchy runbook
2
+
3
+ Use this from the host or benchmark machine against the GB10 vLLM endpoint. The
4
+ commands assume `llama-benchy` is already installed.
5
+
6
+ ## Endpoint
7
+
8
+ If the benchmark machine can reach the GB10 host directly:
9
+
10
+ ```bash
11
+ export BASE_URL=http://atom:8000/v1
12
+ ```
13
+
14
+ If it needs a tunnel:
15
+
16
+ ```bash
17
+ ssh -L 8000:localhost:8000 atom
18
+ export BASE_URL=http://localhost:8000/v1
19
+ ```
20
+
21
+ If running directly on the GB10 host, use:
22
+
23
+ ```bash
24
+ export BASE_URL=http://localhost:8000/v1
25
+ ```
26
+
27
+ Common arguments:
28
+
29
+ ```bash
30
+ export MODEL=Qwen/Qwen3.6-35B-A3B
31
+ export COMMON_ARGS="--base-url $BASE_URL --api-key EMPTY --model $MODEL --served-model-name $MODEL --tokenizer $MODEL --latency-mode generation --skip-coherence"
32
+ ```
33
+
34
+ ## Smoke
35
+
36
+ Run this after every vLLM profile change before longer sweeps:
37
+
38
+ ```bash
39
+ llama-benchy \
40
+ $COMMON_ARGS \
41
+ --pp 128 \
42
+ --tg 256 \
43
+ --depth 0 \
44
+ --runs 1 \
45
+ --no-warmup \
46
+ --save-result /tmp/qwen36-35b-a3b-smoke.json \
47
+ --format json
48
+ ```
49
+
50
+ On the baseline profile, a verified smoke run produced roughly `625 pp t/s`,
51
+ `42 tg t/s`, `53 peak tg t/s`, and `365 ms e2e_ttft`.
52
+
53
+ ## Baseline Suites
54
+
55
+ Short-context decode and concurrency:
56
+
57
+ ```bash
58
+ llama-benchy \
59
+ $COMMON_ARGS \
60
+ --pp 512 2048 \
61
+ --tg 128 512 \
62
+ --depth 0 \
63
+ --concurrency 1 2 4 \
64
+ --runs 3 \
65
+ --save-result qwen36-35b-a3b-${PROFILE:-baseline}-short.json \
66
+ --format json \
67
+ --save-total-throughput-timeseries
68
+ ```
69
+
70
+ For the short-suite sweep used during tuning, use `--tg 256` instead of the
71
+ larger `--tg` list above to keep profile iteration quick:
72
+
73
+ ```bash
74
+ llama-benchy \
75
+ $COMMON_ARGS \
76
+ --pp 512 2048 \
77
+ --tg 256 \
78
+ --depth 0 \
79
+ --concurrency 1 2 4 \
80
+ --runs 3 \
81
+ --save-result /tmp/qwen36-35b-a3b-${PROFILE}-short.json \
82
+ --format json \
83
+ --save-total-throughput-timeseries
84
+ ```
85
+
86
+ ## Short-Suite Results
87
+
88
+ Test shape: `--pp 512 2048 --tg 256 --depth 0 --concurrency 1 2 4 --runs 3`.
89
+
90
+ | Profile | pp | c1 tg/s | c2 tg/s | c4 tg/s | c1 TTFT | c2 TTFT | c4 TTFT | Notes |
91
+ |---------|----|---------|---------|---------|---------|---------|---------|-------|
92
+ | `qwen3.6-35b-a3b-baseline` | 512 | 44.59 | 66.13 | 78.50 | 500 ms | 1114 ms | 1476 ms | Initial recipe: `GPU_MEM_UTIL=0.80`, implicit scheduler limits, MTP 2. |
93
+ | `qwen3.6-35b-a3b-baseline` | 2048 | 44.34 | 69.17 | 76.94 | 1017 ms | 1313 ms | 2342 ms | Baseline warned that scheduled tokens were low for speculation. |
94
+ | `qwen3.6-35b-a3b-conservative` | 512 | 44.04 | 67.82 | 82.55 | 494 ms | 1069 ms | 1581 ms | Balanced winner: `GPU_MEM_UTIL=0.85`, `max-num-seqs=16`, `max-num-batched-tokens=8192`, MTP 2. |
95
+ | `qwen3.6-35b-a3b-conservative` | 2048 | 43.95 | 67.69 | 88.20 | 725 ms | 1228 ms | 1957 ms | Better c4 throughput and much better pp2048 TTFT than baseline. |
96
+ | `qwen3.6-35b-a3b-throughput` | 512 | 45.13 | 69.51 | 83.32 | 601 ms | 1143 ms | 1631 ms | Slight c1/c2/c4 decode gains, worse TTFT; heavier cold start due 16k compile range. |
97
+ | `qwen3.6-35b-a3b-throughput` | 2048 | 43.86 | 66.04 | 88.54 | 738 ms | 1228 ms | 1988 ms | Marginal c4 gain over conservative, not a default pick. |
98
+ | `qwen3.6-35b-a3b-mtp3` | 512 | 40.97 | 66.21 | 88.93 | 989 ms | 1211 ms | 1558 ms | Higher c4 aggregate, poor single-stream decode and TTFT. |
99
+ | `qwen3.6-35b-a3b-mtp3` | 2048 | 41.00 | 65.11 | 92.43 | 764 ms | 1187 ms | 1974 ms | Useful only for batch/throughput work at c4. |
100
+ | `qwen3.6-35b-a3b-no-mtp` | 512 | 30.07 | 51.51 | 76.94 | 505 ms | 498 ms | 716 ms | Decode is much slower; keep MTP enabled. |
101
+ | `qwen3.6-35b-a3b-no-mtp` | 2048 | 29.86 | 52.24 | 74.55 | 816 ms | 1245 ms | 1891 ms | Confirms MTP is pulling real weight on GB10. |
102
+
103
+ Decision: `qwen3.6-35b-a3b` is now the optimized default and matches the tested
104
+ conservative MTP2 profile. Keep `qwen3.6-35b-a3b-throughput` for slightly higher
105
+ aggregate c2/c4 decode when TTFT and cold-start time matter less. Keep
106
+ `qwen3.6-35b-a3b-mtp3` only for batch-heavy c4 tests. No-MTP, fp8-KV, and
107
+ native-262k long-context configs were not kept as committed launch profiles; use
108
+ the benchmark notes below to recreate them for diagnostics or future capacity
109
+ sweeps.
110
+
111
+ Long-context prefill and decode without intentional cache reuse:
112
+
113
+ ```bash
114
+ llama-benchy \
115
+ $COMMON_ARGS \
116
+ --pp 2048 \
117
+ --tg 64 \
118
+ --depth 0 4096 16384 32768 65536 98304 \
119
+ --concurrency 1 \
120
+ --runs 3 \
121
+ --no-cache \
122
+ --save-result qwen36-35b-a3b-${PROFILE:-baseline}-depth.json \
123
+ --format json
124
+ ```
125
+
126
+ Prefix-cache follow-up workload:
127
+
128
+ ```bash
129
+ llama-benchy \
130
+ $COMMON_ARGS \
131
+ --pp 2048 \
132
+ --tg 128 \
133
+ --depth 4096 16384 32768 65536 \
134
+ --concurrency 1 2 \
135
+ --runs 3 \
136
+ --enable-prefix-caching \
137
+ --save-result qwen36-35b-a3b-${PROFILE:-baseline}-prefix.json \
138
+ --format json
139
+ ```
140
+
141
+ ## Profile Order
142
+
143
+ Start each profile on GB10 with `./scripts/up.sh <profile>` from the `serve` directory, then run smoke before the full suites.
144
+
145
+ 1. `qwen3.6-35b-a3b`
146
+ 2. `qwen3.6-35b-a3b-throughput`
147
+ 3. `qwen3.6-35b-a3b-mtp3`
148
+ 4. `qwen3.6-35b-a3b-baseline`
149
+
150
+ Set `PROFILE` before each run so result filenames stay aligned with the server config:
151
+
152
+ ```bash
153
+ export PROFILE=qwen3.6-35b-a3b-conservative
154
+ ```
155
+
156
+ ## Recreating One-Off Experiments
157
+
158
+ - No MTP: copy `qwen3.6-35b-a3b.env` and remove `--speculative-config`. This was
159
+ much slower for decode in the short-suite sweep.
160
+ - fp8 KV: copy `qwen3.6-35b-a3b-throughput.env` and add `--kv-cache-dtype fp8`.
161
+ Treat this as a capacity experiment and re-run quality checks.
162
+ - Native 262k context: copy `qwen3.6-35b-a3b.env`, set `--max-model-len 262144`,
163
+ and lower `--max-num-seqs` if startup runs out of KV/cache headroom.
164
+
165
+ ## What To Compare
166
+
167
+ Compare `pp t/s`, `tg t/s`, aggregate `tg t/s (total)`, `peak t/s`, `ttfr`, `est_ppt`, `e2e_ttft`, standard deviation, and failures/timeouts. Keep the best profile by workload rather than one global winner:
168
+
169
+ - Interactive coding: low `e2e_ttft`, good `tg` at concurrency 1-2, stable 128k.
170
+ - Agent throughput: best aggregate decode at concurrency 2-4 and strong prefix-cache follow-up speed.
171
+ - Long documents: stable deep context and prefill speed over high batching.