pub struct WeightCache { /* private fields */ }Expand description
Parse-once, serve-many weight cache. A GGUF file is parsed a single time and
then serves any number of its tensors (f32 or packed) — the right shape for
a worker whose stage pulls many tensors (q/k/v/o/ffn) from one model file.
Created per stage inside recv_stage; also usable standalone.
Implementations§
Source§impl WeightCache
impl WeightCache
Trait Implementations§
Source§impl Default for WeightCache
impl Default for WeightCache
Source§fn default() -> WeightCache
fn default() -> WeightCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WeightCache
impl RefUnwindSafe for WeightCache
impl Send for WeightCache
impl Sync for WeightCache
impl Unpin for WeightCache
impl UnsafeUnpin for WeightCache
impl UnwindSafe for WeightCache
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
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