pub struct Gemma3VisionRunner { /* private fields */ }Implementations§
Source§impl Gemma3VisionRunner
impl Gemma3VisionRunner
pub async fn new( repo_id: impl ToString, model_file: impl AsRef<str>, multimodel_file: impl AsRef<str>, ctx_size: NonZeroU32, ) -> Result<Self, CreateLlamaCppRunnerError>
pub fn from_files( model_file: impl AsRef<Path>, multimodel_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 Gemma3VisionRunnerwhere
Tmpl: ChatTemplate,
impl<'s, 'req, Tmpl> TextLmRunner<'s, 'req, Tmpl> for Gemma3VisionRunnerwhere
Tmpl: ChatTemplate,
fn stream_lm_response( &'s self, request: GenericTextLmRequest<'req, Tmpl>, ) -> impl Iterator<Item = Result<String, GenericRunnerError<Tmpl::Error>>>
Source§impl<'s, 'req, Tmpl> VisionLmRunner<'s, 'req, Tmpl> for Gemma3VisionRunnerwhere
Tmpl: ChatTemplate,
impl<'s, 'req, Tmpl> VisionLmRunner<'s, 'req, Tmpl> for Gemma3VisionRunnerwhere
Tmpl: ChatTemplate,
fn stream_vlm_response( &'s self, request: GenericVisionLmRequest<'req, Tmpl>, ) -> impl Iterator<Item = Result<String, GenericRunnerError<Tmpl::Error>>>
Auto Trait Implementations§
impl Freeze for Gemma3VisionRunner
impl RefUnwindSafe for Gemma3VisionRunner
impl Send for Gemma3VisionRunner
impl Sync for Gemma3VisionRunner
impl Unpin for Gemma3VisionRunner
impl UnsafeUnpin for Gemma3VisionRunner
impl UnwindSafe for Gemma3VisionRunner
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