Can I run Llama-3.1-8B-Instruct on a NVIDIA H100 (80GB)?
Yes.Runs
You can run this comfortably. On a NVIDIA H100 (80GB) (80 GB VRAM), Llama-3.1-8B-Instruct needs about 20 GB (FP16) and should generate at roughly ~110 tok/s. Recommended: Run on your GPU with FP16.
meta-llama/Llama-3.1-8B-InstructWhy
- At full precision this model needs ~20 GB, which fits your GPU VRAM.
How to run Llama-3.1-8B-Instruct on a H100 (80GB)
Serve with vLLM (OpenAI-compatible API)
# Fast production serving on http://localhost:8000/v1
vllm serve meta-llama/Llama-3.1-8B-InstructPython (Transformers)
from transformers import pipeline
pipe = pipeline("text-generation", model="meta-llama/Llama-3.1-8B-Instruct", device_map="auto")
print(pipe("Hello", max_new_tokens=50))Want it to run comfortably at higher precision? The smallest GPU that runs Llama-3.1-8B-Instruct well is the NVIDIA H200 (141 GB).