Swa KV Cache State#
-
class SwaWindowStateView#
Non-owning access to the bounded manager’s settled per-sequence windows. The manager retains ownership and the view is valid only for the synchronous completion call in which it is supplied.
Public Functions
-
SwaWindowStateView() = default#
- inline SwaWindowStateView(
- SwaKVCacheState const *states,
- size_t size
-
inline size_t size() const noexcept#
-
inline bool empty() const noexcept#
-
inline SwaWindowState const &operator[](size_t slot) const#
-
SwaWindowStateView() = default#
-
struct SwaCacheConfig#
Optional engine-wide sliding-window context-cache configuration.
-
struct SwaPageBinding#
One absolute logical-to-physical binding in a bounded SWA window.
-
struct SwaWindowState#
Settled SWA state that can be stored immutably in a context-cache record.
Subclassed by trt_edgellm::rt::SwaKVCacheState
-
struct SwaKVCacheState : public trt_edgellm::rt::SwaWindowState#
Request-local execution state. The inherited settled fields remain directly accessible to existing runtime code; the additional members are transient and are never stored in a cache record.
Public Members
-
ResidentRef resident#
-
std::vector<PageId> reservedPages#
-
std::vector<SwaPageBinding> newPageBindings#
-
std::vector<SwaPageBinding> pendingRetireBindings#
-
std::optional<int32_t> pendingEndpoint#
-
ResidentRef resident#