Repository navigation
Commit 3eac22b
committed
Offer the host store only checkpoints a request may resume
Every published checkpoint was copied to the host store at publish time.
On a growing conversation about four checkpoints are published per turn
and the next request resumes at one: a message checkpoint is shadowed a
few tokens later by its own prompt checkpoint, and a reply-end
checkpoint is rarely resumed by clients that re-render the reply.
The scheduler now defers the host offer (never the GPU capture) of a
message checkpoint whose own prompt checkpoint follows less than one
page later, and of terminal checkpoints. A deferred checkpoint is
offered when a request resumes exactly at it (it is still on the GPU and
pinned by that request), or, for a message checkpoint whose prompt
capture could not get a snapshot, at that point while the request still
pins it. A preempted request's terminal checkpoint counts as resumed, and a
deferred message checkpoint is offered when its request is cancelled or
fails.
The parent reported for a publication is the nearest offered ancestor,
with the tail pages since it. When the GPU compacts an offered
checkpoint whose heir was not offered, the pool hears the first offered
descendant as the heir, so announced chains stay connected;
a deferred checkpoint that became a branch point is offered as the heir. Captures,
prefill cuts, GPU retention and eviction order are unchanged; the rule
uses only page size and the selected message boundaries.
Validation: upstream CI's Linux commands: selene with test-support 389
passed, selene-manager all passed, helios the same 1187 passed / 7
failed as main (main's DeepSeek tokenizer-fixture defect), scheduler
tests all pass. Tests cover deferral at page boundaries, offer on reuse,
the capture-failure and preemption paths, parent and tail reporting,
compaction with a deferred heir in pool mode, and output lengths 1 and
3. Independent review; findings addressed.
Not yet run on a GPU.
Design-Signed-Off-By: yatesdr; design-review=1c011 parent 5b31640 commit 3eac22b
7 files changed
Lines changed: 397 additions & 101 deletions
File tree
- docs
- helios/src
- scheduler
- sharing
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
175 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
181 | 188 | | |
182 | 189 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
566 | 573 | | |
567 | 574 | | |
568 | 575 | | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
575 | 580 | | |
576 | 581 | | |
577 | 582 | | |
| |||
629 | 634 | | |
630 | 635 | | |
631 | 636 | | |
632 | | - | |
| 637 | + | |
633 | 638 | | |
634 | 639 | | |
635 | 640 | | |
| |||
1008 | 1013 | | |
1009 | 1014 | | |
1010 | 1015 | | |
1011 | | - | |
| 1016 | + | |
1012 | 1017 | | |
1013 | 1018 | | |
1014 | 1019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
227 | 237 | | |
228 | 238 | | |
229 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
681 | 685 | | |
682 | 686 | | |
683 | 687 | | |
| 688 | + | |
684 | 689 | | |
685 | 690 | | |
686 | 691 | | |
| |||
757 | 762 | | |
758 | 763 | | |
759 | 764 | | |
| 765 | + | |
760 | 766 | | |
761 | 767 | | |
762 | 768 | | |
| |||
1627 | 1633 | | |
1628 | 1634 | | |
1629 | 1635 | | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
1630 | 1641 | | |
1631 | 1642 | | |
1632 | 1643 | | |
| |||
1686 | 1697 | | |
1687 | 1698 | | |
1688 | 1699 | | |
1689 | | - | |
1690 | 1700 | | |
| 1701 | + | |
1691 | 1702 | | |
1692 | 1703 | | |
1693 | 1704 | | |
| |||
1720 | 1731 | | |
1721 | 1732 | | |
1722 | 1733 | | |
1723 | | - | |
1724 | | - | |
| 1734 | + | |
| 1735 | + | |
1725 | 1736 | | |
1726 | 1737 | | |
1727 | 1738 | | |
| |||
1731 | 1742 | | |
1732 | 1743 | | |
1733 | 1744 | | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1738 | 1756 | | |
1739 | 1757 | | |
1740 | 1758 | | |
1741 | 1759 | | |
1742 | 1760 | | |
1743 | 1761 | | |
1744 | | - | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
1745 | 1765 | | |
1746 | 1766 | | |
1747 | 1767 | | |
1748 | 1768 | | |
1749 | 1769 | | |
1750 | | - | |
| 1770 | + | |
1751 | 1771 | | |
1752 | 1772 | | |
1753 | 1773 | | |
| |||
1760 | 1780 | | |
1761 | 1781 | | |
1762 | 1782 | | |
| 1783 | + | |
1763 | 1784 | | |
1764 | 1785 | | |
1765 | 1786 | | |
| |||
2547 | 2568 | | |
2548 | 2569 | | |
2549 | 2570 | | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
| 2571 | + | |
| 2572 | + | |
2553 | 2573 | | |
2554 | 2574 | | |
2555 | 2575 | | |
| |||
2606 | 2626 | | |
2607 | 2627 | | |
2608 | 2628 | | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
2609 | 2635 | | |
2610 | 2636 | | |
2611 | 2637 | | |
| |||
2656 | 2682 | | |
2657 | 2683 | | |
2658 | 2684 | | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
2659 | 2691 | | |
2660 | 2692 | | |
2661 | 2693 | | |
2662 | 2694 | | |
2663 | 2695 | | |
2664 | | - | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
2665 | 2699 | | |
2666 | 2700 | | |
2667 | 2701 | | |
| |||
2790 | 2824 | | |
2791 | 2825 | | |
2792 | 2826 | | |
2793 | | - | |
| 2827 | + | |
2794 | 2828 | | |
2795 | | - | |
2796 | 2829 | | |
2797 | 2830 | | |
2798 | 2831 | | |
2799 | 2832 | | |
2800 | 2833 | | |
2801 | 2834 | | |
2802 | 2835 | | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
2803 | 2839 | | |
2804 | 2840 | | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
2805 | 2849 | | |
2806 | 2850 | | |
2807 | 2851 | | |
| |||
0 commit comments