styal commited on
Commit
2c03a59
·
verified ·
1 Parent(s): dff750b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +5 -4
README.md CHANGED
@@ -80,18 +80,19 @@ cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=native \
80
  cmake --build build -j --target llama-cli llama-bench
81
  ```
82
 
83
- **Apple silicon or CPU (Metal)**:
84
 
85
  ```sh
86
  git clone https://github.com/styalai/leffm-llamacpp && cd leffm-llamacpp
87
- cmake -B build -DGGML_METAL=ON -DLLAMA_CURL=OFF -DCMAKE_BUILD_TYPE=Release
88
  cmake --build build -j --target llama-cli llama-bench
89
  ```
90
 
91
  - `-DCMAKE_CUDA_ARCHITECTURES=native` compiles for the GPU in the machine. Set it explicitly only to
92
  cross-compile: `89` Ada (L4, L40S, RTX 40xx), `80` A100, `86` A10 / RTX 30xx, `90` H100.
93
- - `-DLLAMA_CURL=OFF` drops the libcurl dependency; `-DGGML_METAL=ON` is already the default on macOS.
94
- - Without a GPU, the Metal command also builds a CPU-only binary.
 
95
 
96
  A few minutes later `build/bin/llama-cli` and `build/bin/llama-bench` are ready.
97
 
 
80
  cmake --build build -j --target llama-cli llama-bench
81
  ```
82
 
83
+ **Apple silicon (Metal — the default backend there) or CPU**:
84
 
85
  ```sh
86
  git clone https://github.com/styalai/leffm-llamacpp && cd leffm-llamacpp
87
+ cmake -B build -DLLAMA_CURL=OFF -DCMAKE_BUILD_TYPE=Release
88
  cmake --build build -j --target llama-cli llama-bench
89
  ```
90
 
91
  - `-DCMAKE_CUDA_ARCHITECTURES=native` compiles for the GPU in the machine. Set it explicitly only to
92
  cross-compile: `89` Ada (L4, L40S, RTX 40xx), `80` A100, `86` A10 / RTX 30xx, `90` H100.
93
+ - `-DLLAMA_CURL=OFF` drops the libcurl dependency.
94
+ - The second command enables Metal by itself on Apple silicon, and on a machine without a GPU it builds
95
+ a CPU-only binary — the same flags work everywhere.
96
 
97
  A few minutes later `build/bin/llama-cli` and `build/bin/llama-bench` are ready.
98