How Much To Run AI
Open weights

Aion 1.0 Instruct: Local Inference in Edge and WebGPU

Aion 1.0 Instruct is Microsoft’s open-weight 2.3B text model for short writing, summaries and document questions. In Edge, the browser manages model downloads and exposes the Prompt API behind an origin trial for live websites. The separate ONNX WebGPU export is a roughly 1.3 GB download. This guide explains which route to choose, how to check availability, and why its 32K context limit is not a promise that every laptop can run a full-length prompt comfortably.

Content reviewed:

Open Microsoft’s Aion 1.0 Instruct model card ↗
Aion runs on the user’s device in two ways: Microsoft Edge can download its built-in model when a feature needs it, or a developer can download the 1.3 GB ONNX WebGPU export. Local inference avoids a per-token cloud model charge.
The Edge browser model and the downloadable ONNX WebGPU artifact are separate ways to run Aion locally.

Use this model

See access details in the guide below.

What can you use Aion for?

  • Summarize an email thread or document on the device, without sending its text to a hosted model endpoint.
  • Use Aion 1.0 Instruct through Microsoft Edge for short rewriting, extraction, question-answering or structured text tasks.
  • Download the ONNX export when you need to choose the runtime and execution provider yourself.

What Aion 1.0 Instruct is designed to do

Aion 1.0 Instruct is a 2.3B text model for summarization, rewriting, extraction and structured responses. Microsoft lists eight languages: English, German, Spanish, Portuguese, Italian, French, Chinese and Japanese. The ONNX package allows up to 32,768 tokens, including the prompt and answer. Its runtime defaults to a smaller 4,096-token budget.

Aion 1.0 Instruct works best when the text needed for the answer is already on the device. For an invoice, give it the relevant page and ask for a fixed list of fields, then check the answer against the document. On long or multilingual inputs, include missing fields and ambiguous examples in your test set to see when the feature should hand off to a larger model.

DetailAion 1.0 Instruct
Model and task2.3B text-generation model
Languages in the model cardEnglish plus seven other languages
Maximum ONNX context32,768 tokens; default max length is 4,096
ONNX exportAbout 1.3 GB · MIT license

Choose the Aion 1.0 Instruct runtime that fits your project

Choose Edge for a browser feature where Microsoft can manage the download, updates and inference session. Choose the ONNX build of Aion 1.0 Instruct when you need to package a particular checkpoint, define the prompt format or select the execution provider yourself. The setup differs for each route, and both can run inference on the device.

Use Aion 1.0 Instruct in Microsoft Edge

For a live website, register its origin in the Microsoft Edge Origin Trials portal. Install the issued token in the Origin-Trial response header or in an origin-trial meta tag in the page head. Check the trial expiry and test the production hostname separately from localhost. An origin token lets supported Edge users try the API during the trial period.

For local testing, enable the Prompt API flag and check the device performance class in edge://on-device-internals. Microsoft lists Windows 10 or 11, macOS 13.3 or later, and x64 Linux with Vulkan on Edge 159 or later. The Edge preview requires at least 3 GB of VRAM, 20 GB of free storage on the Edge profile volume and an unmetered connection for the download. Edge removes the model if free space falls below 5 GB.

Check that the LanguageModel interface is present, then call availability(). It distinguishes a ready model from one that is downloadable, downloading or unavailable. Disable the feature or offer your fallback when the trial is missing or local AI is unavailable. A user gesture can start a session that downloads Aion 1.0 Instruct. Show download progress so users can tell a first-time install from a slow answer.

The Edge download is shared across sites in that browser. Test both a fresh installation and a warm request. Keep the Prompt API flag for local diagnosis, and check the published site with the origin token and normal browser settings before inviting users.

Check Prompt API and model availability before use
async function runLocalPrompt(userText, showFallback, showDownloadProgress) {
  if (!('LanguageModel' in self)) {
    showFallback();
    return null;
  }

  const availability = await LanguageModel.availability();
  if (availability === 'unavailable') {
    showFallback();
    return null;
  }

  let session;
  try {
    session = await LanguageModel.create({
      monitor: (monitor) => {
        monitor.addEventListener('downloadprogress', (event) => {
          showDownloadProgress(event.loaded, event.total);
        });
      },
    });
    return await session.prompt(userText);
  } catch {
    showFallback();
    return null;
  } finally {
    session?.destroy();
  }
}

Run Aion 1.0 Instruct with ONNX Runtime WebGPU

The Aion 1.0 Instruct ONNX package contains a decoder graph and an external weights file. Microsoft exports block-wise INT4 weights using quantization-aware training (QAT), which exposes the checkpoint to quantization effects during training. Those weights account for most of the roughly 1.3 GB download. Inference still uses FP16 activations and stores the key/value cache in FP16, so four-bit weights only reduce one part of the working memory.

In a native application, Microsoft’s ONNX Runtime GenAI sample selects the WebGPU execution provider explicitly. A compatible ONNX Runtime Web build can also use its WebGPU provider inside a browser. For CPU testing in the native example, Microsoft shows how to omit the provider-selection calls and use the default CPU path. Benchmark that path separately: WebGPU support depends on the runtime, browser and driver, and a successful load gives you no timing or memory result for the target workload.

For Aion 1.0 Instruct, the ONNX export defaults to a max_length of 4,096 for prompt and generated tokens together. Raising the limit increases the preallocated KV cache even when the first task is short. Use the smallest limit that fits representative prompts and answers. Before planning for 32K, compare peak memory, time to the first token and total response time at several input lengths with the same provider.

For a browser trial, start with a fresh profile and log the time to download and load the model separately from the time to the first token. Repeat the same prompt after the model is cached. Record the browser build, device and provider, and count initialization failures as well as completed runs. Measure Edge’s built-in Prompt API separately because Edge manages its own download and runtime.

Select the WebGPU execution provider in ONNX Runtime GenAI
config = og.Config(model_dir)
config.clear_providers()
config.append_provider("webgpu")
model = og.Model(config)

params = og.GeneratorParams(model)
# Keep prompt plus generated tokens within the intended budget.
params.set_search_options(max_length=4096)

What does Aion 1.0 Instruct cost to run?

The Edge Prompt API runs locally with no per-token model-service charge. For a self-managed Aion 1.0 Instruct build, budget the one-time model transfer, storage and device time. Measure first-run download time and steady-state memory separately to assess browser startup. If your product runs the weights on a rented server or sends unsupported requests to a hosted fallback, include those costs in the deployment budget.

The downloadable Aion 1.0 Instruct weights are MIT-licensed. If you bundle them with an application, retain the model license and account for the terms and distribution costs of the runtime you ship.

Before you use it

  • Microsoft describes the Edge Prompt API as experimental. Check fallback behavior when the trial expires, the model is unavailable or a local answer fails validation.

How to get started

Start with one bounded task. In Edge, measure the first download and a repeat request. For ONNX, record runtime version, execution provider, prompt length, peak memory and total response time. Use the same examples to compare Aion 1.0 Instruct with your current workflow.

Sources

Sources (5)

Calculators