Skip to content

Commit 6e52096

Browse files
committed
build: set GGML_METAL_USE_BF16 option ON for metal build by default
1 parent 4b13964 commit 6e52096

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ if (LLAMA_BUILD)
101101

102102
# Metal settings (enable for both architectures)
103103
set(GGML_METAL "ON" CACHE BOOL "ggml: enable Metal" FORCE)
104+
set(GGML_METAL_USE_BF16 "ON" CACHE BOOL "ggml: use bfloat if available" FORCE)
104105
set(GGML_METAL_EMBED_LIBRARY "ON" CACHE BOOL "ggml: embed metal library" FORCE)
105106
endif()
106107

0 commit comments

Comments
 (0)