pub struct PackedWeight {
pub name: String,
pub shape: Vec<usize>,
pub scheme: String,
pub layout: String,
pub data: Vec<u8>,
pub rank: Option<u32>,
pub tier: StorageTier,
}Expand description
One weight to pack (from bake or another producer).
scheme is a string such as "f32" or "gguf_q4_k". tier selects
hot mmap vs warm/cold compression (StorageTier).
Fields§
§name: String§shape: Vec<usize>§scheme: String§layout: String§data: Vec<u8>§rank: Option<u32>§tier: StorageTierHot (mmap), warm (blocked zstd), or cold (whole zstd).
Implementations§
Trait Implementations§
Source§impl Clone for PackedWeight
impl Clone for PackedWeight
Auto Trait Implementations§
impl Freeze for PackedWeight
impl RefUnwindSafe for PackedWeight
impl Send for PackedWeight
impl Sync for PackedWeight
impl Unpin for PackedWeight
impl UnsafeUnpin for PackedWeight
impl UnwindSafe for PackedWeight
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more