pub struct TotoConfig {
pub num_hidden_layers: u32,
pub hidden_size: u32,
pub num_attention_heads: u32,
pub num_key_value_heads: u32,
pub head_dim: u32,
pub patch_size: u32,
pub num_quantiles: u32,
}Expand description
Mirrors the relevant fields from Datadog/Toto-2.0 config.json. Accepts the Python model field names (d_model, num_layers, …). Unknown fields are ignored so we stay forward-compatible.
Fields§
Number of transformer layers.
Hidden / embedding dimension.
num_attention_heads: u32Number of query attention heads.
num_key_value_heads: u32Number of KV groups (num_groups in Python = GQA groups).
head_dim: u32Per-head QK dimension.
patch_size: u32Patch size in timesteps.
num_quantiles: u32Number of output quantile levels.
Implementations§
Trait Implementations§
Source§impl Debug for TotoConfig
impl Debug for TotoConfig
Source§impl<'de> Deserialize<'de> for TotoConfig
impl<'de> Deserialize<'de> for TotoConfig
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 TotoConfig
impl RefUnwindSafe for TotoConfig
impl Send for TotoConfig
impl Sync for TotoConfig
impl Unpin for TotoConfig
impl UnsafeUnpin for TotoConfig
impl UnwindSafe for TotoConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§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