Llama-3.1-8B-Instruct

Meta

LLama-3.1-8B-Instruct is an 8 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*
H10020418216814360191
L40s736457463777
B200276270264249100N/A
GeForce RTX 5090153N/AN/AN/A60N/A
GeForce RTX 409095N/AN/AN/A41N/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 Llama-3.1-8B-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.