alt.freeweights.text / Nanbeige4.1-3B
From: Nanbeige <huggingface.co/Nanbeige>Newsgroups: alt.freeweights.textSubject:

Nanbeige4.1-3B

Date: 2026-11-15Commit: 9c4555cSigned: 2DC28CC7B26A283B ✓

Text generation model with 3.9B parameters. Safetensors weights, 7.89 GB in all. Published by Nanbeige under Apache-2.0.

3.9B params7.89GBNanbeige4.1-3Bsafetensorspermissive
FactsParams3.9BSize7.89 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get Nanbeige/Nanbeige4.1-3B
# manifest sha256 56e6092fadff… · 7.89 GB · 16 files
$ fw verify ./Nanbeige4.1-3B Nanbeige/Nanbeige4.1-3B
From sourceHosted (signed)Nanbeige/Nanbeige4.1-3BLast check: 2026-11-15 02:44 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
7.89 GB
Weights
7.87 GB (safetensors)
Parameters
3.9B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
16, each with a sha256
Publisher
Nanbeige
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: Nanbeige/Nanbeige4-3B-Base

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:44 UTCpassed

Model card

From the publisher at commit 9c4555c. Shown as plain text with links; images open at the publisher.

Image: Nanbeige Logo

Introduction#

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.

Image: image

Specifically, Nanbeige4.1-3B exhibits the following key strengths:

  • 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.
  • 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.
  • 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.

Technical Report: Link

Performances#

We evaluate Nanbeige4.1-3B across a broad and diverse set of benchmarks covering general reasoning, and deep-search capabilities.

General Reasoning Tasks#

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.

BenchmarkQwen3-4B-2507Qwen3-8BQwen3-14BQwen3-32BQwen3-30B-A3B-2507Nanbeige4-3B-2511Nanbeige4.1-3B
Code
Live-Code-Bench-V657.449.455.955.766.046.076.9
Live-Code-Bench-Pro-Easy40.241.233.042.360.840.281.4
Live-Code-Bench-Pro-Medium5.33.51.83.53.55.328.1
Math
AIME 2026 I81.4670.4276.4675.8387.3084.187.40
HMMT Nov68.3348.3356.6757.0871.2566.6777.92
IMO-Answer-Bench48.0036.5641.8143.9454.3438.2553.38
Science
GPQA65.862.063.3868.473.482.283.8
HLE (Text-only)6.725.287.009.3111.7710.9812.60
Alignment
Arena-Hard-v234.926.336.956.060.260.073.2
Multi-Challenge41.1436.3036.9738.7249.4041.2052.21
Tool Use
BFCL-V444.8742.2045.1447.9048.653.856.50
Tau2-Bench45.942.0644.9645.2647.7041.7748.57
Deep Search Tasks#

As a general small model, Nanbeige4.1-3B achieves deep-search performance comparable to specialized agents under 10B parameters. 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.

Deep Search and Agent Benchmarks#
ModelxBench-DeepSearch-2505xBench-DeepSearch-2510Browse-CompBrowse-Comp-ZHGAIA (Text-only)HLESEAL-0
Search-Specialized Small Agents
MiroThinker-v1.0-8B61–31.140.266.421.540.4
AgentCPM-Explore-4B70–25.029.063.919.140.0
Large Foundation Models (with Tools)
GLM-4.6-357B70–45.149.571.930.4–
Minimax-M2-230B72–44.048.575.731.8–
DeepSeek-V3.2-671B71–67.665.063.540.838.5
Small Foundation Models (with Tools)
Qwen3-4B-25073451.577.9228.3311.1315.74
Qwen3-8B3120.795.1519.5310.246.34
Qwen3-14B3492.367.1130.2310.1712.64
Qwen3-32B3983.157.3430.179.268.15
Qwen3-30B-A3B-250725101.574.1231.6314.819.24
Ours (with Tools)
Nanbeige4-3B-251133110.793.0919.4213.8912.61
Nanbeige4.1-3B753919.1231.8369.9022.2941.44

