Skip to main content
MindStudio
Pricing
BlogAbout
My Workspace
run Aion Instruct locallyAion 2.3B transformersMicrosoft SLM local setup

How to Run Microsoft's Aion-1.0-Instruct Locally

A practical guide to running Microsoft's 2.3B Aion Instruct model locally via Transformers, with chat template and tool-calling setup.

Edited by Luis Chavez-Mattos, Director of Product RSS
How to Run Microsoft's Aion-1.0-Instruct Locally

What is Aion-1.0-Instruct and why run it locally?

Aion-1.0-Instruct is a 2.3 billion parameter small language model built by Microsoft’s Windows Applied Sciences Group, designed to run on-device rather than in the cloud. It’s the preview version of what Microsoft says will become the Windows OS SLM (paired with a separate content moderation model) by the end of January 2027. Running it locally means text generation, summarization, and basic tool-calling workflows happen on your own hardware, with no API key, no per-token billing, and no data leaving the machine.

Because it’s released on Hugging Face under the MIT license, you can download and run it today using standard Python tooling. This guide covers what the model actually is, how to get it running with Transformers, and what to expect in terms of performance and limitations.

TL;DR

  • Aion-1.0-Instruct is a 2.3B-parameter causal language model from Microsoft, built as the small-model foundation for an upcoming Windows on-device AI feature.
  • The model supports a 32,768-token context window, enough for multi-page documents or long email threads processed entirely on-device.
  • It ships with custom modeling code, so loading it requires trust_remote_code=True and a recent version of the transformers library (5.x was used for export).
  • Microsoft lists PyTorch, ONNX, and GGUF as supported library formats, though the initial Hugging Face release is unquantized, with quantized versions to follow.
  • The model uses a distinctive hybrid attention pattern (21 sliding-window layers plus 7 full-attention layers with YaRN scaling) that keeps memory use low at long context lengths.
  • Built-in tool-calling support lets you pass function schemas through the chat template and parse structured <|tool_call|> outputs directly.
  • Benchmark scores show it’s solid at instruction following (83.9 on IFEval) but modest at broad world knowledge (55.15 on MMLU), consistent with its role as a small, on-device assistant rather than a general knowledge engine.
describe your app

› Build a credit limit review app for 800 relationship managers

Live URL today. Role-based access, audit trail and SSO come built in.

How do you set up Aion Instruct with Transformers?

The fastest path to running Aion-1.0-Instruct is Hugging Face’s transformers library. The model card provides a working quickstart script, and the setup is close to any other causal LM you’d load with AutoModelForCausalLM.

A few things matter here specifically:

  1. trust_remote_code=True is mandatory. Aion Instruct uses custom modeling code (modeling_aion_instruct.py and configuration_aion_instruct.py) rather than a stock architecture already built into transformers. Without this flag, the model won’t load.
  2. Use a current transformers version. The model was exported with transformers 5.x. Older installations may not handle the custom config and tokenizer correctly.
  3. Let device_map="auto" and dtype="auto" handle placement. At 2.3B parameters in bfloat16, the model fits comfortably on a single modern GPU, and even runs on CPU for lower-throughput testing, though GPU inference will be dramatically faster for anything beyond short prompts.

Here’s the core loading and generation pattern:

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

This mirrors Microsoft’s own quickstart example, with apply_chat_template handling the formatting so you don’t have to construct the special tokens by hand.

How does the chat template and tool-calling format work?

Aion Instruct uses a structured chat format built around explicit turn markers. Every message ends in <|end|>, which doubles as the end-of-sequence token. A typical formatted conversation 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|>

The template accepts optional variables (model_identity, knowledge_cutoff, current_date) that get merged into the default system preamble, so you can customize the assistant’s persona or inject the current date without hand-editing the prompt.

Tool calling is built directly into the template. Pass a list of tool schemas to apply_chat_template(..., tools=tools), and those definitions get inserted into the system prompt wrapped in <|tool|> and <|/tool|> tags. When the model decides to call a function, it emits output in this format:

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

Your application code is responsible for parsing that JSON, executing the actual function, and feeding the result back. Tool results get returned to the model as a role: "tool" message, which the template wraps in <|tool_response|> inside a user turn. This is a fairly standard pattern for structured function-calling in small instruction-tuned models, and it means you can wire Aion Instruct into local agent loops without needing a separate function-calling fine-tune.

What formats are available (PyTorch, ONNX, GGUF)?

