Skip to content
Back to skills

Foundation Models And Customization

ASecurity

"Navigate Time-Series-Library model files, optional Mamba and large

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 9, 2026
toolspythonshellbashbackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill foundation-models-and-customization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Foundation Models And Customization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Foundation Models And Customization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-foundation-models-and-customization/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-foundation-models-and-customization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: foundation-models-and-customization
description: "Navigate Time-Series-Library model files, optional Mamba and large
  time-series model dependencies, augmentation flags, and custom model or script
  additions."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# TSLib Models and Customization

Use this sub-skill when the task is about choosing a TSLib model, diagnosing optional model dependencies, using zero-shot foundation models or Mamba variants, adding a new `models/<Name>.py`, adapting benchmark scripts, or using the built-in augmentation flags.

## Route Here

- Explain how `Exp_Basic` discovers model files and how `--model <Name>` maps to `models/<Name>.py`.
- Choose a core smoke-test model versus an optional dependency-heavy model.
- Diagnose missing imports for `mamba_ssm`, `chronos`, `timesfm`, `uni2ts`, `tirex`, or `transformers`.
- Add or adapt a custom TSLib model file and create matching benchmark/smoke commands.
- Use augmentation flags such as `--jitter`, `--scaling`, `--permutation`, `--timewarp`, `--wdba`, or DTW-guided variants.
- Follow contribution expectations for new published-paper model additions.

## Reroute

- Forecast command construction, TimeXer recipes, or zero-shot task commands: use `../forecasting/SKILL.md`.
- Data layouts, `run.py` flag basics, GPU flags, and output folders: use `../data-and-cli/SKILL.md`.
- Imputation/anomaly/classification task-specific recipes: use `../imputation-anomaly-classification/SKILL.md`.

## Start Fast

Inventory safe core and optional model imports before recommending a model:

```bash
python scripts/inspect_tslib_models.py --repo-root . --models DLinear TimesNet TimeXer PatchTST --optional-models
```

For smoke tests, prefer `DLinear`, `TimesNet`, `TimeXer`, `PatchTST`, or `Transformer` before Mamba/LTSM files. Optional model import failures should be treated as routing information, not as a broken core TSLib install.

## Custom Model Contract

A model file normally lives at `models/<Name>.py` and exposes either `Model` or a class named `<Name>`. Most task models implement:

```python
class Model(nn.Module):
    def __init__(self, configs): ...
    def forward(self, x_enc, x_mark_enc, x_dec, x_mark_dec, mask=None): ...
```

`Exp_Basic` scans `models/` dynamically at runtime, so adding a Python file is enough for discovery if imports and the class contract are valid.

## References and Helpers

- `references/model-catalog-and-dependencies.md` maps model families to dependency and backend surfaces.
- `references/customization.md` covers custom model/script addition and augmentation usage.
- `references/troubleshooting.md` covers optional dependency, model import, shape, and source-tree problems.
- `scripts/inspect_tslib_models.py` probes model imports and class availability without downloading data or training.
- `../../references/model-catalog.md` is the shared catalog used by the root skill.

## Avoid

- Do not install all optional model stacks just because one import failed. First confirm the requested model family.
- Do not claim zero-shot, Mamba, or remote-code model execution is verified unless that exact package, model cache, and device path has been run.
- Do not add a model file without a small CPU-compatible shape/import smoke when possible.
- Do not copy upstream benchmark shell scripts without adjusting GPU ids, data paths, and epochs for the user's environment.

Files in this skill

  • SKILL.md3.4 KB
  • references/customization.md3 KB
  • references/model-catalog-and-dependencies.md3.2 KB
  • references/troubleshooting.md2.8 KB
  • scripts/inspect_tslib_models.py3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.