Configuration
Most settings are in the console and apply within seconds. A few live on the machine, in its config file or environment variables.
In the console
Open Workers, choose a worker, then Settings. Owners and operators can change these, and there's no restart. You can also change most of them from code: see Managing workers.
| Setting | What it does | Default |
|---|---|---|
| KV cache | Keeps conversations so follow-up requests reply faster. | Memory + NVMe |
| RAM cache | How much system memory can hold conversations that aren't on the GPU. | Automatic |
| Conversation memory density | Compact fits about twice as much conversation on the GPU, but long replies are slower. | Automatic |
| Allow remote image URLs | Lets vision requests send image links, which the worker downloads. | Off |
| Web tools | Lets models read web pages and search the web during a chat. | Off |
| Task timeout | How long a request that isn't streamed can run, from 1 to 120 minutes. | 30 minutes |
| Requests at once | How many requests the worker works on at the same time. | Automatic |
| Run requests together | Lets a model work on several requests in one pass. | On |
- The KV cache page covers the first three.
- Web search queries aren't end-to-end encrypted. Leave web tools off on a worker whose requests Pendra must never see.
- Speculative decoding tunes itself, but you can turn it off here too.
Requests at once
Leave this on Automatic and the worker chooses for each model from the memory it has. Choose Set a limit, from 1 to 1024, to keep each reply fast or leave the GPU room for other work. The console shows how many each model really runs, and why if it's fewer.
- With Run requests together on, eight requests finish in barely more time than one. Much higher than that, each reply slows down. Go high for batch jobs and stay moderate when people are waiting.
- Images, speech, embeddings and reranking run one request at a time.
- On Gemma, gpt-oss and Flint models, a high limit can shorten the context.
- See Batch inference for sending many requests at once.
When a worker is full
Pendra holds an extra request for up to 30 seconds, and moves it to
another worker if one frees up. If none does, you get a
429 with a Retry-After header. The worker's page
shows how many requests are queued for any worker. If that stays above
zero, add a worker for the model.
If you set a limit higher than the models can run, the extra requests wait on the worker instead, until the task timeout. That suits long batch jobs that would rather wait than retry.
When Pendra holds a worker back
If a worker is overloaded and falling behind, Pendra sends it fewer
requests until it catches up, and returns a 429 for the rest.
The worker's page shows how many it's accepting. Add a worker, because
raising the limit won't get more through a GPU that's already full.
On the machine
The config file is ~/.pendra/config.yaml on macOS,
/var/lib/pendra/config.yaml for the Linux package, and
%ProgramData%\Pendra\config.yaml on Windows. Environment
variables override it. Restart the worker after a change.
gpu_worker_private_key: <your worker key>
worker_name: gpu-01
models_dir: /mnt/ssd/pendra/models
The file holds your worker key, so Pendra keeps it readable only by you and administrators.
| Environment variable | Config key | What it does |
|---|---|---|
GPU_WORKER_PRIVATE_KEY |
gpu_worker_private_key |
Your worker key. Required. |
WORKER_NAME |
worker_name |
The name shown in the console. |
PENDRA_MODELS_DIR |
models_dir |
Where models are stored. |
MODELS |
models |
Serve only these models, as a JSON list of ids. |
PENDRA_KV_CACHE_DIR |
Where the KV cache saves conversations to disk. Use a fast SSD. | |
PENDRA_WHISPER_MAX_PARALLEL |
Transcriptions to run at once, from 1 to 16. Default 4. | |
PENDRA_DOWNLOAD_MAX_CONNECTIONS |
Connections per model download, from 1 to 64. Default 16. | |
PENDRA_DISABLE_POWER_TELEMETRY |
Set to 1 to stop reporting power usage. | |
PENDRA_LOG_MAX_FILES |
Log files to keep. Default 5. | |
PENDRA_LOG_MAX_SIZE_MB |
Size at which a log file rolls over. Default 20. |
Only if something goes wrong
| Set | When |
|---|---|
PENDRA_DISABLE_NATIVE_TOOLS=1 | A model calls tools less reliably after a worker update. |
PENDRA_ALLOW_METAL_BF16=1 | A Mac declines a model stored in the bf16 format, and you've checked it runs. |
PENDRA_BLOCK_METAL_BF16_PROJECTOR=1 | Vision models fail to read images on an older Mac. They then serve text only. |
PENDRA_VISION_OVERSIZED_MODE=off | A vision model misbehaves when split across several GPUs. It then serves text only. |
Naming a worker
A new worker is named after its machine. To rename it, open it in the console and choose the pencil next to its name. It changes within seconds, with no restart.
For containers, set WORKER_NAME instead. It wins every time
the worker restarts, so pick one place to name each worker.
Worker IDs
Pendra gives each worker an ID that stays the same through restarts and
updates. pendra status shows it.
- One worker key can run as many machines as you like. Each shows up as its own worker.
-
A copied disk or VM image looks like the same worker, and won't connect
while the original is online. Delete
.pendra-instancefrom its models folder and restart it. - Give a machine a new worker key and it comes back as a new worker, which needs approving if you use approval.
Commands
| Command | What it does |
|---|---|
pendra status | Shows the connection, GPU and models. |
pendra doctor | Checks the driver, GPU, config and connection. |
pendra logs -f | Follows the worker's log. |
pendra config | Shows the settings in use and the file they came from. |
pendra config set <key> <value> | Changes a setting in the config file. |
pendra models | Lists the installed models. |
pendra models install <model> | Installs a model. Add --wait to return once it's serving. |
pendra models jobs | Shows installs in progress. |
pendra restart-backend | Restarts the model runtime, for a GPU that stalled and fell back to the CPU. |
pendra setup | Runs the setup wizard. |