Prepare your model template
Overview
The model template is what makes your model deployable on ARX. It is a directory of YAML that declares what the model is, where its weights are downloaded from, what it needs to run, and which inference engines can serve it.
A model template is always a collection of variants, even when there is only one variant. The collection is the marketplace entry; each variant is a separately deployable build of the same model family.
This page covers the layout of that directory and, above all, the model block where you declare the model itself.
What you'll learn
- Lay out a collection and its variant directories, and pick ids that agree with each other
- Declare what the model is in the
modelblock: parameters, format, precision, tasks, and inputs and outputs - Point at the weights with
sources, and at the engines that serve them withdeployment.engines
Applies to
- ARX OS 1.0 and later
Before you begin
- Your model is published where ARX can download it — a Hugging Face or ModelScope repository, or another source you can name
- You know the exact file names to download when the model is a GGUF build
.claude/skills/.Directory layout
Templates sit directly under templates/. A collection's directory name is its id, and each variant lives in its own subdirectory:
templates/
- publisher.yaml
- models.your-model/
- collection.yaml # the collection root
- icon.svg # optional
- localization.yaml # collection-level translations (optional)
- 0.6b-gguf/ # one directory per variant
- manifest.yaml
- localization.yaml # optional
- 8b-instruct/
- manifest.yaml
Name a variant directory after size and build — 0.6b-gguf, 4b, 8b-instruct, 270m — because that name becomes the @variant suffix of the variant's id.
Three values state the same family three times, and validation fails when they disagree:
# collection.yaml
id: models.your-model
# 0.6b-gguf/manifest.yaml
id: models.your-model@0.6b-gguf # left of '@' is the collection id
model:
collection: your-model # the id's last segment, with no prefix
version constants:collection.yaml takes version: "1", a variant manifest takes version: "1.0". Writing "1.0" in a collection is the most common first error in the whole format.What goes in collection.yaml
The collection is the marketplace entry for the family. Everything below is required except icon.
| Field | What it carries |
|---|---|
metadata.id / name | The family id, matching the directory, with no @variant, and its display name |
metadata.description | What the family is and what it is good at — either the prose itself, or the name of a file beside collection.yaml that holds it |
metadata.categories | Closed enum, at least one: llm, embedding-model, reranker-model, image-model, audio-model, video-model, multimodal |
metadata.tasks / inputTypes / outputTypes | The same three closed enums a variant declares — see the model block |
metadata.tags / license / developer / updateDate | Free tags, the licence, the upstream developer's name and URL, and the date the entry was last updated |
There is no subtitle in a collection — variants have one, collections do not.
What goes in a variant manifest.yaml
| Block | What it carries |
|---|---|
metadata | Id, name, version, release date, type: models, categories, subtitle, developer, supported languages, and tags. subtitle is required here, unlike in an app manifest |
metadata.model | What the model actually is — the block this page is about |
resources | CPU, memory, storage, GPU count, and VRAM the variant needs to serve |
deployment | type: model plus the engines that can serve it |
metadata.releaseDate is the model's real release date, taken from its source page rather than from the day you write the manifest. metadata.supportedLanguages is what the model itself handles, not the languages the template is translated into.
The model block
Required inside it: collection, params, format, and sources. Everything else is optional but usually worth declaring, because an application's dependency conditions filter on these fields — a variant that omits them cannot be matched.
model:
collection: your-model # collection name, no prefix
params: "0.6b" # ^[0-9]+(\.[0-9]+)?(b|m)$
variant: reranker
quantization: "Q8_0"
format: gguf
tasks:
- text-ranking
inputTypes:
- text
outputTypes:
- score
sources:
- provider: huggingface
modelId: ggml-org/Qwen3-Reranker-0.6B-Q8_0-GGUF
files:
- "qwen3-reranker-0.6b-q8_0.gguf"
params
The pure parameter count: digits, an optional decimal point, and a lowercase b for billion or m for million. "0.6b" and "270m" are correct; "8B" and "8b-gguf" are not — build information belongs in the variant id. For a mixture-of-experts model, write the total count and mention the active parameters in the subtitle or tags.
format
A closed enum, and it decides which engines can serve the model:
| Value | Served by |
|---|---|
gguf | llama.cpp |
safetensors | vLLM and other Hugging Face Transformers–style runtimes |
ct2 | CTranslate2 (faster-whisper) |
variant, precision, quantization
variant—base,instruct,instruction-tuned,chat,embedding,reranker, ortranscriptionprecision—fp32,fp16,bf16,fp8,int8, orint4. Omit it for GGUF builds, where the quantization already says it; set it for safetensors and ct2quantization— a free string such as"Q8_0","Q4_K_M"or"awq", ornull
tasks, inputTypes, outputTypes
Three closed enums, the same three the collection declares:
| Kind | tasks | inputTypes | outputTypes |
|---|---|---|---|
| LLM | text-generation | text | text |
| Embedding | text-embedding | text | vector |
| Reranker | text-ranking | text | score |
| Transcription | audio-to-text | audio | text |
sources
Download sources in priority order. Each entry needs a provider — huggingface, modelscope, ollama, or custom — and a modelId. Add files to narrow the download to specific files, which is required for a GGUF build served by llama.cpp.
File names must match the provider's listing exactly, so fetch them rather than guessing. Note that ollama here is a download provider, not an inference engine.
deployment.engines
At least one engine, each with a name and the apiEndpoints this model serves on it:
deployment:
type: model
engines:
- name: llama.cpp
version: ">=0.11.0" # optional
apiEndpoints:
- /v1/chat/completions
contextWindow: 32768
Engine names resolve against the inference-engine catalog the validator compiles in: llamacpp (aliases llama.cpp, llama_cpp) for GGUF, vllm and nvidia-vllm for safetensors, and whisper (alias faster-whisper) for ct2 speech-to-text. Anything else fails validation.
Declare contextWindow on the first engine at minimum — that is the value an application's dependency conditions compare against.
resources
Estimate from the real files and the measured serving footprint: storage is the size of what is actually downloaded, and vram is the weights plus the KV cache at the declared context window, with headroom. A CPU-only model takes gpu: 0 and vram: null.
Optional files
icon.svg is the icon AI Model Center lists the collection under — square, 256×256 or larger, on a transparent background, SVG preferred.
localization.yaml translates the user-facing strings, and a model carries it at two levels: one beside collection.yaml, one inside each variant directory. The model's name is not translated — a model number reads the same in every language.
Next step
Deploy fine-tuned model
Check your fine-tuned model against the formats and files ARX requires, upload it to a private Hugging Face repository, then download and deploy it from AI Model Center
Official shipping channel
Move from a template you deploy yourself to shipping your model to customers: becoming an ARDGE partner, submitting your template for release, and publishing a new build as a new profile
