/ Модель

Характеристики

Лицензия
MIT
Библиотека
pytorch
Опубликована
28 ноя 2026

stitch

Прогноз временных рядовTime_series → time_series4 профессии

STITCH — пул из 435 моделей с совместимыми блоками для построения и адаптации прогнозистов временных рядов при дрейфе данных.

0скачиваний за 30 дней1лайквеса обновлены28 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

STITCH — разработанный автором репозитория набор из 435 предварительно обученных моделей прогнозирования временных рядов, предназначенных для использования системой STITCH при обнаружении дрейфа данных. Система ищет блоки в графе сегментов, собирает из них новую модель, дообучает её и объединяет прогноз с прогнозом предыдущей модели. Репозиторий предоставляет пул блоков для этой процедуры, а не только одну готовую модель.

Сценарии применения

  • прогнозирование временных рядов с дрейфующими распределениями
  • адаптация прогнозиста при изменении данных
  • сборка модели из блоков предварительно обученных прогнозистов
  • прогнозирование показателей экономики, энергетики, трафика и погоды

Ограничения

Пул рассчитан на поканальную обработку: за один проход используется один временной ряд. Встроенные прогнозисты обучены на ограниченном наборе датасетов; качество на иных данных не установлено.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

STITCH

STITCH (Shortest-path Transplantation of Interchangeable Time-series blocks with Calibrated Hedging) keeps a forecaster accurate on a drifting stream. When drift is detected, it rebuilds the served network from block segments of other pretrained models by a shortest-path search over a segment graph, fine-tunes the stitched network, and hedges it against the previous one.

This repository hosts the pretrained block pool that STITCH searches over: 435 forecasting models whose residual blocks share one interface, so that any block can be transplanted into any other model of the same shape.

The source code is in the GitHub repository.

Model Details

  • Architectures: MLP (2.1M parameters), LSTM (2.5M), Attention (2.5M).
  • Blocks: 6 residual blocks per model on a shared 512-step stream, patch length 16, hidden size 64, 3 layers per block, linear head.
  • Channel handling: channel-independent, one variate per forward pass.
  • Context lengths: 64, 128, 256, 512, 1024, 2048.
  • Horizons: 96, 192, 336, 720.
  • Training: each model is trained on the train split of its own dataset only, then fine-tuned with MAE loss (20 epochs, early stopping with patience 3, learning rate 1e-4, batch size 256).
  • Inference: PyTorch on CPU or GPU.

Pool Contents

FolderDatasetsArchitecturesContextsHorizonsModels
ett-weather/ETTh1, ETTh2, ETTm1, ETTm2, WeatherMLP, LSTM, Attention64 to 204896 to 720360
time-mmd/Economy, Energy, Security, SocialGood, TrafficMLP, LSTM, Attention64, 1289675

Each time-mmd/ model starts from one of the ett-weather/ models and is adapted on the train split of one Time-MMD domain (up to 100 epochs, early stopping with patience 10, learning rate 1e-4, batch size 32).

Every model folder is named forecasting-<dataset>-<architecture>-c<context>-h<horizon>-p6 and holds:

  • model.pt: the state dict.
  • record.json: dataset, architecture, context, horizon, block settings and validation loss.

Benchmarks

MSE of the full STITCH system built on this pool, against published numbers (†). ETT/Weather is averaged over the horizons 96, 192, 336 and 720, Time-MMD over the horizons of ScenarioDiff. Each dataset is tested on its own test split.

ETT and Weather, inference-time setting

DatasetTimeBlocks†STITCH
ETTh10.4160.410
ETTh20.3380.346
ETTm10.3440.334
ETTm20.2420.249
Weather0.2200.219

Time-MMD

DomainScenarioDiff†STITCH
Economy0.2160.193
Energy0.2250.202
Security74.8069.40
SocialGood1.3130.731
Traffic0.0990.032

Usage

Install

git clone https://github.com/LeonStandford/STITCH.git && cd STITCH
pip install -r requirements.txt   # Python 3.10, PyTorch 2.3.1

Load a pretrained model

from pathlib import Path

import torch
from huggingface_hub import snapshot_download

from src.data.classes.settings import BackboneSettings
from src.services.blockbase import load_backbone

root = Path("weights")
snapshot_download(
    repo_id="leonpham1208/stitch",
    allow_patterns=["ett-weather/forecasting-ETTh1-lstm-c512-h96-p6/*"],
    local_dir=root / "blockbase",
)

model = load_backbone(
    settings=BackboneSettings(
        blockbase_name="ett-weather",
        source_dataset="ETTh1",
        architecture="lstm",
        context_length=512,
        horizon=96,
    ),
    weights_root=root,
)

context = torch.randn(4, 512, 1)
forecast = model(x=context)

forecast has shape (4, 96, 1). Download the whole pool with snapshot_download(repo_id="leonpham1208/stitch", local_dir="weights/blockbase") to run STITCH itself, following the GitHub repository.

Additional Resources

License

The models are released under the MIT license.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Прогнозирование временных рядов пока не поддерживается рантаймом.

Ревизия весов
f5637fa

0 моделей