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
- 参考文档references/cli-reference.md3.8 KB
- 参考文档references/data-layout.md2.1 KB
- 参考文档references/model-overview.md2.4 KB
- 参考文档references/repo-provenance.md1.7 KB
- 参考文档references/repo-routing-metadata.json323 B
- 参考文档references/troubleshooting.md3.5 KB
- 参考文档references/workflows.md3.0 KB
- 脚本scripts/check_data_layout.py5.1 KB
- 脚本scripts/check_env.py5.7 KB
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.mdwhen checking whether this skill matches the current checkout or before refreshing it.references/data-layout.mdfor the shared CSV and dataset-directory conventions.references/model-overview.mdfor the quick model-family map.references/cli-reference.mdfor the main entry points and the most useful flags.references/workflows.mdfor common run patterns and route selection.references/troubleshooting.mdfor cross-cutting install, import, backend, and data-layout failures.scripts/check_env.pyfor a fast import and CUDA readiness check.scripts/check_data_layout.pyfor 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
-
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.
-
Install the root requirements first, then add route-specific extras only when you need them:
- root
requirements.txt pmdarimafor statistical baselinessympyandeinopsfor FEDformer Waveletsfbmfor Pyraformer synthetic generationPyraformer/requirements.txtfor Pyraformer routes
- root
-
Run a fast shared smoke before any heavier workflow:
python scripts/check_env.py --scope all --device auto -
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.pyandPyraformer/single_step_main.py. run_longExp.pyuses a fragile--use_gpuboolean parser; prefer the bundled wrapper scripts when you want explicit CPU or CUDA control.run_stat.pyimportspmdarimaat 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
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.
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.
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.
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.
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.
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).