Skip to content
Run LLM Locally

Llama 2 7B on the RTX 3080

With 10 GB of VRAM, the RTX 3080 runs Llama 2 7B at Q4_0 entirely on the GPU with an 8K context (about 6.5 GB needed). At Q8_0 it does not fit in VRAM.

Llama 2 7B

Q4_0 · 4K context

Excellent

The requested context (8,192 tokens) is longer than the model supports; 4,096 tokens were used.

The model needs about 6.5 GB and fits in the 9.7 GB available, with 3.1 GB to spare.

Your hardware
RTX 3080 10 GB · 64 GB RAM
Estimated memory
~6.5 GB estimate
VRAM (usable memory)
9.7 GB
GPU only
Yes
CPU/GPU offload
Not required
Generation speed
50–111 tok/s estimate
Largest context in fast memory
4K tokens
Confidence: medium

Based on: same hardware · same model · same quantization · 3 benchmark(s) · adjusted for context length

Memory breakdown

~6.5 GB (6.1 GB–7.1 GB) needed · estimate

Fits entirely in VRAM · 3.1 GB left

  • Model weights3.6 GB
  • KV cache2 GB
  • Runtime overhead0.6 GB
  • Safety margin0.3 GB
Assumptions: context 4K tokens · KV cache f16 · llama.cpp (CUDA) · flash attention on · weights estimated at 4.64 bits per weight × 6.74B parameters (real file size not imported yet)

EstimateData updated 24 days agoSource: Run LLM Locally engine, GGUF header of TheBloke/Llama-2-7B-GGUF (llama-2-7b.Q4_0.gguf) + Hugging Face API (parameter count)

Other quantizations on the RTX 3080

Llama 2 7B on RTX 3080 + 64 GB RAM · 8K context
Llama 2 7B Q8_04K~9.7 GB · 45–78 tok/s estimateCPU/GPU offload

Alternatives

Where to buy a RTX 3080

Prices and links follow the market you choose.

GeForce RTX 3080 (10 GB)

10 GB GDDR6X · 760 GB/s · 320 W

ExcellentRuns Llama 2 7B Q4_0 entirely in memory

Price not available

Availability unknown

View on amazon.com

Affiliate link

No current offer imported for this market: the link opens a marketplace search.

Frequently asked questions

Can the RTX 3080 run Llama 2 7B?
The requested context (8,192 tokens) is longer than the model supports; 4,096 tokens were used. The model needs about 6.5 GB and fits in the 9.7 GB available, with 3.1 GB to spare.
Which quantization should I use on the RTX 3080?
None fits entirely in VRAM at 8K context; the smallest, Q8_0, still needs offload.
What is the largest context on the RTX 3080?
At Q4_0, about 4K tokens fit entirely in VRAM with an f16 KV cache. A q8_0 KV cache roughly doubles that.
How fast is Llama 2 7B (RTX 3080)?
We estimate 50–111 tok/s (estimate, confidence medium). Based on: same hardware, same model, same quantization, 3 benchmark(s), adjusted for context length.