Aiqre

Model library / Nanbeige

Nanbeige4.2-3B

Nanbeige4.2-3B is a 4.2 billion-parameter causal language model aimed at compact agentic and reasoning tasks.

4.2B

Parameters in total

262,144

Context length in tokens, as published

8 GiB

Weights at the released precision

apache-2.0

Licence declared on the repository

Overview

What this model is.

Nanbeige4.2-3B is a compact agentic model released by Nanbeige. It builds on a Looped Transformer architecture and is intended for strong agentic behaviour, broad reasoning and local personal-assistant use, supporting tool-use, office workflows and code-agent tasks. The publisher highlights its ability to outperform larger models on these benchmarks.

In practice the model has 4.2 billion parameters, a context window of up to 262,144 tokens and is distributed under the Apache-2.0 licence. Weights are provided in bfloat16 format, making it suitable for deployment on hardware that supports this precision while keeping memory requirements modest.

Specification

The published shape.

RepositoryNanbeige/Nanbeige4.2-3B
PublisherNanbeige
Published21 July 2026
ArchitectureNanbeigeForCausalLM
Model typenanbeige
Parameters4,169,800,704
Layers22
Hidden size3,072
Attention heads48, 8 key/value heads
Context length262,144 tokens
Vocabulary166,144 tokens
Weight formatbfloat16
Licenceapache-2.0
Base modelNanbeige/Nanbeige4.2-3B-Base

Memory

How much VRAM the weights need.

Parameter count multiplied by the bytes each format uses. The key-value cache comes on top.

PrecisionWeightsNotes
bf167.8 GiBFull precision as released
fp83.9 GiB8-bit, near-lossless on most models
int41.9 GiB4-bit, smallest footprint

The cache costs 88 KiB per token at 16-bit, so the full 262,144-token context of one request needs about 22.0 GiB. Concurrency multiplies that number, not the weights.

Hardware

Which card runs it.

At the released precision, with 90% of the card given to the server and 2.5 GiB kept for the runtime. The context column is what is left for the cache on that setup.

GPUCards neededFree for cacheContext it holds
RTX 4090 24GB 1 11.3 GiB about 135,041 tokens
RTX 5090 32GB 1 18.5 GiB about 220,834 tokens
L40S 48GB 1 32.9 GiB the full 262,144 tokens
A100 80GB 1 61.7 GiB the full 262,144 tokens
H100 80GB 1 61.7 GiB the full 262,144 tokens
RTX PRO 6000 96GB 1 76.1 GiB the full 262,144 tokens
H200 141GB 1 116.6 GiB the full 262,144 tokens

Serving

Running it yourself.

A vLLM launch line for the shape above. Check the model card for a runtime the publisher recommends.

vllm serve Nanbeige/Nanbeige4.2-3B \
  --max-model-len 131072 \
  --gpu-memory-utilization 0.90

Questions

The things people ask about this model.

How much GPU memory does Nanbeige4.2-3B need?

The weights take about 8 GiB at the released precision. That fits on one RTX 4090 24GB, which leaves roughly 11 GiB for the key-value cache.

What licence does Nanbeige4.2-3B use?

The repository declares apache-2.0. Read the licence text before commercial use: the name alone does not tell you what is allowed.

How long a context does it support?

The configuration allows 262,144 tokens. Whether the whole window is usable depends on the memory left for the cache, which the hardware table works out per card.

Can I use it through an API instead of hosting it?

This page is a reference, and Aiqre does not serve this model today. We deploy open-weight models on dedicated EU hardware on request, so if you want an OpenAI-compatible endpoint for it, email [email protected] with the model name and roughly what volume you expect.

Also in the library

Related models.

Nanbeige/Nanbeige4.2-3B-DSpark

Nanbeige4.2-3B is a compact agentic language model designed for reasoning, tool use and personal-assistant tasks.

zgcagi/ZGCM-1-7B

ZGCM-1 is a 7.4 billion-parameter dense language model designed for mathematical reasoning and tool-assisted search.

openbmb/MiniCPM5-2B

MiniCPM5-2B is a 2-billion-parameter dense transformer aimed at on-device and resource-constrained deployments.

TokenRhythm/NeoHorse-1-4B

NeoHorse-1-4B is a 4.2B open-weight model published by TokenRhythm on Hugging Face. It uses the Qwen3_5ForCausalLM architecture w…

Hosting

Want this model on a dedicated EU GPU?

Tell us the model and roughly what volume you expect. We reply with a price and an OpenAI-compatible endpoint, with your prompts never stored.