Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

LLM Inference and Capacity

Keep reusable prefix state inside its compatibility boundary

Coding challenges

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 cached and incoming token lists match, but the adapter field differs. Which earlier assumption fails?
The inputs we are comparing

Cached leading token IDs

An unchanged beginning

  1. 010
  2. 111
  3. 212
  4. 313
  5. 420
  6. 521

The adapter changes

  1. 010
  2. 111
  3. 212
  4. 313

Incoming token IDs

An unchanged beginning

  1. 010
  2. 111
  3. 212
  4. 313
  5. 430
  6. 531

The adapter changes

  1. 010
  2. 111
  3. 212
  4. 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
Choose an explanation to test
The next team sends the same tokens

This check uses the pieces from “Connect a leading-token match to a compatibility gate”.

BOTIE

All tokens and model versions match, but the incoming tenant namespace is different. Predict the reusable-token count under the stated isolation policy.
Cached leading token IDs
  1. 01
  2. 12
  3. 23
  4. 34
  5. 45
  6. 56
Incoming token IDs
  1. 01
  2. 12
  3. 23
  4. 34
  5. 45
  6. 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.

Continue the courseLet the Next Request In Without Overfilling the Cache →