Skip to content

feat(backends): darwin/Metal builds for vision C++/ggml backends (depth-anything, locate-anything, rfdetr-cpp, sam3-cpp)#10511

Merged
mudler merged 1 commit into
masterfrom
feat/darwin-vision-cpp-backends
Jun 25, 2026
Merged

feat(backends): darwin/Metal builds for vision C++/ggml backends (depth-anything, locate-anything, rfdetr-cpp, sam3-cpp)#10511
mudler merged 1 commit into
masterfrom
feat/darwin-vision-cpp-backends

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

Summary

Wires the four vision/utility C++/ggml backends into the macOS (Apple Silicon / Metal) build matrix. Their Makefiles already carry a Darwin/Metal path (GGML_METAL=ON when build-type=metal) - they were just never added to CI, so no Metal image was published and macOS users could not install them. This is the same mechanical wiring done for supertonic / trl / vllm / liquid-audio.

Backend What it does
depth-anything-cpp Depth Anything 3 monocular depth + camera pose (ggml)
locate-anything-cpp Open-vocabulary object detection / visual grounding (ggml)
rfdetr-cpp RF-DETR object detection + instance segmentation (ggml)
sam3-cpp Segment Anything (SAM 3/2/EdgeTAM) image segmentation (ggml)

Changes (additive, darwin-only)

  • .github/backend-matrix.yml: four includeDarwin entries (build-type: metal, lang: go), matching the existing go+ggml *-cpp Metal entries.
  • backend/index.yaml: metal: added to each backend's capabilities map (main + -development), plus concrete metal-<backend>(-development) entries pointing at the -metal-darwin-arm64-<backend> images.
  • backend/go/*/Makefile: a one-line note on the existing Darwin branch - which doubles as the per-backend change the CI path filter (scripts/changed-backends.js) needs to actually build the four Metal variants on this PR.

Verification

The CI darwin matrix builds each Metal image here (the Makefile touch ensures the path filter includes them). Live inference on an M4 to follow once the images are green.

Assisted-by: Claude:opus-4.8 [Claude Code]

depth-anything-cpp, locate-anything-cpp, rfdetr-cpp and sam3-cpp already carry
a Darwin/Metal path in their Makefiles (GGML_METAL=ON when build-type=metal),
but were never wired into CI, so no Metal image was published and Apple Silicon
could not install them.

- .github/backend-matrix.yml: add the four to includeDarwin (build-type metal,
  lang go), matching the other go+ggml *-cpp Metal entries.
- backend/index.yaml: add metal: to each backend's capabilities map (main and
  -development) plus concrete metal-<backend>(-development) entries pointing at
  the latest/master -metal-darwin-arm64-<backend> images.
- backend/go/*/Makefile: a one-line note on the existing Darwin branch (also
  the per-backend change the CI path filter needs to actually build them here).

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Assisted-by: Claude:opus-4.8 [Claude Code]
@mudler mudler merged commit d1a9d59 into master Jun 25, 2026
134 of 147 checks passed
@mudler mudler deleted the feat/darwin-vision-cpp-backends branch June 25, 2026 20:07
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