Updates on North Mini Code: 4 bit quant + Ollama + OpenRouter
Summary
Cohere releases North Mini Code, a 30B-A3B open-weights model with 4-bit quantization for code generation and agentic coding tasks, supporting 256K context.
View Cached Full Text
Cached at: 06/18/26, 07:34 PM
CohereLabs/North-Mini-Code-1.0-w4a16 · Hugging Face
Source: https://huggingface.co/CohereLabs/North-Mini-Code-1.0-w4a16
https://huggingface.co/CohereLabs/North-Mini-Code-1.0-w4a16#model-card-for-north-mini-codeModel Card for North Mini Code
https://huggingface.co/CohereLabs/North-Mini-Code-1.0-w4a16#model-summaryModel Summary
North Mini Code is an open weights research release of a 30B-A3B parameter model optimized for code generation, agentic software engineering, and terminal tasks.
Developed by:CohereandCohere Labs
- Point of Contact:Cohere Labs
- License: Apache 2.0
- Model: North Mini Code
- Model Size: 30B total; 3B active
- Context length: 256K & 64K max output
- Quantization: NVFP4 W4A16
For more details about this model, please check out ourblog post.
Try North Mini Code
You can try out North Mini Code before downloading the weights in OpenCode and our hostedHugging Face Space.
Evaluation
Benchmarking Methodology [CLICK TO EXPAND]- We used SWE-Bench Verified, SWE-Bench Pro, Terminal-Bench v2, and Terminal-Bench Hard to benchmark North Mini Code’s agentic coding capabilities. For evaluation harnesses, we used the Swe-Agent harness v1.1.0 for SWE-Bench, and a simple ReAct harness employing a single terminal-use tool based on Harbor’s Tmux session implementation for Terminal-Bench v2. For Terminal Bench Hard, we directly used Terminus-2, following the same methodology as the Artificial Analysis Intelligence Index to compare North-Mini-Code-1.0 with the other models. Additionally, we used SciCode and LiveCodeBench v6 as complex code-generation benchmarks outside of tool use.
- We run each benchmark with 3 different seeds and report the average benchmark performance, using temperature=1.0 and top_p=0.95. We used publicly reported scores for competitor models, either from original reports or the Artificial Analysis Intelligence Index, where available. Additionally, Gemma4’s scores for agentic coding tasks were reported byQwen team. For benchmark results that any public report is missing, denoted by (*) in the figure, we run them internally using the recommended model configuration.
Usage
To use our model in transformers, please use our BF16 model weights. Our NVFP4_W4A16 checkpoint is designed to be used with vLLM and MLX-VLM and is not compatible with transformers due to lack of native 4-bit support.
https://huggingface.co/CohereLabs/North-Mini-Code-1.0-w4a16#vllmvLLM
You can run the model in vLLM. Please use vLLM main for North Mini Code until a new release is available, and accurate response parsing also requires installing Cohere’s melody library.
uv pip install "git+https://github.com/vllm-project/vllm.git"
uv pip install cohere_melody>=0.9.0
Then the vLLM server can be started with the following command:
vllm serve CohereLabs/North-Mini-Code-1.0-w4a16 \
-tp 1 \
--max-model-len 320000 \
--tool-call-parser cohere_command4 \
--reasoning-parser cohere_command4 \
--enable-auto-tool-choice
Use locally deployed North Mini Code in OpenCode:
Please use OpenCode > v1.17.0.
brew install anomalyco/tap/opencode
To use locally deployed North Mini Code in Opencode, please use this config which enables interleaved reasoning:
{
"$schema": "https://opencode.ai/config.json",
"model": "vllm/CohereLabs/North-Mini-Code-1.0-w4a16",
"provider": {
"vllm": {
"npm": "@ai-sdk/openai-compatible",
"name": "Local vLLM server",
"options": {
"baseURL": "http://127.0.0.1:8000/v1",
"apiKey": "EMPTY"
},
"models": {
"CohereLabs/North-Mini-Code-1.0-w4a16": {
"name": "North-Mini-Code-1.0",
"interleaved": {
"field": "reasoning"
},
"limit": {
"context": 256000,
"output": 64000
}
}
}
}
}
}
https://huggingface.co/CohereLabs/North-Mini-Code-1.0-w4a16#mlx-vlmMLX-VLM
You can also run the model in MLX-VLM. Please use main for North Mini Code until a new release is available.
uv pip install "git+https://github.com/Blaizzy/mlx-vlm.git@main"
Then the mlx_vlm server can be started with the following command:
mlx_vlm.server \
--model CohereLabs/North-Mini-Code-1.0-w4a16 \
--enable-thinking \
--thinking-start-token "<|START_THINKING|>" \
--thinking-end-token "<|END_THINKING|>"
Opencode config:
Actual limit depends on your device
{
"$schema": "https://opencode.ai/config.json",
"model": "mlx-vlm/CohereLabs/North-Mini-Code-1.0-w4a16",
"provider": {
"mlx-vlm": {
"npm": "@ai-sdk/openai-compatible",
"name": "MLX VLM Local",
"options": {
"baseURL": "http://127.0.0.1:8080/v1",
"apiKey": "EMPTY"
},
"models": {
"CohereLabs/North-Mini-Code-1.0-w4a16": {
"name": "North-Mini-Code-1.0",
"interleaved": {
"field": "reasoning"
},
"limit": {
"context": 256000,
"output": 64000
}
}
}
}
}
}
https://huggingface.co/CohereLabs/North-Mini-Code-1.0-w4a16#model-detailsModel Details
Input: Text only.
Output: Model generates text.
Model Architecture: North-Mini-Code-1.0 is a decoder-only Transformer-based sparse Mixture-of-Experts model. It uses an efficient attention implementation, interleaved between sliding-window attention with RoPE and global attention with no positional embeddings, in a 3:1 ratio. The feed-forward block is an MoE block with 128 experts, of which 8 are activated per token. Each expert block is an FFN block with SwiGLU activation. The router applies a sigmoid activation function to the logits before the top-k selection. We also use a single dense layer before the sparse layers. North-Mini-Code-1.0 was post-trained using a two-stage cascaded supervised fine-tuning (SFT) followed by reinforcement learning with verifiable rewards (RLVR), focusing on agentic coding. For more technical details, please check out ourblog post.
**Quantization Methodology:**We use NVFP4 W4A16 quantization (4-bit weights, 16-bit activations) for this model, delivering a much smaller memory footprint (~ 18-20GB) and faster inference while preserving coding accuracy. We quantize the MoE experts only, keeping attention, the dense layer, and the router at higher precision. Since the experts hold most of the model’s parameters, this captures the bulk of the savings with minimal quality loss. To preserve quality, we use Quantization-Aware Distillation (QAD), training the quantized model to match the unquantized model’s outputs,achieving >99% overall accuracy recoveryacross our evaluations. Since only weights are quantized, this format does not require native FP4 hardware and runs on pre-Blackwell GPUs such as Hopper and Ada.
**Context Length:**North-Mini-Code-1.0 supports a context length of 256K & 64K output length.
https://huggingface.co/CohereLabs/North-Mini-Code-1.0-w4a16#model-card-contactModel Card Contact
For errors or additional questions about details in this model card, contact [[email protected]].
Similar Articles
CohereLabs/North-Mini-Code-1.0
Cohere Labs released North Mini Code, a 30B-parameter (3B active) open-weights model optimized for code generation, agentic software engineering, and terminal tasks, licensed under Apache 2.0.
Releasing Cohere North Mini Code
Cohere officially launches North Mini Code, a coding model, with weights available on Hugging Face and deployment support for vLLM and MLX.
Introducing North Mini Code: Cohere’s First Model For Developers
Cohere released North Mini Code, a 30B-parameter Mixture-of-Experts model with 3B active parameters under Apache 2.0, optimized for agentic software engineering tasks and outperforming similar-sized models on coding benchmarks.
@cohere: Introducing Cohere's first open-source coding model: North Mini Code Small & efficient, designed for agentic performanc…
Cohere released its first open-source coding model, North Mini Code Small, designed for efficient agentic performance and community input.
CohereLabs/North-Mini-Code-1.0-eagle · Hugging Face
Cohere Labs releases North-Mini-Code-1.0-eagle, a draft model for speculative decoding to accelerate code generation. It features three dense transformer layers with sliding window attention and is compatible with fp8/w4a4 target models.
