1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# razorbill server configuration — use it with: rzb serve --config examples/server.yaml
# Check it with: rzb config validate examples/server.yaml
# Every section is optional. Command-line options (--host, --port, …) win over this file.
server:
host: 127.0.0.1 # 0.0.0.0 serves the whole network: set an API key then
port: 7920
api_key_env: RZB_API_KEY # the variable holding the key; the key never goes in this file
# cors_origin: "*" # let browser pages call the API
# Settings every model starts from. Clients may change them in their requests.
defaults:
temperature: 0.6
max_tokens: 2048
# Settings clients cannot change. Nothing is locked unless listed here (or under a model).
# max_tokens and thinking_budget are ceilings; every other key is imposed. Keys: temperature,
# top_p, top_k, min_p, repetition_penalty, repetition_context_size, max_tokens, thinking,
# thinking_budget, show_reasoning.
locked:
max_tokens: 8192
# show_reasoning: false # never send the models' reasoning (they still think)
# Models declared by name. Any other Hugging Face id in MLX format (org/name) is accepted too.
models:
- id: qwen3 # what clients put in "model"
source: mlx-community/Qwen3-0.6B-4bit
# revision: main
kind: chat # chat | embedding
preload: false
defaults: { thinking: true, thinking_budget: 512, top_k: 20 } # top_k: Qwen3's advice
locked: { max_tokens: 4096 }
# - id: embed # for /v1/embeddings
# source: BAAI/bge-small-en-v1.5
# kind: embedding
# - id: local
# path: ~/models/my-mlx-model # a model already on disk
limits:
max_loaded_models: 1 # least recently used model unloaded beyond this
keep_alive: 10m # idle model unloaded after this long
max_queue: 16 # waiting requests per model; more get a 429
|