Text Generation
Transformers
Safetensors
apertus
fp8
quantized
instruct
llmcompressor
vllm
premium-quality
2048-calibration
conversational
compressed-tensors
Instructions to use TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8") model = AutoModelForCausalLM.from_pretrained("TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8
- SGLang
How to use TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8 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 "TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8" \ --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": "TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8", "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 "TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8" \ --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": "TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8 with Docker Model Runner:
docker model run hf.co/TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,33 +16,98 @@ pipeline_tag: text-generation
|
|
| 16 |
|
| 17 |
# Apertus-70B-Instruct-2509-2048-Calibration-FP8
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
### With Transformers
|
| 35 |
```python
|
| 36 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 37 |
import torch
|
| 38 |
|
|
|
|
| 39 |
model = AutoModelForCausalLM.from_pretrained(
|
| 40 |
"TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8",
|
| 41 |
-
|
| 42 |
-
|
| 43 |
low_cpu_mem_usage=True,
|
| 44 |
)
|
| 45 |
-
|
| 46 |
tokenizer = AutoTokenizer.from_pretrained("TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8")
|
| 47 |
|
| 48 |
# Generate
|
|
@@ -54,18 +119,37 @@ outputs = model.generate(**inputs, max_new_tokens=512)
|
|
| 54 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 55 |
```
|
| 56 |
|
| 57 |
-
|
| 58 |
-
```
|
| 59 |
-
|
|
|
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
|
|
|
|
|
|
| 63 |
|
| 64 |
-
|
| 65 |
-
outputs = llm.generate(prompts, sampling_params)
|
| 66 |
-
```
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
This model was quantized using TevunahAi's **premium multi-dataset calibration process**:
|
| 71 |
|
|
@@ -77,85 +161,158 @@ This model was quantized using TevunahAi's **premium multi-dataset calibration p
|
|
| 77 |
|
| 78 |
| Dataset | Samples | Purpose |
|
| 79 |
|---------|---------|---------|
|
| 80 |
-
| Open-Platypus | 512 | STEM reasoning and logic |
|
| 81 |
-
| UltraChat-200k | 512 | Natural conversations |
|
| 82 |
-
| OpenHermes-2.5 | 512 | Instruction following |
|
| 83 |
-
| SlimOrca | 512 | Diverse general tasks |
|
| 84 |
|
| 85 |
### Why Premium Calibration?
|
| 86 |
|
| 87 |
Most FP8 quantizations use 128-512 samples from a single dataset. TevunahAi uses **2,048 samples across 4 diverse datasets**, ensuring:
|
| 88 |
|
| 89 |
-
- ✅ Superior robustness across task types
|
| 90 |
-
- ✅ Better statistical coverage for quantization scales
|
| 91 |
-
- ✅ Minimal quality loss compared to FP16
|
| 92 |
-
- ✅ Production-grade reliability
|
| 93 |
-
- ✅ Consistent performance on edge cases
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
-
##
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
-
|
| 100 |
-
- **Precision:** FP8 (E4M3 format)
|
| 101 |
-
- **Hardware Requirements:** NVIDIA Ada Lovelace or Hopper (native FP8) or Ampere with emulation
|
| 102 |
-
- **VRAM Usage:** ~70GB (fits on 2x RTX 4090 or 1x A100 80GB)
|
| 103 |
|
| 104 |
-
##
|
| 105 |
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
- **CPUs:** Dual Intel Xeon Max 9480 (224 threads, 128GB HBM2e @ 2000 GB/s)
|
| 109 |
- **Memory:** 256GB DDR5-4800 (16 DIMMs, 8-channel per socket, ~614 GB/s)
|
| 110 |
- **Total Memory Bandwidth:** ~2,614 GB/s aggregate
|
| 111 |
-
- **
|
| 112 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
-
|
| 115 |
|
| 116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
-
|
| 119 |
-
- **Memory during quantization:** ~115GB (leveraging HBM2e + DDR5)
|
| 120 |
-
- **Memory reduction:** ~140GB FP16 → ~70GB FP8 (~50% reduction)
|
| 121 |
-
- **Inference speed:** 2-3x faster on Ada Lovelace GPUs vs FP16
|
| 122 |
|
| 123 |
-
##
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
-
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
-
|
| 128 |
-
-
|
| 129 |
-
-
|
| 130 |
-
-
|
| 131 |
|
| 132 |
-
##
|
| 133 |
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
-
##
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
---
|
| 143 |
|
| 144 |
-
## Why TevunahAi
|
| 145 |
|
| 146 |
### The Difference is in the Details
|
| 147 |
|
| 148 |
-
| Aspect | Standard FP8 | TevunahAi
|
| 149 |
-
|--------|--------------|----------------------
|
| 150 |
-
| Calibration Samples | 128-512 | **2,048** |
|
| 151 |
-
| Datasets | Single | **4 diverse** |
|
| 152 |
-
|
|
| 153 |
-
|
|
| 154 |
-
|
|
|
|
|
|
|
|
| 155 |
|
| 156 |
### Professional Infrastructure
|
| 157 |
|
| 158 |
- **2.6 TB/s** aggregate memory bandwidth
|
|
|
|
| 159 |
- **2,048 samples** across 4 complementary datasets
|
| 160 |
- **Quality-first** approach over speed
|
| 161 |
- **Enterprise-ready** results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Apertus-70B-Instruct-2509-2048-Calibration-FP8
|
| 18 |
|
| 19 |
+
**Premium FP8 quantization with 2,048-sample calibration across 4 diverse datasets**
|
| 20 |
|
| 21 |
+
This is a **premium FP8 quantized version** of [swiss-ai/Apertus-70B-Instruct-2509](https://huggingface.co/swiss-ai/Apertus-70B-Instruct-2509) featuring rigorous multi-dataset calibration for production-grade reliability. Quantized by [TevunahAi](https://huggingface.co/TevunahAi) on enterprise-grade hardware.
|
| 22 |
|
| 23 |
+
## 🎯 Recommended Usage: vLLM (Required)
|
| 24 |
+
|
| 25 |
+
For 70B models, **vLLM is essential** for practical deployment. Premium FP8 quantization makes this flagship model accessible on high-end consumer GPUs.
|
| 26 |
+
|
| 27 |
+
### Quick Start with vLLM
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
pip install vllm
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
**Python API:**
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from vllm import LLM, SamplingParams
|
| 37 |
+
|
| 38 |
+
# vLLM auto-detects FP8 from model config
|
| 39 |
+
llm = LLM(model="TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8", dtype="auto")
|
| 40 |
+
|
| 41 |
+
# Generate
|
| 42 |
+
messages = [{"role": "user", "content": "Explain quantum computing"}]
|
| 43 |
+
from transformers import AutoTokenizer
|
| 44 |
+
tokenizer = AutoTokenizer.from_pretrained("TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8")
|
| 45 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 46 |
+
|
| 47 |
+
sampling_params = SamplingParams(temperature=0.7, max_tokens=512)
|
| 48 |
+
outputs = llm.generate([prompt], sampling_params)
|
| 49 |
|
| 50 |
+
for output in outputs:
|
| 51 |
+
print(output.outputs[0].text)
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
**OpenAI-Compatible API Server:**
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
vllm serve TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8 \
|
| 58 |
+
--dtype auto \
|
| 59 |
+
--max-model-len 8192
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
Then use with OpenAI client:
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
from openai import OpenAI
|
| 66 |
+
|
| 67 |
+
client = OpenAI(
|
| 68 |
+
base_url="http://localhost:8000/v1",
|
| 69 |
+
api_key="token-abc123", # dummy key
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
response = client.chat.completions.create(
|
| 73 |
+
model="TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8",
|
| 74 |
+
messages=[
|
| 75 |
+
{"role": "user", "content": "Explain quantum computing"}
|
| 76 |
+
],
|
| 77 |
+
temperature=0.7,
|
| 78 |
+
max_tokens=512,
|
| 79 |
+
)
|
| 80 |
+
|
| 81 |
+
print(response.choices[0].message.content)
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### vLLM Benefits
|
| 85 |
+
|
| 86 |
+
- ✅ **Weights, activations, and KV cache in FP8**
|
| 87 |
+
- ✅ **~70GB VRAM** (50% reduction vs BF16's ~140GB)
|
| 88 |
+
- ✅ **Single high-end GPU deployment** (H100, A100 80GB, 2x RTX 4090)
|
| 89 |
+
- ✅ **Native FP8 tensor core acceleration**
|
| 90 |
+
- ✅ **Premium 2048-sample calibration** for production reliability
|
| 91 |
+
- ✅ **Production-grade performance**
|
| 92 |
+
|
| 93 |
+
## ⚠️ Transformers: Not Practical
|
| 94 |
+
|
| 95 |
+
At 70B parameters, transformers will decompress to **~140GB+ VRAM**, requiring multi-GPU setups or data center GPUs. **This is not recommended for deployment.**
|
| 96 |
+
|
| 97 |
+
<details>
|
| 98 |
+
<summary>Transformers Example (Multi-GPU Required - Click to expand)</summary>
|
| 99 |
|
|
|
|
| 100 |
```python
|
| 101 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 102 |
import torch
|
| 103 |
|
| 104 |
+
# Requires multi-GPU or 80GB+ single GPU
|
| 105 |
model = AutoModelForCausalLM.from_pretrained(
|
| 106 |
"TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8",
|
| 107 |
+
device_map="auto", # Will distribute across GPUs
|
| 108 |
+
torch_dtype="auto",
|
| 109 |
low_cpu_mem_usage=True,
|
| 110 |
)
|
|
|
|
| 111 |
tokenizer = AutoTokenizer.from_pretrained("TevunahAi/Apertus-70B-Instruct-2509-2048-Calibration-FP8")
|
| 112 |
|
| 113 |
# Generate
|
|
|
|
| 119 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 120 |
```
|
| 121 |
|
| 122 |
+
**Requirements:**
|
| 123 |
+
```bash
|
| 124 |
+
pip install torch>=2.1.0 transformers>=4.40.0 accelerate compressed-tensors
|
| 125 |
+
```
|
| 126 |
|
| 127 |
+
**System Requirements:**
|
| 128 |
+
- **~140GB+ VRAM** (decompressed to BF16)
|
| 129 |
+
- Multi-GPU setup or H100 NVL
|
| 130 |
+
- Not practical for most deployments
|
| 131 |
|
| 132 |
+
**⚠️ Critical:** Use vLLM instead. Transformers is only viable for research/testing with multi-GPU setups.
|
|
|
|
|
|
|
| 133 |
|
| 134 |
+
</details>
|
| 135 |
+
|
| 136 |
+
## 📊 Model Details
|
| 137 |
+
|
| 138 |
+
| Property | Value |
|
| 139 |
+
|----------|-------|
|
| 140 |
+
| **Base Model** | [swiss-ai/Apertus-70B-Instruct-2509](https://huggingface.co/swiss-ai/Apertus-70B-Instruct-2509) |
|
| 141 |
+
| **Architecture** | Dense (70B parameters) |
|
| 142 |
+
| **Quantization Method** | FP8 E4M3 weight-only |
|
| 143 |
+
| **Framework** | llm-compressor + compressed_tensors |
|
| 144 |
+
| **Calibration Samples** | **2,048** (4-8x industry standard) |
|
| 145 |
+
| **Calibration Datasets** | 4 diverse sources |
|
| 146 |
+
| **Storage Size** | ~70GB (sharded safetensors) |
|
| 147 |
+
| **VRAM (vLLM)** | ~70GB |
|
| 148 |
+
| **VRAM (Transformers)** | ~140GB+ (decompressed to BF16) |
|
| 149 |
+
| **Target Hardware** | NVIDIA H100, A100 80GB, 2x RTX 4090 |
|
| 150 |
+
| **Quantization Time** | 468.9 minutes (~7.8 hours) |
|
| 151 |
+
|
| 152 |
+
## 🏆 Premium Calibration
|
| 153 |
|
| 154 |
This model was quantized using TevunahAi's **premium multi-dataset calibration process**:
|
| 155 |
|
|
|
|
| 161 |
|
| 162 |
| Dataset | Samples | Purpose |
|
| 163 |
|---------|---------|---------|
|
| 164 |
+
| **Open-Platypus** | 512 | STEM reasoning and logic |
|
| 165 |
+
| **UltraChat-200k** | 512 | Natural conversations |
|
| 166 |
+
| **OpenHermes-2.5** | 512 | Instruction following |
|
| 167 |
+
| **SlimOrca** | 512 | Diverse general tasks |
|
| 168 |
|
| 169 |
### Why Premium Calibration?
|
| 170 |
|
| 171 |
Most FP8 quantizations use 128-512 samples from a single dataset. TevunahAi uses **2,048 samples across 4 diverse datasets**, ensuring:
|
| 172 |
|
| 173 |
+
- ✅ **Superior robustness** across task types
|
| 174 |
+
- ✅ **Better statistical coverage** for quantization scales
|
| 175 |
+
- ✅ **Minimal quality loss** compared to FP16
|
| 176 |
+
- ✅ **Production-grade reliability**
|
| 177 |
+
- ✅ **Consistent performance** on edge cases
|
| 178 |
+
|
| 179 |
+
**When quality matters, choose TevunahAi premium calibration quantizations.**
|
| 180 |
+
|
| 181 |
+
## 🔧 Why FP8 for 70B Models?
|
| 182 |
|
| 183 |
+
### With vLLM/TensorRT-LLM:
|
| 184 |
+
- ✅ **Enables single-GPU deployment** (~70GB vs ~140GB BF16)
|
| 185 |
+
- ✅ **50% memory reduction** across weights, activations, and KV cache
|
| 186 |
+
- ✅ **Faster inference** via native FP8 tensor cores
|
| 187 |
+
- ✅ **Makes flagship model accessible** on high-end consumer/prosumer GPUs
|
| 188 |
+
- ✅ **Minimal quality loss** with premium 2048-sample calibration
|
| 189 |
|
| 190 |
+
### Without FP8:
|
| 191 |
+
- ❌ BF16 requires ~140GB VRAM (H100 NVL or multi-GPU)
|
| 192 |
+
- ❌ Limited deployment options
|
| 193 |
+
- ❌ Higher infrastructure costs
|
| 194 |
|
| 195 |
+
**FP8 quantization + Premium calibration transforms 70B from "data center only" to "high-end workstation deployable".**
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
+
## 💾 Model Files
|
| 198 |
|
| 199 |
+
This model is sharded into multiple safetensors files (all required for inference). The compressed format enables efficient storage and faster downloads.
|
| 200 |
+
|
| 201 |
+
## 🔬 Quantization Infrastructure
|
| 202 |
+
|
| 203 |
+
**Professional hardware for premium calibration:**
|
| 204 |
|
| 205 |
- **CPUs:** Dual Intel Xeon Max 9480 (224 threads, 128GB HBM2e @ 2000 GB/s)
|
| 206 |
- **Memory:** 256GB DDR5-4800 (16 DIMMs, 8-channel per socket, ~614 GB/s)
|
| 207 |
- **Total Memory Bandwidth:** ~2,614 GB/s aggregate
|
| 208 |
+
- **Peak Memory Usage:** ~115GB during quantization (leveraging HBM2e + DDR5)
|
| 209 |
+
- **GPU:** NVIDIA RTX 5000 Ada Generation (32GB VRAM, native FP8 support)
|
| 210 |
+
- **Software:** Ubuntu 25.10 | Python 3.12 | PyTorch 2.8 | CUDA 13.0 | llm-compressor
|
| 211 |
+
|
| 212 |
+
**Why This Matters:**
|
| 213 |
+
- The 2,048-sample multi-dataset calibration process requires **significant computational resources**
|
| 214 |
+
- Professional infrastructure enables production-grade quantization quality
|
| 215 |
+
- **7.8 hours** of quantization time ensures rigorous validation
|
| 216 |
+
|
| 217 |
+
## 🌟 About Apertus
|
| 218 |
|
| 219 |
+
Apertus-70B by Swiss AI is a high-quality 70B parameter instruction-tuned model known for:
|
| 220 |
|
| 221 |
+
- **State-of-the-art reasoning** capabilities
|
| 222 |
+
- **Strong multilingual support**
|
| 223 |
+
- **Excellent instruction following**
|
| 224 |
+
- **Apache 2.0 license** for commercial use
|
| 225 |
+
- **Swiss precision** in model design
|
| 226 |
|
| 227 |
+
## 🔧 Hardware Requirements
|
|
|
|
|
|
|
|
|
|
| 228 |
|
| 229 |
+
### Minimum (vLLM):
|
| 230 |
+
- **GPU:** A100 80GB or 2x RTX 4090 (48GB total)
|
| 231 |
+
- **VRAM:** 70GB minimum, 80GB+ recommended
|
| 232 |
+
- **CUDA:** 11.8 or newer
|
| 233 |
|
| 234 |
+
### Recommended (vLLM):
|
| 235 |
+
- **GPU:** H100 80GB / H100 NVL / 2x RTX 4090
|
| 236 |
+
- **VRAM:** 80GB+
|
| 237 |
+
- **CUDA:** 12.0+
|
| 238 |
|
| 239 |
+
### Transformers:
|
| 240 |
+
- **GPU:** Multi-GPU setup (2x A100 80GB) or H100 NVL
|
| 241 |
+
- **VRAM:** 140GB+ total
|
| 242 |
+
- **Not recommended** - use vLLM instead
|
| 243 |
|
| 244 |
+
## 📖 Additional Resources
|
| 245 |
|
| 246 |
+
- **vLLM Documentation:** [docs.vllm.ai](https://docs.vllm.ai/)
|
| 247 |
+
- **TensorRT-LLM:** [github.com/NVIDIA/TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM)
|
| 248 |
+
- **TevunahAi Models:** [huggingface.co/TevunahAi](https://huggingface.co/TevunahAi)
|
| 249 |
+
- **llm-compressor:** [github.com/vllm-project/llm-compressor](https://github.com/vllm-project/llm-compressor)
|
| 250 |
+
- **Swiss AI:** [huggingface.co/swiss-ai](https://huggingface.co/swiss-ai)
|
| 251 |
|
| 252 |
+
## 📄 License
|
| 253 |
|
| 254 |
+
This model inherits the **Apache 2.0 License** from the original Apertus model.
|
| 255 |
+
|
| 256 |
+
## 🙏 Acknowledgments
|
| 257 |
+
|
| 258 |
+
- **Original Model:** Swiss AI team
|
| 259 |
+
- **Quantization Framework:** Neural Magic's llm-compressor
|
| 260 |
+
- **Quantized by:** [TevunahAi](https://huggingface.co/TevunahAi)
|
| 261 |
+
|
| 262 |
+
## 📝 Citation
|
| 263 |
+
|
| 264 |
+
If you use Apertus, please cite the original work:
|
| 265 |
+
|
| 266 |
+
```bibtex
|
| 267 |
+
@misc{apertus2025,
|
| 268 |
+
title={Apertus-70B: Swiss Precision in Large Language Models},
|
| 269 |
+
author={Swiss AI},
|
| 270 |
+
year={2025},
|
| 271 |
+
url={https://huggingface.co/swiss-ai/Apertus-70B-Instruct-2509}
|
| 272 |
+
}
|
| 273 |
+
```
|
| 274 |
|
| 275 |
---
|
| 276 |
|
| 277 |
+
## 🌟 Why TevunahAi Premium Calibration FP8?
|
| 278 |
|
| 279 |
### The Difference is in the Details
|
| 280 |
|
| 281 |
+
| Aspect | Standard FP8 | TevunahAi Premium FP8 |
|
| 282 |
+
|--------|--------------|----------------------|
|
| 283 |
+
| **Calibration Samples** | 128-512 | **2,048** |
|
| 284 |
+
| **Datasets** | Single | **4 diverse** |
|
| 285 |
+
| **Calibration Time** | Minutes | **7.8 hours** |
|
| 286 |
+
| **Edge Case Handling** | Adequate | **Superior** |
|
| 287 |
+
| **Output Consistency** | Good | **Excellent** |
|
| 288 |
+
| **Production Ready** | Maybe | **Absolutely** |
|
| 289 |
+
| **Infrastructure** | Consumer/Prosumer | **Enterprise-grade** |
|
| 290 |
|
| 291 |
### Professional Infrastructure
|
| 292 |
|
| 293 |
- **2.6 TB/s** aggregate memory bandwidth
|
| 294 |
+
- **115GB peak usage** during 70B quantization
|
| 295 |
- **2,048 samples** across 4 complementary datasets
|
| 296 |
- **Quality-first** approach over speed
|
| 297 |
- **Enterprise-ready** results
|
| 298 |
+
|
| 299 |
+
### The Rigorous Process
|
| 300 |
+
|
| 301 |
+
- **7.8 hours** of careful quantization and validation
|
| 302 |
+
- **4 diverse datasets** ensuring comprehensive coverage
|
| 303 |
+
- **2,048 calibration samples** for statistical robustness
|
| 304 |
+
- **Professional hardware** enabling quality impossible on consumer setups
|
| 305 |
+
|
| 306 |
+
**When deploying flagship 70B models in production, accept no compromises.**
|
| 307 |
+
|
| 308 |
+
---
|
| 309 |
+
|
| 310 |
+
<div align="center">
|
| 311 |
+
|
| 312 |
+
**Professional AI Model Quantization by TevunahAi**
|
| 313 |
+
|
| 314 |
+
*Premium multi-dataset calibration on enterprise-grade infrastructure*
|
| 315 |
+
|
| 316 |
+
[View all models](https://huggingface.co/TevunahAi) | [Contact for custom quantization](https://huggingface.co/TevunahAi)
|
| 317 |
+
|
| 318 |
+
</div>
|