Blog
Aion 1.0 Instruct 2.3Brun Aion Instruct locallyMicrosoft small language model

How to Run Aion 1.0 Instruct 2.3B Locally (Setup Guide)

Step-by-step guide to running Microsoft's MIT-licensed Aion 1.0 Instruct 2.3B locally with Transformers, plus chat format, tool calling and current limits.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering and IT

Macro photograph of a brushed steel memory module with a single sharp crimson dot, the rest dissolving into soft grey blur.

How do I run Aion 1.0 Instruct 2.3B on my own device?

Install Python, PyTorch and Hugging Face Transformers (the card says the model was exported with version 5.x), then load microsoft/Aion-1.0-Instruct-2.3B with trust_remote_code=True and call generate. The weights are about 2.29 billion parameters in bfloat16 (a compact number format), which works out to roughly 4.6 GB on disk. Microsoft has so far published only the unquantized model. Quantized versions are planned, so one-click apps that need GGUF files will have to wait.

TL;DR

  • Aion 1.0 Instruct is a 2.3B-parameter small language model from Microsoft's Windows Applied Sciences Group, released under the MIT license.
  • Today you run it through Transformers with trust_remote_code=True, because the model ships its own Python code.
  • The 32,768-token context window is enough for long documents and email threads, all processed on your machine.
  • The card lists ONNX and GGUF formats, but says the unquantized model comes first and quantized versions follow. The published file list only contains model.safetensors.
  • It supports eight languages and scores well on instruction following (IFEval 83.90), but it is weak on world knowledge and hard reasoning.
  • A further optimized version is planned to become the Windows OS small language model by the end of January 2027. This release is a preview of it.

What is Aion 1.0 Instruct?

Aion Instruct is a small language model (SLM) built for on-device use in Windows. An SLM is an AI text model small enough to run on a laptop or desktop instead of a data center. Microsoft describes it as the foundational SLM in the Windows ecosystem, aimed at text and operating system tasks, working without a constant cloud connection.

The model card lists these tags: summarization, rewriting and chat. It was trained for general text work such as document comprehension, content analysis and question answering. Its training data extends the data used for Phi Silica, the previous Windows OS SLM.

Key specs from the card:

SpecValue
Parameters~2.29B
Context length32,768 tokens
Precisionbfloat16
LanguagesEnglish, German, Spanish, Portuguese, Italian, French, Chinese, Japanese
Knowledge cutoffDecember 2025
LicenseMIT

An MIT license is permissive. You can use the model in personal and commercial projects under that license's terms.

What do I need before I start?

The card does not publish minimum hardware requirements, so treat these as estimates from simple arithmetic. About 2.29 billion parameters at 2 bytes each is roughly 4.6 GB for the weights. You need that much free memory (GPU memory or system RAM), plus extra for the conversation itself. Longer inputs use more memory. A machine with a recent GPU will be faster, but device_map="auto" lets Transformers place the model on whatever hardware it finds.

Checklist:

  1. Python installed, ideally in a fresh virtual environment.
  2. PyTorch installed for your hardware.
  3. Transformers 5.x (the card says the model was exported with it).
  4. The accelerate package, which Transformers uses for device_map="auto".
  5. About 5 GB of free disk space for the download, and a free Hugging Face connection for the first run.
pip install --upgrade "transformers>=5" torch accelerate

If a version conflict appears, check the model page for current guidance. The card only says the export used 5.x.

How do I load the model with Transformers?

This is the quickstart from the model card.

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))

The first run downloads the weights, so expect a wait. After that, the files are cached locally and later runs start faster.

Why does it need trust_remote_code?

Aion Instruct uses a custom architecture. The repository includes configuration_aion_instruct.py and modeling_aion_instruct.py, which define the model classes. Setting trust_remote_code=True tells Transformers to run those Python files on your computer.

That is a real permission, so do the sensible thing. Open both files in the model repository and read them before you run anything, especially on a work machine. If your company restricts running downloaded code, ask IT first.

How does the chat format work?

The tokenizer's chat template builds the prompt for you, so you rarely write it by hand. The format looks like this:

<|system|>You are Aion Instruct, a large language model trained by Microsoft.
Knowledge cutoff: 2025-12
Current date: YYYY-MM-DD<|end|><|user|>Hello!<|end|><|assistant|>Hi! How can I help?<|end|>

What to know:

  • Every turn ends with <|end|>, which is also the end-of-sequence token.
  • If you add your own system message at the start, it is appended to the default system preamble. It does not replace it.
  • The template accepts optional variables: model_identity, knowledge_cutoff and current_date.

A practical prompt for this model is a clear task plus the text to work on. For example:

Summarize the email thread below in five bullet points.
List any deadlines separately at the end.

[paste thread here]

Instruction following is one of the model's stronger areas, so specific formatting requests tend to be a good use of it.

How does tool calling work?

Tool calling lets the model ask your code to do something, such as look up an order or check a calendar. You describe the available tools, the model decides when to call one, and your code runs it and sends back the result.

Per the card, you pass tools to the template with apply_chat_template(..., tools=tools). The schemas are placed in the system prompt between <|tool|> and <|/tool|>. The model then writes a call in this form:

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

