Nanbeige_Nanbeige4.2-3B GGUF size and VRAM requirements
bartowski/Nanbeige_Nanbeige4.2-3B-GGUF is a mid-size language model with 4.17 billion parameters, built on the nanbeige architecture. It is released under the apache-2.0 license and has been downloaded 16,570 times.
Under the hood it uses 22 transformer layers, a hidden size of 3,072, 48 attention heads. It uses grouped-query attention (48 query heads sharing 8 key/value heads), which already trims KV-cache memory compared with full multi-head attention.
To run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF locally at a 4,096-token context, its quantized versions need between 2.87 GB (Q2_K, lowest quality) and 8.91 GB (BF16, highest quality) of memory, weights plus KV cache and a system margin included. Context length drives that memory directly: at 4,096 tokens the KV cache for Nanbeige_Nanbeige4.2-3B-GGUF is about 0.34 GB, rising to roughly 22.0 GB at its full 262,144-token context. Shorter prompts free up memory for a higher-quality quantization.
For most users the best balance is Q8_0, needing about 5.27 GB. That means bartowski/Nanbeige_Nanbeige4.2-3B-GGUF fits entirely in the VRAM of a 6 GB GPU or larger, running fully on the GPU.
Available GGUF quantizations for bartowski/Nanbeige_Nanbeige4.2-3B-GGUF include Q2_K, IQ2_M, IQ3_XXS, IQ3_XS, Q3_K_S, IQ3_M, Q3_K_M, Q3_K_L, Q2_K_L, IQ4_XS, Q4_0, IQ4_NL, Q4_K_S, Q4_K_M, Q4_1, Q3_K_XL, Q5_K_S, Q4_K_L, Q5_K_M, Q5_K_L, Q6_K, Q6_K_L, Q8_0, BF16. The model supports a native context length of up to 262,144 tokens; a longer context grows the KV cache and the memory needed.
GGUF file size and memory by quantization
Compare real GGUF weight sizes, estimated KV cache and total memory for Q4, Q5, Q8 and every quantization published in this repository.
| Quant. | Bits | Quality | Weights | KV | Total | Speed~ | Verdict |
|---|---|---|---|---|---|---|---|
| Q2_K | 3.55 | Fair | 1.72 GB | 0.34 GB | 2.87 GB | 232.3 t/s | Fits in VRAM |
| IQ2_M | 3.58 | Fair | 1.74 GB | 0.34 GB | 2.88 GB | 229.9 t/s | Fits in VRAM |
| IQ3_XXS | 3.63 | Fair | 1.76 GB | 0.34 GB | 2.91 GB | 226.7 t/s | Fits in VRAM |
| IQ3_XS | 3.89 | Fair | 1.89 GB | 0.34 GB | 3.03 GB | 212.0 t/s | Fits in VRAM |
| Q3_K_S | 3.97 | Fair | 1.93 GB | 0.34 GB | 3.07 GB | 207.6 t/s | Fits in VRAM |
| IQ3_M | 4.15 | Fair | 2.02 GB | 0.34 GB | 3.16 GB | 198.5 t/s | Fits in VRAM |
| Q3_K_M | 4.3 | Good | 2.09 GB | 0.34 GB | 3.23 GB | 191.5 t/s | Fits in VRAM |
| Q3_K_L | 4.47 | Good | 2.17 GB | 0.34 GB | 3.31 GB | 184.4 t/s | Fits in VRAM |
| Q2_K_L | 4.5 | Good | 2.19 GB | 0.34 GB | 3.33 GB | 183.0 t/s | Fits in VRAM |
| IQ4_XS | 4.68 | Good | 2.27 GB | 0.34 GB | 3.42 GB | 175.9 t/s | Fits in VRAM |
| Q4_0 | 4.87 | Good | 2.37 GB | 0.34 GB | 3.51 GB | 169.1 t/s | Fits in VRAM |
| IQ4_NL | 4.89 | Good | 2.37 GB | 0.34 GB | 3.52 GB | 168.6 t/s | Fits in VRAM |
| Q4_K_S | 4.9 | Good | 2.38 GB | 0.34 GB | 3.52 GB | 168.1 t/s | Fits in VRAM |
| Q4_K_M | 5.15 | Very good | 2.5 GB | 0.34 GB | 3.64 GB | 160.0 t/s | Fits in VRAM |
| Q4_1 | 5.27 | Very good | 2.56 GB | 0.34 GB | 3.7 GB | 156.3 t/s | Fits in VRAM |
| Q3_K_XL | 5.33 | Very good | 2.59 GB | 0.34 GB | 3.73 GB | 154.7 t/s | Fits in VRAM |
| Q5_K_S | 5.69 | Very good | 2.76 GB | 0.34 GB | 3.9 GB | 144.9 t/s | Fits in VRAM |
| Q4_K_L | 5.88 | Very good | 2.85 GB | 0.34 GB | 4.0 GB | 140.2 t/s | Fits in VRAM |
| Q5_K_M | 5.9 | Very good | 2.87 GB | 0.34 GB | 4.01 GB | 139.6 t/s | Fits in VRAM |
| Q5_K_L | 6.51 | Excellent | 3.16 GB | 0.34 GB | 4.3 GB | 126.6 t/s | Fits in VRAM |
| Q6_K | 6.9 | Excellent | 3.35 GB | 0.34 GB | 4.49 GB | 119.5 t/s | Fits in VRAM |
| Q6_K_L | 7.37 | Excellent | 3.58 GB | 0.34 GB | 4.72 GB | 111.8 t/s | Fits in VRAM |
| Q8_0 | 8.51 | Excellent | 4.13 GB | 0.34 GB | 5.27 GB | 96.8 t/s | Fits in VRAM |
| BF16 | 16.01 | Excellent | 7.77 GB | 0.34 GB | 8.91 GB | 6.4 t/s | Offload |
KV cache computed from the model's exact architecture. Speed is a rough estimate bounded by memory bandwidth.
Frequently asked questions
What kind of model is bartowski/Nanbeige_Nanbeige4.2-3B-GGUF?
bartowski/Nanbeige_Nanbeige4.2-3B-GGUF is a language model with 4.17 billion parameters, based on the nanbeige architecture. It is released under the apache-2.0 license and distributed as GGUF files for local inference.
How much VRAM do you need to run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF?
You need about 5.27 GB of VRAM to run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF entirely on the GPU using the Q8_0 quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.
Can I run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF on an 8 GB GPU?
Yes. With 8 GB of VRAM you can run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF fully on the GPU using Q8_0 (about 5.27 GB).
Can I run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF on a 16 GB GPU?
Yes. With 16 GB of VRAM you can run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF fully on the GPU using BF16 (about 8.91 GB).
Can I run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF on a 24 GB GPU?
Yes. With 24 GB of VRAM you can run bartowski/Nanbeige_Nanbeige4.2-3B-GGUF fully on the GPU using BF16 (about 8.91 GB).
What context length does bartowski/Nanbeige_Nanbeige4.2-3B-GGUF support?
bartowski/Nanbeige_Nanbeige4.2-3B-GGUF supports a native context length of up to 262,144 tokens. A longer context grows the KV cache, so it increases the memory needed to run the model.
What is the best quantization for bartowski/Nanbeige_Nanbeige4.2-3B-GGUF?
For bartowski/Nanbeige_Nanbeige4.2-3B-GGUF, a strong default is Q4_K_M, which needs about 3.64 GB and keeps most of the quality while roughly halving the memory versus 8-bit. With VRAM to spare, Q5_K_M or Q6_K add a little more quality; if you are tight on memory, a smaller quantization still runs. Pick the highest quantization that fits your VRAM.