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
{{ message }}
Repository navigation
Commit 76395c0
Browse filesBrowse the repository at this point in the historyBrowse files
The default container command starts Uvicorn, so pass model settings as environment variables such as `N_CTX` and `USE_MLOCK`.
742
+
Uvicorn accepts its own command-line options and rejects model flags such as `--n_ctx`.
743
+
744
+
```bash
745
+
docker run --rm -it -p 127.0.0.1:8000:8000 \
746
+
-v /path/to/models:/models:ro \
747
+
-e MODEL=/models/llama-model.gguf \
748
+
-e N_CTX=4096 \
749
+
-e USE_MLOCK=false \
750
+
ghcr.io/abetlen/llama-cpp-python:latest
751
+
```
752
+
753
+
See the [server settings reference](https://llama-cpp-python.readthedocs.io/en/latest/server/#server-options-reference) for more options.
754
+
741
755
[Docker on termux (requires root)](https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27) is currently the only known way to run this on phones, see [termux support issue](https://github.com/abetlen/llama-cpp-python/issues/389)
0 commit comments