Can you run Llama-2-7b-hf on RTX 4090?
Fits on one GPU
Yes. Llama-2-7b-hf needs about 18 GB of GPU memory and one RTX 4090 has 24 GB, which leaves about 6 GB for longer context, bigger batches or higher resolution.
For one request, expect about 46 tokens per second, roughly $4.69 per million generated tokens at this price.
Rent RTX 4090 RTX 4090 from $0.77 per hour, billed per second. Ten hours cost about $7.70.
Memory needed
≈ 18 GB
RTX 4090 memory
24 GB
Free memory
6 GB
Price per hour
$0.77
Memory figures are our estimates for inference; real use depends on resolution, batch size and context length.
Cheapest GPUs that fit Llama-2-7b-hf today
Questions
- Can I run Llama-2-7b-hf on RTX 4090?
- Yes. Llama-2-7b-hf needs about 18 GB of GPU memory and one RTX 4090 has 24 GB, which leaves about 6 GB for longer context, bigger batches or higher resolution.
- How much does it cost to run Llama-2-7b-hf on RTX 4090?
- RTX 4090 from $0.77 per hour, billed per second. Ten hours cost about $7.70.