Here’s a rough‐order–of–magnitude comparison of how long a single prompt (say, a 512-token context + 128-token generation) might take on an “RTX 5080-class” GPU, under FP16, HuggingFace-Transformers default sampling, batch_size = 1. Actual numbers will vary with driver, cuDNN/CUDA version, library (vLLM, DeepSpeed, text-generation-inference, etc.), prompt shape, and sampling strategy.
| Model | Size | Precision | ~Tokens/sec | 128-token gen time | 512-token context-encode time | Total end-to-end |
|---|
| GPT-J | 6 B | FP16 | 90 t/s | 1.4 s | 0.8 s | ≈ 2.2 s |
| LLaMA-7B | 7 B | FP16 | 130 t/s | 1.0 s | 1.0 s | ≈ 2.0 s |
| MPT-7B | 7 B | FP16 | 120 t/s | 1.1 s | 1.1 s | ≈ 2.2 s |
| Mistral-7B | 7 B | FP16 | 200 t/s | 0.64 s | 0.9 s | ≈ 1.5 s |
| Bloom-7B | 7 B | FP16 | 55 t/s | 2.3 s | 1.3 s | ≈ 3.6 s |
| LLaMA-2 13B | 13 B | FP16 | 80 t/s | 1.6 s | 1.6 s | ≈ 3.2 s |
| MPT-30B | 30 B | FP16 | 25 t/s | 5.1 s | 3.0 s | ≈ 8.1 s |
| LLaMA-2 70B | 70 B | FP16 | 8 t/s | 16.0 s | 7.5 s | ≈ 23.5 s |
| GPT-NeoX 20B | 20 B | FP16 | 12 t/s | 10.7 s | 2.5 s | ≈ 13.2 s |
| Bloom-176B | 176 B | FP16 | 3 t/s | 42.7 s | 15.0 s | ≈ 57.7 s |
Notes:
• “Tokens/sec” is end-to-end throughput (context + generation).
• Context-encode time scales linearly with context length; generation time scales with generated tokens.
• Quantizing to int8/4bit (via GPTQ or bits-and-bytes) can roughly halve these times but may impact quality.
• Using an optimized inference engine (vLLM, NVIDIA TGI, DeepSpeed) can add another 1.5–2× speed-up.
• Beam search or longer histories will multiply these numbers further.
If you have a specific model, precision (FP32/16/8), context length or library in mind, let me know and I can refine the estimates!