long-forecasting
Train, test, predict, sweep, and visualize the core forecasting models: Linear, DLinear, NLinear, Informer, Transformer, and Autoformer.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- long-forecasting
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Train, test, predict, sweep, and visualize the core forecasting models: Linear, DLinear, NLinear, Informer, Transformer, and Autoformer.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-reference.md4.7 KB
- 参考文档references/model-overview.md3.8 KB
- 参考文档references/troubleshooting.md2.9 KB
- 参考文档references/workflows.md4.0 KB
- 脚本scripts/plot_linear_weights.py5.9 KB
- 脚本scripts/run_long_forecasting.py4.8 KB
- 脚本scripts/smoke_long_forecasting.py5.4 KB
03 SKILL.md 正文
Long Forecasting
Use this sub-skill when the task is about the root long-term forecasting route for the core model families:
- Linear
- DLinear
- NLinear
- Informer
- Transformer
- Autoformer
It owns the common train/test/predict flow, model selection, look-back window sweeps, embedding sweeps, and DLinear weight visualization.
Start here
- CLI reference
- Model overview
- Workflows
- Troubleshooting
- Forecasting launcher
- DLinear weight plotter
- Tiny smoke check
What this sub-skill owns
- Root
run_longExp.pylong-horizon training, testing, and prediction. - Model choice among the six core forecasting families above.
- Benchmark-style presets for
scripts/EXP-LongForecasting/. - Look-back window studies from
scripts/EXP-LookBackWindow/. - Embedding studies from
scripts/EXP-Embedding/. - DLinear weight plotting from checkpoint files.
What this sub-skill does not own
- Statistical baselines such as Naive, ARIMA, SARIMA, or GBRT.
- FEDformer subrepo workflows.
- Pyraformer workflows or preprocessing helpers.
- Optional TVM internals.
Operating rules
- Treat
run_longExp.pyas the canonical root launcher. Use the bundled wrapper for safer path handling, CPU forcing, and a small amount of validation. - Keep dataset roots explicit. The common layout is a dataset directory such
as
dataset/that contains the benchmark CSVs or a custom CSV with adatecolumn plus feature columns. - Use
--individualfor Linear-family runs when following the benchmark scripts. - Prefer CUDA for Autoformer test or predict runs. The tiny smoke helper can still run a forward check in train mode.
- Use the plotting helper only on Linear-family checkpoints with seasonal and trend weights.
Routing hints
- Route baseline comparisons to
../statistical-baselines/. - Route FEDformer-only tasks to
../fedformer/. - Route Pyraformer tasks and preprocessing to
../pyraformer/. - If a request is ambiguous between this route and one of those sibling workflows, prefer the sibling route instead of growing this one.
The shared CSV layout and dataset root convention are the same as the repo-level root workflow and the FEDformer route. See the workflow reference for the exact file expectations and model-specific argument patterns.
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).