Estimating video memory for Large Language Models requires calculating both model weights and the KV-cache, which stores key-value pairs for each generated token. While weights depend on parameter count and quantization, the KV-cache grows linearly with context length and the number of concurrent requests.

Modern architectures utilize Grouped-Query Attention (GQA) to reduce cache size. For instance, Llama 3.1 70B requires 320 KiB of cache per token. A single user with a 128K context window on this model consumes 40 GiB of memory, matching the footprint of the model itself in INT4 quantization.

Practical deployment involves balancing hardware limits with concurrent load. For example, running Llama 3.1 70B in INT4 with 20 concurrent 8K requests requires approximately 90 GiB of memory, exceeding the capacity of a single 80 GB H100 card unless FP8 caching or tensor parallelism is employed.

Engineers can optimize memory usage by using FP8 caching, which halves the KV-cache size on supported architectures like Ada Lovelace or Hopper. Other strategies include limiting context windows, using tensor parallelism across multiple GPUs, or implementing RAG for long documents.

Hardware selection should account for specific architecture limitations. Older cards like the Tesla V100 lack support for BF16 and FP8, which are critical for modern quantization and optimization techniques. Developers should verify hardware compatibility with inference engines like vLLM.