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

Release finished sequences before admitting the queue

Coding challenges

The same free slot faces a longer prompt

The earlier workshop counted the memory a conversation would keep. Botie now has several conversations that finish at different times. When a place opens, the next request may be much longer than the one that left.

BOTIE

C now needs five blocks while only four are free. Why does the earlier slot-only construction fail?
The inputs we are comparing

Current rows: id, remaining, blocks

Same in both cases

  1. id
    A
    remaining
    0
    blocks
    2
  2. id
    B
    remaining
    3
    blocks
    2

Waiting rows: id, prompt, maxNew

A short answer releases room

  1. id
    C
    prompt
    2
    maxNew
    2
  2. id
    D
    prompt
    1
    maxNew
    1

C’s context no longer fits

  1. id
    C
    prompt
    8
    maxNew
    2
  2. id
    D
    prompt
    1
    maxNew
    1

Maximum active sequences

Same in both cases

2

Total cache blocks

Same in both cases

6

Tokens in a cache block

Same in both cases

2
Result for a short answer releases room
  1. 0C
Choose an explanation to test
A longer output allowance fills the remaining cache

This check uses the pieces from “Rebuild the next group from remaining work”.

BOTIE

B still owns two of six blocks. Two slots are free. C reserves four blocks and D reserves one. Predict the new admissions under strict FIFO.
Current rows: id, remaining, blocks
  1. id
    B
    remaining
    2
    blocks
    2
Waiting rows: id, prompt, maxNew
  1. id
    C
    prompt
    2
    maxNew
    6
  2. id
    D
    prompt
    1
    maxNew
    1
Maximum active sequences
3
Total cache blocks
6
Tokens in a cache 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.

When might skipping an unfit head help utilization, and whose waiting time could worsen?

State the scheduling policy beside its capacity calculation.

This checks one scheduling boundary with full-continuation reservations and a queue that cannot skip its first waiting request. It does not run a model engine or measure GPU performance.

Continue the courseStop Accepting Work You Cannot Hold →