Expand description
2026-09-25: HighSpeedSwap, the high-speed-swap orchestrator. It writes KV
blocks to per-layer files (offload_block*) and streams a sequence’s blocks
back through a scratch pool into tiled attention (attend_layer*), using the
predictor, the file backend and the eviction policy. It also keeps the disk
block ids and the per-thread slot (install_local, with_local) through
which model code reaches it.
Owner: metrale-storage high-speed swap. Invariants:
alloc_disk_block_idreuses ids fromfree_listbefore it issues a new id, and never issues one at or abovemax_blocks_per_layer.
Re-exports§
pub use crate::model_dims::ModelDims;
Structs§
Functions§
- install_
local - 2026-09-25: Build an orchestrator and install it on the current thread, dropping any earlier one. On a build error the earlier one stays.
- local_
installed - 2026-09-25: Whether this thread has an installed orchestrator.
- with_
local - 2026-09-25: Run
fon this thread’s orchestrator;Nonewhen none is installed.