Skip to content

build: prefer llama.cpp-mainline over sibling llama.cpp#2

Open
smanaton wants to merge 2 commits into
Apothic-AI:masterfrom
smanaton:prefer-mainline-llama
Open

build: prefer llama.cpp-mainline over sibling llama.cpp#2
smanaton wants to merge 2 commits into
Apothic-AI:masterfrom
smanaton:prefer-mainline-llama

Conversation

@smanaton

@smanaton smanaton commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

When auto-detecting llama.cpp, prefer a sibling/checkout named llama.cpp-mainline over llama.cpp.

Some forks lag upstream ggml and have produced non-finite (NaN) logits on Q1_0 models. An explicit mainline directory name makes the intended tree obvious. WWAMA_LLAMA_CPP_DIR still overrides entirely.

Dependency

On Windows you still need the MSVC/CUDA build PR (or equivalent) to link successfully. Suggested merge order: windows-fixes first, then this.

Test plan

  • With this ordering + Windows build fixes, cargo build without WWAMA_LLAMA_CPP_DIR selected llama.cpp-mainline when present.
  • Finite baselines observed on Bonsai Q1_0 when building against mainline.

Notes

Fork staging: smanaton#2

smanaton added 2 commits July 19, 2026 10:34
The Apothic-AI fork (often checked out as a sibling llama.cpp) trails
upstream ggml and produces NaN logits on Q1_0 models. Prefer a
llama.cpp-mainline checkout when present so accidental builds against
the fork fail less silently. WWAMA_LLAMA_CPP_DIR still overrides entirely.
Copilot AI review requested due to automatic review settings July 19, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The job was not started because the account is locked due to a billing issue.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants