pub struct CodePredictorConfig {Show 14 fields
pub hidden_size: usize,
pub intermediate_size: usize,
pub num_hidden_layers: usize,
pub num_attention_heads: usize,
pub num_key_value_heads: usize,
pub head_dim: usize,
pub max_position_embeddings: usize,
pub num_code_groups: usize,
pub vocab_size: usize,
pub rms_norm_eps: f64,
pub rope_theta: f64,
pub hidden_act: String,
pub attention_bias: bool,
pub qk_norm: bool,
}Fields§
§intermediate_size: usize§num_attention_heads: usize§num_key_value_heads: usize§head_dim: usize§max_position_embeddings: usize§num_code_groups: usize§vocab_size: usize§rms_norm_eps: f64§rope_theta: f64§attention_bias: bool§qk_norm: boolImplementations§
Source§impl CodePredictorConfig
impl CodePredictorConfig
pub fn to_talker_config(&self) -> TalkerConfig
pub fn to_qwen3_config(&self) -> Qwen3Config
Trait Implementations§
Source§impl Clone for CodePredictorConfig
impl Clone for CodePredictorConfig
Source§fn clone(&self) -> CodePredictorConfig
fn clone(&self) -> CodePredictorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodePredictorConfig
impl Debug for CodePredictorConfig
Source§impl<'de> Deserialize<'de> for CodePredictorConfig
impl<'de> Deserialize<'de> for CodePredictorConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodePredictorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodePredictorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CodePredictorConfig
impl RefUnwindSafe for CodePredictorConfig
impl Send for CodePredictorConfig
impl Sync for CodePredictorConfig
impl Unpin for CodePredictorConfig
impl UnsafeUnpin for CodePredictorConfig
impl UnwindSafe for CodePredictorConfig
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>,
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