corehu

OPEN MODELS / Llama-2-13b-hf

Can you run Llama-2-13b-hf on L40S?

Fits on one GPU

Yes. Llama-2-13b-hf needs about 33 GB of GPU memory and one L40S has 45 GB, which leaves about 12 GB for longer context, bigger batches or higher resolution.

For one request, expect about 17 tokens per second, roughly $19.34 per million generated tokens at this price.

Rent L40S L40S from $1.17 per hour, billed per second. Ten hours cost about $11.70.
Memory needed
≈ 33 GB
L40S memory
45 GB
Free memory
12 GB
Price per hour
$1.17

Memory figures are our estimates for inference; real use depends on resolution, batch size and context length.

Cheapest GPUs that fit Llama-2-13b-hf today

Questions

Can I run Llama-2-13b-hf on L40S?
Yes. Llama-2-13b-hf needs about 33 GB of GPU memory and one L40S has 45 GB, which leaves about 12 GB for longer context, bigger batches or higher resolution.
How much does it cost to run Llama-2-13b-hf on L40S?
L40S from $1.17 per hour, billed per second. Ten hours cost about $11.70.