Model Serving · Software component

Contiguous KV Cache Allocator

Software componentModel ServingModelsarc:ContiguousKVCacheAllocator

A KV-cache allocator that reserves one contiguous buffer per request sized for the maximum sequence length at arrival.

Responsibility. Reserves maximum-length contiguous KV-cache buffers per request.

Also known as: Pre-allocated KV buffers, Standard contiguous KV cache, Continuous KV cache, Static KV-cache allocation

Variant of KV Cache Allocator abstract

When to choose. Choose (with buffers pre-allocated for maximum length) only when sequence lengths are bounded and predictable, accepting higher initial memory use.

specializesalternative toKV Cache Allocator: specializesKV Cache AllocatorPaged KV Cache Allocator: alternative toPaged KV Cache Allocator
Direct neighbourhood (hover for relationship types)

Relationships

alternative to variability

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Sources

  1. Ch4.4: T. Nguyen, "Performance Profiling and Optimization," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 4.4. ISBN: 9798244538229.
  2. Ch7.4: T. Nguyen, "TensorRT-LLM Fundamentals and Quantization," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 7.4. ISBN: 9798244538229.