Model Spend Arena2ND ED.
4B · dense · 262,144 ctx · 2026-08-14

Nanbeige 4.2-3B

Runs on ≤8 GB · Hugging Face ↗

transformers

Not independently scored by Artificial Analysis — its base model Nanbeige/Nanbeige4.2-3B-Base is the closest proxy

A dense 3B from Nanbeige LLM Lab (BOSS Zhipin), pre-trained on ~23T tokens. Tiny — the "runs on anything" end of the table, laptop iGPU or CPU.

First-party test · not the AA coding index

HumanEval pass@1 81% (13/16), via local GPU (transformers). Measured by us on this hardware, as a rough sanity check — HumanEval is a different, easier, partly-contaminated benchmark than Artificial Analysis’ composite, so it is not comparable to the coding-index column. Would not load in llama.cpp/Ollama at all — its custom 'nanbeige' architecture is unknown to them. We ran it via transformers with trust_remote_code in a GPU container, which needed an old transformers pin (for a rope_scaling change), sentencepiece, and a prebuilt flash_attn wheel. Worth it: it codes coherently and well for a 3B — the opposite of the Bonsai quants.

First-party test · not the AA coding index

BigCodeBench-Hard pass@1 17% (20/121), via local GPU (transformers, no OpenAI endpoint). The brutal counterpart to HumanEval — where HumanEval saturates near the top, BCB-Hard spreads the field, so this is the number that actually separates coding ability. Floor — its verbose output (prose before code) overran the 2K budget on 145/148 of the comparable set. A weak draft coder on hard problems regardless.

First-party measurement

~9 tok/s on RTX 4060 Ti, measured by us. RTX 4060 Ti via transformers+flash (bf16); ~1.0 tok/s CPU. Drops with length — the custom modeling's KV cache is ineffective (O(n^2)).

Sizes on disk

Real GGUF file sizes = weight VRAM. Add the KV cache for your context (≈3 GB at 32K, fp16).

QuantizationSize
Q3_K_M2.2 GB
IQ4_XS2.4 GB
Q4_02.5 GB
Q4_K_S2.6 GB
Q4_K_M2.7 GB
Q4_12.7 GB
Q43.1 GB
Q5_K_M3.1 GB
Q2_K4.2 GB
Q8_04.4 GB
Q6_K7.4 GB
BF168.3 GB

How to run it

Does not run in stock Ollama / llama.cpp

Won't load in llama.cpp / Ollama / LM Studio — the custom `nanbeige` architecture has no GGUF converter, so ignore the "runs on anything" first impression. Run it from safetensors with Hugging Face transformers and `trust_remote_code=True`.
- GPU: `pip install transformers==4.44.2` + the matching prebuilt flash-attn wheel; load with `attn_implementation="flash_attention_2"`, bf16.
- CPU: don't install flash-attn (it's CUDA-only). transformers still does a *static* import check, so drop a tiny empty `flash_attn` stub package on the path to satisfy it — `is_flash_attn_2_available()` is False on a CUDA-less torch, so the real import never fires. Load with `attn_implementation="eager"`, float32.
We measured ~9 tok/s on an RTX 4060 Ti and ~1 tok/s on a 24-core CPU. It's slower than a GGUF model its size because the custom modeling's KV cache is ineffective (throughput drops as the answer grows).

Config tips

Q4 fits well under 6 GB with room for long context. Good as a fast draft / autocomplete model, not for hard agentic coding. Runs on Apple Silicon via MLX.