Struct candle_transformers::models::recurrent_gemma::Config
source · pub struct Config {Show 18 fields
pub num_hidden_layers: usize,
pub vocab_size: usize,
pub hidden_size: usize,
pub intermediate_size: usize,
pub num_attention_heads: usize,
pub num_key_value_heads: usize,
pub head_dim: usize,
pub lru_width: Option<usize>,
pub attention_window_size: usize,
pub conv1d_width: usize,
pub logits_soft_cap: f64,
pub hidden_activation: Activation,
pub partial_rotary_factor: f64,
pub rms_norm_eps: f64,
pub rope_theta: f64,
pub block_types: Vec<TemporalBlockType>,
pub attention_bias: bool,
pub max_seq_len: usize,
}
Fields§
§vocab_size: usize
§intermediate_size: usize
§num_attention_heads: usize
§num_key_value_heads: usize
§head_dim: usize
§lru_width: Option<usize>
§attention_window_size: usize
§conv1d_width: usize
§logits_soft_cap: f64
§partial_rotary_factor: f64
§rms_norm_eps: f64
§rope_theta: f64
§block_types: Vec<TemporalBlockType>
§attention_bias: bool
§max_seq_len: usize
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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