pub struct SyntheticModel {
pub name: String,
pub vocab_size: usize,
pub agreement_rate: f32,
pub step_counter: usize,
/* private fields */
}Expand description
A deterministic synthetic model for benchmarking, testing, and pipeline demonstrations. Simulates model predictions with a controllable agreement/acceptance probability.
Fields§
§name: String§vocab_size: usize§agreement_rate: f32§step_counter: usizeImplementations§
Trait Implementations§
Source§impl Clone for SyntheticModel
impl Clone for SyntheticModel
Source§fn clone(&self) -> SyntheticModel
fn clone(&self) -> SyntheticModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SyntheticModel
impl Debug for SyntheticModel
Source§impl ModelEngine for SyntheticModel
impl ModelEngine for SyntheticModel
Source§async fn forward_batch(
&mut self,
tokens: &[u32],
) -> Result<Vec<Logits>, EngineError>
async fn forward_batch( &mut self, tokens: &[u32], ) -> Result<Vec<Logits>, EngineError>
Computes logits for a sequence of tokens in a single parallel forward pass.
Source§async fn forward_token(&mut self, token: u32) -> Result<Logits, EngineError>
async fn forward_token(&mut self, token: u32) -> Result<Logits, EngineError>
Computes logits for a single token step.
Auto Trait Implementations§
impl Forget for SyntheticModel
impl Freeze for SyntheticModel
impl Move for SyntheticModel
impl RefUnwindSafe for SyntheticModel
impl Send for SyntheticModel
impl Sync for SyntheticModel
impl Unpin for SyntheticModel
impl UnsafeUnpin for SyntheticModel
impl UnwindSafe for SyntheticModel
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