Downloads · 30 days
240
7% of all-time downloads
RedHatAI/Apertus-70B-Instruct-2509-FP8-dynamic
Apertus-70B-Instruct-2509-FP8-dynamic is a text generation model from RedHatAI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
- Model Architecture: ApertusForCausalLM - Input: Text - Output: Text - Model Optimizations: - Weight quantization: FP8 - Activation quantization: FP8 - Release Date: 9/18/2025 - Version: 1.0 - Model Developers: Red Hat
Downloads · 30 days
240
7% of all-time downloads
All-time downloads
3.6K
Public
Parameters
70.6B
72.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors72.8 GB · 100%
How the weights are stored.
F8_E4M368.5B · 97%
From the Hugging Face model README
Quantized version of swiss-ai/Apertus-70B-2509.
This model was obtained by quantizing the weights and activations of swiss-ai/Apertus-70B-2509 to FP8 data type. This optimization reduces the number of bits per parameter from 16 to 8, reducing the disk size and GPU memory requirements by approximately 50%. Only the weights and activations of the linear operators within transformers blocks are quantized.
vllm serve RedHatAI/Apertus-70B-Instruct-2509-FP8-dynamic --tensor_parallel_size 2
from openai import OpenAI
# Modify OpenAI's API key and API base to use vLLM's API server.
openai_api_key = "EMPTY"
openai_api_base = "http://<your-server-host>:8000/v1"
client = OpenAI(
api_key=openai_api_key,
base_url=openai_api_base,
)
model = "RedHatAI/Apertus-70B-Instruct-2509-FP8-dynamic"
messages = [
{"role": "user", "content": "Give me a short introduction to large language model."},
]
outputs = client.chat.completions.create(
model=model,
messages=messages,
)
generated_text = outputs.choices[0].message.content
print(generated_text)
This model was created with llm-compressor by running the code snippet below.
<details> <summary>Model Creation Code</summary>from llmcompressor.modifiers.quantization import QuantizationModifier
from llmcompressor.transformers import oneshot
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model
model_stub = "swiss-ai/Apertus-70B-Instruct-2509"
model_name = model_stub.split("/")[-1]
model = AutoModelForCausalLM.from_pretrained(model_stub, dtype="auto")
tokenizer = AutoTokenizer.from_pretrained(model_stub)
# Configure the quantization algorithm and scheme
recipe = QuantizationModifier(
ignore=["lm_head"],
targets="Linear",
scheme="FP8_dynamic",
)
# Apply quantization
oneshot(
model=model,
recipe=recipe,
)
# Save to disk in compressed-tensors format
save_path = model_name + "-FP8-dynamic"
model.save_pretrained(save_path)
tokenizer.save_pretrained(save_path)
print(f"Model and tokenizer saved to: {save_path}")
</details>
The model was evaluated on OpenLLM Leaderboard V1, using the following command:
<details> <summary>Evaluation Commands</summary>OpenLLM Leaderboard V1:
lm_eval \
--model vllm \
--model_args pretrained="RedHatAI/Apertus-70B-Instruct-2509-FP8-dynamic",dtype=auto,add_bos_token=True,max_model_len=4096,tensor_parallel_size=1,gpu_memory_utilization=0.6,enable_chunked_prefill=True \
--tasks openllm \
--write_out \
--batch_size auto \
--output_path output_dir \
--show_config
</details>