Your code parses that JSON, runs the matching function, and returns the output as a message with role: "tool". The template places it inside a user turn prefixed with <|tool_response|>.

A sketch of the setup:

tools = [{
    "type": "function",
    "function": {
        "name": "get_order_status",
        "description": "Look up the status of an order by ID",
        "parameters": {
            "type": "object",
            "properties": {"order_id": {"type": "string"}},
            "required": ["order_id"],
        },
    },
}]

inputs = tokenizer.apply_chat_template(
    messages, tools=tools, add_generation_prompt=True,
    return_dict=True, return_tensors="pt",
).to(model.device)

Always validate what the model emits before running it. A small model can produce malformed JSON or call a tool with wrong arguments.

What can a 32K context window handle?

The context window is how much text the model can consider at once, covering your prompt and its answer. 32,768 tokens is roughly 24,000 words by the usual rule of thumb that a token is about three quarters of a word. That is enough for a long report, a multi-page contract or a lengthy email thread.

The card says the model processes these entirely on-device, so the text stays on your machine. Architecturally, it mixes 21 sliding-window attention layers (window of 2048) with 7 full-attention layers, which is how it covers long inputs at a smaller size. Quality on very long inputs is something to test on your own documents rather than assume.

Can I use Aion Instruct with GGUF, ONNX or Ollama?

Not yet, based on what the card says. It lists PyTorch, ONNX and GGUF as library names and states: "We are publishing the unquantized model first, to be followed by quantized versions." The files table shows only model.safetensors (bfloat16) plus config, tokenizer and custom code.

Quantization shrinks a model by storing its numbers at lower precision, which cuts memory use and often speeds it up, at some cost in quality. GGUF is the format that many desktop apps use, and ONNX is a common format for Windows-oriented runtimes. Until those files appear on the model page, Transformers is the supported route. Watch the Hugging Face page and the related GitHub repository, microsoft/Aion-Instruct-Preview-Sample, for updates.

How good is it, and where does it fall short?

Microsoft published benchmark scores run with EleutherAI's lm-evaluation-harness:

BenchmarkScoreWhat it measures
IFEval83.90Following explicit instructions
GSM8K74.91Grade-school math (loose matching)
MMLU55.15General knowledge
MATH-50048.00Harder math
GPQA28.18Graduate-level science questions
IFBench32.00Harder instruction following

The pattern is clear. It follows straightforward instructions well and handles basic math, but it struggles with hard reasoning and trivia. The card says so directly: small models "can miss fine details, provide misstatements, or show inability to follow complex multi-step reasoning," and this one "was not trained to excel at world knowledge."

Other limits from the card:

  • Output quality may differ by language. Multilingual data is about 6% of training data.
  • It may be susceptible to adversarial attacks, and the card names safety metrics (XPIA, DIC, ECI) as areas to improve.
  • It should not be used for automated decisions in critical contexts such as medical diagnoses or legal judgments.
  • It should not be used to generate harmful content or misinformation.

What does this mean for you?

If you work with documents or email all day (marketing, recruiting, finance, operations), the appeal is private summarizing and rewriting without sending text to an outside service. Today the setup needs some comfort with Python. If that is not you, ask a technical colleague to run the quickstart, or wait for the Windows release and quantized files.

If you are a manager or buyer, note the timeline. Microsoft says a further optimized version, paired with its content moderation model, becomes the Windows OS SLM by the end of January 2027. This Hugging Face release is a preview, so test it for fit but do not plan production around it yet.

What to do this week:

  1. Run the quickstart on a few non-sensitive documents.
  2. Test summaries and rewrites against your own judgment.
  3. Check every fact it states. Treat it as a drafting assistant, not a source.
  4. Send feedback on bad outputs to aioninstruct@microsoft.com, which the card invites.

Can I build a simple tool around a local model?

A model that runs in a Python script is a long way from something your team can use. A common next step is a small internal app, such as a form where colleagues paste a document and get a summary back, with a log of requests. With Remy, you describe that app in plain English and it builds and deploys the full-stack version, including login and a database. Remy can also reach local models over a secure tunnel, or use models you host yourself. That makes it one way to put a front end on a model you run, instead of passing scripts around by email.

Frequently Asked Questions

5 questions

Is Aion 1.0 Instruct 2.3B free to use?

Yes. It is released under the MIT license, which is permissive and allows commercial use under its terms. Running it locally costs only your own hardware and electricity.

Can I run it on a laptop without a GPU?

The card gives no hardware requirements, so we cannot promise it. The weights are roughly 4.6 GB, so you need enough memory for them plus the conversation. Transformers with device_map="auto" will use whatever hardware is available, but expect slower output without a GPU.

Does it work in languages other than English?

The card lists eight languages: English, German, Spanish, Portuguese, Italian, French, Chinese and Japanese. Microsoft notes that output quality may differ by language and that it is working to close the gaps.

When will quantized GGUF or ONNX versions be available?

The card says quantized versions will follow the unquantized release but gives no date for them. Check the Hugging Face model page for new files. The separate date in the card, end of January 2027, refers to the optimized Windows OS version.

Is it safe to use for sensitive decisions?

No. The card says not to use it for automated decision-making in critical contexts such as medical diagnoses or legal judgments. It is a small model that can make mistakes, so keep a person in charge of anything that matters.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.