pub struct EmbedOverlay {
pub rows: DevicePtr,
pub ids_dev: DevicePtr,
pub slot_map: DevicePtr,
pub n_override: u32,
pub vocab: u32,
pub lmhead: Option<LmHeadOverlay>,
}Expand description
Stage-2 compact result for one adapter slot’s embed overlay. rows holds the
n_override replacement embedding rows in ascending-ids order; slot_map
is the [vocab] i32 lookup (-1 default, [id] = compact-row-index) the
embed kernel indexes by token id. lmhead is Some only for an UNTIED head
that ships its own overlay tensors.
Fields§
§rows: DevicePtr§ids_dev: DevicePtr§slot_map: DevicePtr§n_override: u32§vocab: u32slot_map length — the served vocab this overlay was built against.
Recorded HERE (where slot_map is allocated) as the SSOT bound the
embed kernel’s ids[r] < vocab guard checks against (CWE-125).
lmhead: Option<LmHeadOverlay>Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbedOverlay
impl RefUnwindSafe for EmbedOverlay
impl Send for EmbedOverlay
impl Sync for EmbedOverlay
impl Unpin for EmbedOverlay
impl UnwindSafe for EmbedOverlay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more