Model reference · open weights

Aion-1.0-Instruct-2.3B-ONNX-WebGPU

NEW · this week LLMs microsoft Text gen 1 build Open weights 0 dl/mo

Aion-1.0-Instruct-2.3B-ONNX-WebGPU is an open-weight language model from microsoft.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Aion-1.0-Instruct-2.3B-ONNX-WebGPU is a text generation model by Microsoft that runs on target hardware via WebGPU.
  • It supports a context length of 32,768 tokens and eight languages including English, German, and Chinese.
  • The model uses INT4 quantization, has a size of approximately 1.3 GB, and is released under the MIT license.

Summary of the microsoft/Aion-1.0-Instruct-2.3B-ONNX-WebGPU model card, 2026-11-19

What it is

Released bymicrosoft
Released2026-11-18

From the model card

What microsoft says about Aion-1.0-Instruct-2.3B-ONNX-WebGPU

Read the model card

Microsoft Windows Applied Sciences Group

This repository contains the ONNX WebGPU quantized version of Aion Instruct v1. For the full model description, intended uses, limitations, safety information and evaluation results, see the original model card: microsoft/Aion-1.0-Instruct-2.3B.

Model Details

Base modelmicrosoft/Aion-1.0-Instruct-2.3B
FormatONNX (opset 21, com.microsoft contrib ops)
Target hardwareGPU via WebGPU (browser and native)
RuntimeONNX Runtime GenAI / ONNX Runtime (Web) with the WebGPU execution provider
QuantizationINT4 weights (block-wise, QAT), FP16 activations and KV cache
Model size~1.3 GB
Parameters~2.29B (base model)
Context length32,768 tokens
LanguagesEnglish, German, Spanish, Portuguese, Italian, French, Chinese, Japanese
LicenseMIT

Quantization Details

ComponentScheme
Linear layers (attention q/k/v/o, MLP gate/up/down)4-bit symmetric block-wise weights (MatMulNBits, block size 32), exported from a quantization-aware-trained (QAT) checkpoint
Token embedding / tied LM head4-bit block-wise weights (GatherBlockQuantized / MatMulNBits, block size 64)
Activations, norms, logitsFP16
KV cacheFP16
AttentionGroupQueryAttention with fused RoPE; 21 sliding-window layers (window 2048) + 7 full-attention layers

The model is a single ONNX decoder graph (opset 21 + com.microsoft contrib ops) with an FP16 KV cache, so it runs on any ONNX Runtime build that provides the WebGPU execution provider, including ONNX Runtime Web in the browser.

Usage

Run with ONNX Runtime GenAI using the WebGPU execution provider. onnxruntime-genai is installed with --no-deps so that it uses the WebGPU build of ONNX Runtime instead of the default CPU build:

hf download microsoft/Aion-1.0-Instruct-2.3B-ONNX-WebGPU --local-dir Aion-Instruct-v1-ONNX-WebGPU
pip install numpy onnxruntime-webgpu==1.27.0
pip install --no-deps onnxruntime-genai==0.14.1
import onnxruntime_genai as og

model_dir = "Aion-Instruct-v1-ONNX-WebGPU"
config = og.Config(model_dir)
config.clear_providers()
config.append_provider("webgpu")
model = og.Model(config)
tokenizer = og.Tokenizer(model)

chat_template = open(f"{model_dir}/chat_template.jinja", encoding="utf-8").read()
messages = '[{"role": "user", "content": "Give me a short introduction to large language models."}]'
prompt = tokenizer.apply_chat_template(messages, template_str=chat_template, add_generation_prompt=True)

params = og.GeneratorParams(model)
params.set_search_options(max_length=4096)
generator = og.Generator(model, params)
generator.append_tokens(tokenizer.encode(prompt))

stream = tokenizer.create_stream()
while not generator.is_done():
    generator.generate_next_token()
    print(stream.decode(generator.get_next_tokens()[0]), end="", flush=True)

max_length (prompt + generated tokens) defaults to 4,096 in genai_config.json; it can be raised up to the model's 32,768-token context, at the cost of a larger pre-allocated KV cache. To run on CPU instead, omit the clear_providers / append_provider calls.

Files

FileDescription
model.onnxONNX decoder graph
model.onnx.dataQuantized weights (external data, ~1.3 GB)
genai_config.jsonONNX Runtime GenAI configuration
config.json, generation_config.jsonModel and generation configuration
tokenizer.json, tokenizer_config.jsonTokenizer
chat_template.jinjaChat template
LICENSEMIT License

Inputs and outputs

NameTypeShape
input_idsint64[batch, sequence_length]
attention_maskint64[batch, total_sequence_length]
past_key_values.{0..27}.key / .valuefloat16[batch, 8, past_sequence_length, 128]
logits (output)float16[batch, 1, 200029] (last position only)
present.{0..27}.key / .value (outputs)float16[batch, 8, total_sequence_length, 128]

Chat Format

This quantized model uses the same chat template as the base model. See the Chat Format section of the original model card.

Evaluation

Quantization can affect output quality. Quality relative to the bfloat16 base model will be reported here. For the reference results of the unquantized model, see the Evaluation section of the original model card.

Bias, Risks, and Limitations

This model inherits all limitations of the base model, and quantization may introduce additional quality degradation. Please read the Bias, Risks, and Limitations section and the Out-of-Scope Use section of the original model card before using this model.

Other Versions

VersionLink
Original (bfloat16, Transformers)microsoft/Aion-1.0-Instruct-2.3B
GGUF (llama.cpp)asgmodels/Aion-Instruct-v1-GGUF
ONNX (WebGPU)microsoft/Aion-1.0-Instruct-2.3B-ONNX-WebGPU
ONNX (NPU)asgmodels/Aion-Instruct-v1-ONNX-NPU

License

This model is released under the MIT License, the same

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms