Repository navigation
Publish the OpenMP runtime in requires_ggml_sonames and gate the drift - #19
Merged
Merged
Conversation
Wiring the OpenMP runtime in CI (#18) fixed the build, but the contract the Studio installer actually reads did not change: requires_ggml_sonames still listed only the two ggml sonames, so an installer wiring from that list (or from a libggml* glob) still lands an arm64 bundle whose whisper-server cannot load. Windows has the same hole - ggml-base.dll imports libomp140.<arch>.dll on BOTH arches, verified in the PE import tables of the paired llama bundles - and only passed CI because the wiring globs libomp*.dll. Make the soname contract per-arch in the platform strategies rather than per-job, so the manifest is derived where the rest of the packaging contract lives: libomp.so.5 on linux/arm64, libomp140.<arch>.dll on both Windows arches. linux/x64 (gcc, libgomp from the host) and macOS (Apple clang, no OpenMP) are unchanged, and the existing GGML_SONAMES override still wins, so the macOS jobs that pass their own per-arch closure are untouched. Then close the loop in CI: on Linux, validate_bundle.py now asserts that every library the loader resolves out of the paired llama bundle appears in requires_ggml_sonames. CI wires by glob and the installer wires from the list, so without this the two drift and the build goes green while every install is broken - exactly what happened here. A declared name the llama bundle does not provide is a warning, not a failure, so a llama-side change cannot block a release on its own. Verified by packaging synthetic linux slim bundles for both arches (arm64 gains libomp.so.5, x64 unchanged), by running the full validation against the published v1.9.2-unsloth.5 x64 bundle and its paired llama release (contract OK, real /inference transcription), and by a 13-case suite covering both real llama bundles plus a synthetic ELF chain that proves the gate fails on an undeclared lib, passes once declared, and only warns on a stale entry.
This was referenced Aug 9, 2026
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.
Follow-up to #18. That PR made CI wire
libomp.so.5so the arm64 build passes; this one fixes the contract the installer actually reads, and stops the two from drifting again.The remaining hole
requires_ggml_sonamesin the manifest is the list the Studio installer verifies and wires from. The bundle published asv1.9.2-unsloth.6still declares only:On linux/arm64 the loader also needs
libomp.so.5, which ships inside the paired llama bundle and is not a system library. An installer that wires exactly what the manifest asks for therefore still produces awhisper-serverthat dies with the samerc=127, even though CI is green, because CI wires by glob and the installer wires by list.Windows has the identical hole. I read the PE import tables of the paired llama bundles:
ggml-base.dllimportslibomp140.x86_64.dllon x64 andlibomp140.aarch64.dllon arm64, so llama's Windows slices are clang-built on both arches, not just arm64. Neither name is in the Windows contract; those jobs pass only because the wiring globslibomp*.dll.Changes
scripts/package_bundle.py- the soname contract becomes per-arch in the platform strategies via a newopenmp_sonamesmap andsonames_for(arch), so it is derived where the rest of the packaging contract lives instead of being spelled out per job:libggml.so.0,libggml-base.so.0(unchanged)libomp.so.5libomp140.x86_64.dlllibomp140.aarch64.dllThe
GGML_SONAMESenv override still takes precedence, so the macOS jobs that pass their own per-arch dylib closure are untouched.scripts/validate_bundle.py- a fifth check on Linux: every library the loader resolves out of the paired llama dir must appear inrequires_ggml_sonames. A missing one is a hard failure naming the library and the remedy. A declared name the llama bundle does not provide is only a warning, so a llama-side change can never block a release by itself.Verification
["libggml.so.0", "libggml-base.so.0", "libomp.so.5"], x64 is byte-for-byte the old list.validate_bundle.py --ggml-dir --cpu-onlyagainst the publishedv1.9.2-unsloth.5x64 bundle and its own paired llama release: wiring, closure, the new contract check, and a real/inferencetranscription all pass.libomp.so.5and does not fail, as intended.Note
The docs in
.github/workflows/UNSLOTH_PREBUILT_README.mdstill describe the installer wiring aslibggml*only and list the old per-platform sonames. My token has noworkflowscope so I cannot touch that path; the wording change wants to say that the wiring is "everylibggml*plus the OpenMP runtime shipped beside them", with the per-arch lists above.Also worth flagging:
v1.9.2-unsloth.6is already published with the old manifest, and a scheduled orrepository_dispatchrun is a no-op while that tag still pairs with the newest llama. Publishing a corrected manifest needs aworkflow_dispatchwith the packaging suffix bumped tounsloth.7.