AGENT SKILL

data-and-cli

Prepare Time-Series-Library data layouts, choose safe run.py flags, validate local files, and understand checkpoints, result folders, and smoke-test commands.

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

01 前言 Front Matter

name
data-and-cli
license
MIT
metadata
{ "disco-role": "operating" }
description
Prepare Time-Series-Library data layouts, choose safe run.py flags, validate local files, and understand checkpoints, result folders, and smoke-test commands.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

TSLib Data and CLI

Use this sub-skill when the task is about getting a TSLib command to start correctly: local data files, run.py flags, dataset names, CPU/GPU flags, smoke checks, output locations, or confusing path/download behavior.

Route Here

  • Choose or validate --task_name, --data, --root_path, --data_path, --features, --target, and --freq.
  • Prepare a local custom CSV, ETT-style CSV, M4 folder, anomaly folder, or UEA .ts folder.
  • Debug Hugging Face fallback/download surprises when local files are missing.
  • Interpret checkpoints/, results/, test_results/, m4_results/, and result text file locations.
  • Decide whether to use --no_use_gpu, --gpu, --gpu_type, --use_multi_gpu, or CUDA_VISIBLE_DEVICES for a safe check.
  • Build a tiny smoke-test dataset before routing to a task-specific sub-skill.

Reroute

  • Long-term, short-term/M4, exogenous, or zero-shot forecasting details: use ../forecasting/SKILL.md.
  • Imputation, anomaly detection, or classification recipes: use ../imputation-anomaly-classification/SKILL.md.
  • Model catalog, optional Mamba/LTSM dependencies, augmentation flags, or adding a model: use ../foundation-models-and-customization/SKILL.md.
  • Cross-cutting installation failures: start with ../../references/installation-and-environment.md and ../../references/troubleshooting.md.

Fast Preflight

From this sub-skill directory, point helpers at the user's TSLib checkout:

python ../../scripts/check_tslib_environment.py --repo-root /path/to/Time-Series-Library --check-torch --check-core-imports
python ../../scripts/create_tiny_tslib_dataset.py --output /path/to/Time-Series-Library/dataset/tiny-custom/tiny.csv
python scripts/validate_tslib_data.py \
  --task long_term_forecast --data custom \
  --root-path /path/to/Time-Series-Library/dataset/tiny-custom \
  --data-path tiny.csv --target OT

Then run a task smoke from the TSLib checkout with --no_use_gpu, --train_epochs 1, --num_workers 0, and small windows before scaling up.

Data Routing Rules

  1. Match --task_name to a loader-compatible --data value. For example, classification normally uses --data UEA, while anomaly detection uses one of PSM, MSL, SMAP, SMD, or SWAT.
  2. For local CSV forecasting/imputation, make sure --root_path points to the directory and --data_path is the filename. If the file is absent, the loader may try a Hub dataset whose config name is derived from the filename.
  3. For custom, include a date column and a numeric target column. --target defaults to OT.
  4. For UEA, --model_id is the dataset name used to locate <DatasetName>_TRAIN.ts and <DatasetName>_TEST.ts.
  5. For benchmark scripts, review and rewrite hard-coded CUDA_VISIBLE_DEVICES and dataset folders before running.

References and Helpers

  • references/data-layouts.md details local files expected for CSV, M4, anomaly, and UEA loaders.
  • references/cli-and-outputs.md explains required flags, GPU controls, setting strings, and output folders.
  • references/troubleshooting.md maps common path, parser, download, and output problems to fixes.
  • scripts/validate_tslib_data.py performs file/header/layout checks without training or downloading data.
  • ../../references/cli-arguments.md is the shared root CLI reference.
  • ../../references/data-formats.md is the shared cross-task data-format reference.

Avoid

  • Do not run full benchmark shell scripts as a preflight. Render a smaller command or use the forecasting command builder.
  • Do not assume a missing local file is harmless; it can trigger network fallback and fail with a misleading Hub error.
  • Do not let CUDA defaults choose the device for a smoke test; add --no_use_gpu unless GPU behavior is the point of the test.
  • Do not treat tiny synthetic data as benchmark evidence. It validates plumbing only.

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