pub struct HFLLaVATextConfig {Show 15 fields
pub architectures: Vec<String>,
pub hidden_size: usize,
pub intermediate_size: usize,
pub max_length: usize,
pub max_position_embeddings: usize,
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 torch_dtype: String,
pub use_cache: bool,
pub vocab_size: usize,
}Fields§
§architectures: Vec<String>§intermediate_size: usize§max_length: usize§max_position_embeddings: usize§model_type: String§num_attention_heads: usize§num_key_value_heads: usize§pad_token_id: usize§rms_norm_eps: f32§rope_theta: f32§torch_dtype: String§use_cache: bool§vocab_size: usizeTrait Implementations§
Source§impl Clone for HFLLaVATextConfig
impl Clone for HFLLaVATextConfig
Source§fn clone(&self) -> HFLLaVATextConfig
fn clone(&self) -> HFLLaVATextConfig
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 HFLLaVATextConfig
impl Debug for HFLLaVATextConfig
Source§impl<'de> Deserialize<'de> for HFLLaVATextConfig
impl<'de> Deserialize<'de> for HFLLaVATextConfig
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 HFLLaVATextConfig
impl RefUnwindSafe for HFLLaVATextConfig
impl Send for HFLLaVATextConfig
impl Sync for HFLLaVATextConfig
impl Unpin for HFLLaVATextConfig
impl UnwindSafe for HFLLaVATextConfig
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