Repository navigation
fix: llama-server without OpenMP on Linux, fail fast, 2 threads on 2 vCPUs - #70
Merged
Merged
Conversation
Upstream's Ubuntu build links libgomp.so.1, which Ubuntu 26.04 cloud images lack, so llama-server exits at start and camne waits 2 minutes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Upstream's Ubuntu build needs libgomp.so.1. Ubuntu 26.04 cloud images lack it, so llama-server exited at start. Linux now downloads the llama-b10333-noomp release built by .github/workflows/llama.yml. The new build unpacks to its own directory, so existing installs are replaced, and the old directory is removed after the new server is in place. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
WaitReady now stops as soon as a server camne started exits and prints the last line of llama.log, instead of waiting the full 2 minutes. threads() gave 1 thread on 2 logical CPUs. On a 2-vCPU t3.large, -t 2 measured 3.6 s per query against 5.8 s at -t 1. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Problem
On a t3.large running Ubuntu 26.04, camne never answered.
llama.logshowed:libgomp1./healthfor the full 2-minuteWaitReadytimeout.Changes
.github/workflows/llama.yml: allama-b<build>-noomptag rebuilds the pinned llama.cpp tag for Linux x64 and arm64.ubuntu-cpujob, exceptGGML_OPENMP=OFF,LLAMA_OPENSSL=OFF, andLLAMA_BUILD_UI=OFF.llama-serveror any.sostill has aNEEDEDentry for gomp, ssl, or crypto.--latest=false, so/releases/lateststays on v0.9.0.internal/provision: Linux pins thellama-b10333-noompassets by sha256 and size.bin/llama-b10333-noomp/, so an existing install is replaced, never trusted.RemoveOtherServersremoves the old directory, but only after the new server is in place.internal/engine:WaitReadyreturns as soon as a server camne started exits. The error includes the last line ofllama.log, stripped to printable ASCII.internal/engine:threadsForuses 2 threads on 2–5 logical CPUs. The oldNumCPU/2gave 1 thread on 2 vCPUs. 6+ CPUs are unchanged.Numbers
Box: t3.large (2 vCPU, 1 physical core, Xeon 8259CL, AVX-512), Ubuntu 26.04.
camne-1.5b-Q4_K_M.gguf.n_predict64, grammar on.camne nak cari file besar dalam folder ni(58 prompt tokens, no prompt cache).find . -type f -size +100Mon every run.libgompunpacked into/tmp, because the box has none.End to end on the same box, no
libgompinstalled, with this branch's binary:camne nak buat file barugivestouch newfile.txtin 971 ms.tunjuk disk spacegivesdf -hin 917 ms.Tests
go vet ./...,go test ./...pass.GOOS=windows go vet ./...andGOOS=darwin go build ./...pass.TestThreadsFor,TestWaitReadyServerExited,TestRemoveOtherServers, anddir/URLchecks inTestLlamaAsset.Not covered
🤖 Generated with Claude Code