Skip to content

Prebuilt: drop the stale GGML_METAL_USE_BF16 define - #38

Merged
danielhanchen merged 2 commits into
masterfrom
macos14-metal-fix
Jul 23, 2026
Merged

Prebuilt: drop the stale GGML_METAL_USE_BF16 define#38
danielhanchen merged 2 commits into
masterfrom
macos14-metal-fix

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

Removes the stale -DGGML_METAL_USE_BF16=ON define from the macOS arm64 prebuilt matrix.

The option no longer exists in the current source tree: bf16 support is runtime-probed by ggml (has_bfloat via supportsFamily: checks in ggml-metal-device.m, with the GGML_METAL_BF16_DISABLE env override). Passing the define was a no-op CMake cache variable, so this changes nothing in the produced binaries; it only stops passing a flag CMake ignores.

Not included

The macOS 14 paravirtual mmap fix (PR #37) is intentionally not pinned here; whether to carry that patch is a separate decision. Until then, macOS 14 virtual machines (GitHub macos-14 runners) keep the known mmap staleness quirk with large models; bare metal Macs are unaffected.

Verification

  • Grepping the current build tree for GGML_METAL_USE_BF16 returns nothing outside this workflow line.
  • The candidate build from run 29926603382 (which included this removal) passed the minos load gate and produced correct output on the macos-14/15/26 staging checks.

…USE_BF16 define

Pin #37 in pr-set.json: on macOS 14 VMs the Apple
Paravirtual GPU returns stale data for mmap-backed weight buffers, so the
patch makes the Metal backend stop advertising buffer_from_host_ptr there
and llama.cpp falls back to copied weights (same path as --no-mmap).

GGML_METAL_USE_BF16 no longer exists in current llama.cpp (bf16 is
runtime-probed since the ggml-metal rewrite), so the define was a no-op;
remove it from the macOS matrix entry.
GGML_METAL_USE_BF16 no longer exists as a build option in the current
source tree (bf16 is runtime-probed), so passing it was a no-op. The
macOS 14 paravirtual mmap pin moves to a separate decision.
@danielhanchen danielhanchen changed the title Prebuilt: fix degenerate Metal output on macOS 14 VMs (carry mmap-buffer patch), drop stale GGML_METAL_USE_BF16 Prebuilt: drop the stale GGML_METAL_USE_BF16 define Jul 23, 2026
@danielhanchen
danielhanchen merged commit 9005fe6 into master Jul 23, 2026
1 check passed
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