Quickstart#

For inference hyperparameters, we recommend the following settings:

  • Temperature: 0.6
  • Top-p: 0.95
  • Repeat penalty: 1.0
  • Max New Tokens: 131072

For the chat scenario:

from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
  'Nanbeige/Nanbeige4.1-3B',
  use_fast=False,
  trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
  'Nanbeige/Nanbeige4.1-3B',
  torch_dtype='auto',
  device_map='auto',
  trust_remote_code=True
)
messages = [
  {'role': 'user', 'content': 'Which number is bigger, 9.11 or 9.8?'}
]
prompt = tokenizer.apply_chat_template(
  messages,
  add_generation_prompt=True,
  tokenize=False
)
input_ids = tokenizer(prompt, add_special_tokens=False, return_tensors='pt').input_ids
output_ids = model.generate(input_ids.to('cuda'), eos_token_id=166101)
resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=True)
print(resp)

For the tool use scenario:

from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
  'Nanbeige/Nanbeige4.1-3B',
  use_fast=False,
  trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
  'Nanbeige/Nanbeige4.1-3B',
  torch_dtype='auto',
  device_map='auto',
  trust_remote_code=True
)
messages = [
    {'role': 'user',  'content': 'Help me check the weather in Beijing now'}
]
tools = [{'type': 'function',
  'function': {'name': 'SearchWeather',
   'description': 'Find out the current weather in a place on a certain day.',
   'parameters': {'type': 'dict',
    'properties': {'location': {'type': 'string',
      'description': 'A city in China.'},
    'required': ['location']}}}}]
prompt = tokenizer.apply_chat_template(
  messages,
  tools,
  add_generation_prompt=True,
  tokenize=False
)
input_ids = tokenizer(prompt, add_special_tokens=False, return_tensors='pt').input_ids
output_ids = model.generate(input_ids.to('cuda'), max_new_tokens=512, eos_token_id=166101)
resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=True)
print(resp)

For the deep-search scenario:

  • Inference Framework: miroflow-framework!
  • Switch tokenizer configuration to tokenizer_config_search.json
  • Tools Configuration:
ServerDescriptionTools Provided
tool-pythonExecution environment and file management (E2B sandbox)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
search_and_scrape_webpageGoogle search via Serper APIgoogle_search
jina_scrape_llm_summaryWeb scraping with LLM-based information extraction with Jinascrape_and_extract_info
  • Summary model: Qwen3-14B-thinking
  • Temperature: 1.0
  • Note, access to HuggingFace has been explicitly disabled in these tools.

Limitations#

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.

Citation#

If you find our model useful or want to use it in your projects, please cite as follows:

@misc{yang2026nanbeige413bsmallgeneralmodel,
      title={Nanbeige4.1-3B: A Small General Model that Reasons, Aligns, and Acts}, 
      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},
      year={2026},
      eprint={2602.13367},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2602.13367}, 
}

Contact#

If you have any questions, please raise an issue or contact us at nanbeige@kanzhun.com.

Files

