fedformer
Routes FEDformer training, comparison, and sweep workflows for the FEDformer subrepo, including Fourier and Wavelets variants, model-selection knobs, and the bundled CUDA smoke check.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- fedformer
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes FEDformer training, comparison, and sweep workflows for the FEDformer subrepo, including Fourier and Wavelets variants, model-selection knobs, and the bundled CUDA smoke check.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-reference.md6.3 KB
- 参考文档references/data-layout.md2.3 KB
- 参考文档references/model-overview.md4.2 KB
- 参考文档references/troubleshooting.md4.9 KB
- 参考文档references/workflows.md5.1 KB
03 SKILL.md 正文
FEDformer
Use this route when the task is about the FEDformer subrepo entry point FEDformer/run.py, the FEDformer model stack in FEDformer/exp, FEDformer/models, FEDformer/layers, FEDformer/utils, or the FEDformer sweep scripts.
Natural triggers:
- FEDformer
- Fourier
- Wavelets
mode_selectmodesLbasecross_activation- compare FEDformer against Autoformer, Informer, or Transformer within this subrepo
What this sub-skill covers
- The native CLI in
FEDformer/run.py. - The FEDformer architecture variants implemented in
FEDformer/models/FEDformer.py. - The exp, layer, and utility trees that support training, testing, and prediction.
- Dataset loading and shape alignment for the FEDformer entry point.
- The sweep patterns encoded in
FEDformer/scripts/LongForecasting.shandFEDformer/scripts/LookBackWindow.sh. - CUDA-only smoke validation for the Fourier or Wavelets path.
What it does not cover
- The repo-wide Linear, DLinear, and NLinear benchmark routes.
- Statistical baseline workflows.
- Pyraformer workflows.
- Maintainer-only or release-only tasks.
If the user really means the root long-forecasting benchmark, the statistical baselines, or Pyraformer, route them to the sibling route for that workflow instead of staying here.
Start here
Read these bundled files first:
scripts/run_fedformer.pyfor a safe wrapper that resolves a checkout and builds a FEDformer command.scripts/smoke_fedformer.pyfor a tiny CUDA forward pass on synthetic data.references/cli-reference.mdfor the FEDformer CLI flags and the arguments that matter most.references/model-overview.mdfor Fourier vs. Wavelets, embedding choices, and comparison guidance.references/data-layout.mdwhen the CSV format, split rule, or channel counts are unclear.references/workflows.mdfor one-off runs, sweep recipes, and comparison loops.references/troubleshooting.mdwhen the run fails, the parser defaults look suspicious, or the dataset layout does not match.
Environment expectations
This route is verified for a CUDA build of PyTorch 1.9.0+cu111 on GPU hardware.
Wavelets also needs sympy, einops, and scipy in addition to the standard FEDformer stack.
Common decisions
- Use
--model FEDformerfor the FEDformer family. - Use
--version Fourierwhen you want mode selection over frequency bins. - Use
--version Waveletswhen you want the multiresolution branch withL,base, andcross_activation. - Use
--model Autoformer,Informer, orTransformeronly when the comparison is still anchored in this subrepo. - Keep the dataset, lengths, and feature mode fixed when comparing model families.
- Leave the
--moving_avgparser default alone unless you are programmatically building a real Python list.
Key runtime outputs
A successful run usually writes checkpoints and evaluation artifacts under the current working directory, including:
checkpoints/<setting>/checkpoint.pthresults/<setting>/metrics.npyresults/<setting>/pred.npyresults/<setting>/true.npytest_results/<setting>/
Troubleshooting shortcut
Before debugging a failed FEDformer run, check these first:
- CUDA is available in the active environment.
--modelis set explicitly; the parser default is not a valid FEDformer family member.root_path,data_path,features, and channel counts match the dataset.- You are not relying on the pred-only or test-only path without checking its caveats.
- The version-specific knobs match the selected
--version.
See references/troubleshooting.md for the full failure map.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.