SimplySara commited on
Commit
646027c
·
verified ·
1 Parent(s): 98b6201

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +263 -3
README.md CHANGED
@@ -1,3 +1,263 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
+ library_name: transformers
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - llm
10
+ - nanbeige
11
+ base_model:
12
+ - Nanbeige/Nanbeige4.1-3B
13
+ ---
14
+ # This is a imatrix quantization of [Nanbeige/Nanbeige4.1-3B](https://huggingface.co/Nanbeige/Nanbeige4.1-3B), made by [SimplySara](https://huggingface.co/SimplySara)
15
+
16
+ | Model | Size_GB | BPW | PPL_Q | Top_P_Match |
17
+ |:-----------------------------------|----------:|------:|---------:|:--------------|
18
+ | `Nanbeige4.1-3B-BF16.gguf` | 7.33 | 16.01 | 35.5136 | 100.000% |
19
+ | `Nanbeige4.1-3B-MXFP4_MOE.gguf` | 3.9 | 8.51 | 35.7776 | 94.681% |
20
+ | `Nanbeige4.1-3B-i1-MXFP4_MOE.gguf` | 3.9 | 8.51 | 35.7776 | 94.681% |
21
+ | `Nanbeige4.1-3B-Q8_0.gguf` | 3.9 | 8.51 | 35.7776 | 94.681% |
22
+ | `Nanbeige4.1-3B-i1-Q8_0.gguf` | 3.9 | 8.51 | 35.7776 | 94.681% |
23
+ | `Nanbeige4.1-3B-Q6_K.gguf` | 3.01 | 6.57 | 36.4314 | 90.241% |
24
+ | `Nanbeige4.1-3B-i1-Q6_K.gguf` | 3.01 | 6.57 | 35.5096 | 90.793% |
25
+ | `Nanbeige4.1-3B-Q5_1.gguf` | 2.78 | 6.07 | 35.8377 | 82.867% |
26
+ | `Nanbeige4.1-3B-i1-Q5_1.gguf` | 2.78 | 6.07 | 36.5278 | 87.097% |
27
+ | `Nanbeige4.1-3B-Q5_K_M.gguf` | 2.63 | 5.75 | 36.3385 | 85.444% |
28
+ | `Nanbeige4.1-3B-i1-Q5_K_M.gguf` | 2.63 | 5.75 | 36.7817 | 87.277% |
29
+ | `Nanbeige4.1-3B-i1-Q5_0.gguf` | 2.58 | 5.64 | 35.3274 | 84.947% |
30
+ | `Nanbeige4.1-3B-Q5_K_S.gguf` | 2.58 | 5.62 | 36.9553 | 82.225% |
31
+ | `Nanbeige4.1-3B-i1-Q5_K_S.gguf` | 2.58 | 5.62 | 36.0077 | 86.763% |
32
+ | `Nanbeige4.1-3B-Q5_0.gguf` | 2.58 | 5.62 | 34.471 | 81.485% |
33
+ | `Nanbeige4.1-3B-i1-Q4_1.gguf` | 2.37 | 5.18 | 34.9182 | 80.453% |
34
+ | `Nanbeige4.1-3B-Q4_1.gguf` | 2.37 | 5.18 | 36.7138 | 72.166% |
35
+ | `Nanbeige4.1-3B-i1-Q4_K_M.gguf` | 2.27 | 4.97 | 35.1169 | 80.951% |
36
+ | `Nanbeige4.1-3B-Q4_K_M.gguf` | 2.27 | 4.97 | 35.551 | 76.667% |
37
+ | `Nanbeige4.1-3B-IQ4_NL.gguf` | 2.18 | 4.77 | 35.462 | 75.484% |
38
+ | `Nanbeige4.1-3B-Q4_K_S.gguf` | 2.18 | 4.76 | 36.9027 | 73.805% |
39
+ | `Nanbeige4.1-3B-i1-Q4_K_S.gguf` | 2.18 | 4.76 | 35.2205 | 80.920% |
40
+ | `Nanbeige4.1-3B-i1-Q4_0.gguf` | 2.17 | 4.75 | 32.071 | 75.748% |
41
+ | `Nanbeige4.1-3B-i1-IQ4_NL.gguf` | 2.17 | 4.74 | 33.9382 | 80.165% |
42
+ | `Nanbeige4.1-3B-Q4_0.gguf` | 2.17 | 4.73 | 31.1932 | 72.255% |
43
+ | `Nanbeige4.1-3B-IQ4_XS.gguf` | 2.09 | 4.56 | 36.4346 | 76.044% |
44
+ | `Nanbeige4.1-3B-i1-IQ4_XS.gguf` | 2.07 | 4.52 | 34.318 | 80.400% |
45
+ | `Nanbeige4.1-3B-Q3_K_L.gguf` | 2 | 4.37 | 36.5177 | 70.362% |
46
+ | `Nanbeige4.1-3B-i1-Q3_K_L.gguf` | 2 | 4.37 | 36.735 | 73.594% |
47
+ | `Nanbeige4.1-3B-Q3_K_M.gguf` | 1.88 | 4.1 | 33.7037 | 67.260% |
48
+ | `Nanbeige4.1-3B-i1-Q3_K_M.gguf` | 1.88 | 4.1 | 36.8062 | 72.679% |
49
+ | `Nanbeige4.1-3B-i1-IQ3_M.gguf` | 1.78 | 3.88 | 35.4695 | 68.806% |
50
+ | `Nanbeige4.1-3B-IQ3_M.gguf` | 1.78 | 3.88 | 38.1415 | 60.134% |
51
+ | `Nanbeige4.1-3B-IQ3_S.gguf` | 1.74 | 3.8 | 909.214 | 22.657% |
52
+ | `Nanbeige4.1-3B-i1-IQ3_S.gguf` | 1.74 | 3.8 | 35.6732 | 67.415% |
53
+ | `Nanbeige4.1-3B-i1-Q3_K_S.gguf` | 1.73 | 3.78 | 34.9748 | 66.103% |
54
+ | `Nanbeige4.1-3B-Q3_K_S.gguf` | 1.73 | 3.78 | 38.1397 | 61.667% |
55
+ | `Nanbeige4.1-3B-i1-IQ3_XS.gguf` | 1.67 | 3.65 | 35.2176 | 66.490% |
56
+ | `Nanbeige4.1-3B-i1-IQ3_XXS.gguf` | 1.55 | 3.38 | 33.543 | 61.474% |
57
+ | `Nanbeige4.1-3B-i1-Q2_K.gguf` | 1.51 | 3.3 | 38.3969 | 59.878% |
58
+ | `Nanbeige4.1-3B-Q2_K.gguf` | 1.51 | 3.3 | 57.987 | 47.507% |
59
+ | `Nanbeige4.1-3B-i1-Q2_K_S.gguf` | 1.43 | 3.13 | 44.2038 | 57.847% |
60
+ | `Nanbeige4.1-3B-i1-IQ2_M.gguf` | 1.41 | 3.08 | 38.2793 | 56.770% |
61
+ | `Nanbeige4.1-3B-i1-IQ2_S.gguf` | 1.33 | 2.9 | 42.7728 | 52.282% |
62
+ | `Nanbeige4.1-3B-i1-IQ2_XS.gguf` | 1.25 | 2.73 | 48.201 | 49.136% |
63
+ | `Nanbeige4.1-3B-i1-IQ2_XXS.gguf` | 1.17 | 2.55 | 58.2207 | 44.731% |
64
+ | `Nanbeige4.1-3B-i1-IQ1_M.gguf` | 1.07 | 2.33 | 110.923 | 36.721% |
65
+ | `Nanbeige4.1-3B-i1-IQ1_S.gguf` | 1.01 | 2.2 | 234.974 | 29.321% |
66
+
67
+
68
+ ------
69
+ <div align="center">
70
+
71
+ <img src="figures/nbg.png" width="220" alt="Nanbeige Logo">
72
+ </div>
73
+
74
+
75
+
76
+ # Introduction
77
+
78
+ Nanbeige4.1-3B is built upon Nanbeige4-3B-Base and represents an enhanced iteration of our previous reasoning model, Nanbeige4-3B-Thinking-2511, achieved through further post-training optimization with supervised fine-tuning (SFT) and reinforcement learning (RL). As a highly competitive open-source model at a small parameter scale, Nanbeige4.1-3B illustrates that compact models can simultaneously achieve robust **reasoning**, **preference alignment**, and **effective agentic behaviors**.
79
+
80
+ <div align="center">
81
+
82
+ <img src="figures/model_performance_comparison.png">
83
+ </div>
84
+
85
+ Specifically, Nanbeige4.1-3B exhibits the following key strengths:
86
+
87
+ * **Strong Reasoning:** Nanbeige4.1-3B is capable of solving complex, multi-step problems through sustained and coherent reasoning within a single forward pass, and reliably produces correct final answers on challenging tasks such as LiveCodeBench-Pro, IMO-Answer-Bench, and AIME 2026 I.
88
+ * **Robust Preference Alignment:** Nanbeige4.1-3B achieves solid alignment performance, outperforming not only same-scale models such as Qwen3-4B-2507 and Nanbeige4-3B-2511, but also substantially larger models including Qwen3-30B-A3B and Qwen3-32B on Arena-Hard-v2 and Multi-Challenge.
89
+ * **Agentic Capability:** Nanbeige4.1-3B is the first general small model to natively support deep-search tasks and reliably sustain complex problem solving involving more than 500 rounds of tool invocations. It fills a long-standing gap in the small-model ecosystem where models are typically optimized for either general reasoning or agentic scenarios, but rarely excel at both.
90
+
91
+ > **Technical Report:** [Link](https://arxiv.org/abs/2602.13367)
92
+
93
+
94
+
95
+
96
+ # Performances
97
+
98
+ We evaluate Nanbeige4.1-3B across a broad and diverse set of benchmarks covering **general reasoning**, and **deep-search capabilities**.
99
+
100
+ ### General Reasoning Tasks
101
+
102
+ On general reasoning tasks including **code**, **math**, **science**, **alignment**, and **tool-use** benchmarks, Nanbeige4.1-3B not only significantly outperforms same-scale models such as **Qwen3-4B**, but also demonstrates overall superior performance compared to larger models including **Qwen3-30B-A3B-2507** and **Qwen3-32B**.
103
+
104
+
105
+ | Benchmark | Qwen3-4B-2507 | Qwen3-8B | Qwen3-14B | Qwen3-32B | Qwen3-30B-A3B-2507 | Nanbeige4-3B-2511 | **Nanbeige4.1-3B** |
106
+ | --------------------------- | ------------- | -------- | --------- | --------- | ------------------ | ----------------- | ------------------ |
107
+ | **Code** | | | | | | | |
108
+ | Live-Code-Bench-V6 | 57.4 | 49.4 | 55.9 | 55.7 | <u>66.0<u> | 46.0 | **76.9** |
109
+ | Live-Code-Bench-Pro-Easy | 40.2 | 41.2 | 33.0 | 42.3 | <u>60.8<u> | 40.2 | **81.4** |
110
+ | Live-Code-Bench-Pro-Medium | 5.3 | 3.5 | 1.8 | 3.5 | 3.5 | <u>5.3<u> | **28.1** |
111
+ | **Math** | | | | | | | |
112
+ | AIME 2026 I | 81.46 | 70.42 | 76.46 | 75.83 | <u>87.30<u> | 84.1 | **87.40** |
113
+ | HMMT Nov | 68.33 | 48.33 | 56.67 | 57.08 | <u>71.25<u> | 66.67 | **77.92** |
114
+ | IMO-Answer-Bench | 48.00 | 36.56 | 41.81 | 43.94 | **54.34** | 38.25 | 53.38 |
115
+ | **Science** | | | | | | | |
116
+ | GPQA | 65.8 | 62.0 | 63.38 | 68.4 | 73.4 | <u>82.2<u> | **83.8** |
117
+ | HLE (Text-only) | 6.72 | 5.28 | 7.00 | 9.31 | <u>11.77<u> | 10.98 | **12.60** |
118
+ | **Alignment** | | | | | | | |
119
+ | Arena-Hard-v2 | 34.9 | 26.3 | 36.9 | 56.0 | <u>60.2<u> | 60.0 | **73.2** |
120
+ | Multi-Challenge | 41.14 | 36.30 | 36.97 | 38.72 | <u>49.40<u> | 41.20 | **52.21** |
121
+ | **Tool Use** | | | | | | | |
122
+ | BFCL-V4 | 44.87 | 42.20 | 45.14 | 47.90 | 48.6 | <u>53.8<u> | **56.50** |
123
+ | Tau2-Bench | 45.9 | 42.06 | 44.96 | 45.26 | <u> 47.70<u> | 41.77 | **48.57** |
124
+
125
+
126
+
127
+ ### Deep Search Tasks
128
+
129
+ As a general small model, Nanbeige4.1-3B achieves deep-search performance comparable to specialized agents under 10B parameters.
130
+ In contrast to existing small general models, which typically exhibit little to no deep-search capability, Nanbeige4.1-3B represents a substantial qualitative improvement over prior small general models.
131
+
132
+ #### Deep Search and Agent Benchmarks
133
+ | Model | xBench-DeepSearch-2505 | xBench-DeepSearch-2510 | Browse-Comp | Browse-Comp-ZH | GAIA (Text-only) | HLE | SEAL-0 |
134
+ |------|-------------------|-------------------|-------------|----------------|------------------|-----|--------|
135
+ | **Search-Specialized Small Agents** ||||||||
136
+ | MiroThinker-v1.0-8B | 61 | – | 31.1 | 40.2 | 66.4 | 21.5 | 40.4 |
137
+ | AgentCPM-Explore-4B | 70 | – | 25.0 | 29.0 | 63.9 | 19.1 | 40.0 |
138
+ | **Large Foundation Models (with Tools)** ||||||||
139
+ | GLM-4.6-357B | 70 | – | 45.1 | 49.5 | 71.9 | 30.4 | – |
140
+ | Minimax-M2-230B | 72 | – | 44.0 | 48.5 | 75.7 | 31.8 | – |
141
+ | DeepSeek-V3.2-671B | 71 | – | 67.6 | 65.0 | 63.5 | 40.8 | 38.5 |
142
+ | **Small Foundation Models (with Tools)** ||||||||
143
+ | Qwen3-4B-2507 | 34 | 5 | 1.57 | 7.92 | 28.33 | 11.13 | <u>15.74<u> |
144
+ | Qwen3-8B | 31 | 2 | 0.79 | 5.15 | 19.53 | 10.24 | 6.34 |
145
+ | Qwen3-14B | 34 | 9 | 2.36 | 7.11 | 30.23 | 10.17 | 12.64 |
146
+ | Qwen3-32B | <u>39<u> | 8 | <u>3.15<u> | <u>7.34<u> | 30.17 | 9.26 | 8.15 |
147
+ | Qwen3-30B-A3B-2507 | 25 | 10| 1.57 | 4.12 | <u>31.63<u> | <u>14.81<u> | 9.24 |
148
+ | **Ours (with Tools)** ||||||||
149
+ | Nanbeige4-3B-2511 | 33 | <u>11<u> | 0.79 | 3.09 | 19.42 | 13.89 | 12.61 |
150
+ | **Nanbeige4.1-3B** | **75** | **39** | **19.12** | **31.83** | **69.90** | **22.29** | **41.44** |
151
+
152
+
153
+ ## <span id="Inference">Quickstart</span>
154
+
155
+ For inference hyperparameters, we recommend the following settings:
156
+ * Temperature: 0.6
157
+ * Top-p: 0.95
158
+ * Repeat penalty: 1.0
159
+ * Max New Tokens: 131072
160
+
161
+ For the chat scenario:
162
+ ```
163
+ from transformers import AutoModelForCausalLM, AutoTokenizer
164
+ tokenizer = AutoTokenizer.from_pretrained(
165
+ 'Nanbeige/Nanbeige4.1-3B',
166
+ use_fast=False,
167
+ trust_remote_code=True
168
+ )
169
+ model = AutoModelForCausalLM.from_pretrained(
170
+ 'Nanbeige/Nanbeige4.1-3B',
171
+ torch_dtype='auto',
172
+ device_map='auto',
173
+ trust_remote_code=True
174
+ )
175
+ messages = [
176
+ {'role': 'user', 'content': 'Which number is bigger, 9.11 or 9.8?'}
177
+ ]
178
+ prompt = tokenizer.apply_chat_template(
179
+ messages,
180
+ add_generation_prompt=True,
181
+ tokenize=False
182
+ )
183
+ input_ids = tokenizer(prompt, add_special_tokens=False, return_tensors='pt').input_ids
184
+ output_ids = model.generate(input_ids.to('cuda'), eos_token_id=166101)
185
+ resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=True)
186
+ print(resp)
187
+ ```
188
+
189
+ For the tool use scenario:
190
+ ```
191
+ from transformers import AutoModelForCausalLM, AutoTokenizer
192
+ tokenizer = AutoTokenizer.from_pretrained(
193
+ 'Nanbeige/Nanbeige4.1-3B',
194
+ use_fast=False,
195
+ trust_remote_code=True
196
+ )
197
+ model = AutoModelForCausalLM.from_pretrained(
198
+ 'Nanbeige/Nanbeige4.1-3B',
199
+ torch_dtype='auto',
200
+ device_map='auto',
201
+ trust_remote_code=True
202
+ )
203
+ messages = [
204
+ {'role': 'user', 'content': 'Help me check the weather in Beijing now'}
205
+ ]
206
+ tools = [{'type': 'function',
207
+ 'function': {'name': 'SearchWeather',
208
+ 'description': 'Find out the current weather in a place on a certain day.',
209
+ 'parameters': {'type': 'dict',
210
+ 'properties': {'location': {'type': 'string',
211
+ 'description': 'A city in China.'},
212
+ 'required': ['location']}}}}]
213
+ prompt = tokenizer.apply_chat_template(
214
+ messages,
215
+ tools,
216
+ add_generation_prompt=True,
217
+ tokenize=False
218
+ )
219
+ input_ids = tokenizer(prompt, add_special_tokens=False, return_tensors='pt').input_ids
220
+ output_ids = model.generate(input_ids.to('cuda'), eos_token_id=166101)
221
+ resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=True)
222
+ print(resp)
223
+ ```
224
+
225
+ For the deep-search scenario:
226
+
227
+ * Inference Framework: [**miroflow-framework**](https://github.com/MiroMindAI/MiroThinker)!
228
+ * Switch tokenizer configuration to **tokenizer_config_search.json**
229
+ * Tools Configuration:
230
+
231
+ | Server | Description | Tools Provided |
232
+ |-----------------------------|-----------------------------------------------------------------------------|-------------------------------------------------------------------------------|
233
+ | tool-python | Execution environment and file management ([E2B sandbox](https://e2b.dev/)) | create_sandbox, run_command, run_python_code, upload_file_from_local_to_sandbox, download_file_from_sandbox_to_local, download_file_from_internet_to_sandbox |
234
+ | search_and_scrape_webpage | Google search via [Serper API](https://google.serper.dev) | google_search |
235
+ | jina_scrape_llm_summary | Web scraping with LLM-based information extraction with [Jina](https://r.jina.ai) | scrape_and_extract_info |
236
+
237
+ * Summary model: Qwen3-14B-thinking
238
+ * Temperature: 1.0
239
+ * Note, access to HuggingFace has been explicitly disabled in these tools.
240
+
241
+ # <span id="Limitations">Limitations</span>
242
+
243
+ 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.
244
+ <br>
245
+
246
+ # <span id="Limitations">Citation</span>
247
+ If you find our model useful or want to use it in your projects, please cite as follows:
248
+ ```
249
+ @misc{yang2026nanbeige413bsmallgeneralmodel,
250
+ title={Nanbeige4.1-3B: A Small General Model that Reasons, Aligns, and Acts},
251
+ author={Chen Yang and Guangyue Peng and Jiaying Zhu and Ran Le and Ruixiang Feng and Tao Zhang and Xiyun Xu and Yang Song and Yiming Jia and Yuntao Wen and Yunzhi Xu and Zekai Wang and Zhenwei An and Zhicong Sun and Zongchao Chen},
252
+ year={2026},
253
+ eprint={2602.13367},
254
+ archivePrefix={arXiv},
255
+ primaryClass={cs.AI},
256
+ url={https://arxiv.org/abs/2602.13367},
257
+ }
258
+ ```
259
+ <br>
260
+
261
+ # <span id="Limitations">Contact</span>
262
+ If you have any questions, please raise an issue or contact us at nanbeige@kanzhun.com.
263
+ <br>