Run this model with HF Jobs
Run microsoft/Aion-1.0-Instruct-2.3B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/microsoft/Aion-1.0-Instruct-2.3B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/microsoft/Aion-1.0-Instruct-2.3B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/microsoft/Aion-1.0-Instruct-2.3B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/microsoft/Aion-1.0-Instruct-2.3B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use microsoft/Aion-1.0-Instruct-2.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/Aion-1.0-Instruct-2.3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="microsoft/Aion-1.0-Instruct-2.3B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("microsoft/Aion-1.0-Instruct-2.3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use microsoft/Aion-1.0-Instruct-2.3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "microsoft/Aion-1.0-Instruct-2.3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "microsoft/Aion-1.0-Instruct-2.3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/microsoft/Aion-1.0-Instruct-2.3B
- SGLang
How to use microsoft/Aion-1.0-Instruct-2.3B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "microsoft/Aion-1.0-Instruct-2.3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "microsoft/Aion-1.0-Instruct-2.3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "microsoft/Aion-1.0-Instruct-2.3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "microsoft/Aion-1.0-Instruct-2.3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use microsoft/Aion-1.0-Instruct-2.3B with Docker Model Runner:
docker model run hf.co/microsoft/Aion-1.0-Instruct-2.3B
CMF files for cortiq (Rust, no Python): 8-bit, 4-bit and a fixed-memory Turbo; CUDA, Vulkan, Metal, CPU
Hi, and thank you for releasing Aion-1.0-Instruct under MIT.
Support for the model is out in cortiq 0.9.9, a Rust inference engine with no Python and no ML framework. The weights are packaged as single CMF files:
- infosave/Aion-1.0-Instruct-2.3B-cmf: an 8-bit file (2.31 GB) and a 4-bit GPTQ file (1.41 GB). WikiText-2 perplexity is 14.25 and 14.61 against 14.24 for Transformers bf16 on the same windows, and the greedy answers of the 8-bit file match Transformers word for word.
- infosave/Aion-1.0-Instruct-2.3B-Turbo-cmf: the 4-bit weights with a fixed-size far field for the 7 full-attention layers, so over Vulkan the card holds 3.5 GB and 80 tok/s from an 8 192-token prompt to a 30 000-token one (the standard 4-bit file: 4.6 GB and 53 tok/s at 30 000).
Measured on an NVIDIA L4 (24 GB) with the 4-bit file: 129 tok/s through CUDA and 110 tok/s over Vulkan, a 2048-token prompt read in 0.33 s. A MacBook Air M4 writes 60 tok/s through Metal. The model's own chat template and its <|tool_call|> tool calls work through the OpenAI-compatible server (cortiq serve).
cargo install cortiq-cli
hf download infosave/Aion-1.0-Instruct-2.3B-cmf Aion-1.0-Instruct-2.3B-q8_2f.cmf --local-dir .
cortiq run Aion-1.0-Instruct-2.3B-q8_2f.cmf --prompt "Summarize in three bullet points: ..."
If anything in the conversion looks off against the reference, I would be glad to hear it.
Thank you for your contribution!
Would you mind running the evals on your devices so we have a clear comparison?
Thanks for asking! Here is your card's table on our stand, with the same prompts and settings in every column:
| benchmark | setting | your card | bf16 (Transformers) | q8_2f | q4tp |
|---|---|---|---|---|---|
| MMLU | 0-shot | 55.15 | 54.87 | 55.14 | 54.55 |
| MMLU-Pro | 5-shot (Open LLM Leaderboard task) | 33.35 | 32.27 | 32.46 | 31.24 |
| GSM8K | 5-shot as chat turns, answers up to 1024 tokens, flexible match | 74.91 | 71.95 | 71.57 | 68.99 |
| IFEval | 0-shot, chat; mean of prompt- and instruction-level strict | 83.90 | 81.73 | 81.36 | 79.50 |
- lm-evaluation-harness 0.4.13 on an NVIDIA L4 (q4tp MMLU-Pro on an RTX 3060, where q8_2f gives the same 32.46). The bf16 column is Transformers 5.22.1; the CMF files run in cortiq 0.9.26 on CUDA, loglikelihood through
cortiq loglikand generation throughcortiq serve, greedy. Chat turns use the model's own template with a fixed date. - Your exact harness settings are not on the card, so the bf16 column is the point of comparison. On GSM8K the harness's default 256-token answer limit cut 86 of 1 319 bf16 answers, so every column uses 1024.
- The Turbo file is the q4tp weights and reads prompts under 8 192 tokens exactly, so its scores are q4tp's.
- Not in this pass: MMMLU, GSMPlus and MATH-500 (long runs), GPQA (gated dataset), IFBench and Multi-IF (outside lm-eval), chrF++ (the card does not name the dataset).
- One thing we ran into: with Transformers 5.25.1 the model's remote code turns cached generation into garbled text ("Let's in truth is a a a a…"); 5.22.1 is fine.
Scripts and settings: https://github.com/infosave2007/cmf/pull/220