Skip to content

Commit c8694c2

Browse files
fix(buun-llama-cpp): match speculative draft split anchor
The shared gRPC wrapper stores p_split under the draft sub-structure. Match that exact source spelling so the fork-specific patch stage reaches the build on every architecture. Assisted-by: Codex:gpt-5 [Codex]
1 parent b27197b commit c8694c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/cpp/buun-llama-cpp/patch-grpc-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ else
9090
awk '
9191
prev2 == " } else if (!strcmp(optname, \"spec_p_split\")) {" &&
9292
prev1 ~ /^ +if \(optval != NULL\) \{$/ &&
93-
$0 ~ /^ +try \{ params\.speculative\.p_split = std::stof\(optval_str\); \} catch \(\.\.\.\) \{\}$/ &&
93+
$0 ~ /^ +try \{ params\.speculative\.draft\.p_split = std::stof\(optval_str\); \} catch \(\.\.\.\) \{\}$/ &&
9494
!done {
9595
print # print the try-line itself
9696
getline inner_close # read " }" closing the inner if

0 commit comments

Comments
 (0)