Downloads · 30 days
17
20% of all-time downloads
Aptronym/Nanbeige4-3B-Base-heretic-1
Nanbeige4-3B-Base-heretic-1 is a text generation model from Aptronym. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
17
20% of all-time downloads
All-time downloads
83
Public
Parameters
3.9B
7.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.9 GB · 100%
From the Hugging Face model README
| Parameter | Value |
|---|---|
| direction_index | 18.14 |
| attn.o_proj.max_weight | 1.50 |
| attn.o_proj.max_weight_position | 20.11 |
| attn.o_proj.min_weight | 1.47 |
| attn.o_proj.min_weight_distance | 12.48 |
| mlp.down_proj.max_weight | 1.18 |
| mlp.down_proj.max_weight_position | 19.58 |
| mlp.down_proj.min_weight | 0.97 |
| mlp.down_proj.min_weight_distance | 11.20 |
| Metric | This model | Original model (Nanbeige/Nanbeige4-3B-Base) |
|---|---|---|
| KL divergence | 0.0158 | 0 (by definition) |
| Refusals | 12/100 | 100/100 |
Nanbeige4-3B-Base is a 3B-parameter base model within the fourth-generation Nanbeige LLM family. It showcases that even a compact model can achieve advanced performances through continuous enhancements in data quality and training methodologies. When performing supervised fine-tuning (SFT) on the same training data, our model significantly outperforms open-source models of the same size, and even surpasses larger models such as Qwen3-8B.
Training Data<br>
Training Recipe<br>
For model performance comparison, we fine-tuned both our base model and the Qwen series base models using the same fine-tuning data and evaluated their downstream task metrics. We believe that when evaluating base models, this end-to-end validation approach better reflects the model's ultimate performance in downstream tasks compared to the few-shot testing approach.
To ensure a fair comparison, we conducted experiments with three distinct datasets, including Nemotron-Dataset-v1, Ring-lite-sft-data, and OpenThoughts3. For each dataset, we randomly select 500k training samples for SFT experiments.
Finetuned with Nemotron-Dataset-v1 | Model | AIME2024 | AIME2025 | Math-500 | GPQA | |--------------------|----------|----------|----------|------| | Qwen3-4B-Base | 24.6 | 25.0 | 90.4 | 44.6 | | Qwen3-8B-Base | <u>37.9<u> | <u>29.6<u> | <u>91.1<u> | <u>48.9<u> | | Nanbeige4-3B-Base | 52.9 | 40.8 | 93.4 | 53.4 |
Finetuned with Ring-lite-sft-data | Model | AIME2024 | AIME2025 | Math-500 | GPQA | |--------------------|----------|----------|----------|------| | Qwen3-4B-Base | 40.4 | 31.3 | 93.6 | 51.4 | | Qwen3-8B-Base | <u>50.0<u> | <u>35.8<u> | <u>94.4<u> | <u>55.1<u> | | Nanbeige4-3B-Base | 56.8 | 45.3 | 95.5 | 57.7 |
Finetuned with OpenThoughts3 | Model | AIME2024 | AIME2025 | Math-500 | GPQA | |--------------------|----------|----------|----------|------| | Qwen3-4B-Base | 52.9 | 42.1 | 93.2 | 49.6 | | Qwen3-8B-Base | <u>60.4<u> | <u>47.1<u> | 95.0 | <u>55.3<u> | | Nanbeige4-3B-Base | 62.4 | 49.2 | <u>94.6<u> | 56.9 |
The results demonstrate that Nanbeige4-3B-Base significantly outperforms Qwen3-4B-Base, and even surpasses the larger Qwen3-8B-Base, highlighting the greater potential of our base model after fine-tuning. This advantage stems from the optimized training recipe during our Stable stage and the extensive high-quality synthetic data incorporated during the Decay stage.
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
'Nanbeige/Nanbeige4-3B-Base',
use_fast=False,
trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
'Nanbeige/Nanbeige4-3B-Base',
torch_dtype='auto',
device_map='auto',
trust_remote_code=True
)
prompt = "中国的首都是"
input_ids = tokenizer(prompt, return_tensors='pt').input_ids
output_ids = model.generate(input_ids.to('cuda'))
resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=True)
print(resp)
While we place great emphasis on the safety of the model during the training process, striving to ensure that its outputs align with ethical and legal requirements, it may not completely avoid generating unexpected outputs due to the model's size and probabilistic nature. These outputs may include harmful content such as bias or discrimination. Please don't propagate such content. We do not assume any responsibility for the consequences resulting from the dissemination of inappropriate information. <br>
If you find our model useful or want to use it in your projects, please cite as follows:
@misc{yang2025nanbeige43btechnicalreportexploring,
title={Nanbeige4-3B Technical Report: Exploring the Frontier of Small Language Models},
author={Chen Yang and Guangyue Peng and Jiaying Zhu and Ran Le and Ruixiang Feng and Tao Zhang and Wei Ruan and Xiaoqi Liu and Xiaoxue Cheng and Xiyun Xu and Yang Song and Yanzipeng Gao and Yiming Jia and Yun Xing and Yuntao Wen and Zekai Wang and Zhenwei An and Zhicong Sun and Zongchao Chen},
year={2025},
eprint={2512.06266},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2512.06266},
}
<br>
If you have any questions, please raise an issue or contact us at [email protected]. <br>