pub struct DraftLayer {Show 16 fields
pub q: QTensor,
pub k: QTensor,
pub v: QTensor,
pub o: QTensor,
pub k_ctx: QTensor,
pub v_ctx: QTensor,
pub gate: QTensor,
pub up: QTensor,
pub down: QTensor,
pub dflare_norm: Vec<f32>,
pub in_norm: Vec<f32>,
pub post_norm: Vec<f32>,
pub q_norm: Vec<f32>,
pub k_norm: Vec<f32>,
pub k_ctx_norm: Vec<f32>,
pub local: bool,
}Expand description
One dense layer of the DSpark drafter.
Fields§
§q: QTensor§k: QTensor§v: QTensor§o: QTensor§k_ctx: QTensor§v_ctx: QTensor§gate: QTensor§up: QTensor§down: QTensor§dflare_norm: Vec<f32>§in_norm: Vec<f32>§post_norm: Vec<f32>§q_norm: Vec<f32>§k_norm: Vec<f32>§k_ctx_norm: Vec<f32>§local: boolA sliding-window layer (mtp_config.local_layer_ids).
Auto Trait Implementations§
impl Forget for DraftLayer
impl Freeze for DraftLayer
impl Move for DraftLayer
impl RefUnwindSafe for DraftLayer
impl Send for DraftLayer
impl Sync for DraftLayer
impl Unpin for DraftLayer
impl UnsafeUnpin for DraftLayer
impl UnwindSafe for DraftLayer
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