pub struct ModelFamilyWrapper<T: ModelFamily>(/* private fields */);Expand description
Wrapper for ModelFamily trait to make it work with ModelRegistry
Implementations§
Source§impl<T: ModelFamily> ModelFamilyWrapper<T>
impl<T: ModelFamily> ModelFamilyWrapper<T>
Trait Implementations§
Source§impl<T: ModelFamily> Default for ModelFamilyWrapper<T>
impl<T: ModelFamily> Default for ModelFamilyWrapper<T>
Source§impl<T: ModelFamily> ModelFamilyImpl for ModelFamilyWrapper<T>
impl<T: ModelFamily> ModelFamilyImpl for ModelFamilyWrapper<T>
Source§fn create_config(
&self,
size: &str,
variant: Option<&str>,
) -> Result<Box<dyn DynConfig>>
fn create_config( &self, size: &str, variant: Option<&str>, ) -> Result<Box<dyn DynConfig>>
Create configuration for a specific size and variant
Source§fn family_name(&self) -> &'static str
fn family_name(&self) -> &'static str
Get family name
Source§fn available_sizes(&self) -> Vec<&'static str>
fn available_sizes(&self) -> Vec<&'static str>
Get available model sizes
Source§fn available_variants(&self) -> Vec<&'static str>
fn available_variants(&self) -> Vec<&'static str>
Get available variants (base, instruct, chat, etc.)
Source§fn metadata(&self) -> ModelFamilyMetadata
fn metadata(&self) -> ModelFamilyMetadata
Get model family metadata
Auto Trait Implementations§
impl<T> Freeze for ModelFamilyWrapper<T>
impl<T> RefUnwindSafe for ModelFamilyWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ModelFamilyWrapper<T>
impl<T> Sync for ModelFamilyWrapper<T>
impl<T> Unpin for ModelFamilyWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for ModelFamilyWrapper<T>
impl<T> UnwindSafe for ModelFamilyWrapper<T>where
T: UnwindSafe,
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