How to manage models
This guide shows how to find, download, serve and delete the models rzb runs. It assumes rzb is built.
Choose a model
rzb runs models in MLX format, usually published by mlx-community on Hugging Face. Tested chat models:
| Model | Download |
|---|---|
mlx-community/Qwen3-0.6B-4bit |
about 350 MB |
mlx-community/Qwen3-1.7B-4bit |
about 1 GB |
mlx-community/Qwen3-4B-4bit |
about 2.3 GB |
mlx-community/Qwen3-8B-4bit |
about 4.6 GB |
mlx-community/Llama-3.2-3B-Instruct-4bit |
about 1.8 GB |
mlx-community/gemma-3-1b-it-qat-4bit |
about 800 MB |
Any other MLX text model supported by mlx-swift-lm works too. GGUF files (for llama.cpp or Ollama) do not. For embedding models, see compute embeddings.
Download a model ahead of time
rzb models pull mlx-community/Qwen3-4B-4bit
rzb models pull mlx-community/Qwen3-4B-4bit --revision <branch-tag-or-commit>
Without this step, a model is downloaded by the server the first time a request uses it, and that request waits for the whole download.
See what is downloaded
rzb models list # the models rzb can load
rzb models list --all # also GGUF repositories and unfinished downloads
Serve a model
-
By its Hugging Face id: clients send
"model": "mlx-community/Qwen3-4B-4bit". -
By a short name: declare it in the server configuration (see configure the server):
models: - id: qwen3 source: mlx-community/Qwen3-4B-4bit revision: main # optional: a branch, tag or commit -
A specific revision without declaring it:
"model": "mlx-community/Qwen3-4B-4bit@<revision>".
Use a local model directory
Declare a path pointing at a directory that holds the model's config.json, tokenizer files and *.safetensors:
models:
- id: mine
path: ~/models/my-model # relative paths start at the configuration file's folder
Delete a model
rzb models rm mlx-community/Qwen3-8B-4bit # asks for confirmation
rzb models rm mlx-community/Qwen3-8B-4bit --yes # in a script
Move or share the cache
Models live in the Hugging Face cache, shared with the Python tools (huggingface-cli, mlx_lm). Set HF_HUB_CACHE (or HF_HOME) to use another location; rzb models list prints the folder it reads.
See also
- Every
modelsoption: command line reference. - The
modelssection: configuration reference.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|