pub struct Gemma3TextRunner { /* private fields */ }Implementations§
Source§impl Gemma3TextRunner
impl Gemma3TextRunner
pub async fn new( model_id: impl ToString, model_file: impl AsRef<str>, ctx_size: NonZeroU32, ) -> Result<Self, CreateLlamaCppRunnerError>
pub fn recommend_sampling() -> SimpleSamplingParams
pub fn from_file( model_file: impl AsRef<Path>, ctx_size: NonZeroU32, ) -> Result<Self, CreateLlamaCppRunnerError>
pub async fn default() -> Result<RunnerWithRecommendedSampling<Self>, CreateLlamaCppRunnerError>
Trait Implementations§
Source§impl<'s, 'req, Tmpl> TextLmRunner<'s, 'req, Tmpl> for Gemma3TextRunnerwhere
Tmpl: ChatTemplate,
impl<'s, 'req, Tmpl> TextLmRunner<'s, 'req, Tmpl> for Gemma3TextRunnerwhere
Tmpl: ChatTemplate,
fn stream_lm_response( &'s self, request: GenericTextLmRequest<'req, Tmpl>, ) -> impl Iterator<Item = Result<String, GenericRunnerError<Tmpl::Error>>>
Auto Trait Implementations§
impl Freeze for Gemma3TextRunner
impl RefUnwindSafe for Gemma3TextRunner
impl Send for Gemma3TextRunner
impl Sync for Gemma3TextRunner
impl Unpin for Gemma3TextRunner
impl UnsafeUnpin for Gemma3TextRunner
impl UnwindSafe for Gemma3TextRunner
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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