LLM Inference and Capacity
Keep reusable prefix state inside its compatibility boundary
Identical tokens arrive under a new adapter
Botie has already counted the memory used by retained attention state. Several technicians now send the same manual before different questions. The earlier timing trace gives us a reason to try reusing that repeated prompt work.
BOTIE
The inputs we are comparing
Cached leading token IDs
An unchanged beginning
- 010
- 111
- 212
- 313
- 420
- 521
The adapter changes
- 010
- 111
- 212
- 313
Incoming token IDs
An unchanged beginning
- 010
- 111
- 212
- 313
- 430
- 531
The adapter changes
- 010
- 111
- 212
- 313
Stored compatibility contract
Same in both cases
- model
- manual-model-1
- tokenizer
- tokens-1
- adapter
- none
- template
- chat-1
- tenant
- maintenance
- kvFormat
- fp16
Current compatibility contract
An unchanged beginning
- model
- manual-model-1
- tokenizer
- tokens-1
- adapter
- none
- template
- chat-1
- tenant
- maintenance
- kvFormat
- fp16
The adapter changes
- model
- manual-model-1
- tokenizer
- tokens-1
- adapter
- repair-adapter-2
- template
- chat-1
- tenant
- maintenance
- kvFormat
- fp16
Tokens per cached block
Same in both cases
2
Result for an unchanged beginning
4
The next team sends the same tokens
This check uses the pieces from “Connect a leading-token match to a compatibility gate”.
BOTIE
- Cached leading token IDs
- 01
- 12
- 23
- 34
- 45
- 56
- Incoming token IDs
- 01
- 12
- 23
- 34
- 45
- 56
- Stored compatibility contract
- model
- manual-model-1
- tokenizer
- tokens-1
- adapter
- none
- template
- chat-1
- tenant
- maintenance
- kvFormat
- fp16
- Current compatibility contract
- model
- manual-model-1
- tokenizer
- tokens-1
- adapter
- none
- template
- chat-1
- tenant
- another-team
- kvFormat
- fp16
- Tokens per cached block
2
Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
What else would need versioning if the request included an image encoder output?
Treat reusable computation as versioned state with explicit boundaries.
A conservative teaching cache with complete blocks, not an implementation of vLLM hashes, eviction or security.