Local LLM with llama.cpp π‘ BETA
Use the pinned llama.cpp release and model entries from the manifest, verify their checksums, and confirm a local turn before calling the setup ready.
Admin guide Β· local model runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Provisioning local inference, after a model fails to load | Offline cache and manifest | Read pins, verify digest, load, complete a turn | Model loads, turn completes | Restore the previous provider setting |
When to use
Use this runbook when a deployment must run a model on its own machine, or when the local model server is not starting.
Before you start
botserver/3rdparty.tomlpins the llama.cpp builds and the model downloads, with a SHA-256 for each asset. Linux x86_64 builds and the arm64 build use different pinned releases; Windows builds use a different revision.- BotModels is the Python inference service shipped as a self-contained pythonbox; it is also pinned in the manifest.
- The offline installer refuses a missing or mismatched archive. Do not replace a pinned asset with a newer download from a CDN.
- Model configuration is resolved from Vault first, then the environment fallback, then the bot's configuration; see LLM configuration.
Steps
# 1. Read the pinned llama.cpp and model entries and their digests.
sed -n '287,345p' botserver/3rdparty.toml
# 2. Verify the cached archives before provisioning.
sha256sum botserver-installers/<pinned-filename>
# 3. Check the host matches a pinned asset.
uname -m
# 4. Start the local model server with the configured model and complete one
# turn in a test session. Record the observed first-token time.
# 5. If the provider was rebuilt at boot, restart the caching process.
curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8080/health
Pinned release
The pinned release is whatever botserver/3rdparty.toml declares today. Read the manifest rather than a version in this page or in artwork; the x86_64 and arm64 assets are not the same release.
Selection and fallback
Choose the smallest pinned model that completes a turn inside the recorded SLO budget on the target machine. If no local model fits, use the configured hosted provider; do not silently change the pin.
Configuring the provider
Set llm-url and llm-model through the Vault-backed per-bot configuration. The provider is built at boot, so a Vault-only change needs a restart of the caching process.
What this page does not claim
It does not promise a token rate, a memory figure or a quality score that is not in the manifest or measured on the target host. It does not claim that every board can run every model.
Verify
| Check | Command / surface | Pass condition |
|---|---|---|
| Pin | 3rdparty.toml |
release and digest present |
| Checksum | sha256sum |
matches the manifest |
| Architecture | uname -m |
pinned asset available |
| Load | one local turn | model loads and responds |
| Budget | SLOs | first-token time inside budget |
| Health | /health |
200 |
Roll back
π΄ Restore the previous LLM configuration through LLM configuration and restart the caching process, then re-run the table. Keep the pinned files for diagnosis; do not delete the offline cache.