Repository navigation
Commit 617ef92
committed
Allocate checkpoint slots globally within request work budgets
Dividing snapshot capacity by configured concurrency leaves lightly loaded
requests with too few checkpoints. Spending that quota on prompt and answer
endpoints loses reusable history when a chat template rewrites reasoning.
Complete-message boundaries provide reusable prefixes before that rewrite.
Replace fixed capture quotas and evenly spaced cuts with a shared snapshot
pool and reverse message-boundary priority. Retain the last eligible message
as a best-effort anchor, falling back to the prompt end. Budget extra copies
and prefill splits against estimated uncached prefill work, with completed
decode earning additional terminal allowance. Expose the fraction through
CLI and configuration, defaulting to 0.05. Missing or stale costs suppress
extras. Zero retains anchor-only behavior.
Rank GPU retention by logical-request demand, role, and endpoint. Account
for backing-page aliases, revalidate allocation quotes, and permit mandatory
work to revoke unused anchor guards. Retain submitted destinations through
completion fences and carry demand and work accounting across preemption.
Allocate terminal rows after generation drains. Publish message anchors
immediately and defer local host copyout before pinning when headroom is
insufficient. Preserve core metadata and captured graph compatibility.
A request can use spare global capacity while prioritizing recent message
boundaries. On SM120, native serving of Qwen3.8-Flash-Next core
gb202-tp1-202611052112 with concurrency limit 32 and 49 snapshot rows reused
2660 prompt tokens after reasoning was omitted, versus zero on baseline
c74b613.
Both returned the requested answers. With reasoning preserved, reuse was
2660 versus 2693. These cold-cost runs captured anchors only and establish
neither optional-capture GPU behavior nor a latency improvement.
Validation:
- Helios release suite: 1368 passed, 26 ignored. The physical CUDA alias
test also passed when explicitly enabled.
- Scheduler regression captures 15 message checkpoints for one request
with configured concurrency 32 and checks its work allowance.
- Lifecycle models and Rust conformance checks passed. CheckpointReservation
explored 5180 states and checked 24 observed production Rust transitions.
Its bounds cover two requests, three rows, and two submission fences.
- Qwen and Nemotron native frontend reasoning tests passed. Application
tests passed with four ignored; focused Python config/serve tests passed.
- Full CLI tests retain two Orbit fixture failures. Full Python CLI tests
retain eight failures involving recipe aliases, collective planning, and
a missing Kimi checkpoint. All ten reproduce on unchanged baseline.
Native optional captures with warm timing estimates, host-copyout pressure,
tensor-parallel serving, and Nemotron serving remain unqualified and are
tracked in docs/TODO.txt. The TLA+ model covers reservation ownership and
ordering, not budget arithmetic or physical CUDA behavior.
Design-Signed-Off-By: Codex (GPT-6); design-review=ed221 parent c74b613 commit 617ef92
43 files changed
Lines changed: 3160 additions & 520 deletions
File tree
- docs
- flare-cli/src
- flare/src
- helios
- src
- cache
- model
- scheduler
- sharing
- server
- runtime
- ignition/cli
- tests
- cli
- frontend
- verification/helios-lifecycle
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
346 | 357 | | |
347 | 358 | | |
348 | 359 | | |
| |||
562 | 573 | | |
563 | 574 | | |
564 | 575 | | |
565 | | - | |
566 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
567 | 580 | | |
568 | 581 | | |
569 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
692 | 704 | | |
693 | 705 | | |
694 | 706 | | |
| |||
1241 | 1253 | | |
1242 | 1254 | | |
1243 | 1255 | | |
1244 | | - | |
| 1256 | + | |
| 1257 | + | |
1245 | 1258 | | |
1246 | 1259 | | |
1247 | 1260 | | |
| |||
1271 | 1284 | | |
1272 | 1285 | | |
1273 | 1286 | | |
| 1287 | + | |
1274 | 1288 | | |
1275 | 1289 | | |
1276 | 1290 | | |
| |||
1345 | 1359 | | |
1346 | 1360 | | |
1347 | 1361 | | |
1348 | | - | |
1349 | | - | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1350 | 1366 | | |
1351 | 1367 | | |
1352 | 1368 | | |
| |||
1416 | 1432 | | |
1417 | 1433 | | |
1418 | 1434 | | |
1419 | | - | |
| 1435 | + | |
1420 | 1436 | | |
1421 | 1437 | | |
1422 | 1438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1429 | 1429 | | |
1430 | 1430 | | |
1431 | 1431 | | |
1432 | | - | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
1452 | 1464 | | |
1453 | 1465 | | |
1454 | 1466 | | |
| |||
1509 | 1521 | | |
1510 | 1522 | | |
1511 | 1523 | | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1523 | 1542 | | |
1524 | 1543 | | |
1525 | 1544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
199 | 195 | | |
200 | 196 | | |
201 | 197 | | |
202 | 198 | | |
203 | 199 | | |
204 | 200 | | |
205 | 201 | | |
206 | | - | |
207 | | - | |
| 202 | + | |
| 203 | + | |
208 | 204 | | |
209 | 205 | | |
210 | 206 | | |
| |||
259 | 255 | | |
260 | 256 | | |
261 | 257 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
268 | 266 | | |
269 | 267 | | |
270 | 268 | | |
| |||
1033 | 1031 | | |
1034 | 1032 | | |
1035 | 1033 | | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1041 | 1040 | | |
1042 | 1041 | | |
1043 | 1042 | | |
| |||
0 commit comments