Build a purchaseapproval app for2,000 storemanagers

One prompt. Role-based access, audit trail and SSO come built in.

The model card lists three library formats: PyTorch, ONNX, and GGUF. At initial release, Microsoft published the unquantized PyTorch weights (model.safetensors in bfloat16) first, explicitly stating that quantized versions would follow. That means if you’re looking for a GGUF file to run through llama.cpp or a similar local-inference engine today, it may not yet be available, check the repository directly for the current file listing before assuming a format exists.

For most developers getting started now, PyTorch via transformers is the practical entry point since it’s what the published quickstart code targets. ONNX export would be useful for Windows-native or cross-platform deployment scenarios, consistent with the model’s stated purpose as the basis for an in-OS feature, but again depends on what’s actually been uploaded at the time you check.

What are the model’s specs and limitations?

Under the hood, Aion-1.0-Instruct is a 28-layer transformer with a hidden size of 2048 and roughly 2.29B parameters (using tied input/output embeddings to save memory). It uses grouped-query attention (24 query heads, 8 key/value heads) and a hybrid attention pattern: 21 layers use sliding-window attention with a 2048-token window, while 7 layers use full attention extended via YaRN scaling to support the full 32,768-token context. This hybrid design is a common technique for keeping long-context inference cheaper without sacrificing the ability to attend across the whole input when needed.

On benchmarks, the model scores 55.15 on MMLU and 33.35 on MMLU-Pro, reflecting limited world knowledge storage, expected for a model this size. It performs better on structured tasks: 83.90 on IFEval (instruction following) and 74.91 on GSM8K (grade-school math). Microsoft’s own model card is candid about the tradeoffs: small models like this one “can miss fine details, provide misstatements, or show inability to follow complex multi-step reasoning,” and the card explicitly flags susceptibility to adversarial prompting as an area for improvement.

Training data extends from the dataset used for Phi Silica, the prior-generation Windows SLM, mixing filtered public documents with synthetic data for math, coding, and common-sense reasoning. Multilingual data makes up about 6% of the total, across eight supported languages. The knowledge cutoff is December 2025.

Is Aion Instruct worth running locally?

For developers building on-device assistants, summarization tools, or local agents that need tool-calling without cloud dependency, Aion Instruct is a reasonable choice specifically because it’s small, fast, and MIT-licensed. Its 32K context window and native tool-calling format make it usable for real document-processing or agentic workflows on modest hardware.

It is not a substitute for a large frontier model when the task requires deep world knowledge, nuanced reasoning, or resistance to adversarial inputs. Microsoft is explicit that the model “was not trained to excel at world knowledge” and recommends evaluating it carefully before using it in any high-risk or decision-critical context. Treat it as what it’s billed to be: a foundation for lightweight, private, on-device text tasks, not a general-purpose knowledge engine.

Frequently Asked Questions

Do I need a GPU to run Aion-1.0-Instruct locally?

No, but it helps. At 2.3B parameters in bfloat16, the model is small enough to run on CPU for testing, though generation will be slow. A single consumer GPU handles it comfortably and gives far better throughput, especially at longer context lengths.

Why does loading the model require trust_remote_code=True?

prompt

Build a credit limit review app for 800 relationship managers

SSO and role access verifiedLive

Role-based access, audit trail and SSO built in.

Aion Instruct uses a custom model architecture defined in its own Python files (modeling_aion_instruct.py, configuration_aion_instruct.py) rather than an architecture already built into the transformers library. Setting trust_remote_code=True tells transformers to execute that custom code when loading the model.

Is there a quantized or GGUF version available?

Microsoft’s model card states the unquantized PyTorch weights were published first, with quantized versions to follow. GGUF and ONNX are listed as supported library formats, but availability depends on what’s been uploaded to the repository at any given time.

Can Aion Instruct call external tools or functions?

Yes. The chat template supports passing tool schemas through apply_chat_template(..., tools=tools). The model emits structured <|tool_call|> outputs with a function name and JSON arguments, and results are fed back as tool-role messages in the conversation.

How does Aion Instruct compare to larger language models?

It trades broad world knowledge and complex multi-step reasoning for speed, privacy, and a small footprint. Benchmark scores (55.15 on MMLU, 83.90 on IFEval) show it follows instructions well but has clear limits on factual recall and nuanced reasoning compared to much larger models.

Editorial standards

Presented by MindStudio

No spam. Unsubscribe anytime.