pub struct Mtp {
pub enorm: Vec<f32>,
pub hnorm: Vec<f32>,
pub e_proj: QTensor,
pub h_proj: QTensor,
pub layer: Layer,
pub head_fn: Vec<f32>,
pub head_base: Vec<f32>,
pub head_scale: f32,
pub final_norm: Vec<f32>,
pub bytes: u64,
}Expand description
The checkpoint’s multi-token-prediction layer (mtp.0.*): at position i
it takes the stack’s streams and the embedding of token i + 1 —
stream_s = e_proj(enorm(emb)) + h_proj(hnorm(stream_s)) — through one
decoder layer (plain GQA over its own rows, a routed FFN), its own closing
fold and final norm, and the model’s head: token i + 2. The card drafts
with it (spec_token).
Fields§
§enorm: Vec<f32>§hnorm: Vec<f32>§e_proj: QTensor§h_proj: QTensor§layer: Layer§head_fn: Vec<f32>§head_base: Vec<f32>§head_scale: f32§final_norm: Vec<f32>§bytes: u64Bytes of its tensors (the room the card keeps for them).
Auto Trait Implementations§
impl Forget for Mtp
impl Freeze for Mtp
impl Move for Mtp
impl RefUnwindSafe for Mtp
impl Send for Mtp
impl Sync for Mtp
impl Unpin for Mtp
impl UnsafeUnpin for Mtp
impl UnwindSafe for Mtp
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