Core reference
Catalog format
The YAML schema of a catalog entry, where opod looks for catalog files and in which order, and how to add or override a model.
In short
A catalog entry is one YAML file that describes a model: where the weights come from, its size, the hardware it needs and the engines that serve it. The curated entries are embedded in the binary; a file in an override directory adds an entry or replaces one by id. Copy an entry with opod catalog export, edit it, and install it.
opod catalog export /tmp/cat
cp /tmp/cat/llama-3.2-3b.yaml ~/.opod/catalog/my-model.yaml # then change id: to my-model
opod model add my-modelA catalog entry describes one model: where its weights come from, how big it is, what hardware it needs and which engines serve it. The curated catalog is embedded in the binary from core's pkg/catalog. opod catalog ls lists it; opod catalog export DIR writes it out.
Where opod looks
Every source that exists is merged by id, and a later source wins:
- the catalog embedded in the binary;
/usr/local/share/opod/catalog;/usr/share/opod/catalog(packages; a worker image's exported copy);$OPOD_CATALOG_DIR;~/.opod/catalog(most authoritative).
Nothing else is read: not ./catalog, not a directory beside the binary. Only files at the top level of a directory are read; .yaml and .yml both work.
catalog_dir in config.yaml is a different switch: with a path set, that one directory is read alone.
Add or override a model
cat > ~/.opod/catalog/my-model.yaml <<'EOF'
id: my-model
display_name: My Model 7B Q4
source:
type: huggingface
repo: my-org/my-model-GGUF
file: my-model-Q4_K_M.gguf
size_bytes: 4400000000
quant: q4_k_m
context_window: 32768
capabilities: [chat, tools]
recommended_engines: [llamacpp, ollama]
hardware:
min_ram_gb: 8
tags: [small, apache-2.0]
license: apache-2.0
EOF
opod model add my-modelOr opod model add --file ./my-model.yaml (--from up to core v0.4.5), which copies the file into ~/.opod/catalog/. To change a curated entry, write a file with the same id into an override directory.
Schema
Unknown fields are ignored.
| Field | Type | Meaning |
|---|---|---|
id | string | Unique id used in the CLI, the API and requests. Kebab-case; match the file name. |
display_name | string | Human-readable name. |
source | object | Where the weights come from. See below. |
size_bytes | int | Weight size on disk. Used by the picker, admission and the part-count picker. |
quant | string | Quantization label (q4_k_m, q8_0, f16, …). Display only. |
context_window | int | Maximum tokens, input plus output. |
trained_context | int | The trained window when context_window needs rope scaling the engine must be told to apply. 0 = context_window is the trained one. |
capabilities | list | chat, tools, vision, audio, embedding, rerank. vision gates image input. audio is a discovery tag. |
recommended_engines | list | Engine ids that can serve the model, in preference order: ollama, vllm, sglang, mlx, llamacpp, trtllm. opod image recommend walks this list. |
hardware.min_ram_gb | int | RAM floor (unified memory on Apple Silicon). For a sharded entry, the combined requirement. model add refuses below it unless --force. |
hardware.min_vram_gb | int | GPU memory floor. Optional. |
tags | list | Free-form search tags. Entries with a non-permissive licence carry restricted-license. |
sharding | object | Set when the model must be split. See below. |
architecture | object | The model's shape. See below. |
tool_parser | map | Per engine id, the tool-call parser that engine needs for this model, e.g. {vllm: hermes, sglang: qwen25, trtllm: qwen3}. Without a key, that engine starts with no parser and refuses requests with tools. llama.cpp and Ollama need none. |
license | string | Licence identifier (SPDX where possible). |
license_url | string | Licence text URL. |
released | string | Release date, YYYY-MM-DD. Used by --sort=released and --since. |
fallback | list | Models to try, in order, when this one fails. |
fallback_on_context_length | list | Used instead of fallback when the failure is a context-length error. |
fallback_on_content_policy | list | Used instead of fallback when the failure is a content-policy refusal. |
source
| Field | When | Meaning |
|---|---|---|
type | always | ollama, huggingface or file. |
ollama_name | ollama | The tag passed to ollama pull, e.g. llama3.2:1b. |
repo | huggingface | The Hugging Face repo, e.g. bartowski/Llama-3.3-70B-Instruct-GGUF. |
file | huggingface | One GGUF file in the repo, for llama.cpp. Leave it out for a safetensors repo served by vLLM or SGLang. |
path | file | A local path to a GGUF or a safetensors directory. |
sharding
| Field | Meaning |
|---|---|
required | true = opod model add hands off to opod shard create. |
default_shards | Part count when the API is given neither a count nor nodes. No default: with 0 such a create fails with shard count must be at least 1. |
engine | llamacpp (default), vllm or sglang. Picks the gang backend. |
rpc_port_base | llama.cpp: each part's rpc-server binds from this port up. Default (0 or absent) 50052. |
coordinator_port | llama.cpp: the coordinator's llama-server port. Default (0 or absent) 9001. |
architecture
Optional. A placer validates a split against it: tensor parallel must divide heads, pipeline parallel must not exceed layers, expert parallel needs experts. The part-count picker never splits into more parts than layers. Unknown values are never refused.
| Field | Meaning |
|---|---|
params | Parameter count. |
layers | Transformer layers. |
heads, kv_heads | Attention heads and KV heads. |
experts | Mixture-of-experts experts; 0 = dense. |
head_dim | Attention head dimension. 0 = assume 128. |
kv_lora_rank, qk_rope_head_dim, qk_nope_head_dim, v_head_dim | Multi-head latent attention (DeepSeek-style) shape. |
sliding_window, sliding_layers | Layers that keep only the last sliding_window tokens. |
state_layers, state_bytes | Hybrid layers with a fixed per-sequence state instead of a per-token cache. |
These let a reader size the KV cache: one token is 2 × layers × kv_heads × head_dim × bytes per element, adjusted for the attention layouts above.
Signed files
See Models → Signed catalog files. A file that is byte for byte an embedded entry needs no signature.
Example: a sharded entry
id: llama-3.3-70b-sharded
display_name: Llama 3.3 70B (sharded, manual GGUF)
source:
type: file
path: /var/lib/opod/models/llama-3.3-70b-q4_k_m.gguf
size_bytes: 42949672960
quant: q4_k_m
context_window: 131072
capabilities: [chat, tools]
recommended_engines: [llamacpp]
hardware:
min_ram_gb: 48
tags: [sharded, large, restricted-license]
license: llama-3-community
sharding:
required: true
default_shards: 2
engine: llamacpp
rpc_port_base: 50052
coordinator_port: 9001
architecture:
params: 70600000000
layers: 80
heads: 64
kv_heads: 8Last updated · Source: content/docs/core-reference/catalog.mdx · View as Markdown