AGENT SKILL

ltsf-linear

Routes the repo's long-term forecasting, statistical baselines, FEDformer, and Pyraformer workflows, plus shared setup and data-layout checks.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
ltsf-linear
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Routes the repo's long-term forecasting, statistical baselines, FEDformer, and Pyraformer workflows, plus shared setup and data-layout checks.
disable-model-invocation
true

02 资源文件 9

03 SKILL.md 正文

LTSF-Linear

This is the root router for the LTSF-Linear repository. Use it when the task is about the repo as a whole, when you need shared setup or data checks, or when you need to choose between the repo's four major workflow families.

Read first

  • references/repo-provenance.md when checking whether this skill matches the current checkout or before refreshing it.
  • references/data-layout.md for the shared CSV and dataset-directory conventions.
  • references/model-overview.md for the quick model-family map.
  • references/cli-reference.md for the main entry points and the most useful flags.
  • references/workflows.md for common run patterns and route selection.
  • references/troubleshooting.md for cross-cutting install, import, backend, and data-layout failures.
  • scripts/check_env.py for a fast import and CUDA readiness check.
  • scripts/check_data_layout.py for a small dataset-layout sanity check.

Route map

  • sub-skills/long-forecasting/SKILL.md — Linear, DLinear, NLinear, Informer, Transformer, Autoformer, benchmark sweeps, and weight plotting.
  • sub-skills/statistical-baselines/SKILL.md — Naive, GBRT, ARIMA, and SARIMA baselines.
  • sub-skills/fedformer/SKILL.md — the FEDformer subrepo and its Fourier / Wavelets variants.
  • sub-skills/pyraformer/SKILL.md — Pyraformer long-range forecasting, single-step forecasting, preprocessing, and synthetic data generation.

Install and preflight

  1. Create a Python environment with the repo's runtime stack. The verified inspection environment used a CUDA-capable PyTorch 1.9.0+cu111 build on x86_64 Linux.

  2. Install the root requirements first, then add route-specific extras only when you need them:

    • root requirements.txt
    • pmdarima for statistical baselines
    • sympy and einops for FEDformer Wavelets
    • fbm for Pyraformer synthetic generation
    • Pyraformer/requirements.txt for Pyraformer routes
  3. Run a fast shared smoke before any heavier workflow:

    python scripts/check_env.py --scope all --device auto
    
  4. Run a quick layout check for the dataset you expect to use:

    python scripts/check_data_layout.py --kind root --data-root dataset --data-path exchange_rate.csv
    

Root workflow hints

  • The main benchmark launcher is run_longExp.py.
  • The statistical baseline launcher is run_stat.py.
  • The FEDformer launcher lives in FEDformer/run.py.
  • The Pyraformer launchers live in Pyraformer/long_range_main.py and Pyraformer/single_step_main.py.
  • run_longExp.py uses a fragile --use_gpu boolean parser; prefer the bundled wrapper scripts when you want explicit CPU or CUDA control.
  • run_stat.py imports pmdarima at module import time, so missing that dependency fails even --help.
  • FEDformer's parser default model is not a valid FEDformer family name, so always pass an explicit --model.
  • Pyraformer's optional TVM path is separate from the minimum smoke surface.

When to stay at the root

Use the root skill and the shared scripts when you only need:

  • a quick environment or import check,
  • dataset/path validation,
  • a model-family decision,
  • or a high-level routing answer before choosing a sub-skill.

Move to a sub-skill once the user has picked a concrete workflow family.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351