Repository navigation
release: prebuilt packages for Linux, Windows, macOS and Android - #10
Merged
Merged
Conversation
A v* tag builds codec-cli / tts-cli / tts-server + libraries on standard GitHub-hosted runners (free on a public repo) and drafts a release: linux-x64 cpu + vulkan, linux-arm64, macos-arm64 metal, android-arm64 vulkan. Each package is smoke-tested from its install tree in clean containers (Arch, Ubuntu 22.04, Debian 12). No CUDA / ROCm / SYCL packages; Windows needs a port of the backbone isolation first. - Both ggml copies build for one fixed CPU baseline (x86-64 AVX2, arm64 armv8.2-a+fp16+dotprod), OpenMP off: no libgomp at runtime. - The llama.cpp backbone builds after libcodec, not beside it: its nested build runs its own parallelism (Ninja: every core), so side by side the two compile loads add up (OOM-killed in a 6 GB container; one after the other peaks at 2.6 GB on 4 cores). - SPIRV-Headers_DIR is forwarded to the backbone (Android Vulkan cross build). - Android tools get a $ORIGIN DT_RUNPATH; CMake's Android platform drops it. - codec-cli is installed; tts-cli / tts-server --version. - README: prebuilt packages, and a numbered -j (a bare -j exhausts memory). Closes #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Builds with clang-cl against the MSVC runtime. The backbone DLL needs no symbol hiding on Windows (a PE image binds each import to a named DLL, so the two ggml copies cannot clash); its export list is a .def file of the llama_* and common_sampler symbols, taken from the llama / common objects with /WHOLEARCHIVE, as the version script does on ELF. - codec.dll exports every symbol (no export macros in the headers); the static library becomes codec_static.lib so codec.lib is the import lib, which is now installed. - The backbone DLL installs into bin/ next to the tools: no rpath. - _USE_MATH_DEFINES on MSVC for M_PI. - tts-server: the MSVC CRT aborts on setvbuf(_IOLBF, size 0) and has no line buffering; stdout is unbuffered there. - The packages are zips with the VC++ runtime DLLs app-local in bin/. Cross-built locally (clang-cl + xwin SDK) and run under wine: Soprano `tts-cli synthesize` CER 0.03, tts-server /v1/audio/speech CER 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he library Ninja refuses a file named twice as an output (every non-Windows build). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The backbone's ggml-vulkan.cpp took ~14 minutes at -O3 with NDK clang: LLVM's register coalescer spent 822 of 880 s on it. At -O2 it takes 58 s. It is host-side dispatch code; the GPU kernels are unaffected. This was nearly the whole Android job (backbone build 13.5 of ~14 min). - ccache in the Release, CI and E2E builds (actions/cache). Both ggml copies already compile through it once it is installed (GGML_CCACHE). - E2E builds only codec-cli and libcodec, which the codec smokes use, without the llama.cpp backbone. CI builds with Ninja. Co-Authored-By: Claude Opus 5.5 <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.
Prebuilt
codec-cli/tts-cli/tts-server+ libraries, built on av*tag and attached to a draft release (publish by hand).Budget: standard GitHub-hosted runners only (free on a public repo). The workflow runs on a tag, a manual dispatch, or a PR that touches the recipe, never on a plain push. No CUDA / ROCm / SYCL packages.
CPU baseline: both ggml copies build for x86-64 AVX2 / arm64 armv8.2-a+fp16+dotprod, with OpenMP off. The llama.cpp backbone has to stay
GGML_BACKEND_DL=OFFfor its isolation, so llama.cpp-style runtime CPU variants could only cover half of the binary.Build fixes found on the way:
-j(Ninja), and side by side with the outer build it was OOM-killed in a 6 GB container. One after the other, peak memory is 2.6 GB on 4 cores.SPIRV-Headers_DIRis forwarded to the backbone. Android tools get a$ORIGINRUNPATH, which CMake's Android platform otherwise drops.cmake --build build -jstarts every compile at once, the likely cause of the 16 GB + 32 GB swap exhaustion in What about prebuilt tts-cli? #4. The docs now give a number.Windows: clang-cl against the MSVC runtime (
/MD), with the VC++ runtime DLLs bundled inbin/next to every other DLL (no rpath on Windows). The backbone DLL needs no symbol hiding there, because PE binds each import to a named DLL. llama.cpp built static has nodllexport, so a.defof thellama_*/common_samplersymbols is generated from its objects and linked with/WHOLEARCHIVE. Also:codec.dllexports all symbols, the static lib becomescodec_static.lib,_USE_MATH_DEFINESis defined, and tts-server no longer callssetvbuf(_IOLBF, 0), which the MSVC CRT aborts on.Tested locally:
tts-cli synthesizeCER 0.03, tts-server/v1/audio/speechCER 0.ubuntu:22.04(GCC 11) with 4 CPUs and 14 GB. The install tree passes the smoke script inarchlinux,ubuntu:22.04anddebian:12, and a full Sopranotts-cli synthesizein Arch gives Whisper CER 0.Closes #4
🤖 Generated with Claude Code