Text Generation
ONNX Runtime GenAI
ONNX
qwen3
quantized
int4
w4a8
onnxruntime
webgpu
chat
conversational
Instructions to use warlockzero/Aion-1.0-Instruct-2.3B-int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ONNX Runtime GenAI
How to use warlockzero/Aion-1.0-Instruct-2.3B-int4 with ONNX Runtime GenAI:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Aion 1.0 Instruct 2.3B β INT4 W4A8 (ONNX WebGPU / Native)
Quantized INT4 W4A8 checkpoint of microsoft/Aion-1.0-Instruct-2.3B for on-device inference with near FP8 quality.
Model Highlights
- Architecture: Aion Instruct 28-layer hybrid attention (21 sliding-window + 7 full-attention layers).
- Parameters: 2.29 Billion.
- Quantization: Block-wise INT4 symmetric weights (
MatMulNBitswith block size 32) trained via Quantization-Aware Training (QAT). - Activations / Logits: FP16 / FP8 compatible.
- Memory Footprint: ~1.23 GB (compressed from 4.6 GB FP16).
- Runtime: ONNX Runtime GenAI (
onnxruntime-genai), WebGPU, or CPU.
Quantization Details
| Component | Scheme |
|---|---|
| Linear layers (attention q/k/v/o, MLP gate/up/down) | 4-bit symmetric block-wise weights (MatMulNBits, block size 32), QAT trained |
| Token embedding / tied LM head | 4-bit block-wise weights (GatherBlockQuantized, block size 64) |
| Activations, RMSNorm, Logits | FP16 |
| KV cache | FP16 |
| Effective Precision | INT4 W4A8 / W4A16 |
Quick Start with ONNX Runtime GenAI
import onnxruntime_genai as og
from huggingface_hub import snapshot_download
model_path = snapshot_download('warlockzero/Aion-1.0-Instruct-2.3B-int4')
config = og.Config(model_path)
config.clear_providers()
config.append_provider('cuda') # or 'webgpu' or omit for cpu
model = og.Model(config)
tokenizer = og.Tokenizer(model)
chat_template = open(f'{model_path}/chat_template.jinja', encoding='utf-8').read()
messages = '[{"role": "user", "content": "Explain quantum computing in one sentence."}]'
prompt = tokenizer.apply_chat_template(messages, template_str=chat_template, add_generation_prompt=True)
params = og.GeneratorParams(model)
params.set_search_options(max_length=512)
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)
Citation & License
Original base model released by Microsoft Windows Applied Sciences Group under MIT License.
- Downloads last month
- 18
Model tree for warlockzero/Aion-1.0-Instruct-2.3B-int4
Base model
microsoft/Aion-1.0-Instruct-2.3B