Qwen3-Next-80B-A3B-Instruct-FP8
FP8 quantized MoE model with 80B total parameters, 3B active per token
This is an FP8 (E4M3) quantized version of
Qwen/Qwen3-Next-80B-A3B-Instruct using compressed_tensors format. Quantized by
TevunahAi on enterprise-grade hardware.
🎯 Recommended Usage: vLLM
For optimal performance with full FP8 benefits and efficient MoE routing, use vLLM or TensorRT-LLM :
Quick Start with vLLM
Python API:
1 from vllm import LLM , SamplingParams
2
3 # vLLM auto-detects FP8 from model config
4 llm = LLM ( model = "TevunahAi/Qwen3-Next-80B-A3B-Instruct-FP8" , dtype = "auto" )
5
6 # Generate
7 messages = [ { "role" : "user" , "content" : "Explain quantum computing" } ]
8 from transformers import AutoTokenizer
9 tokenizer = AutoTokenizer . from_pretrained ( "TevunahAi/Qwen3-Next-80B-A3B-Instruct-FP8" )
10 prompt = tokenizer . apply_chat_template ( messages , tokenize = False , add_generation_prompt = True )
11
12 sampling_params = SamplingParams ( temperature = 0.7 , max_tokens = 512 )
13 outputs = llm . generate ( [ prompt ] , sampling_params )
14
15 for output in outputs :
16 print ( output . outputs [ 0 ] . text )
OpenAI-Compatible API Server:
1 vllm serve TevunahAi/Qwen3-Next-80B-A3B-Instruct-FP8 \
2 --dtype auto \
3 --max-model-len 32768
Then use with OpenAI client:
1 from openai import OpenAI
2
3 client = OpenAI (
4 base_url = "http://localhost:8000/v1" ,
5 api_key = "token-abc123" , # dummy key
6 )
7
8 response = client . chat . completions . create (
9 model = "TevunahAi/Qwen3-Next-80B-A3B-Instruct-FP8" ,
10 messages = [
11 { "role" : "user" , "content" : "Explain quantum computing" }
12 ] ,
13 temperature = 0.7 ,
14 max_tokens = 512 ,
15 )
16
17 print ( response . choices [ 0 ] . message . content )
vLLM Benefits
✅ Weights, activations, and KV cache in FP8
✅ ~40GB VRAM (for 80B MoE model!)
✅ Native FP8 tensor core acceleration on Ada/Hopper GPUs
✅ Efficient MoE routing - only 3B active per token
✅ 80B model capability at 3B model speed
⚙️ Alternative: Transformers (Not Recommended)
This model can be loaded with transformers, but will decompress FP8 → BF16 during inference , requiring significant VRAM. For large MoE models, vLLM is strongly recommended .
Transformers Example (Click to expand)
1 from transformers import AutoModelForCausalLM , AutoTokenizer
2 import torch
3
4 # Loads FP8 weights but decompresses to BF16 during compute
5 model = AutoModelForCausalLM . from_pretrained (
6 "TevunahAi/Qwen3-Next-80B-A3B-Instruct-FP8" ,
7 device_map = "auto" ,
8 torch_dtype = "auto" ,
9 low_cpu_mem_usage = True ,
10 )
11 tokenizer = AutoTokenizer . from_pretrained ( "TevunahAi/Qwen3-Next-80B-A3B-Instruct-FP8" )
12
13 # Generate
14 messages = [ { "role" : "user" , "content" : "Explain quantum computing" } ]
15 text = tokenizer . apply_chat_template ( messages , tokenize = False , add_generation_prompt = True )
16 inputs = tokenizer ( [ text ] , return_tensors = "pt" ) . to ( model . device )
17
18 outputs = model . generate ( ** inputs , max_new_tokens = 512 )
19 print ( tokenizer . decode ( outputs [ 0 ] , skip_special_tokens = True ) )
Requirements:
pip install torch>=2.1.0 transformers>=4.40.0 accelerate compressed-tensors
System Requirements:
~80GB+ VRAM (decompressed to BF16)
H100 80GB or multi-GPU setup
Not practical for most deployments
⚠️ Warning: vLLM is the recommended deployment method for MoE models.
📊 Quantization Details
Property Value Base Model Qwen/Qwen3-Next-80B-A3B-Instruct Architecture Mixture of Experts (MoE) Total Parameters 80B Active per Token 3B Quantization Method FP8 E4M3 weight-only Framework llm-compressor + compressed_tensors Calibration Dataset open_platypus (512 samples) Storage Size ~40GB (sharded safetensors) VRAM (vLLM) ~40GB VRAM (Transformers) ~80GB+ (decompressed to BF16) Target Hardware NVIDIA H100, A100 80GB, RTX 6000 Ada Quantization Time 204 minutes (2.55 min/B)
Quantization Infrastructure
Professional hardware ensures consistent, high-quality quantization:
CPUs: Dual Intel Xeon Max 9480 (112 cores / 224 threads, 128GB HBM2e)
GPU: NVIDIA RTX 5000 Ada Generation (32GB VRAM, native FP8 support)
Memory: 256GB DDR5 + 128GB HBM2e = 384GB total system memory
Software Stack: Ubuntu 25.10 | Python 3.12 | PyTorch 2.8 | CUDA 13.0 | llm-compressor
🔧 Why FP8 for MoE Models?
With vLLM/TensorRT-LLM:
✅ 50% memory reduction vs BF16 (~80GB → ~40GB)
✅ Single high-end GPU deployment possible
✅ Faster inference via native FP8 tensor cores
✅ Efficient MoE routing - optimal for sparse activation
✅ 80B capability at 3B speed - best of both worlds
The MoE Advantage:
Total Parameters: 80B (full model capability)
Active Parameters: 3B per token (fast inference)
Memory: ~40GB with FP8 (accessible on consumer prosumer GPUs)
Speed: Similar to dense 3B models
Quality: Comparable to dense 80B models
FP8 + MoE = flagship model performance on workstation hardware.
💾 Model Files
This model is sharded into multiple safetensors files (all required for inference). The compressed format enables efficient storage and faster downloads.
🚀 Qwen3-Next MoE Architecture
Qwen3-Next uses an advanced Mixture of Experts (MoE) architecture:
How it works:
80B total parameters split across expert networks
Router network selects which experts to activate
3B active parameters per token (sparse activation)
Result: 80B model knowledge with 3B model speed
Benefits:
✅ Massive parameter count without massive compute
✅ Specialist experts for different types of knowledge
✅ Better quality-per-parameter ratio than dense models
✅ More accessible than equivalent dense models
🔬 Quality Assurance
Professional calibration: 512 diverse samples
Validation: Tested on various benchmarks
Format: Standard compressed_tensors for broad compatibility
MoE optimization: Validated expert routing efficiency
📚 Original Model
This quantization is based on
Qwen/Qwen3-Next-80B-A3B-Instruct by the Qwen team.
For comprehensive information about:
Model architecture and training methodology
MoE routing mechanisms
Evaluation benchmarks and results
Supported languages and tasks
Ethical considerations
Please refer to the
original model card .
🔧 Hardware Requirements
Minimum (vLLM):
GPU: NVIDIA A100 40GB or RTX 6000 Ada (48GB)
VRAM: 40GB minimum
CUDA: 11.8 or newer
Recommended (vLLM):
GPU: NVIDIA H100 (80GB) / A100 80GB / RTX 6000 Ada (48GB)
VRAM: 48GB+
CUDA: 12.0+
Transformers:
GPU: H100 80GB or multi-GPU setup
VRAM: 80GB+ total
Not recommended - use vLLM instead
📖 Additional Resources
📄 License
This model inherits the Apache 2.0 License from the original Qwen3-Next model.
🙏 Acknowledgments
Original Model: Qwen team at Alibaba Cloud
Quantization Framework: Neural Magic's llm-compressor
Quantized by: TevunahAi
📝 Citation
If you use this model, please cite the original Qwen work:
1 @misc{qwen3next2024,
2 title={Qwen3-Next: Next Generation of Qwen Models},
3 author={Qwen Team},
4 year={2024},
5 url={https://huggingface.co/Qwen/Qwen3-Next-80B-A3B-Instruct}
6 }
Professional AI Model Quantization by TevunahAi
Making flagship MoE models accessible through enterprise-grade quantization