diff options
author | Pierrick Hymbert <pierrick.hymbert@gmail.com> | 2024-03-03 08:48:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 09:48:36 +0200 |
commit | 8ef969afcec1645d2d9c3ab1fc82263bba968989 (patch) | |
tree | f5cdecea4c413e2c1acf75b5256ef31fe4fc8d7d /examples/server/README.md | |
parent | fa974646e1a2024fc7dc9e6f27cf1f2f5d4a3763 (diff) |
server : init http requests thread pool with --parallel if set (#5836)
Diffstat (limited to 'examples/server/README.md')
-rw-r--r-- | examples/server/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/README.md b/examples/server/README.md index 397ee825..21da7a0a 100644 --- a/examples/server/README.md +++ b/examples/server/README.md @@ -18,7 +18,7 @@ The project is under active development, and we are [looking for feedback and co - `--threads N`, `-t N`: Set the number of threads to use during generation. - `-tb N, --threads-batch N`: Set the number of threads to use during batch and prompt processing. If not specified, the number of threads will be set to the number of threads used for generation. -- `--threads-http N`: number of threads in the http server pool to process requests (default: `std::thread::hardware_concurrency()`) +- `--threads-http N`: number of threads in the http server pool to process requests (default: `max(std::thread::hardware_concurrency() - 1, --parallel N + 2)`) - `-m FNAME`, `--model FNAME`: Specify the path to the LLaMA model file (e.g., `models/7B/ggml-model.gguf`). - `-a ALIAS`, `--alias ALIAS`: Set an alias for the model. The alias will be returned in API responses. - `-c N`, `--ctx-size N`: Set the size of the prompt context. The default is 512, but LLaMA models were built with a context of 2048, which will provide better results for longer input/inference. The size may differ in other models, for example, baichuan models were build with a context of 4096. |