Guide: Adding a New Model¶
This guide outlines the end-to-end process for adding a new LLM (Large Language Model) to the Edge Computing platform.
Overview¶
Adding a model involves several steps across multiple repositories: 1. Creating a Modelfile. 2. Updating Helm values overlays. 3. Updating the observability catalog. 4. Adding tests to the matrix. 5. Documenting the model.
Step 1: Create a Modelfile¶
The edge-computing-openai repository (or the designated models repo) contains Modelfiles that define how Ollama should run the model.
- Navigate to the models directory:
- Create a new directory for the model (e.g.,
mistral-nemo). - Create a
Modelfile:
Step 2: Add Values Overlay¶
Update the edge-cli profiles to include the new model in the appropriate tier (lite, standard, or heavy).
- Open
edge-cli/internal/config/profiles.goor the relevant YAML configurations. - Add the model to the profile configuration. For example, in
profiles/standard.yaml:
Step 3: Update GGUF Observability Catalog¶
To ensure the new model is tracked properly in Grafana dashboards, update the gguf-observability catalog.
- Open
gguf-observability/catalog/models.yaml. - Add the model metadata:
Step 4: Update the Test Matrix¶
Ensure the new model is validated during CI/CD.
- Open
edge-llm-tests/matrix/models.json. - Add the model entry:
Step 5: Testing the Model Locally¶
Before committing, verify the model works on your local edge cluster:
- Apply the updated profile:
- Wait for the model to pull and load:
- Run inference via the CLI or Open WebUI:
Step 6: Documentation¶
Update the user-facing documentation to announce the new model.
- Update
docs/reference/profiles-services.mdto list the model under the correct profile. - Add any specific quirks or requirements (e.g., "Requires minimum 10GB VRAM") to
docs/faq.md.
Once all steps are complete, submit PRs to the respective repositories.