Browse by type
This is a fork of llama.cpp that implements DSv4 support, with generated GGUF that aims to target MacBooks with just 128GB of RAM using 2bit quantization of routed experts.
Disclaimer: * This code was written with heavy help from GPT 5.5 and the official DeepSeek v4 Flash as reference. * The model quantized in this way behaves very very well in the chat, frontier-model vibes, but it was not extensively tested. * The code runs both with CPU and Metal backends. With Metal is faster.
Download the GGUF from: https://huggingface.co/antirez/deepseek-v4-gguf
Then to test it run with (but for production you may want to tune context, disable thinking for faster replies and so forth):
llama-cli \
-m DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat.gguf \
-cnv

LLM inference in C/C++
-hf are now stored in the standard Hugging Face cache directory, enabling sharing with other HF tools.gpt-oss model with native MXFP4 format has been added | PR | Collaboration with NVIDIA | Commentllama-server: #12898 | documentationGetting started with llama.cpp is straightforward. Here are several ways to install it on your machine:
llama.cpp using brew, nix or wingetOnce installed, you'll need a model to work with. Head to the Obtaining and quantizing models section to learn more.
Example command:
# Use a local model file
llama-cli -m my_model.gguf
# Or download and run a model directly from Hugging Face
llama-cli -hf ggml-org/gemma-3-1b-it-GGUF
# Launch OpenAI-compatible API server
llama-server -hf ggml-org/gemma-3-1b-it-GGUF
The main goal of llama.cpp is to enable LLM inference with minimal setup and state-of-the-art performance on a wide
range of hardware - locally and in the cloud.
The llama.cpp project is the main playground for developing new features for the ggml library.
Models
Typically finetunes of the base models below are supported as well.
Instructions for adding support for new models: HOWTO-add-model.md
Bindings
UIs
(to have a project listed here, it should clearly state that it depends on llama.cpp)
$ claude mcp add llama.cpp-deepseek-v4-flash \
-- python -m otcore.mcp_server <graph>