Model reference · open weights
North-Mini-Code-1.0 is an open-weight language model from Cohere. North-Mini-Code-1.0-w4a16 (NVFP4) weighs 19.3 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
Summary of the CohereLabs/North-Mini-Code-1.0 model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | Cohere |
|---|---|
| Released | 2026-06-05 |
| Parameters | 30.5B |
| VRAM | 19.3 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | — | — | — | |
| RTX 3090 24 GB FP4 without its speed-up here | 3 | 2 | 97K | 23.4 GB |
| RTX 4090 24 GB FP4 without its speed-up here | 3 | 2 | 95K | 23.4 GB |
| RTX 5090 32 GB | 12 | 7 | 377K | 31.0 GB |
| L40S 48 GB FP4 without its speed-up here | 27 | 15 | all 488K | 44.0 GB |
| A100 80 GB FP4 without its speed-up here | 66 | 38 | all 488K | 78.2 GB |
| H100 80 GB FP4 without its speed-up here | 60 | 21 | all 488K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 78 | 27 | all 488K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 94 | 32 | all 488K | 107 GB |
| H200 141 GB FP4 without its speed-up here | 129 | 44 | all 488K | 138 GB |
| B200 180 GB | 172 | 43 | all 488K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel · FP4 without its speed-up here | 2 | 1 | 64K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel · FP4 without its speed-up here | 11 | 6 | 342K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel · FP4 without its speed-up here | 29 | 16 | all 488K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel · FP4 without its speed-up here | 29 | 17 | all 488K | 23.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 21.0 GB | 21.6 GB |
| 5 | 24.4 GB | 27.7 GB |
| 8 | 27.1 GB | 32.3 GB |
| 16 | 34.0 GB | 44.5 GB |
| 32 | 48.0 GB | 68.9 GB |
| 64 | 75.9 GB | 118 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| North-Mini-Code-1.0 ↗ | 30.5B | BF16 | 61.0 GB | H100 80 GB |
| North-Mini-Code-1.0-fp8 ↗ | 30.5B | FP8 | 32.0 GB | L40S 48 GB |
| North-Mini-Code-1.0-w4a16 (above) ↗ | 30.5B | NVFP4 | 19.3 GB | 2× RTX 3060 12 GB |
From the model card
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: Cohere and Cohere Labs
For more details about this model, please check out our blog post.
Try North Mini Code
You can try out North Mini Code before downloading the weights in OpenCode and our hosted Hugging Face Space.
Evaluation
Usage
Please install transformers from the source repository that includes the necessary changes for this model. We recommend using the following set of sampling parameters for generation: `temperature=1.0`, `top_p=0.95`.
# pip install transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "CohereLabs/North-Mini-Code-1.0"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Write a python program to check if a string is a palindrome or not."
# Format message with the North-Mini-Code-1.0 chat template
messages = [{"role": "user", "content": prompt}]
input_ids = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
)
gen_tokens = model.generate(
**input_ids,
max_new_tokens=1024,
do_sample=True,
temperature=1.0,
top_p=0.95
)
gen_text = tokenizer.decode(gen_tokens[0])
print(gen_text)
You can also use the model directly using transformers pipeline abstraction:
from transformers import pipeline
import torch
model_id = "CohereLabs/North-Mini-Code-1.0"
prompt = """Given a list of unique words each of size k and an n sized word, w, where n is a multiple of k,
Write a program in python to determine the number of unique combinations of words in the list that can be concatenated to form an anagram of the word w.
"""
pipe = pipeline(
"text-generation",
model=model_id,
torch_dtype="auto",
device_map="auto",
)
messages = [
{"role": "user", "content": f"{prompt}"},
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
outputs = pipe(
messages,
max_new_tokens=1024,
do_sample=True,
temperature=1.0,
top_p=0.95
)
print(outputs[0]["generated_text"][-1])
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 our blog post.
Context Length: North-Mini-Code-1.0 supports a context length of 256K & 64K output length.
North-Mini-Code-1.0 has been specifically trained with tool-use capabilities for agentic coding.
Tool use with North-Mini-Code-1.0 is supported through chat templates in Transformers. We recommend providing tool descriptions using JSON schema.
Tool Use Example [CLICK TO EXPAND]
# Define tools
tools = [{
"type": "function",
"function": {
"name": "bash",
"description": "Execute a bash command in the terminal.",
"parameters": {
"type": "object",
"properties": {
"command": {
"description": "The bash command to execute.",
"type": "string"
}
},
"required": ["command"]
},
}
}]
# Define conversation input
conversation = [{"role": "user", "content": "Find out if there is any json file in this folder"}]
# Get the Tool Use prompt
input_prompt = tokenizer.apply_chatQuoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.