Adding models
Drop .gguf model files here to add models to an air-gapped platform.
This folder is mounted read-only into the Ollama container at /import, so
nothing has to be copied by hand. Model files are not committed to git;
they are gigabytes each.
Three ways to add a model#
| A folder + script | Browser upload | Download window | |
|---|---|---|---|
| Who | someone with a terminal on the server | an admin, in the web page | an admin, after one terminal command |
| Internet on the server | never | never | yes, for a limited time |
| How | ./scripts/import_models.sh [folder] |
Admin Panel > Settings > Models > Manage > Upload a GGUF model | ./start_mvp.sh --window, then Admin Panel > Settings > Models > Manage > Pull a model from Ollama.com |
| Size limit | none | 10 GB (nginx, D-13) | none |
| Free disk needed while adding | about 2x the file | about 3x the file | the model, once |
| Requires | nothing extra | Open WebUI v0.12.0 or later | ALLOW_ONLINE=true in .env (D-21) |
The folder can be this one, or any other: a models/ folder on a USB drive,
for example. Files from another folder are copied here one at a time,
imported, and the copy deleted. The offline installer does this
automatically for the bundle's models/ folder.
The download window is switched off on an offline install. See
docs/setup/README.md and DECISIONS.md D-21.
The browser upload needs Open WebUI v0.12.0 or later. SLAP pins v0.12.3, where an 808 MB upload created a working model (D-18). An install still running 0.11.x, for example one whose images were never updated, reports success and no model appears (D-13). Use this folder there.
Adding a model with no internet on the target#
- On any machine with internet, download a
.gguffile. Hugging Face is the usual source; look for a repository whose name ends in-GGUFand pick a quantisation.Q4_K_Mis the common balance of size against quality. - Copy it onto removable media, then into this folder on the target machine.
- Run:
bash
./scripts/import_models.sh
Or leave it on the drive and give the script that folder:
./scripts/import_models.sh /media/usb/models
- The model appears in the dropdown at the top of the chat page. The file's
SHA-256 is recorded in
model-imports.login the project folder; compare it with the checksum on the page you downloaded it from.
The model is named after the file, lowercased and without the extension. To
control the name, rename the file before importing:
llama3-8b-instruct.gguf becomes the model llama3-8b-instruct.
Which file do I actually need?#
Rough guide for a machine with no GPU. Memory decides whether a model runs at all; the processor decides how long people wait. Measured waits per model are in the sizing guide.
| Model size | Quantisation | File size | Practical on |
|---|---|---|---|
| 3B | Q4_K_M | ~2 GB | Anything with 8 GB RAM, but only a recent processor is quick: about 10 s per document answer on the demo PC, over a minute on a 2019 laptop |
| 7-8B | Q4_K_M | ~4.5 GB | 16 GB RAM, slow but usable on CPU |
| 13B | Q4_K_M | ~8 GB | 32 GB RAM, or a GPU |
Bigger is not automatically better for this project. The sponsor use case includes organizations with modest hardware and no AI expertise, so a smaller model that answers in ten seconds may be far more useful than a larger one that takes two minutes.
A caution worth taking seriously#
A .gguf file is executable weight data from the internet, carried across an
air gap on removable media, into a protected environment. That is exactly the
transfer path security teams worry about most.
Before this is used anywhere real, the team needs a policy on where models may
be sourced from, how they are checked, and who approves them. That question is
open and recorded in docs/SCOPE.md NB-02. The --from-checksum style
verification that would support such a policy is not built.
Related: docs/DECISIONS.md D-04 records the model-origin discussion, where
the sponsors expressed hesitation toward models of PRC origin.
Every model also comes with its publisher's licence, and some restrict how the
model may be used. See THIRD_PARTY_NOTICES.md for the default models, and
read the licence of any file you add.
Source: models/README.md in the CapstoneLocalAI repository (local working copy). Built Dec 3, 2026.