Archived
three ranks: pad the checkpoint, exactly, where the geometry does not divide
Radiance refuses a head count the world does not divide, by name, and three is such a world for Qwen3.8-Flash-Next (24 q / 2 kv / GDN 16, 48). Replication answers four ranks, not three. The answer at three is the one tcclaviger's vLLM applies at load time: pad to 36 / 3 / 18 / 54 with zero weights placed where a zero contributes nothing, so the padded model computes what the original does. Radiance has no load-time pad, so this is an offline tool and a document. - tools/pad_tp.py: numpy-only, streams one tensor at a time, handles the Flash-Next fused q+gate head blocks and the GDN in_proj row orders, rewrites config.json. --sparse reflinks the original shards and writes only the padded tensors into shards that sort first, which the checkpoint reader's first-wins emplace then shadows: 6.6 GB of new bytes for a 336 GiB checkpoint. - tools/pad_verify.py: every tensor read back -- untouched ones byte-identical, padded ones the source in place and zeros elsewhere. - docs/TP3.md: what is padded and why each pad is exact, the tool, what the engine gained at three ranks, the serve line, measurements on three R9700s against the shipped two-rank container. - README: the three-rank row and the document.
This commit is contained in:
1 parent
72947681c3
commit
2149a1a757
4 files changed
+427
No files matched your search
@@ -83,6 +83,7 @@ prefix-cache tiers:
|
||||
|---|---|
|
||||
| Qwen3.8-Flash-Next | `--tp 2 --tp-wire wht6 --max-num-seqs 8 --max-model-len 200000 --placement expert_tiered --host-pool-mib 12288 --gpu-headroom-mib 96 --expert-vs-cache-ratio 0.82 --kv-cache-dtype fp8 --num-speculative-tokens 3 --max-num-batched-tokens 2048` |
|
||||
| Qwen3.8-Flash-Next, four ranks | `--tp 4 --max-num-seqs 8 --max-model-len 200000 --placement expert_tiered --host-pool-mib 12288 --gpu-headroom-mib 96 --expert-vs-cache-ratio 0.82 --kv-cache-dtype fp8 --num-speculative-tokens 3 --max-num-batched-tokens 2048` |
|
||||
| Qwen3.8-Flash-Next, three ranks (the checkpoint padded first, [`docs/TP3.md`](docs/TP3.md)) | `--tp 3 --max-num-seqs 8 --max-model-len 200000 --placement expert_tiered --host-pool-mib 8192 --gpu-headroom-mib 96 --expert-vs-cache-ratio 0.82 --kv-cache-dtype fp8 --num-speculative-tokens 3 --max-num-batched-tokens 2048` |
|
||||
| Qwen3.8-27B FP8, Qwen3.6-35B-A3B | `--tp 2 --max-num-seqs 32 --max-model-len 200000 --kv-cache-dtype fp8` |
|
||||
| Qwen3.8-27B bf16 | `--tp 2 --max-num-seqs 8 --max-model-len 200000 --kv-cache-dtype fp8` |
|
||||
| MiniCPM5-2B FP8 and bf16 | `--tp 2 --max-num-seqs 32 --max-model-len 131072 --kv-cache-dtype fp8 --gpu-headroom-mib 160 --max-num-batched-tokens 512` |
|
||||
@@ -155,6 +156,7 @@ ctest --test-dir build -L oot # rebuilds every bundled plugin out of tr
|
||||
| [`docs/DOCKER.md`](docs/DOCKER.md) | the image and the compose files |
|
||||
| [`docs/PLUGIN.md`](docs/PLUGIN.md) | writing a kernel library, architecture or quantiser plugin, including one for another AMD card |
|
||||
| [`docs/ARCHITECTURES.md`](docs/ARCHITECTURES.md) | the supported model families and their geometry |
|
||||
| [`docs/TP3.md`](docs/TP3.md) | padding a checkpoint, exactly, to a world its head counts do not divide; three ranks |
|
||||
| [`docs/OPS.md`](docs/OPS.md), [`docs/KERNELS.md`](docs/KERNELS.md) | the op vocabulary, and what `rad-kbench` last measured |
|
||||
| [`spec.md`](spec.md) | the design |
|
||||
|
||||
|
||||
Reference in new issue
Block a user