You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build.md
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In order to build llama.cpp you have four different options.
16
16
make
17
17
```
18
18
19
-
- On Windows:
19
+
- On Windows (x86/x64 only, arm64 requires cmake):
20
20
21
21
1. Download the latest fortran version of [w64devkit](https://github.com/skeeto/w64devkit/releases).
22
22
2. Extract `w64devkit` on your pc.
@@ -45,6 +45,13 @@ In order to build llama.cpp you have four different options.
45
45
- For `Q4_0_4_4` quantization type build, add the `-DGGML_LLAMAFILE=OFF` cmake option. For example, use `cmake -B build -DGGML_LLAMAFILE=OFF`.
46
46
- For faster compilation, add the `-j` argument to run multiple jobsin parallel. For example, `cmake --build build --config Release -j 8` will run 8 jobsin parallel.
47
47
- For faster repeated compilation, install [ccache](https://ccache.dev/).
48
+
- For Windows:
49
+
- Install cmake e.g. via `winget install cmake`:
50
+
- As alternative to the w64devkit mentioned in"using make" above, install MSVC (e.g. via Visual Studio 2022 Community Edition).
51
+
- For Windows on ARM you need MSVC installed and _additonally_:
52
+
- Install [clang via LLVM for woa64](https://releases.llvm.org) to enable better ARM optimizations (clang needs the MSVC backend).
53
+
- For using clang, the first build step needs to be `cmake --preset arm64-windows-llvm-release` (instead of the `cmake -B ...` which defaults to MSVC).
54
+
- Note: Building for ARM can also just be done with MSVC (without installing clang or using the preset), but this e.g. does not support Q_4_0_4_4 acceleration, because the MSVC frontend cannot inline ARM assembly-code.
48
55
- For debug builds, there are two cases:
49
56
50
57
1. Single-config generators (e.g. default = `Unix Makefiles`; note that they just ignore the `--config` flag):
0 commit comments