From 3718799b371b77d09a86d566f6a62badd3d64988 Mon Sep 17 00:00:00 2001 From: Anchen Date: Mon, 15 May 2023 20:46:59 +1000 Subject: [PATCH] chore: add note for Mac m1 installation --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5c1dd91..1f84946 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,12 @@ pip install llama-cpp-python The above command will attempt to install the package and build build `llama.cpp` from source. This is the recommended installation method as it ensures that `llama.cpp` is built with the available optimizations for your system. +Note: If you are using Apple Silicon (M1) Mac, make sure you have installed a version of Python that supports arm64 architecture. For example: +``` +wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh +bash Miniforge3-MacOSX-arm64.sh +``` +Otherwise, while installing it will build the llama.ccp x86 version which will be 10x slower on Apple Silicon (M1) Mac. ### Installation with OpenBLAS / cuBLAS / CLBlast