nvidia-tao/tao-skill-bank/tao-finetune-kumo-anomaly
Claude Code and agent skill by nvidia-tao/tao-skill-bank
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Kumo-Anomaly — diffusion-based anomaly detection and fine-tuning for multivariate time series. Use when the user asks to "fine-tune Kumo-Anomaly", "run Kumo-Anomaly inference", "detect anomalies with diffusion", "time series anomaly detection", "finetune Kumo-Anomaly", "use perform_anomaly_analysis_with_diffusion", "automl Kumo-Anomaly", "hyperparameter search Kumo-Anomaly", "hyperparameter optimization" or mentions "curriculum_medium.yaml", "final_model.pth", "kumo-anomaly", "sdk/anomaly_analysis", or "TSDiffuser_Generic".
Install
npx vskill@latest install nvidia-tao/tao-skill-bank/tao-finetune-kumo-anomalySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as nvidia/skills/tao-finetune-kumo-anomaly.
Kumo-Anomaly
Diffusion-based anomaly detection and fine-tuning for multivariate time series. The model reconstructs randomly masked segments and scores each timestep by MAE between reconstruction and original signal; adaptive thresholding (SCS or MACS) converts scores to binary labels.
Source code: https://github.com/NVIDIA/Kumo-TS Pretrained weights: https://huggingface.co/nvidia/Kumo-Anomaly
For the most up-to-date usage information, refer to the README files inthe Kumo-TS repository:- [`Kumo-Anomaly/README.md`](https://github.com/NVIDIA/Kumo-TS/blob/main/Kumo-Anomaly/README.md) — full SDK reference, model architecture, and API docs- [`Kumo-Anomaly/examples/datasets/README.md`](https://github.com/NVIDIA/Kumo-TS/blob/main/Kumo-Anomaly/examples/datasets/README.md) — dataset format, synthetic data generation, and CSV conventions
External dependencies
| Dependency | Purpose | Install | |
|---|---|---|---|
| Python 3.12+ | Runtime | https://www.python.org/downloads/ | |
| uv | Package + environment manager | pip install uv | |
| CUDA toolkit (optional) | GPU acceleration | https://developer.nvidia.com/cuda-downloads | |
| huggingface_hub | Weight download from HF | Bundled via uv sync |
Credentials
nvidia/Kumo-Anomaly is a public repo — no token required for downloading weights. If you ever hit a 401/403 (gated access or private fork) or a 504 on first download, see the Known pitfalls section.
Quick start
Inference
Use perform_anomaly_analysis_with_diffusion in sdk/anomaly_analysis.py. It validates input, auto-dispatches across all visible GPUs, applies adaptive thresholding (SCS or MACS), and returns the original DataFrame with Anomaly (0/1) and MAE columns appended.
Reporting (sdk_config)
perform_anomaly_analysis_with_diffusion takes an optional sdk_config keyword — an ADDiffusionConfig, a path to a YAML file, or None for defaults. It scopes report-generation knobs only; inference-behavior args (threshold_strategy, nsample, model_path, model_config_path) stay as direct function arguments.
Or pass a YAML path instead of the dataclass — load_sdk_config accepts a flat mapping or one nested under a top-level sdk: key (so the file can carry other sections alongside it), and rejects unknown keys:
ADDiffusionConfig fields: report_path (str/Path, default None — set to enable the PDF report), timestamp_column (str, None), ground_truth_column (str, None), report_title (str, "Kumo-Anomaly Report"), report_max_pages (int, 10).
Inference CLI reference
| Argument | Default | Description | |
|---|---|---|---|
--dataset-path | synthetic | CSV with numeric feature columns | |
--model-path | auto-download | Path to .pth checkpoint | |
--config-path | auto-download | Path to curriculum_medium.yaml | |
--download-weights | — | Fetch weights from HF and exit | |
--skip-download | false | Require local weights; skip HF fetch |
Fine-tuning
Fine-tune on your own data. The training CSV should contain mostly normal behavior. Validate the pretrained model on your domain before fine-tuning.
Fine-tuning arguments
| Argument | Default | Description | |
|---|---|---|---|
--run-config | — | JSON/YAML config file generated by AutoMLRunner ({config_path}). All fields below can be set here; explicit CLI flags override the file. | |
--csv | required | Training CSV (ideally containing normal behavior). Required if not supplied via --run-config. | |
--val-csv | — | Separate validation CSV | |
--val-ratio | 0.3 | Validation fraction when --val-csv not used (temporal split) | |
--timestamp-col | timestamp | Column to drop from features | |
--label-col | — | Label column to drop | |
--drop-cols | — | Comma-separated extra columns to drop | |
--pretrained-model | final_model.pth | Warm-start checkpoint (auto-downloaded if missing) | |
--config | curriculum_medium.yaml | Model config YAML | |
--repo-id | nvidia/Kumo-Anomaly | HuggingFace repo for auto-download | |
--no-download | false | Fail if pretrained weights are not local | |
--epochs | 10 | Training epochs | |
--batch-size | 16 | Per-GPU batch size | |
--lr | 1e-5 | AdamW learning rate | |
--weight-decay | 1e-6 | AdamW weight decay | |
--grad-clip | 1.0 | Gradient norm clip | |
--num-workers | 0 | DataLoader workers | |
--seed | 42 | Random seed | |
--output-dir | artifacts/finetune | Output directory | |
--window-length | config (100) | Sliding window length in timesteps | |
--window-stride | 1 | Step between consecutive windows | |
--split | config (10) | Alternating mask segments per window | |
--mask-ratio | 0.7 | Fraction of each window masked during training | |
--scale-factor | config (1) | Scale multiplier after min-max normalization | |
--num-gpus | all available | Number of GPUs for DDP fine-tuning; set 1 to force single-GPU |
Running inference with a fine-tuned checkpoint
AutoML (HPO: hyperparameter optimization)
This skill supports AutoML for fine-tuning HPO and labeled inference HPO through tao-skill-bank:tao-run-automl with this model's skill_dir.
Read references/automl.md when the user asks for AutoML/HPO setup, tunable parameters, VirtualEnvSDK setup, config flow, window-length constraints, inference trial scripts, or AutoML result handoff details.
Data requirements
| Property | Requirement | |
|---|---|---|
| Rows | ≥ window_length (default 100); ≥ target_dim (default 18) for PCA | |
| Columns | Must be numeric — the API raises ValueError on non-numeric columns; drop timestamp, IDs, and labels before calling | |
| Values | No NaN / ±Inf — fill before passing to the API | |
Feature count > target_dim | PCA reduction to target_dim; needs ≥ target_dim rows | |
Feature count < target_dim | Zero-padded to target_dim |
target_dim 18 is the config-file default, not a hard constant — when fine-tuning warm-starts from a published checkpoint (--pretrained-model), the checkpoint's embedded config overrides it (the published final_model.pth was trained at target_dim=40). Check the checkpoint's config rather than assuming 18 when reasoning about PCA/padding behavior for warm-started fine-tuning.
Pass only numeric feature columns to the inference API — it raises ValueError on non-numeric columns rather than dropping them. Use df.select_dtypes(include="number") or drop by name before calling. Fine-tuning handles this via --timestamp-col, --label-col, and --drop-cols CLI args.
Output structure
Inference (examples/quick_example.py):
Fine-tuning (--output-dir artifacts/finetune_my_data):
Model configuration (curriculum_medium.yaml)
| Field | Default | Description | |
|---|---|---|---|
model.target_dim | 18 | Internal feature dim; data is PCA'd/padded to this | |
dataset.window_length | 100 | Sliding window size in timesteps | |
dataset.split | 10 | Alternating mask segments per window | |
dataset.scale_factor | 1 | Scale multiplier after min-max normalization | |
diffusion.num_steps | 500 | Full diffusion steps (overridden by DPM-Solver) | |
diffusion.channels | 128 | Model hidden dimension | |
diffusion.layers | 6 | Transformer encoder layers |
Hardware
| Tier | Setup | Notes | |
|---|---|---|---|
| Minimum | 1× CPU | Functional; DPM-Solver reduces steps 500 → 20 | |
| Recommended | 1× NVIDIA GPU (≥8 GB VRAM) | Strongly recommended for fine-tuning | |
| Multi-GPU inference | 2–8× NVIDIA GPUs | auto-dispatched by perform_anomaly_analysis_with_diffusion | |
| Multi-GPU fine-tuning | 2+× NVIDIA GPUs | Auto DDP via --num-gpus (defaults to all visible GPUs) |
Known pitfalls
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/models/tao-finetune-kumo-anomaly/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nvidia-tao/tao-skill-bank/tao-finetune-kumo-anomaly)