Text Generation
Transformers
Safetensors
aion_instruct
nvfp4
4-bit precision
compressed-tensors
llm-compressor
gptq
quantized
custom_code
conversational
8-bit precision
Instructions to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4 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-NVFP4 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-NVFP4", 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-NVFP4", 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-NVFP4 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-NVFP4" # 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-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4
- SGLang
How to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4 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-NVFP4" \ --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-NVFP4", "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-NVFP4" \ --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-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4 with Docker Model Runner:
docker model run hf.co/PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4
Point repository references at PureTensorAI
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ NVFP4 quantization of [microsoft/Aion-1.0-Instruct-2.3B](https://huggingface.co/
|
|
| 21 |
|
| 22 |
This is a test release. It is not affiliated with or endorsed by Microsoft.
|
| 23 |
|
| 24 |
-
**Update, same day:** the weights-only sibling [
|
| 25 |
|
| 26 |
**Read this first:** with 4-bit activations, a 2.3B model loses measurable quality. On our harness this checkpoint is 2.1 points below BF16 on MMLU and 6.1 points below on GSM8K, and both gaps are statistically significant. The numbers are below.
|
| 27 |
|
|
@@ -84,7 +84,7 @@ We built five NVFP4 variants from the same weights and scored them the same way.
|
|
| 84 |
|---|---|---:|---:|---:|---:|
|
| 85 |
| BF16 reference | 16-bit | 54.88 | 61.26 | 0 | 0 |
|
| 86 |
| **GPTQ (this checkpoint)** | 4-bit | **52.74** | **55.12** | **0.095** | **0.077** |
|
| 87 |
-
| GPTQ, weights only ([sibling repo](https://huggingface.co/
|
| 88 |
| Round-to-nearest | 4-bit | 50.55 | 45.56 | 0.175 | 0.327 |
|
| 89 |
| Expanded MSE scales | 4-bit | 50.67 | 47.31 | 0.148 | 0.311 |
|
| 90 |
| Round-to-nearest, weights only | 16-bit | 52.65 | 50.34 | 0.098 | 0.281 |
|
|
@@ -98,7 +98,7 @@ Calibration caveat: of the 512 calibration samples, 180 are math word problems (
|
|
| 98 |
import torch
|
| 99 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 100 |
|
| 101 |
-
repo = "
|
| 102 |
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
|
| 103 |
model = AutoModelForCausalLM.from_pretrained(
|
| 104 |
repo, trust_remote_code=True, dtype=torch.bfloat16
|
|
|
|
| 21 |
|
| 22 |
This is a test release. It is not affiliated with or endorsed by Microsoft.
|
| 23 |
|
| 24 |
+
**Update, same day:** the weights-only sibling [PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16](https://huggingface.co/PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16) is statistically indistinguishable from BF16 on the same benchmarks. Prefer it unless you specifically need 4-bit activations.
|
| 25 |
|
| 26 |
**Read this first:** with 4-bit activations, a 2.3B model loses measurable quality. On our harness this checkpoint is 2.1 points below BF16 on MMLU and 6.1 points below on GSM8K, and both gaps are statistically significant. The numbers are below.
|
| 27 |
|
|
|
|
| 84 |
|---|---|---:|---:|---:|---:|
|
| 85 |
| BF16 reference | 16-bit | 54.88 | 61.26 | 0 | 0 |
|
| 86 |
| **GPTQ (this checkpoint)** | 4-bit | **52.74** | **55.12** | **0.095** | **0.077** |
|
| 87 |
+
| GPTQ, weights only ([sibling repo](https://huggingface.co/PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4A16)) | 16-bit | 54.60 | 61.33 | 0.039 | 0.022 |
|
| 88 |
| Round-to-nearest | 4-bit | 50.55 | 45.56 | 0.175 | 0.327 |
|
| 89 |
| Expanded MSE scales | 4-bit | 50.67 | 47.31 | 0.148 | 0.311 |
|
| 90 |
| Round-to-nearest, weights only | 16-bit | 52.65 | 50.34 | 0.098 | 0.281 |
|
|
|
|
| 98 |
import torch
|
| 99 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 100 |
|
| 101 |
+
repo = "PureTensorAI/Aion-1.0-Instruct-2.3B-NVFP4"
|
| 102 |
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
|
| 103 |
model = AutoModelForCausalLM.from_pretrained(
|
| 104 |
repo, trust_remote_code=True, dtype=torch.bfloat16
|