pub struct DeepseekV4Engine {
pub weights: DeepseekV4DecoderWeights,
pub cfg: DeepseekV4DecoderConfig,
}Expand description
DeepSeek V4 synthetic stack behind Engine. Preset deepseek_v4_pro
remains a sketch until a real GGUF loader + incremental DSV4 KV land.
Fields§
§weights: DeepseekV4DecoderWeights§cfg: DeepseekV4DecoderConfigTrait Implementations§
Source§impl Engine for DeepseekV4Engine
impl Engine for DeepseekV4Engine
type State = DeepseekV4DecodeState
Source§fn new_state(&self) -> DeepseekV4DecodeState
fn new_state(&self) -> DeepseekV4DecodeState
Builds fresh (empty) per-layer state for a new request.
fn vocab_size(&self) -> usize
fn forward_token( &self, token_id: usize, _pos: usize, state: &mut Self::State, ) -> Vec<f32>
Auto Trait Implementations§
impl Freeze for DeepseekV4Engine
impl RefUnwindSafe for DeepseekV4Engine
impl Send for DeepseekV4Engine
impl Sync for DeepseekV4Engine
impl Unpin for DeepseekV4Engine
impl UnsafeUnpin for DeepseekV4Engine
impl UnwindSafe for DeepseekV4Engine
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more