+++ disableToc = false title = "Model Gallery" weight = 81 url = '/models' +++ The model gallery is a curated collection of models configurations for [LocalAI](https://github.com/go-skynet/LocalAI) that enables one-click install of models directly from the LocalAI Web interface. A list of the models available can also be browsed at [the Public LocalAI Gallery](https://models.localai.io). LocalAI to ease out installations of models provide a way to preload models on start and downloading and installing them in runtime. You can install models manually by copying them over the `models` directory, or use the API or the Web interface to configure, download and verify the model assets for you. {{% notice note %}} The models in this gallery are not directly maintained by LocalAI. If you find a model that is not working, please open an issue on the [main LocalAI repository](https://github.com/mudler/LocalAI/issues). {{% /notice %}} {{% notice note %}} GPT and text generation models might have a license which is not permissive for commercial use or might be questionable or without any license at all. Please check the model license before using it. The official gallery contains only open licensed models. {{% /notice %}} ![output](https://github.com/mudler/LocalAI/assets/2420543/7b16676e-d5b1-4c97-89bd-9fa5065c21ad) ## Instella-MoE availability The gallery excludes `instella-moe-16b-a3b-think` and `instella-moe-16b-a3b-think-q8` because the packaged llama.cpp backend does not support their `instella-moe` architecture. Loading these GGUF files fails with `unknown model architecture: 'instella-moe'`. The entries can return after LocalAI ships a compatible backend. See [the compatibility issue](https://github.com/mudler/LocalAI/issues/11681) and [upstream llama.cpp support](https://github.com/ggml-org/llama.cpp/pull/26467). ## Useful Links and resources - [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) - here you can find a list of the most performing models on the Open LLM benchmark. Keep in mind models compatible with LocalAI must be quantized in the `gguf` format. ## How it works Open **Models** in the WebUI. It is the canonical page for a model's complete lifecycle and has two views: - **Explore** browses configured galleries, compares hardware fit and variants, and installs models. This is the default view. - **Installed** lists local model configurations and their running, idle, disabled, pinned, and distributed state. Select a model to load or stop it, edit its configuration, open a supported use case, inspect backend logs, or remove it. Both views use the same model selection and store the view, search, filter, and selection in the URL. Installing from Explore does not move you away from the catalog; the entry updates in place when the operation finishes. ## NeoHorse-1-4B Install NeoHorse-1-4B with automatic selection between Q4_K_M, Q6_K, and Q8_0 GGUF builds: ```bash local-ai models install neohorse-1-4b-q4 ``` To select Q8_0 explicitly: ```bash local-ai models install neohorse-1-4b-q4 --variant neohorse-1-4b-q8 ``` [NeoHorse-1-4B](https://huggingface.co/TokenRhythm/NeoHorse-1-4B) is a text-only Qwen3.5 fine-tune for coding, reasoning, and agentic tasks. These builds use llama.cpp and the embedded Jinja chat template. The gallery defaults to 32,768 context tokens; the model supports up to 262,144 tokens with sufficient memory. The [GGUF downloads](https://huggingface.co/mradermacher/NeoHorse-1-4B-GGUF) are pinned to a revision and verified with SHA256 checksums. ## Spark-X2.5-1.7B Install Spark-X2.5-1.7B with automatic selection between its Q4_K_M and Q8_0 GGUF builds: ```bash local-ai models install spark-x2.5-1.7b-q4 ``` To select the Q8_0 build explicitly: ```bash local-ai models install spark-x2.5-1.7b-q4 --variant spark-x2.5-1.7b-q8 ``` These text-only builds use the llama.cpp backend and the embedded Jinja chat template. The gallery defaults to a 32,768-token context to limit memory use. The [source model](https://huggingface.co/XHToken/Spark-X2.5-1.7B) supports up to 1,048,576 tokens; larger contexts require more memory. Use a current LocalAI llama.cpp backend with Spark-X2.5 support. ## MiniCPM5-2B MiniCPM5-2B offers the official Q4_K_M, Q8_0, and F16 GGUF builds through llama.cpp. To install the F16 build explicitly: ```bash local-ai models install minicpm5-2b --variant minicpm5-2b-f16 ``` The F16 weights require a 5.04 GB download, plus additional memory for inference. This entry uses the embedded chat template and an 8,192-token context. See the [official GGUF repository](https://huggingface.co/openbmb/MiniCPM5-2B-GGUF). ## VRAM and download size estimates When browsing the gallery or importing a model by URI, LocalAI can show **estimated download size** and **estimated VRAM** for models. - **Where they appear**: In the model gallery table (Size / VRAM column), in the model detail modal, and after starting an import from URI (in the success message). - **How they are computed**: GGUF models use file size (HTTP HEAD or local stat) and optional GGUF metadata (HTTP Range) for KV cache and overhead; other formats use Hugging Face file sizes and optional config when available. If metadata is unavailable, a size-only heuristic is used. - **Hardware fit indicator**: When your system reports GPU or RAM capacity, the gallery shows whether the estimated VRAM fits (green) or may not fit (red) using a 95% headroom rule. - Estimates are best-effort and may be missing if the server does not support HEAD/Range or the request times out. ## Gemma 4 Ortenzya 31B [Ortenzya](https://huggingface.co/llmfan46/gemma-4-Ortenzya-The-Creative-Wordsmith-31B-it-uncensored-heretic-GGUF) is a Gemma 4 fine-tune for creative writing, translation, and roleplay. Install it with automatic selection between Q4_K_M and Q8_0: ```bash local-ai models install gemma-4-31b-ortenzya-q4 ``` To select Q8_0 explicitly: ```bash local-ai models install gemma-4-31b-ortenzya-q4 --variant gemma-4-31b-ortenzya-q8 ``` Both builds use llama.cpp, the embedded Jinja chat template, and the BF16 vision projector for image prompts. The gallery uses a 32,768-token context to limit memory use, with temperature 1, top_p 0.95, and top_k 64. ## Gemma 4 12B IT Install `gemma-4-12b-it-q4` for chat, tool use, and image prompts with llama.cpp. The gallery offers Unsloth Q4_K_M, Q5_K_M, Q6_K, and Q8_0 builds, each with an F16 vision projector and the embedded chat template. LocalAI selects a quantization based on available memory. To choose one explicitly, run: ```bash local-ai models install gemma-4-12b-it-q4 --variant gemma-4-12b-it-q8 ``` These entries use a 32,768-token context and sampling defaults of temperature 1, top_k 64, and top_p 0.95. They are separate from the existing QAT builds. See the [source model](https://huggingface.co/google/gemma-4-12B-it) and [GGUF files](https://huggingface.co/unsloth/gemma-4-12b-it-GGUF). ## Ornith 1.5 9B Uncensored Junafinity's Ornith 1.5 9B Uncensored offers Q4_K_M, Q6_K, and Q8_0 GGUF builds for llama.cpp. Each includes the F16 vision projector for image input. Install with automatic variant selection: ```bash local-ai models install ornith-1.5-9b-uncensored-q4 ``` Select Q8 explicitly: ```bash local-ai models install ornith-1.5-9b-uncensored-q4 --variant ornith-1.5-9b-uncensored-q8 ``` These entries use the embedded chat template and a 32,768-token context. Sampling defaults are temperature 0.6, top_p 0.95, top_k 20, min_p 0, and repeat_penalty 1. The model has no MTP heads. See the [source model](https://huggingface.co/junafinity/Ornith-1.5-9B-uncensored) and [GGUF files](https://huggingface.co/mradermacher/Ornith-1.5-9B-uncensored-GGUF). ## Add other galleries You can add other galleries by: 1. **Using the Web UI**: Navigate to the [Runtime Settings]({{%relref "features/runtime-settings#gallery-settings" %}}) page and configure galleries through the interface. 2. **Using Environment Variables**: Set the `GALLERIES` environment variable. The `GALLERIES` environment variable is a list of JSON objects, where each object has a `name` and a `url` field. The `name` field is the name of the gallery, and the `url` field is the URL of the gallery's index file, for example: ```json GALLERIES=[{"name":"", "url":"/../cache/gallery/`), one file per gallery URL. If nothing can serve the index — the primary and every mirror failed, there is no network at all, the host is airgapped — LocalAI serves that last successfully fetched copy instead of failing the listing, and logs a warning saying it did so. This applies to every gallery whose `url` points directly at an index file, with or without `mirrors` — but not to a `.ref` URL, which is resolved before the cache is consulted (see the warning above). Only a response that actually parses as a gallery index is stored. A captive portal, a proxy or a CDN can answer an index request with HTTP 200 and an HTML error page; caching that would replace a working offline copy with something no listing can read. An empty index is rejected for the same reason, so the previous copy survives. Entries served this way may be stale: the copy is only as fresh as the last time the gallery could be reached, so models added or changed upstream since then will not show up, and an entry may point at a file that has since moved. A listing served from disk is a degraded mode, not a substitute for a reachable gallery. The copy is deliberately kept out of the models directory itself, where LocalAI reads a `.yaml` file as an installed model's configuration. Deleting the cache directory is safe — the next successful fetch recreates it — and a machine that has never reached a gallery has nothing cached, so its first listing still fails. ## API Reference ### Model repositories You can install a model in runtime, while the API is running and it is started already, or before starting the API by preloading the models. To install a model in runtime you will need to use the `/models/apply` LocalAI API endpoint. By default LocalAI is configured with the `localai` repository. To use additional repositories you need to start `local-ai` with the `GALLERIES` environment variable: ``` GALLERIES=[{"name":"", "url":"