Skip to content

build: add a Metal + BLAS recipe for Apple GPUs - #39

Open
lvscar wants to merge 1 commit into
ServeurpersoCom:masterfrom
lvscar:feat/buildmetal
Open

lvscar wants to merge 1 commit into
ServeurpersoCom:masterfrom
lvscar:feat/buildmetal

Conversation

@lvscar

@lvscar lvscar commented Oct 12, 2026

Copy link
Copy Markdown

README advertises Metal, but the build script list has no Apple entry and none of the recipes pass QWEN_SHARED, so a macOS user following the docs ends up with libqwen-core.a only, and a ctypes / bindgen / cgo consumer has no dylib to load.

./buildmetal.sh follows the sibling scripts step for step and pins the platform defaults (GGML_METAL, GGML_METAL_EMBED_LIBRARY, GGML_BLAS) plus QWEN_SHARED=ON, so the tree also gets libqwen.dylib. Verified from a clean checkout on an M4: the shared target exports the 18 qt_* symbols with no pipeline_* or backend_* symbol visible, the CLI tools still link the static core library, and a ctypes caller loads the dylib and synthesises through the Metal backend (device detected, output audio transcribes back to the input text).

README advertises Metal, but the build script list has no Apple entry and
none of the recipes pass QWEN_SHARED, so a macOS user following the docs
ends up with libqwen-core.a only, and a ctypes / bindgen / cgo consumer
has no dylib to load.

./buildmetal.sh follows the sibling scripts step for step and pins the
platform defaults (GGML_METAL, GGML_METAL_EMBED_LIBRARY, GGML_BLAS) plus
QWEN_SHARED=ON, so the tree also gets libqwen.dylib. Verified from a
clean checkout on an M4: the shared target exports the 18 qt_* symbols
with no pipeline_* or backend_* symbol visible, the CLI tools still link
the static core library, and a ctypes caller loads the dylib and
synthesises through the Metal backend (device detected, output audio
transcribes back to the input text).
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.

1 participant