gpt2 β€” FP8 (dynamic)

FP8 quantization of openai-community/gpt2, published by Liodon AI.

Quantized with llm-compressor using the FP8_DYNAMIC scheme: weights are cast to FP8 (E4M3) per-channel ahead of time, activations are quantized to FP8 dynamically per-token at inference time. No calibration dataset is needed for this scheme, so the quantized weights are numerically just a direct cast of the original β€” no calibration-set bias to worry about. lm_head is left unquantized (standard practice β€” negligible size, disproportionate quality impact if quantized).

Original size: 0.5 GB β†’ Quantized: 0.5 GB.

Quick Start

vLLM

vllm serve liodon-ai/gpt2-FP8

Text Generation Inference (TGI)

docker run --gpus all -p 8080:80 ghcr.io/huggingface/text-generation-inference \
    --model-id liodon-ai/gpt2-FP8

SGLang

python -m sglang.launch_server --model-path liodon-ai/gpt2-FP8

FP8 execution requires an NVIDIA GPU with compute capability β‰₯ 8.9 (Ada/Hopper/Blackwell β€” RTX 40-series, L4/L40S, H100/H200, B100/B200/GB10). On older GPUs, vLLM/TGI will dequantize to run, which loses the speed/memory benefit.

Source


Quantized by Liodon AI

Downloads last month
14
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for liodon-ai/gpt2-FP8

Quantized
(97)
this model