pub struct ExpertResidency {
pub packed_addr: [u64; 3],
pub scale_addr: [u64; 3],
pub scale2: [f32; 3],
pub input_scale: [Option<f32>; 3],
}Expand description
The six sub-buffer device addresses (+ scalars) of one resident expert — exactly what the ptr-table patcher writes into the shadow tables.
Fields§
§packed_addr: [u64; 3]gate/up/down B_packed device VA.
scale_addr: [u64; 3]gate/up/down B_scale device VA.
scale2: [f32; 3]gate/up/down per-tensor weight_scale_2.
input_scale: [Option<f32>; 3]gate/up/down input_scale (None = weight-only W4A16).
Trait Implementations§
Source§impl Clone for ExpertResidency
impl Clone for ExpertResidency
Source§fn clone(&self) -> ExpertResidency
fn clone(&self) -> ExpertResidency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpertResidency
impl Debug for ExpertResidency
Source§impl PartialEq for ExpertResidency
impl PartialEq for ExpertResidency
impl Copy for ExpertResidency
impl StructuralPartialEq for ExpertResidency
Auto Trait Implementations§
impl Freeze for ExpertResidency
impl RefUnwindSafe for ExpertResidency
impl Send for ExpertResidency
impl Sync for ExpertResidency
impl Unpin for ExpertResidency
impl UnwindSafe for ExpertResidency
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