pub struct Qwen3Flow<'a> { /* private fields */ }Implementations§
Source§impl<'a> Qwen3Flow<'a>
impl<'a> Qwen3Flow<'a>
pub fn new(cfg: &'a Qwen3Config) -> Qwen3Flow<'a>
pub fn for_prefill( cfg: &'a Qwen3Config, batch: usize, seq: usize, ) -> Qwen3Flow<'a>
pub fn for_decode( cfg: &'a Qwen3Config, batch: usize, past_seq: usize, ) -> Qwen3Flow<'a>
pub fn prefill(self) -> Qwen3Flow<'a>
pub fn decode(self) -> Qwen3Flow<'a>
pub fn batch(self, batch: usize) -> Qwen3Flow<'a>
pub fn seq(self, seq: usize) -> Qwen3Flow<'a>
pub fn past(self, past_seq: usize) -> Qwen3Flow<'a>
pub fn dynamic_past(self) -> Qwen3Flow<'a>
pub fn lm_head(self) -> Qwen3Flow<'a>
pub fn last_token_logits(self) -> Qwen3Flow<'a>
pub fn export_kv(self) -> Qwen3Flow<'a>
pub fn custom_mask(self) -> Qwen3Flow<'a>
pub fn profile(self, profile: CompileProfile) -> Qwen3Flow<'a>
pub fn build(self, weights: &mut dyn WeightLoader) -> Result<BuiltModel, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Qwen3Flow<'a>
impl<'a> RefUnwindSafe for Qwen3Flow<'a>
impl<'a> Send for Qwen3Flow<'a>
impl<'a> Sync for Qwen3Flow<'a>
impl<'a> Unpin for Qwen3Flow<'a>
impl<'a> UnsafeUnpin for Qwen3Flow<'a>
impl<'a> UnwindSafe for Qwen3Flow<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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