Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-research/timesfm
/ types & classes
Types & classes
88 in github.com/google-research/timesfm
⨍
Functions
402
◇
Types & classes
88
↓ 13 callers
Class
CheckResult
timesfm-forecasting/scripts/check_system.py:75
↓ 10 callers
Class
RMSNorm
RMS normalization.
src/timesfm/flax/normalization.py:29
↓ 10 callers
Class
ResidualBlockConfig
Framework-agnostic config for a residual block.
src/timesfm/configs.py:64
↓ 7 callers
Class
ForecastConfig
Options for forecasting. Attributes: max_context: The maximum context length. This is used by the compiled decode function at inference t
src/timesfm/configs.py:22
↓ 6 callers
Class
RMSNorm
RMS normalization.
src/timesfm/torch/normalization.py:21
↓ 6 callers
Class
TimesFM_2p5_200M_torch
PyTorch implementation of TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_torch.py:259
↓ 5 callers
Class
RandomFourierFeaturesConfig
Framework-agnostic config for random fourier features.
src/timesfm/configs.py:75
↓ 5 callers
Class
ResidualBlock
Residual block with two linear layers and a linear residual connection.
src/timesfm/flax/dense.py:34
↓ 4 callers
Class
RandomFourierFeatures
Random Fourier features layer.
src/timesfm/flax/dense.py:72
↓ 3 callers
Class
DoraThetaDescriptor
Dot syntax accession descriptor.
v1/src/adapter/dora_layers.py:76
↓ 3 callers
Class
FinetuningConfig
Configuration for model training. Args: batch_size: Number of samples per batch. num_epochs: Number of training epochs. learnin
v1/src/finetuning/finetuning_torch.py:120
↓ 3 callers
Class
LoraThetaDescriptor
Dot syntax accession descriptor.
v1/src/adapter/lora_layers.py:67
↓ 3 callers
Class
TransformerConfig
Framework-agnostic config for a transformer.
src/timesfm/configs.py:85
↓ 2 callers
Class
DecodeCache
Cache for decoding.
src/timesfm/flax/util.py:33
↓ 2 callers
Class
ExperimentHandler
v1/experiments/extended_benchmarks/utils.py:59
↓ 2 callers
Class
MEMORYSTATUSEX
timesfm-forecasting/scripts/check_system.py:150
↓ 2 callers
Class
PatchedTimeSeriesDecoder
Patched time-series decoder.
v1/src/timesfm/pytorch_patched_decoder.py:574
↓ 2 callers
Class
ResidualBlock
TimesFM residual block.
v1/src/timesfm/pytorch_patched_decoder.py:239
↓ 2 callers
Class
StackedTransformersConfig
Framework-agnostic config for a stacked transformers.
src/timesfm/configs.py:101
↓ 2 callers
Class
TimeSeriesDataset
Dataset for time series data compatible with TimesFM.
v1/src/finetuning/finetuning_example.py:51
↓ 2 callers
Class
TimesFMFinetuner
Handles model training and validation. Args: model: PyTorch model to train. config: Training configuration. rank: Process rank
v1/src/finetuning/finetuning_torch.py:162
↓ 2 callers
Class
TimesFM_2p5_200M_flax_module
TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_flax.py:85
↓ 1 callers
Class
DistributedManager
Manages distributed training setup and cleanup. Args: world_size: Total number of processes. rank: Process rank. master_addr: A
v1/src/finetuning/finetuning_torch.py:78
↓ 1 callers
Class
DoraTheta
v1/src/adapter/dora_layers.py:23
↓ 1 callers
Class
LoraTheta
v1/src/adapter/lora_layers.py:23
↓ 1 callers
Class
MultiHeadAttention
Multi-head attention.
src/timesfm/torch/transformer.py:169
↓ 1 callers
Class
MultiHeadAttention
Multi-head attention.
src/timesfm/flax/transformer.py:134
↓ 1 callers
Class
PerDimScale
Per-dimension scaling.
src/timesfm/torch/transformer.py:154
↓ 1 callers
Class
PerDimScale
Per-dimension scaling.
src/timesfm/flax/transformer.py:118
↓ 1 callers
Class
PositionalEmbedding
Generates position embedding for a given 1-d sequence. Attributes: min_timescale: Start of the geometric index. Determines the periodicity of
v1/src/timesfm/pytorch_patched_decoder.py:518
↓ 1 callers
Class
RMSNorm
Pax rms norm in pytorch.
v1/src/timesfm/pytorch_patched_decoder.py:271
↓ 1 callers
Class
RotaryPositionalEmbedding
Rotary positional embedding.
src/timesfm/torch/transformer.py:56
↓ 1 callers
Class
RotaryPositionalEmbedding
Rotary positional embedding.
src/timesfm/flax/transformer.py:67
↓ 1 callers
Class
StackedDecoder
Stacked transformer layer.
v1/src/timesfm/pytorch_patched_decoder.py:468
↓ 1 callers
Class
SystemReport
timesfm-forecasting/scripts/check_system.py:90
↓ 1 callers
Class
TimeGPT
Borrowed from https://github.com/Nixtla/nixtla/tree/main/experiments/foundation-time-series-arena/xiuhmolpilli/models. We modify the class to tak
v1/experiments/baselines/timegpt_pipeline.py:152
↓ 1 callers
Class
TimeSeriesLastWindowDataset
Validation dataset using the last window of each series.
timesfm-forecasting/examples/finetuning/finetune_lora.py:115
↓ 1 callers
Class
TimeSeriesRandomWindowDataset
Random-window dataset for time series fine-tuning. Pre-samples random (series, split-point) windows similar to Chronos-2's random slicing. E
timesfm-forecasting/examples/finetuning/finetune_lora.py:56
↓ 1 callers
Class
TimeSeriesdata
Data loader class.
v1/src/timesfm/data_loader.py:27
↓ 1 callers
Class
TimesFMAttention
Implements the attention used in TimesFM.
v1/src/timesfm/pytorch_patched_decoder.py:320
↓ 1 callers
Class
TimesFMConfig
Config for initializing timesfm patched_decoder class.
v1/src/timesfm/pytorch_patched_decoder.py:29
↓ 1 callers
Class
TimesFMDecoderLayer
Transformer layer.
v1/src/timesfm/pytorch_patched_decoder.py:418
↓ 1 callers
Class
TimesFM_2p5_200M_flax
Flax implementation of TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_flax.py:445
↓ 1 callers
Class
TimesFM_2p5_200M_torch_module
TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_torch.py:36
↓ 1 callers
Class
TimesFmCheckpoint
Checkpoint used to initialize a TimesFM model for inference. Attributes: version: Version of the checkpoint, e.g. "jax", "torch", "tensorflow",
v1/src/timesfm/timesfm_base.py:184
↓ 1 callers
Class
TimesFmHparams
Hparams used to initialize a TimesFM model for inference. These are the sufficient subset of hparams to configure TimesFM inference agnostic to t
v1/src/timesfm/timesfm_base.py:145
↓ 1 callers
Class
TransformerMLP
Pax transformer MLP in pytorch.
v1/src/timesfm/pytorch_patched_decoder.py:297
↓ 1 callers
Class
WandBLogger
Weights & Biases implementation of metrics logging. Args: project: Name of the W&B project. config: Configuration dictionary to log.
v1/src/finetuning/finetuning_torch.py:46
Class
BatchedInContextXRegBase
Helper class for in-context regression covariate formatting. Attributes: targets: List of targets (responses) of the in-context regression.
src/timesfm/utils/xreg_lib.py:72
Class
BatchedInContextXRegBase
Helper class for in-context regression covariate formatting. Attributes: targets: List of targets (responses) of the in-context regression.
v1/src/timesfm/xreg_lib.py:56
Class
BatchedInContextXRegLinear
Linear in-context regression model.
src/timesfm/utils/xreg_lib.py:411
Class
BatchedInContextXRegLinear
Linear in-context regression model.
v1/src/timesfm/xreg_lib.py:389
Class
DecodeCache
Cache for decoding.
src/timesfm/torch/util.py:24
Class
DoraAttentionProjection
v1/src/adapter/dora_layers.py:121
Class
DoraCombinedQKVProjection
v1/src/adapter/dora_layers.py:166
Class
DoraLinear
v1/src/adapter/dora_layers.py:83
Class
Forecaster
Borrowed from https://github.com/Nixtla/nixtla/tree/main/experiments/foundation-time-series-arena/xiuhmolpilli/models.
v1/experiments/baselines/timegpt_pipeline.py:84
Class
LayerNorm
Layer normalization replica of LayerNorm.
src/timesfm/flax/normalization.py:53
Class
LoraAttentionProjection
v1/src/adapter/lora_layers.py:103
Class
LoraCombinedQKVProjection
v1/src/adapter/lora_layers.py:139
Class
LoraLinear
v1/src/adapter/lora_layers.py:74
Class
MetricsLogger
Abstract base class for logging metrics during training. This class defines the interface for logging metrics during model training. Concrete
v1/src/finetuning/finetuning_torch.py:21
Class
PatchedDecoderFinetuneModel
Model class for finetuning patched time-series decoder. Attributes: core_layer_tpl: config for core layer. freq: freq to finetune on.
v1/src/timesfm/patched_decoder.py:482
Class
PatchedTimeSeriesDecoder
Patch decoder layer for time-series foundation model. Attributes: patch_len: length of input patches. horizon_len: length of output patches
v1/src/timesfm/patched_decoder.py:211
Class
RandomFourierFeatures
Random Fourier features layer.
src/timesfm/torch/dense.py:59
Class
ResidualBlock
Residual block with two linear layers and a linear residual connection.
src/timesfm/torch/dense.py:23
Class
ResidualBlock
Simple feedforward block with residual connection. Attributes: input_dims: input dimension. hidden_dims: hidden dimension. output_dims:
v1/src/timesfm/patched_decoder.py:84
Class
TestDecodeCache
Tests for the DecodeCache dataclass used in KV-cache decoding.
tests/test_torch_utils.py:309
Class
TestForecastConfig
Tests for ForecastConfig — the primary user-facing configuration.
tests/test_configs.py:42
Class
TestLinearInterpolation
Tests for linear_interpolation — fills NaN gaps via ``np.interp``.
tests/test_base_utils.py:99
Class
TestModelLoading
Tests to verify model instantiation, loading, and compatibility.
tests/test_model_loading.py:25
Class
TestRMSNorm
Tests for RMS normalization used in transformer attention/FF blocks.
tests/test_torch_layers.py:150
Class
TestRandomFourierFeatures
Tests for the random Fourier feature layer.
tests/test_torch_layers.py:207
Class
TestRandomFourierFeaturesConfig
Tests for RandomFourierFeaturesConfig.
tests/test_configs.py:185
Class
TestResidualBlock
Tests for the residual block: hidden → activation → output + skip.
tests/test_torch_layers.py:37
Class
TestResidualBlockConfig
Tests for ResidualBlockConfig used by tokenizer and output projections.
tests/test_configs.py:104
Class
TestRevIN
Tests for the RevIN normalization used in patched decoding.
tests/test_torch_utils.py:186
Class
TestStripLeadingNans
Tests for strip_leading_nans — removes leading NaN prefix.
tests/test_base_utils.py:37
Class
TestTransformerConfig
Tests for TransformerConfig — architecture-level hyperparameters.
tests/test_configs.py:136
Class
TestUpdateRunningStats
Tests for Welford-style online mean / variance accumulation.
tests/test_torch_utils.py:40
Class
TimeCovariates
Extract all time covariates except for holidays.
v1/src/timesfm/time_features.py:112
Class
TimesFM_2p5
Abstract base class for TimesFM models. Attributes: forecast_config: Configuration for forecasting flags. compiled_decode: Compiled decode
src/timesfm/timesfm_2p5/timesfm_2p5_base.py:134
Class
TimesFM_2p5_200M_Definition
Framework-agnostic config of TimesFM 2.5.
src/timesfm/timesfm_2p5/timesfm_2p5_base.py:85
Class
TimesFmBase
Base TimesFM forecast API for inference. This class is the scaffolding for calling TimesFM forecast. To properly use: 1. Create an instance wit
v1/src/timesfm/timesfm_base.py:205
Class
TimesFmJax
TimesFM forecast API for inference. This class is the scaffolding for calling TimesFM forecast. To properly use: 1. Create an instance with the
v1/src/timesfm/timesfm_jax.py:41
Class
TimesFmTorch
TimesFM forecast API for inference.
v1/src/timesfm/timesfm_torch.py:30
Class
Transformer
Classic Transformer used in TimesFM.
src/timesfm/torch/transformer.py:307
Class
Transformer
Classic Transformer used in TimesFM.
src/timesfm/flax/transformer.py:291