Request it for the seed queue, or get it now with pf download LibertAIDAI/Nex-N2-mini-GGUF (CLI guide).
Imatrix-calibrated GGUF quantizations of nex-agi/Nex-N2-mini for llama.cpp — with a fixed chat template so reasoning extraction and tool calling work out of the box (see below).
Nex-N2-mini is a 35B-total / ~3B-active MoE (256 experts, 8 active) with hybrid linear attention, vision input, and "Agentic Thinking" adaptive reasoning. Apache 2.0.
Looking for Blackwell-optimized files? See LibertAIDAI/Nex-N2-mini-NVFP4-GGUF — NVFP4 expert tensors with native tensor-core kernels on RTX 50-series / B100/B200, faster batched serving than Q4_K_M on those GPUs.
The upstream chat template prefills the assistant turn with '<think>' (no trailing newline) while rendering past assistant reasoning as '<think>\n…'. This inconsistency breaks llama.cpp's reasoning parser: the forced-open think block is never recognized, so the full chain-of-thought (plus a stray </think>) leaks into content instead of reasoning_content — on every llama.cpp build, regardless of --reasoning-format. Community GGUFs that embed the upstream template inherit this bug.
These files embed a corrected template (one added newline). With stock llama-server --jinja:
reasoning_content / content are separated correctly,tool_calls,All quants below (except Q8_0, which doesn't use it) were quantized with an importance matrix computed from the BF16 weights over a diverse ~64k-token calibration set (the imatrix file is included in this repo).
LibertAI is a decentralized AI platform — private inference, an OpenAI-compatible API, and a chat UI, all running on community GPUs over Aleph Cloud instead of a single company's servers. No accounts required to chat, no logs sent home, and the same models you'd self-host are available behind a sovereign endpoint.
If you want to put this model (or any other) to work as an autonomous agent without running your own infrastructure, check out LiberClaw — Hermes-style agents hosted on Aleph Cloud with LibertAI inference. Free tier: 2 agents, no credit card, 5 minutes to deploy. Open source.
| File | Size | When to pick |
|---|---|---|
Nex-N2-mini-IQ4_XS.gguf |
18.7 GB | Smallest — fits a 24 GB GPU with long context |
Nex-N2-mini-Q4_K_M.gguf |
21.2 GB | Recommended — best size/quality balance |
Nex-N2-mini-Q5_K_M.gguf |
24.7 GB | Higher quality, still fits 32 GB GPUs |
Nex-N2-mini-Q6_K.gguf |
28.5 GB | Near-lossless |
Nex-N2-mini-Q8_0.gguf |
36.9 GB | Highest quality (needs >32 GB VRAM or partial offload) |
mmproj-Nex-N2-mini-F16.gguf |
903 MB | Required for image input — works with all of the above |
Nex-N2-mini.imatrix |
192 MB | The importance matrix used (for making your own quants) |
llama-cli -m Nex-N2-mini-Q4_K_M.gguf -ngl 999 -c 8192 -p "Your prompt here"
llama-server \
-m Nex-N2-mini-Q4_K_M.gguf \
--mmproj mmproj-Nex-N2-mini-F16.gguf \
-ngl 999 -c 32768 --jinja \
--host 0.0.0.0 --port 8080
Then POST to /v1/chat/completions — reasoning arrives in reasoning_content, answers in content, tool calls in tool_calls. To disable thinking, set chat_template_kwargs: {"enable_thinking": false} in the request.
Nex-N2-mini is built on the Qwen3.5-MoE architecture (qwen35moe in GGUF): 40 layers, 3 of every 4 using linear attention with every 4th full attention, 256 routed experts (8 active) plus a shared expert. The upstream config declares a 1-layer MTP head, but the published checkpoints do not include MTP weights, so no MTP/speculative variant can be produced from public weights.
calibration_datav3convert_hf_to_gguf.py, llama-imatrix, llama-quantizeApache 2.0, inherited from the upstream model.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo LibertAIDAI/Nex-N2-mini-GGUF ./model-foldernex-agi/Nex-N2-mini