Struct chat_flame_backend::llm::token_generator::dummy::DummyTokenGenerator
source · pub struct DummyTokenGenerator { /* private fields */ }
Expand description
A dummy implementation of the TokenGeneratorTrait
used for testing purposes.
This token generator produces a predefined sequence of tokens based on the index counter. It’s a simplified version intended for unit testing without involving complex models or samplers.
Implementations§
source§impl DummyTokenGenerator
impl DummyTokenGenerator
sourcepub fn new(parameter: GenerateParameter) -> Self
pub fn new(parameter: GenerateParameter) -> Self
Trait Implementations§
impl Send for DummyTokenGenerator
Auto Trait Implementations§
impl !RefUnwindSafe for DummyTokenGenerator
impl !Sync for DummyTokenGenerator
impl Unpin for DummyTokenGenerator
impl !UnwindSafe for DummyTokenGenerator
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