diff --git a/docs/SYCL_PROGRESS.md b/docs/SYCL_PROGRESS.md index 2d82e68c..9c899623 100644 --- a/docs/SYCL_PROGRESS.md +++ b/docs/SYCL_PROGRESS.md @@ -12,7 +12,7 @@ from it alone. | 1 codebase study, `SYCL_PORTING.md` | done (`docs/SYCL_PORTING.md` §1-§3, Appendix A) | | 2 design | done: device backend, build integration, core kernels (`device_test_sycl` on the B65) | | 3 correctness-first kernels | **Milestone A reached 2026-10-23** (`874f8d2`): MiniCPM5-2B bf16 serves on the B65, greedy-identical to the libref host backend; Milestone B next | -| 4 performance | MiniCPM5-2B bf16: decode 4.2 -> 51.8 tok/s, prefill 17 -> 1576 tok/s (`b07da2a`); Qwen3.8-27B-PARO-M2XFP4 (the model from 2026-10-23): 0.1 -> 30.6 tok/s decode with the DFlash2 drafter, prefill 124 tok/s (`b0e34c6`), in progress | +| 4 performance | MiniCPM5-2B bf16: decode 4.2 -> 51.8 tok/s, prefill 17 -> 1576 tok/s (`b07da2a`); Qwen3.8-27B-PARO-M2XFP4 (the model from 2026-10-23): 0.1 -> 35-37 tok/s decode with the DFlash2 drafter, prefill 349 tok/s at ~1900 tokens (`4675fd1`; vLLM-SYCL's reference ~90 / ~1200), in progress | | 5 broaden and finish | not started | ## Open blockers / questions for the user @@ -653,11 +653,20 @@ the K operand across query heads (or oneDNN's SDPA) is the next attempt. ## Next steps -1. The verify round, ~137 ms now against vLLM's ~68: the m2xfp4 verify GEMMs (~75 ms, ~2.5x their - bandwidth floor), givens_dense_quant at M = 8 (~19 ms), the DeltaNet conv (~70 us x 48) and its - norm kernel, embed_lookup over the x1 link (4 ms: the table is host-pinned), attention. -2. Prefill (124 tok/s): the chunk scan (4.6 s of 1792 tokens; its probe runs 3x faster than the - engine's kernel), the prefill GEMM (~30% of the DPAS peak), kkt. +Deployment note: on this card (PCIe x1 2.5 GT/s, 10 GiB of VRAM unclaimed) run with +`--embedding-placement vram`; the default pins the 2.4 GiB embedding in host memory and reads it over +the link (4 ms a round). + +1. Decode (~112 ms a speculative round of ~4 tokens, vLLM ~68 ms of ~5): the m2xfp4 verify GEMMs are + ~60 ms of it at ~2.5x their bandwidth floor. Measured: the weight stream alone runs at ~526 GB/s + in this lane-a-row pattern; the activation loads and the decode do not overlap it, and neither + local-memory staging, longer runs, more splits, two tiles a lane, 256 registers nor L1 streaming + hints helped. Then the DeltaNet update (~11 ms), the norms (~6.6, bounded by the ordered sum's + ~37 us chain), the draft head (3 ms, its group terms through the generic accessors). +2. Prefill (349 tok/s at ~1900 tokens; ~5.6 s): the GEMMs 1.67 s (oneMKL ~1.2 of it; the m2xfp4 + decode to fp16 and the scale epilogue the rest), attention 0.99 (a DPAS kernel needs the K operand + shared across query heads, see above), the chunk scan 0.92 (exact; a DPAS chunked form would be + tolerance-held), givens 0.52, kkt 0.33, gated_quant 0.27, conv_prep 0.26. ## Next steps (Milestone era)