Downloads · 30 days
10
10% of all-time downloads
TevunahAi/Llama-3.1-70B-Instruct-Ultra-Hybrid
Llama-3.1-70B-Instruct-Ultra-Hybrid is a text generation model from TevunahAi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.1.
Enterprise-quality hybrid quantization with 2048-sample calibration (8x industry standard)
Downloads · 30 days
10
10% of all-time downloads
All-time downloads
100
Public
Parameters
21.7B
45.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors45.4 GB · 100%
How the weights are stored.
I3256.4B · 79%
From the Hugging Face model README
Enterprise-quality hybrid quantization with 2048-sample calibration (8x industry standard)
Status: ✅ Successfully quantized and validated
| Layer Type | Precision | Rationale |
|---|---|---|
| Embeddings | FP16 | Preserved for quality |
| First 2 Attention | FP8 | Foundation layers need precision |
| Middle Attention (Layers 2-78) | W8A8 (INT8) | Balanced performance |
| Last 2 Attention | FP8 | Output precision critical |
| ALL MLP Layers | W4A16 (INT4) | ~67% of parameters - massive savings |
| lm_head | FP16 | Output head preserved |
| LayerNorms | FP16 | Normalization layers preserved |
| Property | Value |
|---|---|
| Base Model | meta-llama/Llama-3.1-70B-Instruct |
| Method | Ultra Hybrid (W4A16 + W8A8 + FP8) |
| Final Model Size | 45.4GB |
| Compression Ratio | 68% vs FP16 (37% vs FP8) |
| Total Layers | 80 |
| Calibration Samples | 2,048 (Professional Grade) |
| Calibration Datasets | Open-Platypus, UltraChat-200k, OpenHermes-2.5, SlimOrca |
| Hardware | Dual Xeon Max 9480 (224 threads, 256GB HBM2e) + RTX 5000 Ada (32GB) |
| Optimizations | Intel AMX (Sapphire Rapids), TF32 (Ada Lovelace) |
| Quantization Time | ~20 hours |
| Throughput | 9-10 iterations/second (AMX-optimized) |
| Version | Size | Quality | Inference Speed | Notes |
|---|---|---|---|---|
| FP16 | ~140GB | 100% | Baseline | Original |
| FP8 | ~70GB | 98-99% | 1.5-2× faster | Full precision loss |
| INT8 | ~70GB | 97-98% | 1.8-2.2× faster | Slight degradation |
| INT4 | ~35GB | 95-97% | 2-3× faster | Noticeable loss |
| Ultra Hybrid | 45.4GB | 98-99% | 1.5-2× faster | Best of both worlds |
⚠️ IMPORTANT: This Ultra Hybrid quantization (INT4/INT8/FP8 mix) requires vLLM. Standard Transformers does not support this multi-precision scheme.
from vllm import LLM, SamplingParams
# Multi-GPU setup (recommended for production)
llm = LLM(
"TevunahAi/Llama-3.1-70B-Instruct-Ultra-Hybrid",
tensor_parallel_size=2,
gpu_memory_utilization=0.90,
)
# Single GPU with CPU offload (24GB+ VRAM)
# llm = LLM(
# "TevunahAi/Llama-3.1-70B-Instruct-Ultra-Hybrid",
# cpu_offload_gb=10,
# max_model_len=8192,
# gpu_memory_utilization=0.90,
# )
sampling_params = SamplingParams(temperature=0.7, top_p=0.9, max_tokens=256)
outputs = llm.generate(["Explain quantum computing:"], sampling_params)
print(outputs[0].outputs[0].text)
Why vLLM Only?
Unlike consumer-grade quantizations that use 256 calibration samples, TevunahAi uses 2,048 diverse samples (8x industry baseline) to ensure:
Minimum:
Recommended:
Optimal:
Production:
⚠️ vLLM Required: This model uses advanced multi-precision quantization (INT4/INT8/FP8) that requires vLLM's inference engine.
This Ultra Hybrid quantization represents a breakthrough in model compression:
Validated on TevunahAi's professional infrastructure:
This model inherits the Llama 3.1 Community License from Meta.
If you use this model in your research or applications, please cite:
@model{tevunahai2024llama31-70b-ultra-hybrid,
title={Llama-3.1-70B-Instruct-Ultra-Hybrid},
author={TevunahAi},
year={2024},
publisher={HuggingFace},
url={https://huggingface.co/TevunahAi/Llama-3.1-70B-Instruct-Ultra-Hybrid}
}