LLM Inference and Capacity
Release finished sequences before admitting the queue
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
The inputs we are comparing
Current rows: id, remaining, blocks
Same in both cases
- id
- A
- remaining
- 0
- blocks
- 2
- id
- B
- remaining
- 3
- blocks
- 2
| id | remaining | blocks |
|---|---|---|
| A | 0 | 2 |
| B | 3 | 2 |
Waiting rows: id, prompt, maxNew
A short answer releases room
- id
- C
- prompt
- 2
- maxNew
- 2
- id
- D
- prompt
- 1
- maxNew
- 1
| id | prompt | maxNew |
|---|---|---|
| C | 2 | 2 |
| D | 1 | 1 |
C’s context no longer fits
- id
- C
- prompt
- 8
- maxNew
- 2
- id
- D
- prompt
- 1
- maxNew
- 1
| id | prompt | maxNew |
|---|---|---|
| C | 8 | 2 |
| D | 1 | 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
- 0C
A longer output allowance fills the remaining cache
This check uses the pieces from “Rebuild the next group from remaining work”.
BOTIE
- Current rows: id, remaining, blocks
- id
- B
- remaining
- 2
- blocks
- 2
id remaining blocks B 2 2 - Waiting rows: id, prompt, maxNew
- id
- C
- prompt
- 2
- maxNew
- 6
- id
- D
- prompt
- 1
- maxNew
- 1
id prompt maxNew C 2 6 D 1 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.