pub struct Draft {Show 16 fields
pub layers: Vec<DraftLayer>,
pub alpha: Vec<f32>,
pub mask: Vec<f32>,
pub norm: Vec<f32>,
pub markov_norm: Vec<f32>,
pub rnn_w: Vec<f32>,
pub rnn_b: Vec<f32>,
pub w1: QTensor,
pub fold: QTensor,
pub fold_b: Vec<f32>,
pub targets: Vec<usize>,
pub window: usize,
pub block: usize,
pub rank: usize,
pub rope_theta: f64,
pub eps: f32,
}Expand description
The DSpark drafter (the release’s mtp.safetensors): dense layers over a
block of the anchor and mask rows, their context keys and values made from
the target’s taps (targets: application indices, the last the final
normed state), and a recurrent Markov head over the target’s head.
Fields§
§layers: Vec<DraftLayer>§alpha: Vec<f32>softmax(fuse_weight) rows: [mixes][targets], a mix per draft layer and
the Markov head’s last.
mask: Vec<f32>§norm: Vec<f32>§markov_norm: Vec<f32>§rnn_w: Vec<f32>The recurrence: [3 rank][2 rank + 2 hidden] (state, previous token,
hidden, context columns) and its bias.
rnn_b: Vec<f32>§w1: QTensorThe previous token’s row [vocab][rank] (f16).
fold: QTensorhead · hidden_out [vocab][rank] and head · hidden_out’s bias.
fold_b: Vec<f32>§targets: Vec<usize>§window: usize§block: usize§rank: usize§rope_theta: f64§eps: f32Auto Trait Implementations§
impl Forget for Draft
impl Freeze for Draft
impl Move for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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