Guide: Local models
muaz can download an open-weight model and serve it on your machine, so an
agent runs with no API key and nothing leaving the computer. You don’t install
Ollama or LM Studio for this. muaz downloads a pinned build of llama.cpp’s
llama-server, starts it when an agent needs it, and stops it once it sits idle.
Local models are best at the cheap, fast end of a workflow: a router in front of specialists, classification, summarising. Small models call tools less reliably than frontier ones, so pick the largest model your machine runs comfortably.
1. Pick a model
Section titled “1. Pick a model”muaz ships no model list; new open-weight models come out every week. It reads HuggingFace instead:
muaz inference search # suggestions for this machinemuaz inference search qwen 9b # any GGUF repo on HuggingFaceWith no words, search suggests the most-downloaded GGUF models (over the last
month) that can call tools and fit comfortably in this machine’s memory, largest
first. Re-uploads of the same model count once. With words, it searches every
GGUF repo, most downloaded first.
Every row shows:
- Size: the file a download installs. A repo downloads its
Q4_K_Mfile, or its only file. A repo with several files and noQ4_K_Mshows—; name the file you want (see below). - Fit:
fits,tightortoo big, judged against free GPU memory on a machine with a GPU, otherwise RAM. It allows room for the context as well as the weights. - Tools: whether the model’s chat template takes tools. A model without it cannot drive an agent; it is still useful as a classifier or summariser.
2. Download it
Section titled “2. Download it”muaz inference pull unsloth/Qwen3.5-9B-GGUF # its Q4_K_M filemuaz inference pull unsloth/Qwen3.5-9B-GGUF/Qwen3.5-9B-Q8_0.gguf # an exact fileA model installs under its file name, lowercased: the first command above
installs qwen3.5-9b-q4_k_m. Each file is checked against its SHA-256 before it
is installed. Ctrl-C pauses a download, and running the same pull again
resumes it where it stopped. If a model looks too big for this machine, pull
stops and asks for --yes.
muaz inference list # what is downloaded, and paused downloadsmuaz inference rm qwen3.5-9b-q4_k_m # deletes a model, or a paused downloadIn the browser UI, the Downloads tab of the Inference page shows the
same suggestions and search, with the same size, fit and tools for each row.
Download runs in the background, so you can leave the page and come back to
it. owner/repo/file.gguf typed into the search box downloads that exact file.
Each download can be paused, resumed or cancelled. Cancelling asks first, then
deletes what was downloaded. If muaz stops mid-download, the download shows as
paused next time, and Resume continues from where it stopped. A download
started from the CLI shows in the UI too, and only one muaz process downloads a
given model at a time.
3. Use it
Section titled “3. Use it”If no provider is the default yet, the first model you download becomes it: muaz
writes a muaz-local profile for it and sets it as default in models.yaml.
On a fresh install, the browser UI’s welcome screen offers the same thing first:
pick a suggestion, and the chat opens once the download finishes.
To use a model when a default already exists, add a profile from the muaz (local) preset with the id of a model you downloaded:
muaz models add muaz-local --model qwen3.5-9b-q4_k_mEither way, the result is an ordinary openai-compatible profile:
profiles: muaz-local: type: openai-compatible base_url: http://127.0.0.1:11435 default_model: qwen3.5-9b-q4_k_m # any downloaded model idStart a chat. The first message starts the server (it takes a few seconds while
the model loads), and later messages reuse it. When a profile names a different
downloaded model, the server swaps to it. After local_inference.idle_timeout_secs
unused (15 minutes by default) it stops and frees the memory. The next message
starts it again.
The first time any model runs, muaz downloads the llama.cpp runner (20–40 MB) and picks the right build for your machine:
- macOS: Metal on Apple Silicon; there is nothing to choose.
- Linux and Windows: muaz tries the Vulkan build, which covers NVIDIA, AMD and Intel GPUs through your existing graphics driver, and falls back to the CPU build when no GPU shows up.
- NVIDIA CUDA: set
MUAZ_LLAMA_ASSET=ubuntu-cuda-12.8-x64(or the Windows equivalent). You need the CUDA runtime installed.
Running it yourself
Section titled “Running it yourself”muaz inference serve qwen3.5-9b-q4_k_m # foreground, until Ctrl-C or `muaz inference stop`muaz inference stopmuaz inference restart # start it again with the current settingsmuaz inference status # runner, GPU, what is served and with which flagsmuaz inference status --reprobe # detect the GPU again after a driver or hardware changemuaz inference logs -f # the server's log, as it is writtenA server started with serve (or Serve in the UI) stays up until it is
stopped, and the gateway and the CLI share it. To serve only on demand, set
local_inference.autostart: false: messages then fail with the serve command
to run, instead of starting the server themselves.
Every server setting (context size, GPU layers, parallel requests, CPU threads,
extra llama-server flags, port, idle timeout) is under
local_inference in
config.yaml. The Inference page in the browser UI edits the same
settings on its Server tab, alongside the model to start or stop, the
base URL, API type and model name to copy into a provider profile, and the
server’s log as it is written. While a server runs, the tab shows the flags it
was started with and the context length it settled on. Save & reload applies
changed settings straight away; otherwise the next message restarts the server
with them. If you change the port, change the profile’s base_url to match.
Where things live
Section titled “Where things live”| What | Where |
|---|---|
| Model weights | ~/.muaz/models, or MUAZ_MODELS_DIR |
| The llama.cpp runner | ~/.muaz/runtimes/llama, or under MUAZ_RUNTIME_DIR |
| The server’s log | ~/.muaz/inference/server.log, replaced on every start |
Local inference is available only where loopback is your own machine
(MUAZ_LOCAL_MODEL_ACCESS=direct, the desktop default). It is off in the
container images and in hosted sandboxes.