pub struct TimesFMConfig {Show 14 fields
pub input_patch_len: usize,
pub output_patch_len: usize,
pub output_quantile_len: usize,
pub num_layers: usize,
pub d_model: usize,
pub d_ff: usize,
pub num_heads: usize,
pub head_dim: usize,
pub quantiles: Vec<f32>,
pub n_outputs: usize,
pub decode_index: usize,
pub context_limit: usize,
pub rms_norm_eps: f64,
pub rope_theta: f64,
}Expand description
Hardcoded architecture constants for TimesFM 2.5 200M.
These match TimesFM_2p5_200M_Definition in the Python source exactly.
No config.json is needed — the architecture is fixed for this model.
Fields§
§input_patch_len: usizeInput patch length (p = 32).
output_patch_len: usizeOutput patch length (o = 128).
output_quantile_len: usizeOutput quantile length for the continuous quantile head (os = 1024).
num_layers: usizeNumber of stacked transformer layers.
d_model: usizeTransformer model dimension.
d_ff: usizeFeed-forward hidden dimension.
num_heads: usizeNumber of attention heads.
head_dim: usizeHead dimension = d_model / num_heads.
quantiles: Vec<f32>Quantile levels predicted (excludes the implicit point forecast at index 0).
n_outputs: usizeTotal number of per-timestep outputs = len(quantiles) + 1 (point).
decode_index: usizeIndex used to extract point/AR forecast from the 10-dim output.
context_limit: usizeMaximum context tokens the model accepts (in individual timesteps).
rms_norm_eps: f64RMS norm epsilon.
rope_theta: f64RoPE base frequency (theta = 10000).
Implementations§
Source§impl TimesFMConfig
impl TimesFMConfig
Trait Implementations§
Source§impl Clone for TimesFMConfig
impl Clone for TimesFMConfig
Source§fn clone(&self) -> TimesFMConfig
fn clone(&self) -> TimesFMConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimesFMConfig
impl Debug for TimesFMConfig
Auto Trait Implementations§
impl Freeze for TimesFMConfig
impl RefUnwindSafe for TimesFMConfig
impl Send for TimesFMConfig
impl Sync for TimesFMConfig
impl Unpin for TimesFMConfig
impl UnsafeUnpin for TimesFMConfig
impl UnwindSafe for TimesFMConfig
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
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> 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>
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>
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