Qwen2.5-7B-Instruct
Qwen
Qwen2.5-7B-Instruct is a 7 billion parameter large language model optimized for instruction following. Run this model with TheStage AI "ElasticModels" framework for the fastest performance.
Perfomance
Latency Benchmarks
We measured TPS (tokens per second) for each model size using 100 input tokens and 300 output tokens.
Latency Benchmarking
Latency Benchmark Results
Tokens per second for different model sizes on various GPUs.
| GPU/Model Size | S | M | L | XL | Original | *W8A8_int8* |
|---|---|---|---|---|---|---|
| H100 | 202 | 191 | 168 | 147 | 62 | 201 |
| L40s | 74 | 69 | 58 | 49 | 42 | 78 |
| B200 | 274 | 272 | 269 | 248 | 114 | N/A |
| GeForce RTX 5090 | 150 | N/A | N/A | N/A | 66 | N/A |
| GeForce RTX 4090 | 96 | N/A | N/A | N/A | 45 | N/A |
Benchmarking Methodology
The benchmarking was performed on a single GPU with a batch size of 1. Each model was run for 10 iterations, and the average latency was calculated.
Algorithm summary:
Load the Qwen2.5-7B-Instruct model with the specified size (S, M, L, XL, original).
Move the model to the GPU.
Prepare a sample prompt for text generation.
Run the model for a number of iterations (e.g., 10) and measure the time taken for each iteration. On each iteration:
Synchronize the GPU to flush any previous operations.
Record the start time.
Generate the text using the model.
Synchronize the GPU again.
Record the end time and calculate the TTFT and TPS for that iteration.
Calculate the average TTFT and TPS over all iterations.