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.

SettingWhat it doesDefault
KV cacheKeeps conversations so follow-up requests reply faster.Memory + NVMe
RAM cacheHow much system memory can hold conversations that aren't on the GPU.Automatic
Conversation memory densityCompact fits about twice as much conversation on the GPU, but long replies are slower.Automatic
Allow remote image URLsLets vision requests send image links, which the worker downloads.Off
Web toolsLets models read web pages and search the web during a chat.Off
Task timeoutHow long a request that isn't streamed can run, from 1 to 120 minutes.30 minutes
Requests at onceHow many requests the worker works on at the same time.Automatic
Run requests togetherLets a model work on several requests in one pass.On

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.

config.yaml
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 variableConfig keyWhat 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

SetWhen
PENDRA_DISABLE_NATIVE_TOOLS=1A model calls tools less reliably after a worker update.
PENDRA_ALLOW_METAL_BF16=1A Mac declines a model stored in the bf16 format, and you've checked it runs.
PENDRA_BLOCK_METAL_BF16_PROJECTOR=1Vision models fail to read images on an older Mac. They then serve text only.
PENDRA_VISION_OVERSIZED_MODE=offA 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-instance from 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

CommandWhat it does
pendra statusShows the connection, GPU and models.
pendra doctorChecks the driver, GPU, config and connection.
pendra logs -fFollows the worker's log.
pendra configShows the settings in use and the file they came from.
pendra config set <key> <value>Changes a setting in the config file.
pendra modelsLists the installed models.
pendra models install <model>Installs a model. Add --wait to return once it's serving.
pendra models jobsShows installs in progress.
pendra restart-backendRestarts the model runtime, for a GPU that stalled and fell back to the CPU.
pendra setupRuns the setup wizard.