Instructions to use OsaurusAI/Nanbeige4.3-33B-JANG_6M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Nanbeige4.3-33B-JANG_6M with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("OsaurusAI/Nanbeige4.3-33B-JANG_6M") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use OsaurusAI/Nanbeige4.3-33B-JANG_6M with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Nanbeige4.3-33B-JANG_6M"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "OsaurusAI/Nanbeige4.3-33B-JANG_6M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use OsaurusAI/Nanbeige4.3-33B-JANG_6M with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "OsaurusAI/Nanbeige4.3-33B-JANG_6M"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "OsaurusAI/Nanbeige4.3-33B-JANG_6M" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OsaurusAI/Nanbeige4.3-33B-JANG_6M", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use OsaurusAI/Nanbeige4.3-33B-JANG_6M with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Nanbeige4.3-33B-JANG_6M"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default OsaurusAI/Nanbeige4.3-33B-JANG_6M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Nanbeige4.3-33B-JANG_6M with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Nanbeige4.3-33B-JANG_6M"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "OsaurusAI/Nanbeige4.3-33B-JANG_6M" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Runtime: Osaurus 0.25.27 or newer.
OsaurusAI/Nanbeige4.3-33B-JANG_6M
Nanbeige4.3-33B in 28.4 GB, with 97.8% top-1 agreement with the full-precision model on held-out agent, code and documentation transcripts (97.6% on the vendor-style held-out set).
This is a JANG bundle of Nanbeige/Nanbeige4.3-33B, Nanbeige's 33B dense model for agentic coding and professional cowork tasks: 52 transformer layers (a standard dense Llama-architecture model, run once per token; it is not a looped transformer like Nanbeige4.2), 56 query and 8 key/value heads, a 512K context, reasoning that is on by default, and native XML tool calls. Text only.
- Bits: affine, group size 64, bf16 scales and biases. Fixed tiers: attention 8-bit, MLP, embeddings and lm_head 6-bit.
- Calibration: activation-aware (AWQ) scaling folded exactly into the RMSNorms and an activation-weighted (imatrix) fit of every group's scale and bias.
- Size: 28.44 GB of model shards, 6.87 bits per weight over the 33.1B source parameters.
Quality vs the original model
Two held-out sets, neither used for calibration. The vendor-style set is 40 conversations (1,290 scored assistant positions) across agentic tool use, coding in eight languages, terminal work, reasoning and chat, with thinking on and off, scored against the BF16 release (native PyTorch). The local set is 316 sequences (137,056 scored positions) of real source code, technical documentation and multi-step agent sessions with XML tool calls answered by real file contents, none of which share a 32-token run with the calibration data. KL is mean top-128-plus-tail KL divergence from the BF16 model; top-1 is how often the bundle's most likely next token matches the BF16 model's.
| size | bits/weight | KL ↓ (vendor-style) | top-1 ↑ (vendor-style) | KL ↓ (local) | top-1 ↑ (local) | |
|---|---|---|---|---|---|---|
| Nanbeige/Nanbeige4.3-33B (BF16, the reference) | 66.2 GB | 16 | 0 | 100% | 0 | 100% |
| Nanbeige4.3-33B-JANG_6M | 28.4 GB | 6.87 | 0.0026 | 97.6% | 0.0036 | 97.8% |
| Nanbeige4.3-33B-JANG_4D | 21.7 GB | 5.24 | 0.0127 | 96.7% | 0.0200 | 95.6% |
| Nanbeige4.3-33B-JANG_2D | 14.0 GB | 3.37 | 0.150 | 88.0% | 0.220 | 84.9% |
| uniform 4-bit round-to-nearest (reference point, not published) | 18.6 GB | 4.50 | 0.0537 | 91.8% | — | — |
For scale: the same BF16 weights run through a different but correct implementation differ from the reference by KL 0.0012 and 98.9% top-1, so a bundle cannot land much closer than that.
By area (mean KL · top-1):
| area | positions | JANG_6M |
|---|---|---|
| agentic / tool use (vendor-style) | 254 | 0.0044 · 96.9% |
| coding (vendor-style) | 416 | 0.0008 · 99.8% |
| terminal (vendor-style) | 210 | 0.0034 · 95.7% |
| reasoning (vendor-style) | 220 | 0.0031 · 98.2% |
| conversation (vendor-style) | 190 | 0.0026 · 95.3% |
| agent sessions with XML tool calls (local) | 28,090 | 0.0068 · 97.7% |
| source code (local) | 79,724 | 0.0026 · 98.3% |
| documentation (local) | 29,242 | 0.0031 · 96.6% |
What's in the bundle
All bit widths below are read from the bundle's own config.
- attention q: 8-bit
- attention k: 8-bit
- attention v: 8-bit
- attention output: 8-bit
- MLP gate: 6-bit
- MLP up: 6-bit
- MLP down: 6-bit
- lm_head: 6-bit
- embeddings: 6-bit
- bf16: all RMSNorms (AWQ-folded where a fold was taken).
Serving contract
- Reasoning: on by default; the chat template opens
<think>and the model closes it.enable_thinking: falseprefills an empty<think></think>block. Earlier turns' reasoning is kept in the prompt unlesspreserve_thinking: falseis passed; Nanbeige recommends keeping it for multi-turn tool use and code agents. - Tool calls: XML by default —
<tool_call>/<function=NAME>/<parameter=KEY>value</parameter>.tool_call_format: "json"switches to JSON calls. Tool results go back as<tool_response>blocks inside a user turn. - Sampling (stamped for agent use): temperature 1.0, top-p 0.95, up to 65,536 new tokens — the model card's "agentic and tool-use" settings, in both
generation_config.jsonandjang_config.json. - Stop token:
<|im_end|>. The template writes<|im_start|>itself; do not add another BOS. - Context: 524,288 tokens; the KV cache costs 208 KiB per token in bf16 (52 layers × 8 KV heads × 128).
Build details
- Calibration: 1,048,576 tokens from the BF16 release, rendered through its own chat template: coding 35%, reasoning 20%, agentic 20%, terminal 15%, conversation 10%; thinking on for 550,560 tokens and off for 498,016; 191,569 tokens replay the model's own reasoning traces. Code covers 26 languages.
- Hessians: full input second moments E[xxᵀ] for every linear layer and lm_head, captured from the BF16 model with TF32 off.
- Allocation: fixed tiers. A measured layout at the same size was built and lost to this one on held-out KL, so the fixed tiers ship.
- AWQ: fold strength searched per site on the Hessian-weighted error, zero (no fold) always allowed; 103 of 104 fold sites took a fold. Scales are powers of two, so every fold is exact in bf16.
- GPTQ: not used in this bundle.
- Verification: checked from the shards — every payload aligned, one index matching the shards, every module's bits matching the config, tensors identical to the encoder output, and the held-out scores reproduced through a stock MLX loader.
Quantized by Jinho Jang · eric@osaurus.ai · base model © Nanbeige, Apache-2.0.
- Downloads last month
- 152
8-bit
Model tree for OsaurusAI/Nanbeige4.3-33B-JANG_6M
Base model
Nanbeige/Nanbeige4.3-33B-Base