Nanbeige4.3-33B: Apache-2.0 Agent Model for Coding and Office Tasks
Run Nanbeige4.3-33B with Transformers, SGLang or vLLM, and learn its thinking, tool-call and sampling settings from the model card.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
Nanbeige4.3-33B is a text-generation model from the Nanbeige team, released under Apache-2.0. The card calls it the flagship “teacher” model of the Nanbeige4.3 series, aimed at agentic coding and professional “cowork” tasks. The team says it will anchor distillation into smaller models, such as a planned Nanbeige4.3-3B. It supports English and Chinese and a context length of up to 524,288 tokens (512K).
Key specs
| Item | From the card |
|---|---|
| Model | Nanbeige4.3-33B (base: Nanbeige4.3-33B-Base) |
| License | Apache-2.0 |
| Languages | English, Chinese |
| Library | Transformers (also SGLang and vLLM) |
| Context | Up to 512K tokens |
| Thinking | On by default; configurable |
The card compares it with Qwen3.8-27B, Muse-Glimmer-30B and Gemma4-31B, all at their highest thinking effort with the same inference settings and harness. These are the team’s own numbers, not independent results. Highlights from its table:
- Terminal-Bench 2.1: 80.9 (Qwen3.8-27B: 73.0)
- DeepSWE: 65.5 (Qwen3.8-27B: 42.5)
- SWE-Bench Pro: 60.3, where Qwen3.8-27B is higher at 61.7
- GDPval: 84.8, where Qwen3.8-27B is higher at 86.4
- GPQA Diamond: 89.5, where Gemma4-31B is higher at 91.3
So the card does not claim a win everywhere, and neither should you. The Nanbeige score is reported with preserve_thinking=true in the chat template.
Install
The card says you can run the model with Transformers, SGLang or vLLM, but it gives no install commands or package versions. Install the one you plan to use from its own docs, and make sure the version supports this model.
Run it with Transformers
This is the card’s own example. Note use_fast=False and trust_remote_code=True:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = 'Nanbeige/Nanbeige4.3-33B'tokenizer = AutoTokenizer.from_pretrained( model_id, use_fast=False, trust_remote_code=True)model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype='auto', device_map='auto', trust_remote_code=True)
messages = [{'role': 'user', 'content': 'Which number is bigger, 9.11 or 9.8?'}]inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, return_tensors='pt').to(model.device)output_ids = model.generate(inputs, max_new_tokens=1024)response = tokenizer.decode(output_ids[0][inputs.shape[-1]:], skip_special_tokens=True)print(response)With thinking on by default, a 1,024-token limit may cut the reasoning short. The card recommends much larger limits for real work (see below).
Serve it for agents
For agent and tool-use workloads, the card gives server commands with reasoning and tool-call parsers. Both use 4-way tensor parallelism.
MODEL_PATH=/path/to/your/Nanbeige4.3-33Bvllm serve ${MODEL_PATH} \ --host 0.0.0.0 \ --port 8000 \ --tensor-parallel-size 4 \ --gpu-memory-utilization 0.8 \ --enable-auto-tool-choice \ --reasoning-parser qwen3 \ --tool-call-parser qwen3_coderMODEL_PATH=/path/to/your/Nanbeige4.3-33Bpython -m sglang.launch_server \ --model-path ${MODEL_PATH} \ --host 0.0.0.0 \ --port 8000 \ --tp-size 4 \ --mem-fraction-static 0.8 \ --reasoning-parser qwen3 \ --tool-call-parser qwen3_coderThe parsers are qwen3 for reasoning and qwen3_coder for tool calls in both servers. The card doesn’t show a client call against these endpoints, so use the chat-completions interface your serving framework documents.
Chat template options
The card says the tokenizer’s chat template is configurable:
enable_thinking: whether the model reasons before answering. On by default; set it toFalsefor non-thinking mode.preserve_thinking: whether reasoning from earlier assistant turns is kept in multi-turn chats. The card recommendsFalsefor general chat and Q&A, andTruefor multi-turn tool use, office tasks and code-agent workflows.tools: passing tools enables the tool-use template. The card recommendstool_call_format="xml"for best tool-calling performance;jsonis supported for compatibility.
The card doesn’t show the exact call that sets these, so look at the tokenizer’s chat template before relying on them.
Recommended sampling settings
| Scenario | Temperature | Top_p | Max new tokens |
|---|---|---|---|
| Agentic and tool-use tasks | 1.0 | 0.95 | 65,536 |
| Reasoning and chat tasks | 0.6 | 0.95 | 262,144 |
Gotchas
- Hardware is not stated. The card gives 4-way tensor parallelism in its server examples but no memory requirement. Check the size of the weights yourself before choosing hardware.
trust_remote_code=Trueis required in the card’s Transformers example, so review what that code does before running it.- Benchmarks are self-reported and use specific harnesses and settings, including
preserve_thinking=true. Your results may differ with other settings. - Token budgets are large. The recommended maximums (65,536 and 262,144) assume you are willing to wait for long outputs.
When to pick it
Pick it if you want an Apache-2.0 model for agentic coding or office-style tool use and have enough GPU capacity (the card’s server examples use four GPUs). The card reports strong results on Terminal-Bench and DeepSWE against similarly sized models, and the permissive license is easy to work with.
Skip it if you need a small model for a laptop or phone. The card points to a future 3B distillation, which isn’t what this repository contains. Also be careful if your work looks like SWE-Bench Pro or GDPval, where the card’s own table shows Qwen3.8-27B ahead. Test on your own tasks first.
Related
Sage-A1.5: Parallel Subagents and Verification Mode, Served with vLLM
InternScience's 35B MoE agent model adds a spawn_subagent tool and an opt-in self-review mode. How to serve it and call both.
InternScience/Sage-A1.5
Run Spark-X2.6-4B: a 4B On-Device Model with Adjustable Thinking
Spark-X2.6-4B is an Apache-2.0 4B model for agents, coding and long context. Run it with Transformers, SGLang, vLLM or Ollama, per the model card.
XHToken/Spark-X2.6-4B
Run Flint, a 2.5B-Active MoE Coding Agent Model, with SGLang
Recursive's Flint is a 39.8B mixture-of-experts model for coding agents. Here is how to serve it on one H200 or B300 and call it with the OpenAI client.
RecursiveSI/flint