Skip to content

Commit b8952b5

Browse files
committed
CHANGELOG: tensor parallelism on HIP over RCCL (#655)
1 parent eb48d90 commit b8952b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel
2929
- The opt-in HIP build runs MLX's affine 2- to 8-bit products: decode tiles (row, column, split, RDNA2's wide tile, and a stream tile for up to four products that share an input or a stacked gate and up with its activation), prompt tiles (the dot2 GEMM tile, K-parallel tiles for short prompts, and gfx11's matrix-core GEMM tile through the compiler's WMMA builtins, so no rocWMMA header is needed), plans over stacked experts and the embedding gather. The kernel registry (#613) picks each product's tile from tuning tables for gfx1030 and gfx1100, and RDNA4 takes the dot2 tiles. A row writes the same bytes alone and in a round of 2 to 32 rows, and the tiles the registry picks between by row count write equal bytes, which `hip-kernel-test` checks with every tile against float64. The author's runs of these sources passed `hip-kernel-test` 57 of 57, `hip-gpu-test` 30 of 30 and `hip-affine-test` 27 of 27 on gfx1100 and gfx1030, and @ThinkOffApp's the same on gfx1151 with HIP 7.14 and with Ubuntu's packaged HIP 7.1; still owed is one `hip-affine-test` run on gfx1201, whose dot2 tiles none of those cards take (#621). Thanks to @BlivionIaG and @ThinkOffApp.
3030
- Qwen3.5 and Qwen3.6 serve on one AMD GPU through the opt-in HIP build, on #626's loader and the kernels of #617 and #621: `zig build native-hip -Dhip-arch=gfx1100` builds a server with lane rounds and MTP drafts, the paged attention cache, the radix prompt cache, prompts in chunks (512 rows while other streams decode), graph-replayed rounds and a memory plan, and `tf-qwen35-test check` runs the model checks (drafted equals serial, solo equals together, graph equals eager, resumed equals fresh). It refuses a second rank and `--speed-up`, and refuses `matrix=on` on RDNA4 and RDNA2, which keep the dot2 tiles. The loader drops each part's mapped pages once the part is on the GPU. The author's runs of the previous version passed the model checks on gfx1100 and gfx1030 with Qwen3.5-9B, Qwen3.6-35B-A3B and Qwen3.8-27B at 4 bits, and served the 35B-A3B on a Radeon PRO W7800 at 176.5 tok/s for code and 140.8 for chat, every reply equal to its solo and `"draft": false` runs; @ThinkOffApp's gfx1151 runs of an earlier version matched drafted and serial output on three public checkpoints. Owed for this version, which takes #617's single fp32 recurrence for prompts too: the model checks on gfx1100 and gfx1030, and runs on gfx1151 and gfx1201 (#631). Thanks to @BlivionIaG and @ThinkOffApp.
3131
- The HIP Qwen3.5 engine serves structured output (`response_format` and the `guided_*` fields). The lane core's grammar makes every mask: each verify row is drawn among its allowed tokens, the first token is drawn again under the mask from the prompt's last row, and the MTP drafts reach the grammar as host tokens, so structured streams keep drafting. Unmasked rows take the same draws as before. In the author's runs of the previous version, with Qwen3.5-9B on gfx1100 and Qwen3.6-35B-A3B on gfx1030, JSON schema, JSON object, regex and choice replies were valid at temperature 0 and 0.8, drafted replies equalled `"draft": false`, and eight requests at once equalled their solo runs. Owed: those served checks on this version, and on RDNA3.5 and RDNA4 (#697). Thanks to @BlivionIaG.
32+
- The HIP Qwen3.5 engine splits a model over 2, 4 or 8 GPUs (`--tp`, `--rank`, `--master`, `--master-port`) through RCCL, opened at run time from the system's ROCm behind `hip/collective.zig`. Rank 0 serves HTTP and sends the other ranks its policy and its steps over a TCP link, a GPU unlike rank 0's is refused, every rank sizes its streams for rank 0's window, and partial sums add in a fixed order (one add at two ranks, rank order after an all-gather at four and eight). Rounds replay graphs cut at each collective at every world size; `graphs=off` turns them off. The author's runs of earlier versions with Qwen3.6-35B-A3B passed the model checks at tp 2 on two W7800s (gfx1100) and two V620s (gfx1030) and at tp 4 on four V620s, with four streams of code at 372.6 tok/s on two W7800s against 283.7 on one. Replayed graphs ran at least as fast as eager rounds under tp in every case the author measured but one: Qwen3.5-9B at tp 2 on the W7800s, 5.5% slower at one stream and 8% at four. Owed for this version: tp 2 on gfx1100 and gfx1030 and tp 4 on gfx1030 with the 35B-A3B; tp 8 and RDNA3.5 and RDNA4 groups have not run (#655). Thanks to @BlivionIaG.
3233

3334
## 1.0.11
3435

0 commit comments

Comments
 (0)