Repository navigation
Conversation
Assisted-by: Codex
Assisted-by: Codex
…al, wait peers + add from their slots - One exported timeline per device, no backend hooks; comm work recorded in the backend compute ctx - F16 wire above 1 MiB, F32 below; small reductions ride with the next graph submit - Double-buffered, grow-only host slots; zero-size splits zeroed - Remove ring, transfer-queue leg, device staging, shrink, Windows shims - comm_init returns nullptr when unsupported; add GGML_VK_COMM_DISABLE - No flops-based submit splitting for graphs below 1 GFLOP
pwilkin
force-pushed
the
vulkan-tp-p2p
branch
from
October 23, 2026 12:37
c93decc to
468d073
Compare
nvwaonline
added a commit
to rulith-dev/llama.cpp
that referenced
this pull request
Nov 3, 2026
…quest text (pwilkin#26), UD decode products - llama-batch.cpp, qwen4exp.cpp: when every set of a ragged ubatch had the same count, the splitter made an ordinary equal-length ubatch and qwen4exp_seq_groups put the sets into one multi-sequence group, which the prompt kernels of the recurrent net (gated_delta_net.cu: WY, R16, tiled) do not take. Two 2048-token prompts sent together read at ~800 t/s against ~1,230 for 2047 + 2049. Equal counts of 16 tokens or more now stay ragged, one group a set: ~1,180-1,240 t/s. Decode and MTP verification sets stay below the bound and keep sharing a group. STRIX_RAGGED_EQUAL: the bound (0 = off). - server-common.cpp: copies of the server's media marker in the request's message text and tools are replaced with a neutral <__media__> before the media parts get their markers. An agent that quoted /props in a tool result sent the marker back as text; mtmd_tokenize took it for an image without a bitmap and every later request of the conversation failed with HTTP 400 "Failed to tokenize prompt". - mmvq.cu: on RDNA3.5, one-token products over K 352-1024 (the routed and shared experts' down projections) give a single-wave workgroup four rows: the Q5_1 down of UD-Q4_K_XL 4.05 -> 3.28 ms a token. MTP verifications of 2-8 tokens run the unfused Q5_1 / Q8_0 expert products four rows a workgroup: 9.29 -> 8.41 ms a 4-row step. Each row's sum as before. STRIX_MMVQ_SK, STRIX_MMVQ_MOE_R4. - mmvf.cu: the few-rows F32 / BF16 loop up to 1024 rows (was 128): the router's BF16 product 908 -> 828 us a token on UD-Q4_K_XL, 713 -> 641 on EXL3 4.05, the same multiply-adds in the same order. UD-Q4_K_XL decode about 3% less time a token, MTP verification 2%; one-conversation probes bit for bit as 0.6.10 on UD f16, UD MTP and EXL3 4.05. Qwen3.6-35B-A3B (qwen35moe) runs on these kernels unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I get good TP perf with 2 GPUs after this change. More GPUs is probably worse, I plan to look at that separately after the initial allreduce is merged.
Tests on 2x R9700:
(submit fix means a change to avoid splitting small graphs into multiple submissions)