16 files · 7.89 GBWeights 7.87 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 16 files with their sha256
FileSizesha256
.gitattributes1.71 KBf61347261d2ad47219b3ad7e2cebcb412a181d551c9bade536230ec39f319f18
Nanbeige4.1-3B-Report.pdf1.28 MB8dd7255af85a9fa0be57d250f938e126e603bfb573cb0fed3f02671a85caf331
README.md11.8 KB4f3b001cbfcb1572cecf19a05d3d954b7d9e17072274cf53d93ed789b83b0a9b
added_tokens.json174 B9e3b127a27647df2c353cc1e5500826f7cdbe8bd15a458e368bba8422e9719cf
config.json778 B33afb0ed9fc41e2df70b3883faf17a404e9f5f25a9aa2364f39a9d228e02d8b3
figures/model_performance_comparison.png495 KB752b140c743d1fcb01400076f3df65972fafffd9d5007a93264fcaa4e4f5a072
figures/nbg.png15.6 KBa8da0574aadbd88453fe662bc741379316d7ef353dc1631ed0870e3dfd3e9db0
generation_config.json142 B762de61aa816a028146e845d59b435e11295fbf18e9a7696c0c87df5c85be359
model-00001-of-00002.safetensors4.97 GBef369ebf31b9be62dfc88602c70119bc1d16eae89c7c6601d4c4e07cda9ee18a
model-00002-of-00002.safetensors2.90 GB8dc764431997d8bb8d5fb559f69710293ec4024045fe93c4f3cfd5639a73804b
model.safetensors.index.json23.9 KBebc4c7da04df9700197356a309af3cf38d3947432fcba6466da89596a34f3a20
special_tokens_map.json623 Bb718fce2b7a8940ffeddc1e67f3b092cc0d13ac885c63a021528786f8c4cf6c0
tokenizer.json18.5 MB1d8f0326910136aca20831249220b38ce5299527647bc8c6b65404485c479740
tokenizer.model2.78 MBfb41d04798b714520a9b075727b0226538b7330254299062742c50ec8374bc36
tokenizer_config.json8.03 KBaf5e871ec677ed0bf9a15464c461cf8d5da113e08f8506c7ce54c9ad74db65a8
tokenizer_config_search.json2.73 KB827afc85ae362b5ee99f9b11ea68c9639ee387d612af8fcd7c051cc15cb8ab50
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
9c4555c379 pinned now2026-11-15 02:44 UTC16 files · 7.89 GB

Use it

$ fw get Nanbeige/Nanbeige4.1-3B
# manifest sha256 56e6092fadff… · 7.89 GB · 16 files
$ fw verify ./Nanbeige4.1-3B Nanbeige/Nanbeige4.1-3B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/Nanbeige/Nanbeige4.1-3B.json --dir ./Nanbeige4.1-3B $ python3 fw.py verify ./Nanbeige4.1-3B ./Nanbeige__Nanbeige4.1-3B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Nanbeige/Nanbeige4.1-3B --revision 9c4555c37921c0982af8fffeee1e0a6e6b953c4f --local-dir ./Nanbeige4.1-3B
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("Nanbeige/Nanbeige4.1-3B", revision="9c4555c37921c0982af8fffeee1e0a6e6b953c4f") model = AutoModelForCausalLM.from_pretrained("Nanbeige/Nanbeige4.1-3B", revision="9c4555c37921c0982af8fffeee1e0a6e6b953c4f", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve Nanbeige/Nanbeige4.1-3B --revision 9c4555c37921c0982af8fffeee1e0a6e6b953c4f

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
4f3b001cbfcb1572cecf19a05d3d954b7d9e17072274cf53d93ed789b83b0a9b
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: Nanbeige <huggingface.co/Nanbeige>Newsgroups: alt.freeweights.textSubject: Nanbeige4.1-3BDate: 2026-11-15Commit: 9c4555cSigned: 2DC28CC7B26A283B ✓
Upstream
Nanbeige/Nanbeige4.1-3B
Pinned commit
9c4555c37921c0982af8fffeee1e0a6e6b953c4f
Manifest
Nanbeige4.1-3B.json · .minisig
Manifest sha256
56e6092fadff863701c9e068aac1694ce1dbc9e98f33c84e0f9c2ed02ceaf098
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/Nanbeige/Nanbeige4.1-3B.json $ curl -O https://freeweights.allternit.com/manifests/Nanbeige/Nanbeige4.1-3B.json.minisig $ minisign -Vm Nanbeige4.1-3B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Nanbeige/Nanbeige4-3B-Base (not in this catalog) · this model is a finetune of it

2 models in the catalog name this one as their parent.

Quantizations
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Nanbeige/Nanbeige4.1-3B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Nanbeige4.1-3B.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of Nanbeige4.1-3B. Each has its own license check and page.

From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B