pub struct NomicConfig {Show 17 fields
pub hidden_size: usize,
pub num_attention_heads: usize,
pub intermediate_size: usize,
pub num_hidden_layers: usize,
pub max_position_embeddings: usize,
pub vocab_size: usize,
pub type_vocab_size: usize,
pub num_experts: usize,
pub moe_top_k: usize,
pub moe_every_n_layers: usize,
pub rotary_emb_base: f64,
pub rotary_emb_fraction: f64,
pub layer_norm_epsilon: f64,
pub qkv_proj_bias: bool,
pub mlp_fc1_bias: bool,
pub mlp_fc2_bias: bool,
pub pad_token_id: usize,
}Available on crate feature
nomic-v2-moe only.Fields§
§num_attention_heads: usize§intermediate_size: usize§max_position_embeddings: usize§vocab_size: usize§type_vocab_size: usize§num_experts: usize§moe_top_k: usize§moe_every_n_layers: usize§rotary_emb_base: f64§rotary_emb_fraction: f64§layer_norm_epsilon: f64§qkv_proj_bias: bool§mlp_fc1_bias: bool§mlp_fc2_bias: bool§pad_token_id: usizeImplementations§
Source§impl NomicConfig
impl NomicConfig
Trait Implementations§
Source§impl Clone for NomicConfig
impl Clone for NomicConfig
Source§impl Debug for NomicConfig
impl Debug for NomicConfig
Source§impl<'de> Deserialize<'de> for NomicConfig
impl<'de> Deserialize<'de> for NomicConfig
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 NomicConfig
impl RefUnwindSafe for NomicConfig
impl Send for NomicConfig
impl Sync for NomicConfig
impl Unpin for NomicConfig
impl UnsafeUnpin for NomicConfig
impl UnwindSafe for NomicConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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