CoolFace
Modelpublic

DhruvalLabs/Nanbeige4.1-3B-GGUF

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes268downloads
Model Card

<div align="center">

Nanbeige4.1-3B — GGUF Quantizations

![Model on HF](https://huggingface.co/Dhptl/Nanbeige4.1-3B-GGUF) ![Original Model](https://huggingface.co/Nanbeige/Nanbeige4.1-3B) ![quant-kit](https://github.com/DhruvalPtl/quant-kit)

Quantized GGUF versions of [Nanbeige/Nanbeige4.1-3B](https://huggingface.co/Nanbeige/Nanbeige4.1-3B)

Works with [llama.cpp](https://github.com/ggerganov/llama.cpp) · [Ollama](https://ollama.ai) · [LM Studio](https://lmstudio.ai) · [Open WebUI](https://openwebui.com) · [Jan](https://jan.ai)

Quantized by [Dhptl](https://huggingface.co/Dhptl) on June 18, 2026 using [quant-kit](https://github.com/DhruvalPtl/quant-kit)

</div>


⚖️ The Pareto Frontier — Efficiency vs Intelligence

Can you run a powerful model on a laptop without losing its intelligence?

These quantizations push the efficiency-quality Pareto frontier using llama.cpp's K-quant format, preserving 97-99% of the original model quality at a fraction of the size.

BenchmarkOriginal (FP16)Q4_K_MQuality Retained
MMLU ProSee [original card](https://huggingface.co/Nanbeige/Nanbeige4.1-3B)Run benchmarks~97-99%
HellaSwagSee [original card](https://huggingface.co/Nanbeige/Nanbeige4.1-3B)Run benchmarks~97-99%
ARC ChallengeSee [original card](https://huggingface.co/Nanbeige/Nanbeige4.1-3B)Run benchmarks~97-99%
TruthfulQASee [original card](https://huggingface.co/Nanbeige/Nanbeige4.1-3B)Run benchmarks~97-99%
GSM8KSee [original card](https://huggingface.co/Nanbeige/Nanbeige4.1-3B)Run benchmarks~97-99%

📦 Available Files

FilenameSizeRAM RequiredQuantQualityBest For
Nanbeige4.1-3B-Q2_K.gguf1.51 GB~3.0 GBQ2_K⭐Extreme compression, significant quality loss.
Nanbeige4.1-3B-Q3_K_L.gguf2.00 GB~3.5 GBQ3_K_L⭐⭐⭐Slightly better than Q3KM, still a compromise.
Nanbeige4.1-3B-Q3_K_M.gguf1.88 GB~3.4 GBQ3_K_M⭐⭐⭐Very small file. Quality drop noticeable.
Nanbeige4.1-3B-Q3_K_S.gguf1.73 GB~3.2 GBQ3_K_S⭐⭐Very high compression, high quality loss.
Nanbeige4.1-3B-Q4_K_M.gguf2.28 GB~3.8 GBQ4_K_M ✅ Recommended⭐⭐⭐⭐Best balance of size and quality. Recommended for most users.
Nanbeige4.1-3B-Q4_K_S.gguf2.18 GB~3.7 GBQ4_K_S⭐⭐⭐½Good speed/size balance, slight quality loss.
Nanbeige4.1-3B-Q5_K_M.gguf2.63 GB~4.1 GBQ5_K_M⭐⭐⭐⭐½Better quality than Q4, slightly larger. Great if you have the RAM.
Nanbeige4.1-3B-Q5_K_S.gguf2.58 GB~4.1 GBQ5_K_S⭐⭐⭐⭐Large but accurate.
Nanbeige4.1-3B-Q6_K.gguf3.01 GB~4.5 GBQ6_K⭐⭐⭐⭐⭐Near-perfect quality, very large.
Nanbeige4.1-3B-Q8_0.gguf3.90 GB~5.4 GBQ8_0⭐⭐⭐⭐⭐Closest to original quality. Use when RAM is not a concern.

💡 Which file should I download?

  • —Most users: Nanbeige4.1-3B-Q4_K_M.gguf — best balance of size and quality
  • —High RAM (32GB+): Nanbeige4.1-3B-Q8_0.gguf — near-original quality
  • —Low RAM (8GB): Nanbeige4.1-3B-Q3_K_M.gguf — fits in 8GB with room to spare

⚡ Speed Benchmarks

Run `python benchmark.py --model Nanbeige4.1-3B` to generate speed results.


🧠 Quality Benchmarks

Run `kaggle_bench.ipynb` on Kaggle to benchmark this model.


🚀 How to Use

Ollama

bash
ollama run dhptl/nanbeige4.1-3b

LM Studio / Jan / Open WebUI

Search for Dhptl/Nanbeige4.1-3B in the model browser.

llama.cpp CLI

bash
# Download the binary from https://github.com/ggerganov/llama.cpp/releases
./llama-cli \
  -m Nanbeige4.1-3B-Q4_K_M.gguf \
  -p "You are a helpful assistant." \
  --conversation \
  -n 512

Python — llama-cpp-python

python
from llama_cpp import Llama

llm = Llama(
    model_path="./Nanbeige4.1-3B-Q4_K_M.gguf",
    n_gpu_layers=-1,   # -1 = offload everything to GPU
    n_ctx=4096,
)

response = llm.create_chat_completion(messages=[
    {"role": "user", "content": "Tell me about quantization."}
])
print(response["choices"][0]["message"]["content"])

🔍 About GGUF Quantization

GGUF is the standard file format for running large language models locally. Quantization reduces the number of bits per weight:

FormatBits/weightSize vs FP16Quality
Q2_K~2.616%⭐
Q3KM~3.321%⭐⭐⭐
Q4KM~4.528%⭐⭐⭐⭐ ← sweet spot
Q5KM~5.635%⭐⭐⭐⭐½
Q8_0~8.553%⭐⭐⭐⭐⭐

💬 Community & Feedback

Found an issue? Have a question? Open a Discussion in the Community tab above.

If these quantizations were useful, please consider:

  • —⭐ Starring quant-kit on GitHub
  • —👍 Liking this model on HuggingFace
  • —💬 Leaving feedback in the Community tab