Use AIUnderstand AIBuild with AI
Build with AI·Model deep dive·· 4 min read

Aion 1.0 Instruct 2.3B: Microsoft's Small Model for Summaries and Rewrites

Run Microsoft's MIT-licensed 2.3B Aion 1.0 Instruct with transformers for summarizing, rewriting, chat and tool calls, with a 32K-token context.

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.

Aion 1.0 Instruct is a 2.3B-parameter instruction-tuned language model from Microsoft’s Windows Applied Sciences Group. The card describes it as the foundational small language model for the Windows ecosystem, optimized for on-device AI and text use cases. The notable part is the target: summarization, rewriting and chat on a local machine, with a 32K-token context and an MIT license.

This Hugging Face release is the unquantized model. The card says quantized versions will follow, and that a further optimized version will become the Windows OS small language model by the end of January 2027.

Key specs

Parameters ~2.29B (tied input/output embeddings)
Layers 28
Attention GQA: 24 query heads, 8 key/value heads, head dim 128
Attention pattern 21 sliding-window layers (window 2048) + 7 full-attention layers
Context length 32,768 tokens
Vocabulary 200,029
Precision bfloat16
Knowledge cutoff 2025-12
Languages English, German, Spanish, Portuguese, Italian, French, Chinese, Japanese
License MIT

Scores the card reports, from lm-evaluation-harness where available: MMLU 55.15, MMLU-Pro 33.35, GPQA 28.18, GSM8K 74.91 (loose matching), MATH-500 48.00, IFEval 83.90, IFBench 32.00, Multi-IF 64.70 and chrF++ 43.18 for translation. The card’s own framing is that the model “was not trained to excel at world knowledge.”

Install

The model uses custom modeling code, so trust_remote_code=True is required. The card says it was exported with transformers 5.x.

Terminal window
pip install -U transformers torch

The card doesn’t list other dependencies.

Run it

This is the card’s quickstart, unchanged:

quickstart.py
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "microsoft/Aion-1.0-Instruct-2.3B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype="auto",
device_map="auto",
trust_remote_code=True,
)
messages = [
{"role": "user", "content": "Give me a short introduction to large language models."},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Because trust_remote_code=True executes Python from the repository (modeling_aion_instruct.py), read it before running it on a machine that matters.

Summarize a long email thread

The card lists multi-page documents and lengthy email threads as intended uses. The same quickstart pattern works with a different message. Only the prompt below is new.

summarize.py
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "microsoft/Aion-1.0-Instruct-2.3B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype="auto",
device_map="auto",
trust_remote_code=True,
)
def ask(prompt: str, max_new_tokens: int = 512) -> str:
messages = [{"role": "user", "content": prompt}]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=max_new_tokens)
return tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
thread = open("thread.txt", encoding="utf-8").read()
print(ask(f"Summarize this email thread in five bullet points, then list any open questions.\n\n{thread}"))

Rewrite text

Rewriting is one of the card’s tags. The same ask helper applies:

rewrite.py
# reuse tokenizer, model and ask() from summarize.py
draft = "hey, need the report by friday or we're in trouble"
print(ask(f"Rewrite this as a polite, professional message. Keep it under 50 words.\n\n{draft}"))

Tool calling

The card says tools are passed with apply_chat_template(..., tools=tools). The schemas are injected into the system prompt between <|tool|> and <|/tool|>, and the model emits calls in this form:

<|tool_call|>{"name": "<function-name>", "arguments": {...}}<|/tool_call|>

Tool results go back as role: "tool" messages, which the template places inside a user turn prefixed with <|tool_response|>. The card doesn’t show a full tool loop or the exact schema format, so check chat_template.jinja in the repo before building one.

Chat format

The template ends every turn with <|end|>, which is also the EOS token. A leading system message is appended to the default system preamble, which names the model, its knowledge cutoff and the current date. The template accepts optional variables model_identity, knowledge_cutoff and current_date.

Gotchas

  • Custom code. trust_remote_code=True is required, and the card says it was exported with transformers 5.x.
  • Small-model limits. The card says the model can miss fine details, make misstatements and fail at complex multi-step reasoning. Check summaries against the source.
  • World knowledge. It was not trained to excel at it. Give it the text to work from instead of asking it to recall facts.
  • Safety. The card says the model may be susceptible to adversarial attacks, and that XPIA, DIC and ECI are key safety metrics to improve. Don’t feed it untrusted text and then let it trigger actions on its own.
  • Uneven languages. Multilingual data is about 6% of training data, and the card says output quality may differ by language.
  • Out of scope. Not for automated decisions in critical contexts such as medical diagnoses or legal judgments.
  • Long inputs. The context is 32,768 tokens. The card gives no memory figures for filling it.

When to pick it

Pick Aion 1.0 Instruct if you want a permissively licensed small model for private, local summarization, rewriting or chat, especially over documents you’d rather not send to a cloud service. The MIT license and 32K context are the practical draws.

Skip it if you need strong reasoning or knowledge: the card’s GPQA (28.18) and MATH-500 (48.00) scores reflect the size, and the card itself points to larger models for nuance and factual recall. Also wait for the quantized releases if memory is tight, since this release is unquantized bfloat16.

Related