TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
This report summarizes scanner evidence for google-research/timesfm, a Python project with 34,181 GitHub stars. SynthScan examined 37,690 lines of code across 131 source files, recording 495 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 24.6 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 290 finding(s).
Are imports declared and package/API names verified? 110 finding(s).
Are wrappers, guards, and repeated structures necessary? 245 finding(s).
Which changes need focused human review? 495 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 495 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_configs.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 99 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 101 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 131 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 133 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 180 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 182 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 181 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 183 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_utils.py | 304 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_utils.py | 306 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 94 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 96 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_layers.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_layers.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 147 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 204 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 45 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 47 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 93 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 95 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 167 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 169 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 192 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 194 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 294 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 296 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 386 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 388 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 54 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 183 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 185 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 194 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 196 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 206 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 208 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 237 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 239 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 247 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 249 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 139 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 141 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 219 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 221 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 313 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 315 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 399 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 401 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 403 | ...Array(nActual).fill(null), | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 411 | dataUsed.push(step.historical_values[i]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 413 | dataUsed.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 413 | dataUsed.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 427 | if (forecastIdx >= 0 && forecastIdx < nForecast) {{ | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 428 | q90Lower.push(step.q10[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 429 | q90Upper.push(step.q90[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 430 | q80Lower.push(step.q20[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 431 | q80Upper.push(step.q80[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 433 | q90Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 433 | q90Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 434 | q90Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 434 | q90Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 435 | q80Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 435 | q80Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 436 | q80Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 436 | q80Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 448 | if (forecastIdx >= 0 && forecastIdx < nForecast) {{ | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 449 | forecastData.push(step.point_forecast[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 451 | forecastData.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 451 | forecastData.push(null); | CODE |
| HIGH | …recasting/examples/global-temperature/generate_html.py | 227 | let chart = null; | CODE |
| HIGH | …recasting/examples/global-temperature/generate_html.py | 229 | let playInterval = null; | CODE |
| HIGH | …recasting/examples/global-temperature/generate_html.py | 275 | data: [...Array(animationData.actual_data.dates.length).fill(null), ...finalStep.point_forec | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | v1/experiments/extended_benchmarks/utils.py | 124 | def _transform_quantiles_to_levels(quantiles: List[float]) -> List[int]: | CODE |
| LOW⚡ | v1/experiments/extended_benchmarks/utils.py | 132 | def _create_dir_if_not_exists(directory: str): | CODE |
| LOW⚡ | v1/experiments/extended_benchmarks/utils.py | 136 | def _transform_gluonts_instance_to_df( | CODE |
| LOW | v1/experiments/extended_benchmarks/utils.py | 151 | def _transform_gluonts_dataset_to_df( | CODE |
| LOW | v1/experiments/extended_benchmarks/utils.py | 193 | def fcst_from_level_to_quantiles( | CODE |
| LOW | v1/experiments/extended_benchmarks/utils.py | 232 | def evaluate_from_predictions( | CODE |
| LOW | v1/experiments/baselines/timegpt_pipeline.py | 37 | def maybe_convert_col_to_datetime( | CODE |
| LOW | v1/tests/test_data_loader.py | 9 | def test_train_gen_respects_batch_size_when_permute_is_false(tmp_path: Path) -> None: | CODE |
| LOW | v1/tests/test_timesfm.py | 48 | def test_timesfm_forecast_on_df( | CODE |
| LOW | v1/src/timesfm/pytorch_patched_decoder.py | 146 | def get_large_negative_number(dtype: torch.dtype) -> torch.Tensor: | CODE |
| LOW | v1/src/adapter/utils.py | 281 | def _get_adapter_weight_params( | CODE |
| LOW | v1/src/adapter/utils.py | 417 | def _initialize_adapter_params( | CODE |
| LOW⚡ | tests/test_configs.py | 45 | def test_defaults_match_safe_inference_settings(self): | CODE |
| LOW | tests/test_configs.py | 63 | def test_frozen_prevents_mutation(self): | CODE |
| LOW | tests/test_configs.py | 73 | def test_replace_creates_independent_copy(self): | CODE |
| LOW⚡ | tests/test_configs.py | 86 | def test_equality_is_structural(self): | CODE |
| LOW⚡ | tests/test_configs.py | 92 | def test_inequality_on_any_field_difference(self): | CODE |
| LOW⚡ | tests/test_configs.py | 107 | def test_frozen_prevents_mutation(self): | CODE |
| LOW | tests/test_configs.py | 118 | def test_activation_accepts_all_valid_literals(self): | CODE |
| LOW⚡ | tests/test_configs.py | 139 | def test_model_dims_must_be_divisible_by_num_heads(self): | CODE |
| LOW | tests/test_configs.py | 160 | def test_stacked_config_composes_correctly(self): | CODE |
| LOW⚡ | tests/test_configs.py | 188 | def test_frozen_prevents_mutation(self): | CODE |
| LOW | tests/test_force_flip_invariance.py | 32 | def test_flip_invariance_holds_in_autoregressive_region(self): | CODE |
| LOW⚡ | tests/test_torch_utils.py | 43 | def test_single_batch_matches_numpy(self): | CODE |
| LOW | tests/test_torch_utils.py | 66 | def test_incremental_accumulation_matches_full_computation(self): | CODE |
| LOW | tests/test_torch_utils.py | 99 | def test_masked_elements_excluded_from_statistics(self): | CODE |
| LOW | tests/test_torch_utils.py | 119 | def test_all_masked_yields_zero_stats(self): | CODE |
| LOW | tests/test_torch_utils.py | 137 | def test_batched_computation_independent(self): | CODE |
| LOW | tests/test_torch_utils.py | 163 | def test_constant_input_yields_zero_sigma(self): | CODE |
| LOW⚡ | tests/test_torch_utils.py | 189 | def test_forward_then_reverse_is_identity(self): | CODE |
| LOW | tests/test_torch_utils.py | 206 | def test_forward_produces_correct_normalization(self): | CODE |
| LOW | tests/test_torch_utils.py | 217 | def test_reverse_produces_correct_denormalization(self): | CODE |
| LOW | tests/test_torch_utils.py | 228 | def test_zero_sigma_does_not_produce_nan(self): | CODE |
| LOW | tests/test_torch_utils.py | 244 | def test_near_zero_sigma_guarded_by_tolerance(self): | CODE |
| LOW | tests/test_torch_utils.py | 289 | def test_negative_values_handled_correctly(self): | CODE |
| LOW | tests/test_torch_utils.py | 325 | def test_key_value_shape_consistency(self): | CODE |
| LOW | tests/test_model_loading.py | 28 | def test_torch_load_checkpoint_and_from_pretrained_local(self): | CODE |
| LOW | tests/test_model_loading.py | 63 | def test_torch_compile_wraps_forward(self): | CODE |
| LOW | tests/test_model_loading.py | 77 | def test_torch_no_compile_leaves_forward_unchanged(self): | CODE |
| LOW | tests/test_model_loading.py | 90 | def test_flax_model_init_kwargs(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 40 | def test_no_nans_returns_unchanged(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 46 | def test_strips_leading_nans_only(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 59 | def test_no_leading_nan_with_internal_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 66 | def test_single_valid_element(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 72 | def test_all_nans_returns_full_array(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 102 | def test_no_nans_returns_identical(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 108 | def test_interpolates_single_interior_nan(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 114 | def test_interpolates_multiple_interior_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 120 | def test_extrapolates_trailing_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 128 | def test_extrapolates_leading_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 144 | def test_preserves_non_nan_values(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 154 | def test_interpolation_is_monotone_for_monotone_input(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 163 | def test_single_non_nan_fills_all_gaps(self): | CODE |
| LOW | tests/test_torch_layers.py | 66 | def test_residual_connection_nonzero(self): | CODE |
| LOW | tests/test_torch_layers.py | 93 | def test_all_activations_produce_valid_output(self, activation): | CODE |
| LOW | tests/test_torch_layers.py | 108 | def test_invalid_activation_raises(self): | CODE |
| LOW | tests/test_torch_layers.py | 121 | def test_gradient_flows_through_both_paths(self): | CODE |
| LOW⚡ | tests/test_torch_layers.py | 153 | def test_output_shape_preserved(self): | CODE |
| LOW⚡ | tests/test_torch_layers.py | 160 | def test_zero_scale_produces_zeros(self): | CODE |
| LOW | tests/test_torch_layers.py | 173 | def test_unit_scale_preserves_rms_magnitude(self): | CODE |
| 72 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # This file was autogenerated by uv via the following command: | COMMENT |
| LOW | requirements.txt | 21 | httpx==0.28.1 | COMMENT |
| LOW | requirements.txt | 41 | tqdm==4.67.1 | COMMENT |
| LOW | v1/README.md | 221 | COMMENT | |
| LOW | v1/experiments/extended_benchmarks/utils.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/extended_benchmarks/run_timesfm.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/extended_benchmarks/run_timegpt.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/baselines/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/baselines/timegpt_pipeline.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/long_horizon_benchmarks/run_eval.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/tests/test_timesfm.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/peft/finetune.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/timesfm/patched_decoder.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/timesfm_torch.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/xreg_lib.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/timesfm_jax.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/data_loader.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/timesfm/pytorch_patched_decoder.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/time_features.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/timesfm/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/timesfm_base.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/adapter/dora_layers.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/adapter/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/adapter/lora_layers.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/adapter/utils.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | tests/test_configs.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_force_flip_invariance.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_torch_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_model_loading.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_base_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_torch_layers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | …forecasting/examples/global-temperature/run_example.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | timesfm3-usage/benchmarks/time_bench/run_time_bench.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | timesfm3-usage/benchmarks/fev_bench/run_fev_bench.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm/configs.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_torch.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_flax.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_base.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/dense.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/util.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/transformer.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/normalization.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/utils/xreg_lib.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/dense.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/util.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/transformer.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/normalization.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm3/configs.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/transformations.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/dense.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/util.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/backward_compat_test.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/timesfm3_forecaster.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/model.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | src/timesfm3/transformer.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| 32 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/experiments/extended_benchmarks/run_timegpt.py | 19 | CODE | |
| LOW | v1/experiments/baselines/timegpt_pipeline.py | 18 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 28 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 29 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 33 | CODE | |
| LOW | v1/src/adapter/__init__.py | 17 | CODE | |
| LOW | v1/src/adapter/__init__.py | 17 | CODE | |
| LOW | v1/src/adapter/__init__.py | 17 | CODE | |
| LOW | v1/src/adapter/__init__.py | 18 | CODE | |
| LOW | v1/src/adapter/__init__.py | 18 | CODE | |
| LOW | v1/src/adapter/__init__.py | 18 | CODE | |
| LOW | v1/src/finetuning/finetuning_example.py | 12 | CODE | |
| LOW | v1/src/finetuning/finetuning_example.py | 17 | CODE | |
| LOW | …ing/examples/covariates-forecasting/demo_covariates.py | 28 | CODE | |
| LOW | …casting/examples/anomaly-detection/detect_anomalies.py | 17 | CODE | |
| LOW | …orecasting/examples/global-temperature/run_forecast.py | 7 | CODE | |
| LOW | …recasting/examples/global-temperature/generate_html.py | 9 | CODE | |
| LOW | …ting/examples/global-temperature/visualize_forecast.py | 14 | CODE | |
| LOW | …examples/global-temperature/generate_animation_data.py | 11 | CODE | |
| LOW | …orecasting/examples/global-temperature/generate_gif.py | 8 | CODE | |
| LOW | timesfm-forecasting/scripts/forecast_csv.py | 21 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 16 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 28 | CODE | |
| LOW | …mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py | 23 | CODE | |
| LOW | …mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py | 104 | CODE | |
| LOW | timesfm3-usage/benchmarks/time_bench/run_time_bench.py | 17 | CODE | |
| LOW | timesfm3-usage/benchmarks/time_bench/run_time_bench.py | 18 | CODE | |
| LOW | timesfm3-usage/benchmarks/time_bench/run_time_bench.py | 19 | CODE | |
| LOW | timesfm3-usage/benchmarks/fev_bench/run_fev_bench.py | 17 | CODE | |
| LOW | timesfm3-usage/benchmarks/fev_bench/run_fev_bench.py | 18 | CODE | |
| LOW | timesfm3-usage/benchmarks/fev_bench/run_fev_bench.py | 19 | CODE | |
| LOW | src/timesfm/__init__.py | 17 | CODE | |
| LOW | src/timesfm/__init__.py | 32 | CODE | |
| LOW | src/timesfm/__init__.py | 32 | CODE | |
| LOW | src/timesfm3/configs.py | 22 | CODE | |
| LOW | src/timesfm3/transformations.py | 22 | CODE | |
| LOW | src/timesfm3/dense.py | 22 | CODE | |
| LOW | src/timesfm3/util.py | 22 | CODE | |
| LOW | src/timesfm3/backward_compat_test.py | 26 | CODE | |
| LOW | src/timesfm3/timesfm3_forecaster.py | 22 | CODE | |
| LOW | src/timesfm3/model.py | 22 | CODE | |
| LOW | src/timesfm3/transformer.py | 22 | CODE | |
| LOW | src/timesfm3/cpm_revin_refine.py | 22 | CODE | |
| LOW | src/timesfm3/normalization.py | 22 | CODE | |
| LOW | src/timesfm3/evaluator.py | 22 | CODE | |
| LOW | src/timesfm3/torch/transformations.py | 21 | CODE | |
| LOW | src/timesfm3/torch/dense.py | 17 | CODE | |
| LOW | src/timesfm3/torch/util.py | 17 | CODE | |
| LOW | src/timesfm3/torch/timesfm3_forecaster.py | 17 | CODE | |
| LOW | src/timesfm3/torch/__init__.py | 17 | CODE | |
| LOW | src/timesfm3/torch/__init__.py | 17 | CODE | |
| LOW | src/timesfm3/torch/__init__.py | 17 | CODE | |
| LOW | src/timesfm3/torch/__init__.py | 18 | CODE | |
| LOW | src/timesfm3/torch/__init__.py | 19 | CODE | |
| LOW | src/timesfm3/torch/__init__.py | 20 | CODE | |
| LOW | src/timesfm3/torch/__init__.py | 20 | CODE | |
| 24 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | timesfm-forecasting/scripts/forecast_csv.py | 164 | except Exception: | CODE |
| HIGH | timesfm-forecasting/scripts/check_system.py | 167 | except Exception: | CODE |
| HIGH | timesfm-forecasting/scripts/check_system.py | 218 | except Exception: | CODE |
| HIGH | …mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py | 283 | except Exception: | CODE |
| HIGH | src/timesfm/__init__.py | 22 | except ImportError: | CODE |
| HIGH | src/timesfm/__init__.py | 28 | except ImportError: | CODE |
| HIGH | src/timesfm/__init__.py | 33 | except ImportError: | CODE |
| HIGH | src/timesfm/timesfm_2p5/timesfm_2p5_torch.py | 333 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/experiments/extended_benchmarks/utils.py | 104 | CODE | |
| LOW | v1/src/timesfm/xreg_lib.py | 193 | CODE | |
| LOW | v1/src/timesfm/xreg_lib.py | 392 | CODE | |
| LOW | v1/src/timesfm/timesfm_base.py | 53 | CODE | |
| LOW | v1/src/timesfm/timesfm_base.py | 347 | CODE | |
| LOW | v1/src/adapter/utils.py | 43 | CODE | |
| LOW | v1/src/adapter/utils.py | 200 | CODE | |
| LOW | v1/src/adapter/utils.py | 281 | CODE | |
| LOW | v1/src/adapter/utils.py | 417 | CODE | |
| LOW | timesfm-forecasting/scripts/forecast_csv.py | 144 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 127 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 174 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 384 | CODE | |
| LOW | …mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py | 236 | CODE | |
| LOW | src/timesfm/utils/xreg_lib.py | 210 | CODE | |
| LOW | src/timesfm3/torch/timesfm3_forecaster.py | 136 | CODE | |
| LOW | src/timesfm3/torch/timesfm3_forecaster.py | 465 | CODE | |
| LOW | src/timesfm3/torch/evaluator.py | 46 | CODE | |
| LOW | src/timesfm3/mlx/timesfm3_forecaster.py | 168 | CODE | |
| LOW | src/timesfm3/mlx/timesfm3_forecaster.py | 233 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | v1/src/timesfm/timesfm_torch.py | 80 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| HIGH | v1/src/timesfm/timesfm_jax.py | 247 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| HIGH | v1/src/timesfm/timesfm_base.py | 322 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| HIGH | v1/src/timesfm/timesfm_base.py | 356 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/experiments/extended_benchmarks/utils.py | 56 | CODE | |
| LOW | v1/peft/finetune.py | 63 | CODE | |
| LOW | v1/src/timesfm/xreg_lib.py | 392 | CODE | |
| LOW | v1/src/timesfm/timesfm_base.py | 429 | CODE | |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_flax.py | 466 | CODE | |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_base.py | 198 | CODE | |
| LOW | src/timesfm/torch/transformer.py | 151 | CODE | |
| LOW | src/timesfm/utils/xreg_lib.py | 414 | CODE | |
| LOW | src/timesfm3/torch/timesfm3_forecaster.py | 433 | CODE | |
| LOW | src/timesfm3/torch/timesfm3_forecaster.py | 465 | CODE | |
| LOW | src/timesfm3/torch/model.py | 59 | CODE | |
| LOW | src/timesfm3/torch/model.py | 364 | CODE | |
| LOW | src/timesfm3/torch/transformer.py | 159 | CODE | |
| LOW | src/timesfm3/torch/evaluator.py | 46 | CODE | |
| LOW | src/timesfm3/mlx/timesfm3_forecaster.py | 136 | CODE | |
| LOW | src/timesfm3/mlx/timesfm3_forecaster.py | 168 | CODE | |
| LOW | src/timesfm3/mlx/model_parity_test.py | 67 | CODE | |
| LOW | src/timesfm3/mlx/model_parity_test.py | 127 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | v1/experiments/extended_benchmarks/utils.py | 155 | with multiprocessing.Pool(os.cpu_count()) as pool: # Create a process pool | CODE |
| MEDIUM | v1/src/timesfm/patched_decoder.py | 68 | # Create a range array for indexing | COMMENT |
| MEDIUM | v1/src/timesfm/patched_decoder.py | 185 | # Create a mask where P is 0 | COMMENT |
| MEDIUM | v1/src/timesfm/pytorch_patched_decoder.py | 92 | # Create a mask where padding is 0 | COMMENT |
| MEDIUM | src/timesfm/timesfm_2p5/timesfm_2p5_torch.py | 356 | # Create an instance of the model wrapper class. | COMMENT |
| MEDIUM | src/timesfm/timesfm_2p5/timesfm_2p5_flax.py | 481 | # Create an instance of the model wrapper class. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/src/timesfm/__init__.py | 32 | except Exception as _: | CODE |
| LOW | v1/src/finetuning/finetuning_example.py | 327 | except Exception as e: | CODE |
| MEDIUM | v1/src/finetuning/finetuning_example.py | 328 | print(f"Error in process {rank}: {str(e)}") | CODE |
| LOW | v1/src/finetuning/finetuning_example.py | 395 | except Exception as e: | CODE |
| LOW | timesfm-forecasting/scripts/forecast_csv.py | 164 | except Exception: | CODE |
| LOW | timesfm-forecasting/scripts/check_system.py | 167 | except Exception: | CODE |
| LOW | timesfm-forecasting/scripts/check_system.py | 218 | except Exception: | CODE |
| LOW | …mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py | 283 | except Exception: | CODE |
| LOW | …mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py | 388 | except Exception as e: | CODE |
| LOW | timesfm3-usage/benchmarks/time_bench/run_time_bench.py | 39 | except Exception as e: | CODE |
| LOW | timesfm3-usage/benchmarks/fev_bench/run_fev_bench.py | 39 | except Exception as e: | CODE |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_torch.py | 333 | except Exception: | CODE |
| LOW | src/timesfm3/mlx/timesfm3_forecaster_test.py | 62 | except Exception: | CODE |
| MEDIUM | src/timesfm3/mlx/timesfm3_forecaster_test.py | 42 | def _weights_cached() -> bool: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | timesfm-forecasting/SKILL.md | 143 | ### Step 1: Verify System (always first) | COMMENT |
| LOW | timesfm-forecasting/SKILL.md | 149 | ### Step 2: Install TimesFM | COMMENT |
| LOW | timesfm-forecasting/SKILL.md | 162 | ### Step 3: Install PyTorch for Your Hardware | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 26 | # Step 1: Preflight check | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 34 | # Step 2: Run forecast | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 40 | # Step 3: Generate visualization | COMMENT |
| LOW⚡ | src/timesfm3/torch/evaluator.py | 161 | # Step 2: Compute how many target slots fit per forward pass. | COMMENT |
| LOW⚡ | src/timesfm3/torch/evaluator.py | 168 | # Step 3: Process each target chunk, concatenate along variate axis. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | v1/src/timesfm/timesfm_torch.py | 0 | forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series should | STRING |
| HIGH | v1/src/timesfm/timesfm_jax.py | 0 | forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series should | STRING |
| HIGH | v1/src/timesfm/timesfm_base.py | 0 | forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series should | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 26 | # Step 1: Preflight check | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 34 | # Step 2: Run forecast | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 40 | # Step 3: Generate visualization | COMMENT |
| LOW⚡ | src/timesfm3/torch/evaluator.py | 161 | # Step 2: Compute how many target slots fit per forward pass. | COMMENT |
| LOW⚡ | src/timesfm3/torch/evaluator.py | 168 | # Step 3: Process each target chunk, concatenate along variate axis. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/src/timesfm/timesfm_base.py | 109 | if not np.any(nans): # Check if there are any NaNs | CODE |
| LOW⚡ | timesfm-forecasting/scripts/check_system.py | 388 | # Check if GPU is available | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_base.py | 63 | if not np.any(nans): # Check if there are any NaNs | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 49 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/timesfm3/__init__.py | 37 | __all__ = [ | CODE |
| LOW | src/timesfm3/torch/dense.py | 75 | def set_input_dims(self, input_dim: int) -> None: | CODE |
| LOW | src/timesfm3/torch/__init__.py | 27 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_model_loading.py | 51 | custom_kwarg="dummy_value", | CODE |
| LOW | tests/test_model_loading.py | 94 | custom_kwarg="dummy_value", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | timesfm-forecasting/SKILL.md | 265 | max_context=1024, # Max context window | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …forecasting/examples/global-temperature/run_example.sh | 9 | # Usage: | COMMENT |