pub struct LLaVAConfig {Show 31 fields
pub architectures: Vec<String>,
pub bos_token_id: usize,
pub eos_token_id: usize,
pub hidden_size: usize,
pub image_aspect_ratio: String,
pub image_crop_resolution: usize,
pub image_grid_pinpoints: Vec<(u32, u32)>,
pub image_split_resolution: usize,
pub intermediate_size: usize,
pub max_position_embeddings: usize,
pub mm_hidden_size: usize,
pub mm_patch_merge_type: String,
pub mm_projector_type: String,
pub mm_use_im_start_end: bool,
pub mm_vision_select_feature: String,
pub mm_vision_select_layer: isize,
pub mm_vision_tower: Option<String>,
pub model_type: String,
pub num_attention_heads: usize,
pub num_hidden_layers: usize,
pub num_key_value_heads: usize,
pub pad_token_id: usize,
pub rms_norm_eps: f32,
pub rope_theta: f32,
pub tokenizer_model_max_length: Option<usize>,
pub torch_dtype: String,
pub use_cache: bool,
pub vocab_size: usize,
pub image_token_index: isize,
pub hf: bool,
pub tie_word_embeddings: Option<bool>,
}Fields§
§architectures: Vec<String>§bos_token_id: usize§eos_token_id: usize§image_aspect_ratio: String§image_crop_resolution: usize§image_grid_pinpoints: Vec<(u32, u32)>§image_split_resolution: usize§intermediate_size: usize§max_position_embeddings: usize§mm_patch_merge_type: String§mm_projector_type: String§mm_use_im_start_end: bool§mm_vision_select_feature: String§mm_vision_select_layer: isize§mm_vision_tower: Option<String>§model_type: String§num_attention_heads: usize§num_key_value_heads: usize§pad_token_id: usize§rms_norm_eps: f32§rope_theta: f32§tokenizer_model_max_length: Option<usize>§torch_dtype: String§use_cache: bool§vocab_size: usize§image_token_index: isize§hf: bool§tie_word_embeddings: Option<bool>Implementations§
Source§impl LLaVAConfig
impl LLaVAConfig
pub fn to_llama_config(&self) -> Config
Trait Implementations§
Source§impl Clone for LLaVAConfig
impl Clone for LLaVAConfig
Source§fn clone(&self) -> LLaVAConfig
fn clone(&self) -> LLaVAConfig
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 LLaVAConfig
impl Debug for LLaVAConfig
Source§impl<'de> Deserialize<'de> for LLaVAConfig
impl<'de> Deserialize<'de> for LLaVAConfig
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 LLaVAConfig
impl RefUnwindSafe for LLaVAConfig
impl Send for LLaVAConfig
impl Sync for LLaVAConfig
impl Unpin for LLaVAConfig
impl UnwindSafe for LLaVAConfig
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