Instructions to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16", 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("PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16
- SGLang
How to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16 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 "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16" \ --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": "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16", "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 "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16" \ --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": "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16 with Docker Model Runner:
docker model run hf.co/PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16
Aion-1.0-Instruct-2.3B NVFP4A16 (GPTQ, weights only)
NVFP4 quantization of microsoft/Aion-1.0-Instruct-2.3B, made by PureTensor from the official BF16 weights. Weights are 4-bit; activations stay 16-bit (W4A16). The file is 1.88 GB against 4.58 GB for BF16.
This is a test release. It is not affiliated with or endorsed by Microsoft.
Headline: on full MMLU and full GSM8K this checkpoint is statistically indistinguishable from the BF16 model. Its outputs are not identical: it picks the same next token as BF16 about 90% of the time. For the variant that also quantizes activations to 4 bits, and loses quality doing so, see PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4.
What was done
| Source | microsoft/Aion-1.0-Instruct-2.3B, BF16, model.safetensors sha256 6c779881...6984e |
| Format | compressed-tensors nvfp4-pack-quantized, scheme NVFP4A16: 4-bit E2M1 values, one FP8 E4M3 scale per group of 16, one FP32 scale per tensor |
| Quantized | the weights of every Linear layer in the 28 transformer blocks |
| Kept in BF16 | token embeddings and the tied output head, all norms, all activations |
| Method | GPTQ (block_size 128, dampening_frac 0.01, actorder static) |
| Calibration | 512 samples of mlabonne/open-perfectblend, up to 2,048 tokens each |
| Tools | llm-compressor 0.15.0, compressed-tensors 0.20.1, transformers 5.21.0, torch 2.14.1 |
Recipe:
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import GPTQModifier
recipe = GPTQModifier(targets="Linear", scheme="NVFP4A16", ignore=["lm_head"])
oneshot(
model=model, processor=tokenizer, recipe=recipe,
dataset="perfectblend", splits="train[:512]",
num_calibration_samples=512, max_seq_length=2048,
trust_remote_code_model=True,
)
model.save_pretrained(out_dir, save_compressed=True)
Measured quality
Everything below was measured by us in one harness, with the BF16 model as the reference. The saved checkpoint was reloaded from disk and matched the in-memory quantized model exactly (identical logits on 4,096 tokens).
| BF16 | This checkpoint | Change | Paired test | |
|---|---|---|---|---|
| MMLU, accuracy (14,042 questions) | 54.88 | 54.60 | -0.28 | 541 lost, 502 gained, p = 0.24 |
| GSM8K, exact match (1,319 problems) | 61.26 | 61.33 | +0.07 | 91 lost, 92 gained, p = 1.0 |
| WikiText-2 perplexity (131,072 tokens) | 11.39 | 11.73 | +0.34 |
The paired test is an exact McNemar test on per-question correctness. Neither difference is significant.
Agreement with BF16, token by token:
| Text | Tokens | Mean KL divergence | 99th percentile KL | Same top token |
|---|---|---|---|---|
| WikiText-2 test | 131,072 | 0.039 | 0.31 | 90.3% |
Chat (HuggingFaceH4/ultrachat_200k, test_sft, 256 conversations) |
224,534 | 0.022 | 0.16 | 92.8% |
Details:
- MMLU and GSM8K use the default
mmluandgsm8ktask configurations of lm-evaluation-harness 0.4.13, without a chat template. GSM8K is the flexible-extract score. Compare the two columns above with each other and not with the base model card, whose GSM8K setup differs. - KL divergence is computed on the full next-token distribution, teacher-forced, in windows of 1,024 tokens. The chat set uses the model's chat template.
How it compares with other 4-bit variants
All built by us from the same BF16 weights and scored the same way.
| Variant | 4-bit activations on | MMLU | GSM8K | KL, wiki | KL, chat |
|---|---|---|---|---|---|
| BF16 reference | none | 54.88 | 61.26 | 0 | 0 |
| GPTQ, weights only (this checkpoint) | none | 54.60 | 61.33 | 0.039 | 0.022 |
| GPTQ, mixed | q_proj, k_proj |
54.31 | 60.65 | 0.045 | 0.027 |
| GPTQ, mixed | q_proj, k_proj, o_proj |
54.37 | 59.29 | 0.055 | 0.034 |
| GPTQ, mixed | q_proj, k_proj, o_proj, down_proj |
54.02 | 57.62 | 0.064 | 0.042 |
| GPTQ, W4A4 (sibling repo) | all layers | 52.74 | 55.12 | 0.095 | 0.077 |
| Round-to-nearest, weights only | none | 52.65 | 50.34 | 0.098 | 0.281 |
| Expanded MSE scales, weights only | none | 52.32 | 53.37 | 0.098 | 0.263 |
Two things stand out. GPTQ matters far more than scale search: the two weights-only rows at the bottom use the same format and lose 2 to 11 points. And at this model size, 4-bit activations cost more than 4-bit weights: the more layers get them, the further quality falls.
Calibration caveat: of the 512 calibration samples, 180 are math word problems (MetaMathQA and Orca-Math; MetaMathQA is built from the GSM8K and MATH training sets) and 75 come from UltraChat, the dataset family our chat evaluation set is drawn from. The GSM8K and chat columns may therefore flatter the GPTQ rows. The MMLU and WikiText columns are unrelated to the calibration data.
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo, trust_remote_code=True, dtype=torch.bfloat16
).to("cuda")
msgs = [{"role": "user", "content": "Summarise the water cycle in two sentences."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True).to("cuda")
out = model.generate(**ids, max_new_tokens=128)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))
Requires compressed-tensors (pip install compressed-tensors) and trust_remote_code=True, as the base model does.
Limitations
- No engine serves this architecture natively yet. There is no vLLM implementation at the time of writing (2026-11-20). In Transformers the weights are expanded back to 16-bit at load, so this checkpoint saves disk and download size, not memory or time. We have not measured speed.
- Load in BF16. A float32 load failed in our test with a dtype mismatch.
- Two benchmarks are not everything. Token-level agreement with BF16 is about 90%, so individual answers do change. No safety, multilingual, or long-context evaluation was run on the quantized model.
- One model, one calibration draw, no repeated seeds.
License
MIT, as the base model. The original LICENSE is included. Changes from the base release: the Linear weights are quantized to NVFP4 and stored packed, and config.json gains a quantization_config block.
- Downloads last month
- 43
Model tree for PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16
Base model
microsoft/Aion-1.0-Instruct-2.3B