Skip to content

Metal support

Metal support is enabled by default on macOS.

The pre-built binaries of node-llama-cpp for macOS are built with Metal support enabled, and when building from source on macOS, Metal support is enabled by default.

If you're using a Mac with an Intel chip, you might want to disable Metal support if you're experiencing issues with it.

Disabling Metal support

Prerequisites

Building node-llama-cpp with Metal support disabled

Run this command inside of your project:

bash
npx --no node-llama-cpp download --no-metal
npx --no node-llama-cpp download --no-metal

If cmake is not installed on your machine, node-llama-cpp will automatically download cmake to an internal directory and try to use it to build llama.cpp from source.