forecasting-models
Choose and use GluonTS predictors, estimators, forecasts, local baselines, PyTorch estimators, and predictor persistence.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- forecasting-models
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Choose and use GluonTS predictors, estimators, forecasts, local baselines, PyTorch estimators, and predictor persistence.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/api-reference.md9.9 KB
- 参考文档references/model-overview.md8.8 KB
- 参考文档references/troubleshooting.md7.1 KB
- 参考文档references/workflows.md8.5 KB
- 脚本scripts/predictor_persistence_smoke.py3.8 KB
- 脚本scripts/torch_forecast_smoke.py8.4 KB
03 SKILL.md 正文
forecasting-models
Use this sub-skill when the task is to select or operate GluonTS forecasting models after data has already been shaped as a GluonTS dataset.
What this sub-skill covers
- Choosing between local predictors and trainable global estimators.
- Using
Estimator.train(...) -> PredictorandPredictor.predict(...) -> Forecast. - Reading
SampleForecastandQuantileForecastoutputs: samples, mean, median, quantiles, indexes, and multivariate dimensions. - Running deterministic local baselines such as seasonal naive, identity, constant, moving-average, mean, and NPTS predictors.
- Constructing and optionally training selected PyTorch estimators with bounded
trainer_kwargson CPU or optional CUDA. - Serializing and deserializing predictors with
Predictor.serialize(...)andPredictor.deserialize(...).
Use the bundled references
references/model-overview.md— model-selection guidance, local/global split, PyTorch catalog, and legacy backend caveats.references/api-reference.md— distilled signatures and key behaviors for predictors, forecasts, local predictors, and PyTorch estimators.references/workflows.md— copyable operating recipes for train/predict, baselines, forecast extraction, persistence, PyTorch trainer kwargs, and warm-starting.references/troubleshooting.md— failures around optional extras, short histories, features, quantiles, serialization, PyTorch Lightning, CUDA, and legacy MXNet.
Bundled smoke scripts
Run these from any working directory after gluonts is installed:
python path/to/scripts/predictor_persistence_smoke.py --help
python path/to/scripts/predictor_persistence_smoke.py
python path/to/scripts/torch_forecast_smoke.py --help
python path/to/scripts/torch_forecast_smoke.py
python path/to/scripts/torch_forecast_smoke.py --train
predictor_persistence_smoke.py checks a checkout-independent local predictor serialize/reload workflow. torch_forecast_smoke.py constructs a tiny PandasDataset and a bounded PyTorch estimator; by default it does not train, and --train runs a one-epoch tiny smoke when the torch/Lightning extra is available.
Routing hints
- If the task is about building
PandasDataset, splitting train/test windows, JSON Lines, or entry schema, use thedata-pipelinessub-skill first. - If the task is about transformation chains, lags, time features, samplers, or instance splitters, use
transforms-featuresfirst. - If the task is about accuracy metrics,
Evaluator,backtest_metrics, ormake_evaluation_predictions, useevaluation-backtestingafter producing forecasts. - If the task is about SageMaker shell, CLI, or optional extension adapters, use
deployment-extensions.
Required safety posture
Use CPU-bounded examples unless the user explicitly asks for GPU. Treat CUDA as optional acceleration. Treat MXNet models as legacy/unverified in this skill scope; do not promise that MXNet workflows work unless the user provides and verifies a compatible MXNet environment.
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).