pub enum ModelBuffer {
Logits,
Tokens,
DraftEmbed,
}Expand description
2026-09-30: A buffer the model owns that a program’s output lands in.
Variants§
Logits
2026-09-30: The vocabulary logits the sampler (or the host) reads.
Tokens
2026-09-30: The sampled tokens.
DraftEmbed
2026-09-30: The MTP draft head’s token embedding, which the draft runner fills.
Implementations§
Trait Implementations§
Source§impl Clone for ModelBuffer
impl Clone for ModelBuffer
Source§fn clone(&self) -> ModelBuffer
fn clone(&self) -> ModelBuffer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelBuffer
impl Debug for ModelBuffer
Source§impl Hash for ModelBuffer
impl Hash for ModelBuffer
Source§impl Ord for ModelBuffer
impl Ord for ModelBuffer
Source§fn cmp(&self, other: &ModelBuffer) -> Ordering
fn cmp(&self, other: &ModelBuffer) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModelBuffer
impl PartialEq for ModelBuffer
Source§impl PartialOrd for ModelBuffer
impl PartialOrd for ModelBuffer
impl Copy for ModelBuffer
impl Eq for ModelBuffer
impl StructuralPartialEq for ModelBuffer
Auto Trait Implementations§
impl Freeze for ModelBuffer
impl RefUnwindSafe for ModelBuffer
impl Send for ModelBuffer
impl Sync for ModelBuffer
impl Unpin for ModelBuffer
impl UnwindSafe for ModelBuffer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.