Skip to content
Opod

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-model

A 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:

  1. the catalog embedded in the binary;
  2. /usr/local/share/opod/catalog;
  3. /usr/share/opod/catalog (packages; a worker image's exported copy);
  4. $OPOD_CATALOG_DIR;
  5. ~/.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-model

Or 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.

FieldTypeMeaning
idstringUnique id used in the CLI, the API and requests. Kebab-case; match the file name.
display_namestringHuman-readable name.
sourceobjectWhere the weights come from. See below.
size_bytesintWeight size on disk. Used by the picker, admission and the part-count picker.
quantstringQuantization label (q4_k_m, q8_0, f16, …). Display only.
context_windowintMaximum tokens, input plus output.
trained_contextintThe trained window when context_window needs rope scaling the engine must be told to apply. 0 = context_window is the trained one.
capabilitieslistchat, tools, vision, audio, embedding, rerank. vision gates image input. audio is a discovery tag.
recommended_engineslistEngine ids that can serve the model, in preference order: ollama, vllm, sglang, mlx, llamacpp, trtllm. opod image recommend walks this list.
hardware.min_ram_gbintRAM floor (unified memory on Apple Silicon). For a sharded entry, the combined requirement. model add refuses below it unless --force.
hardware.min_vram_gbintGPU memory floor. Optional.
tagslistFree-form search tags. Entries with a non-permissive licence carry restricted-license.
shardingobjectSet when the model must be split. See below.
architectureobjectThe model's shape. See below.
tool_parsermapPer 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.
licensestringLicence identifier (SPDX where possible).
license_urlstringLicence text URL.
releasedstringRelease date, YYYY-MM-DD. Used by --sort=released and --since.
fallbacklistModels to try, in order, when this one fails.
fallback_on_context_lengthlistUsed instead of fallback when the failure is a context-length error.
fallback_on_content_policylistUsed instead of fallback when the failure is a content-policy refusal.

source

FieldWhenMeaning
typealwaysollama, huggingface or file.
ollama_nameollamaThe tag passed to ollama pull, e.g. llama3.2:1b.
repohuggingfaceThe Hugging Face repo, e.g. bartowski/Llama-3.3-70B-Instruct-GGUF.
filehuggingfaceOne GGUF file in the repo, for llama.cpp. Leave it out for a safetensors repo served by vLLM or SGLang.
pathfileA local path to a GGUF or a safetensors directory.

sharding

FieldMeaning
requiredtrue = opod model add hands off to opod shard create.
default_shardsPart 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.
enginellamacpp (default), vllm or sglang. Picks the gang backend.
rpc_port_basellama.cpp: each part's rpc-server binds from this port up. Default (0 or absent) 50052.
coordinator_portllama.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.

FieldMeaning
paramsParameter count.
layersTransformer layers.
heads, kv_headsAttention heads and KV heads.
expertsMixture-of-experts experts; 0 = dense.
head_dimAttention head dimension. 0 = assume 128.
kv_lora_rank, qk_rope_head_dim, qk_nope_head_dim, v_head_dimMulti-head latent attention (DeepSeek-style) shape.
sliding_window, sliding_layersLayers that keep only the last sliding_window tokens.
state_layers, state_bytesHybrid 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: 8

Last updated · Source: content/docs/core-reference/catalog.mdx · View as Markdown