Skip to content

Commit d6d263f

Browse files
authored
Merge pull request ggml-org#19 from lesaun/master
Clarify build instructions in README.
2 parents 1a9141b + 917540c commit d6d263f

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

examples/server/README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,26 @@ Command line options:
2121
- `--host`: Set the hostname or ip address to listen. Default `127.0.0.1`.
2222
- `--port`: Set the port to listen. Default: `8080`.
2323

24-
## Quick Start
24+
## Build
25+
26+
Build llama.cpp with server from repository root with either make or CMake.
27+
28+
- Using `make`:
29+
30+
```bash
31+
LLAMA_BUILD_SERVER=1 make
32+
```
2533

26-
**Note:** The server is not built by default. Make sure to add `LLAMA_BUILD_SERVER=ON` to your CMake command.
34+
- Using `CMake`:
35+
36+
```bash
37+
mkdir build-server
38+
cd build-server
39+
cmake -DLLAMA_BUILD_SERVER=ON ..
40+
cmake --build . --config Release
41+
```
42+
43+
## Quick Start
2744

2845
To get started right away, run the following command, making sure to use the correct path for the model you have:
2946

0 commit comments

Comments
 (0)