Memory model

Separate model weights, KV Cache, and runtime reserve

Inference planning begins with the loaded weights, then adds the KV Cache for each active request and a visible runtime reserve.

Decision 01

Weights set the starting point

The selected weight format changes the largest persistent memory block. Lower-bit formats reduce weight memory, while metadata and runtime implementation still consume capacity.

Decision 02

KV Cache grows with the request

Context length and concurrent requests both increase KV Cache demand. Architectures with fewer KV heads can materially change this part of the plan.

Decision 03

Leave operating room

Use a visible runtime reserve rather than treating every reported GB as model capacity. The result should leave room for the runtime, allocations, and normal variation.

Continue planning

Related decisions

Build an inference plan