pub struct HFLLaVAConfig {Show 13 fields
pub architectures: Vec<String>,
pub ignore_index: isize,
pub image_grid_pinpoints: Vec<(u32, u32)>,
pub image_token_index: isize,
pub model_type: String,
pub projector_hidden_act: String,
pub text_config: HFLLaVATextConfig,
pub torch_dtype: String,
pub use_image_newline_parameter: bool,
pub vision_config: HFLLaVAVisionConfig,
pub vision_feature_layer: isize,
pub vision_feature_select_strategy: String,
pub vocab_size: usize,
}Fields§
§architectures: Vec<String>§ignore_index: isize§image_grid_pinpoints: Vec<(u32, u32)>§image_token_index: isize§model_type: String§text_config: HFLLaVATextConfig§torch_dtype: String§use_image_newline_parameter: bool§vision_config: HFLLaVAVisionConfig§vision_feature_layer: isize§vision_feature_select_strategy: String§vocab_size: usizeImplementations§
Source§impl HFLLaVAConfig
impl HFLLaVAConfig
pub fn to_clip_vision_config(&self) -> ClipVisionConfig
pub fn to_llava_config( &self, generation_config: &HFGenerationConfig, preprocessor_config: &HFPreProcessorConfig, ) -> LLaVAConfig
Trait Implementations§
Source§impl Clone for HFLLaVAConfig
impl Clone for HFLLaVAConfig
Source§fn clone(&self) -> HFLLaVAConfig
fn clone(&self) -> HFLLaVAConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HFLLaVAConfig
impl Debug for HFLLaVAConfig
Source§impl<'de> Deserialize<'de> for HFLLaVAConfig
impl<'de> Deserialize<'de> for HFLLaVAConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HFLLaVAConfig
impl RefUnwindSafe for HFLLaVAConfig
impl Send for HFLLaVAConfig
impl Sync for HFLLaVAConfig
impl Unpin for HFLLaVAConfig
impl UnwindSafe for HFLLaVAConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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