pub struct FoundationModelConfig {
pub model_dim: usize,
pub num_layers: usize,
pub num_heads: usize,
pub ff_dim: usize,
pub max_seq_length: usize,
pub vocab_size: usize,
pub dropout: f32,
pub pretraining_objectives: Vec<PretrainingObjective>,
}Expand description
Configuration for foundation model
Fields§
§model_dim: usizeModel dimension
num_layers: usizeNumber of encoder layers
num_heads: usizeNumber of attention heads
ff_dim: usizeFeedforward dimension
max_seq_length: usizeMaximum sequence length for graph sequences
vocab_size: usizeVocabulary size for graph tokens
dropout: f32Dropout rate
pretraining_objectives: Vec<PretrainingObjective>Pre-training objectives
Trait Implementations§
Source§impl Clone for FoundationModelConfig
impl Clone for FoundationModelConfig
Source§fn clone(&self) -> FoundationModelConfig
fn clone(&self) -> FoundationModelConfig
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 moreAuto Trait Implementations§
impl Freeze for FoundationModelConfig
impl RefUnwindSafe for FoundationModelConfig
impl Send for FoundationModelConfig
impl Sync for FoundationModelConfig
impl Unpin for FoundationModelConfig
impl UnsafeUnpin for FoundationModelConfig
impl UnwindSafe for FoundationModelConfig
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,
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