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 SizeSMLXLOriginal*W8A8_int8*
H10020219116814762201
L40s746958494278
B200274272269248114N/A
GeForce RTX 5090150N/AN/AN/A66N/A
GeForce RTX 409096N/AN/AN/A45N/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.