Repository navigation
Commit f49fb20
committed
Share prefix KV cache across instances with the Selene pool
Add an optional Selene pool so Flare instances can share prefix KV
checkpoints across processes and hosts. Without --prefix-cache-pool,
Flare keeps using Selene's in-process host tiers as before.
- selene::shared holds the protocol and the definitions both sides use:
wire messages, framing, rank slices, identity, limits, the record format
and disk engine, the prefix index, regions, TLS setup and RDMA verbs.
- The selene manager (binary selene) owns one pool's DRAM and NVMe store,
keeps an index of what every attached instance holds, and brokers
lookup, claim, copy and release with fencing and quarantine. Copies use
shared-memory windows on one host, a TCP or TLS data channel between
hosts, relay through the manager, and experimental write-only RDMA.
- The pool client performs lookups, restores, exports and puts. A
single-process instance is a world of one rank; multi-host
tensor-parallel instances use per-rank slices and one rank link.
- Host tiers never drop a record mid-chain. Records move VRAM to DRAM to
local NVMe to the pool, demoted ahead of need and dropped only at the
end of the chain. An opt-in --prefix-cache-drain-on-shutdown persists
DRAM-only records on a clean stop.
- Flare exposes checkpoint export chains and eviction headroom, attaches
the pool at startup within its host and device budgets, and degrades to
local tiers when the manager is unavailable.
Design-Signed-Off-By: yatesdr; design-review=2d931 parent 7c1a9fd commit f49fb20
186 files changed
Lines changed: 72090 additions & 4208 deletions
File tree
- .github/workflows
- docs
- eos/src
- flare
- src
- tests
- heliopause
- helios
- src
- cache
- execution
- frontend/images
- offload
- pool
- shard
- runtime_package
- scheduler
- sharing
- server
- runtime
- ignition/cli
- packaging/debian
- scripts
- selene-manager
- deploy
- docs
- src
- data
- pool
- tests
- client
- fixtures
- support
- selene
- examples
- proto
- src
- offload
- sharded
- pool
- budget
- engine
- local
- options
- peers
- records
- store
- shard
- tests/cli
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 | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
311 | 318 | | |
312 | 319 | | |
313 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
| 946 | + | |
946 | 947 | | |
947 | 948 | | |
948 | 949 | | |
| |||
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1043 | 1058 | | |
1044 | 1059 | | |
1045 | 1060 | | |
| |||
0 commit comments