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
- 参考文档references/cli-and-outputs.md2.9 KB
- 参考文档references/data-layouts.md2.6 KB
- 参考文档references/troubleshooting.md2.1 KB
- 脚本scripts/validate_tslib_data.py3.7 KB
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
customCSV, ETT-style CSV, M4 folder, anomaly folder, or UEA.tsfolder. - 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, orCUDA_VISIBLE_DEVICESfor 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.mdand../../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
- Match
--task_nameto a loader-compatible--datavalue. For example,classificationnormally uses--data UEA, while anomaly detection uses one ofPSM,MSL,SMAP,SMD, orSWAT. - For local CSV forecasting/imputation, make sure
--root_pathpoints to the directory and--data_pathis the filename. If the file is absent, the loader may try a Hub dataset whose config name is derived from the filename. - For
custom, include adatecolumn and a numeric target column.--targetdefaults toOT. - For UEA,
--model_idis the dataset name used to locate<DatasetName>_TRAIN.tsand<DatasetName>_TEST.ts. - For benchmark scripts, review and rewrite hard-coded
CUDA_VISIBLE_DEVICESand dataset folders before running.
References and Helpers
references/data-layouts.mddetails local files expected for CSV, M4, anomaly, and UEA loaders.references/cli-and-outputs.mdexplains required flags, GPU controls, setting strings, and output folders.references/troubleshooting.mdmaps common path, parser, download, and output problems to fixes.scripts/validate_tslib_data.pyperforms file/header/layout checks without training or downloading data.../../references/cli-arguments.mdis the shared root CLI reference.../../references/data-formats.mdis 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_gpuunless GPU behavior is the point of the test. - Do not treat tiny synthetic data as benchmark evidence. It validates plumbing only.
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).