Skip to content

Merge wave-14 CI fixes from eliza/token-trie-sampler#22

Merged
lalalune merged 3 commits into
mainfrom
eliza/token-trie-sampler
May 19, 2026
Merged

Merge wave-14 CI fixes from eliza/token-trie-sampler#22
lalalune merged 3 commits into
mainfrom
eliza/token-trie-sampler

Conversation

@lalalune
Copy link
Copy Markdown
Member

Brings the three wave-14 CI fixes onto main.

Commits

  • 8c1aa8079 fix(adapter): cast ab_map.size() to uint32_t in get_n_nodes() — unblocks -Werror=conversion on gcc 13+
  • c95a92542 fix(debug): widen src1_str buffer to 256 — unblocks -Werror=format-truncation
  • b12f29b66 fix(vulkan): #undef MemoryBarrier after <windows.h> — unblocks MSVC C2146 syntax error on Windows Vulkan build

Local verification

  • cmake --build build-codex-merge --target llama-cli omnivoice-tts kokoro-tts — PASS on Mac
  • llama-cli smoke on eliza-1-0_8b-128k.gguf: Prompt: 556.8 t/s | Generation: 209.9 t/s — PASS
  • Issue 3 (MSVC) cannot be verified locally on macOS; the fix targets the exact windows.h MemoryBarrier macro vs vk::MemoryBarrier collision at the reported line.

🤖 Generated with Claude Code

lalalune added 3 commits May 19, 2026 02:59
GCC 13+ with -Werror=conversion flags the implicit size_t -> uint32_t
narrowing in llama_adapter_lora::get_n_nodes(). LoRA adapter weight
maps never exceed 2^32 entries in practice (typical count is dozens),
so an explicit static_cast is safe.

Unblocks all 6 Ubuntu/Linux LLAMA_FATAL_WARNINGS builds:
arm64-kleidiai, x64-high-perf, x64-low-perf, ubuntu-cpu-22.04,
llguidance, sanitizer-THREAD.
GCC 13+ with -Werror=format-truncation flags the snprintf at
debug.cpp:167 because src1->name (up to GGML_MAX_NAME = 64) plus
the '{' + common_ggml_ne_string + '}' wrapper can exceed the
128-byte buffer in the worst case. Doubling the buffer to 256
satisfies the static analysis without changing observable behavior.

Unblocks the same 6 Ubuntu/Linux LLAMA_FATAL_WARNINGS builds as
the adapter conversion fix.
MSVC's <winnt.h> (included via <windows.h>) defines MemoryBarrier as
a macro that expands to an intrinsic (__faststorefence on x64,
__dmb(_ARM_BARRIER_SY) on ARM). That collides with vk::MemoryBarrier
at ggml-vulkan.cpp:7078, producing C2146 'missing ;' on the next
identifier ('barrier').

#undef MemoryBarrier immediately after #include <windows.h> in the
_MSC_VER branch. Nothing else in this TU uses the Win32 intrinsic.

Unblocks windows-latest (vulkan-x64) CI.
@lalalune lalalune merged commit 1ee2328 into main May 19, 2026
49 of 101 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e643be7b-ef01-4ccf-8b04-a3d2e7e14a2e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch eliza/token-trie-sampler

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant