pub struct Latent {Show 18 fields
pub qr: String,
pub qpp: String,
pub kc: String,
pub pos: Option<String>,
pub heads: usize,
pub kw: usize,
pub lora: usize,
pub nope: usize,
pub len: usize,
pub rows: usize,
pub scale: f64,
pub wkb: String,
pub fk: GgmlType,
pub kro: bool,
pub wvb: String,
pub fv: GgmlType,
pub vd: usize,
pub ct: String,
}Expand description
A latent attention’s shape and names, as its expanded launches read them: the query projection qr (each head’s
unrotated part its first nope values) and the rotated part qpp; the cache kc, kw wide a row — the latent
lora values then the shared rotated key — len rows; the key and value halves of the latent’s expansion and their
formats (kro: the key half’s checkpoint rows are its outputs); the result ct.
Fields§
§qr: String§qpp: String§kc: String§pos: Option<String>§heads: usize§kw: usize§lora: usize§nope: usize§len: usize§rows: usize§scale: f64§wkb: String§fk: GgmlType§kro: bool§wvb: String§fv: GgmlType§vd: usize§ct: StringAuto Trait Implementations§
impl Freeze for Latent
impl RefUnwindSafe for Latent
impl Send for Latent
impl Sync for Latent
impl Unpin for Latent
impl UnsafeUnpin for Latent
impl UnwindSafe for Latent
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.