Brittain 2.5 XS
An ultra-compact language model for coding
2 min readupdated
Brittain 2.5 XS is a 412M-parameter conversational model by Brittain AI, trained from scratch on its own tokenizer and dataset. It is built to run on a standard laptop and assist with everyday programming tasks in Python, JavaScript, TypeScript, Java, C#, and SQL. Based on the Qwen3 architecture with a 16,384-token context window, the model excels at writing short functions and explaining fundamental concepts. It is ideal for developers who need a local assistant for simple tasks directly on their device.
Key features
- 412M parameters with Qwen3 architecture and a 16k context window.
- Trained from scratch on a 19.5B-token corpus (primarily code and technical texts).
- Support for GGUF formats to run via Ollama and llama.cpp.
- Underwent pre-training, annealing, SFT, and reinforcement learning (GRPO) stages.
What you can do
- Write small functions and solve programming tasks locally using Python.
- Launch the model in the terminal with Ollama for quick code answers.
- Integrate the model into local development workflows thanks to transformers support.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "brittain-ai/Brittain-2.5-XS"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto")
messages = [{"role": "user", "content": "Write a Python function that checks if a number is prime."}]
ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
out = model.generate(ids, max_new_tokens=1024)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
Read more
DetailsBenchmarks: HumanEval (complete) — 26.2, MBPP (complete) — 33.5.
Available GGUF versions: Q8_0 (440 MB) and BF16 (826 MB).
Limitations: no system prompt support, weak short-term memory, English language only.
License: CC BY-NC 4.0 (research and personal use only).










Comments