pub struct LmHeadOverlay {
pub rows: DevicePtr,
pub ids_dev: DevicePtr,
pub n_override: u32,
}Expand description
2026-09-25: The overlay of an untied lm_head: rows ([n_override, h]
BF16) and their vocab ids. The lm_head kernel writes dot(hidden, row) to
each overridden id’s logit.
Fields§
§rows: DevicePtr§ids_dev: DevicePtr§n_override: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for LmHeadOverlay
impl RefUnwindSafe for LmHeadOverlay
impl Send for LmHeadOverlay
impl Sync for LmHeadOverlay
impl Unpin for LmHeadOverlay
impl UnwindSafe for LmHeadOverlay
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