/ Модель

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

Лицензия
CC BY-NC-SA 4.0
Базовая модель
chronos-2
Библиотека
chronos-forecasting
Опубликована
15 окт 2026

BharatTS-Large

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

Вероятностная модель JudicialMind, которая прогнозирует индийские государственные временные ряды разных частот, выбирая и смешивая специализированные прогнозисты.

0скачиваний за 30 дней0лайковвеса обновлены15 окт 2026

Бенчмарки

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

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

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

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

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

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

BharatTS-Large — вероятностная модель JudicialMind для прогнозирования временных рядов по открытым данным государственных порталов Индии. Она предназначена для рядов разной частоты: дневных, недельных, месячных, квартальных и годовых, включая цены на сельскохозяйственных рынках, показатели здравоохранения, осадки, уровни водохранилищ, урожайность и статистику государственных программ.

Модель объединяет восемь экспертов Chronos-2, дообученных на корпусе BharatTS-Corpus, исходные Chronos-2 и TimesFM-2.5, а также статистические прогнозисты. Встроенный маршрутизатор выбирает или смешивает прогнозы; для достаточно длинного ряда он может сравнить кандидатов на недавних окнах самого ряда. Доступны полная версия с маршрутизатором и дистиллированный вариант на одном чекпойнте примерно со 120 млн параметров. В README приведены результаты на отложенных рядах, где варианты BharatTS-Large показали меньшую общую WQL, чем Chronos-2, TimesFM-2.5 и сезонный наивный прогноз.

Модель принимает временные ряды и выдаёт вероятностные прогнозы в виде квантилей. Она ориентирована на статистику Индии и не заявлена как универсальный прогнозист для любых доменов. Для коротких рядов локальное сравнение кандидатов недоступно, и используется обычный маршрут. Лицензия CC BY-NC-SA 4.0 требует распространять производные на тех же условиях и ограничивает коммерческое использование; для коммерческого применения README предлагает связаться с разработчиком.

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

  • прогнозирование цен на сельскохозяйственных рынках Индии
  • прогнозирование показателей здравоохранения по регионам
  • прогнозирование осадков и уровней водохранилищ
  • прогнозирование урожайности сельскохозяйственных культур
  • прогнозирование статистики государственных программ

Ограничения

Модель специализирована на индийских государственных временных рядах, поэтому её результаты для других предметных областей не установлены. Для коротких рядов локальное сравнение кандидатов не применяется.

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

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

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

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

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

Открыть на Hugging Face

BharatTS-Large

Licence: CC BY-NC-SA 4.0 — research and non-commercial use only; derivatives must be shared under the same licence. Commercial use: contact surya@judicialmind.ai or hello@judicialmind.ai

Access is approved automatically when the email you enter matches your Hugging Face account email and belongs to the organisation you name; other requests are reviewed manually.

A probabilistic forecaster for Indian open government time series (data.gov.in, NITI Aayog NDAP and other government portals): daily, weekly, monthly, quarterly and yearly series such as mandi prices, HMIS health indicators, rainfall, reservoir levels, crop yields and scheme statistics. It is one model with one entry point. Inside, a gate weighs a set of expert forecasters for each series, the way a mixture-of-experts layer does: eight Chronos-2 experts fine-tuned on BharatTS-Corpus, the base Chronos-2 and TimesFM-2.5 models, and statistical forecasters. You never pick components.

Headline result: on held-out series it never saw in training, every BharatTS-Large variant beats Chronos-2, TimesFM-2.5 and seasonal-naive on overall WQL.

Held-out series, overall WQL (lower is better; n = 8,349)

ModelWQLGM-MASE vs seasonal-naive
BharatTS-Large v1 (frequency route)0.1710.665
BharatTS-Large distilled (single checkpoint)0.1750.662
BharatTS-Large v2 (full gate, default)0.1840.670
Chronos-20.2070.716
TimesFM-2.50.2570.715
Seasonal-naive0.2461.000

This release ships the v2 gate (router.json version 2) as the default and the distilled single-checkpoint variant.

Base models: amazon/chronos-2 (Apache-2.0) and google/timesfm-2.5-200m-pytorch (Apache-2.0, bundled unmodified). Their notices are kept in NOTICE.

Quickstart

hf download judicialmind/BharatTS-Large --local-dir BharatTS-Large   # gated: accept the terms, then `hf auth login`
pip install -r BharatTS-Large/requirements.txt
import sys
sys.path.insert(0, "BharatTS-Large")          # folder with the downloaded repo (bharatts_large.py lives there)

import numpy as np
from bharatts_large import BharatTSLarge

m = BharatTSLarge.from_pretrained("BharatTS-Large")   # local folder, or the Hub id "judicialmind/BharatTS-Large"

t = np.arange(72)
monthly = 100 + 10 * np.sin(2 * np.pi * t / 12) + 0.5 * t   # 6 years of monthly values, oldest first
monthly[30] = np.nan                                          # missing values are allowed
yearly = np.array([52.0, 55.1, 57.9, 61.2, 60.4, 64.8, 68.0, 71.3])

q = m.predict([monthly, monthly * 2], freq="M")               # default horizon for M is 6
print(q.shape)                                                # (2, 6, 9): series x horizon x quantiles 0.1..0.9
print(np.round(q[0, :, 4], 1))                                # median forecast of series 0

q = m.predict([yearly], freq="Y", horizon=5, quantiles=[0.05, 0.5, 0.95])
print(q.shape)                                                # (1, 5, 3)
print(np.round(q[0], 1))                                      # rows = years ahead, columns = 5% / 50% / 95%

Output (CPU): the first forecast has shape (2, 6, 9) (series × horizon × quantiles) and the second (1, 5, 3).

Median monthly forecast, series 0

Months ahead123456
Median135.6141.5146.0147.8147.2143.7

Yearly forecast with 5% / 50% / 95% quantiles

Years ahead5%50%95%
168.573.779.1
268.175.884.3
367.978.189.2
467.777.888.6
568.078.790.7

Input. contexts: a list of 1-D numeric arrays (lists, numpy arrays or tensors), one per series, oldest value first, NaN for missing values, any length (the last 2048 points are used). freq: one frequency code for the whole batch, "D", "W", "M", "Q" or "Y". Optional horizon (defaults: D 30, W 13, M 6, Q 4, Y 3) and quantiles (default 0.1, 0.2, ..., 0.9; other levels are interpolated and clamped to the 0.1 / 0.9 forecasts outside that range).

Output. A numpy.float64 array of shape (n_series, horizon, n_quantiles), in the units of the input; quantiles never cross. Take [..., 4] of the default output for the median.

from_pretrained also accepts device="cuda" / "cpu" (default: CUDA if available; experts run in bf16 on GPU, fp32 on CPU) and batch_size. Experts are loaded on first use; loaded by Hub id, their files are downloaded on first use.

Variant: distilled

m = BharatTSLarge.from_pretrained("BharatTS-Large", variant="distilled")   # default (variant=None) is the full gate
q = m.predict([monthly], freq="M")

A single Chronos-2 checkpoint distilled from the gate: one forward pass per series, ~120M parameters.

Files

filecontent
bharatts_large.pythe runtime: BharatTSLarge.from_pretrained(...), .predict(...), statistical forecasters, gate
router.jsonfrozen gate configuration: horizons and seasons per frequency, frequency routes, local-backtest rules, expert list
experts/*.safetensorsChronos-2 experts (bf16); experts/chronos2_config_*.json are their shared configs
experts/timesfm25/google/timesfm-2.5-200m-pytorch, unmodified
eval/leaderboard.md, eval/leaderboard.jsontest results, overall and by ministry
variants/distilled.safetensorsthe distilled single-checkpoint variant (Chronos-2 architecture, bf16; config in experts/)
eval/distilled/test results of the distilled variant (same windows): leaderboard.md, leaderboard.json, by_freq.parquet, by_ministry.parquet
eval/by_freq.parquet, eval/by_ministry.parquettest results per frequency / per ministry (task, freq or ministry, model, n, mase, wql, gm_rel_mase_vs_snaive)
requirements.txtpinned runtime dependencies
NOTICEApache-2.0 notices of the base models

Experts

expertwhat it isweights
bharatts_g1 ... bharatts_g5BharatTS fine-tunes of amazon/chronos-2 on all frequenciesexperts/bharatts_g1.safetensors ... experts/bharatts_g5.safetensors
bharatts_wBharatTS fine-tune of amazon/chronos-2, weekly specialistexperts/bharatts_w.safetensors
bharatts_qBharatTS fine-tune of amazon/chronos-2, quarterly specialistexperts/bharatts_q.safetensors
bharatts_yBharatTS fine-tune of amazon/chronos-2, yearly specialistexperts/bharatts_y.safetensors
chronos2amazon/chronos-2experts/chronos2.safetensors
timesfm25google/timesfm-2.5-200m-pytorch (unmodified)experts/timesfm25
seasonal_naive, naive, drift, mean, ets_litestatistical forecasters with empirical residual quantilescomputed in bharatts_large.py

Chronos-2 experts are stored as bf16 safetensors; experts with identical configs share one config file. GPU inference runs in bf16, so this loses nothing there; on CPU the weights are upcast to fp32.

Gate

  1. Frequency route (router): each frequency has a fixed quantile blend of experts.

    freqrouter
    D1/3 bharatts_g4 + 1/3 bharatts_g1 + 1/3 bharatts_g3
    W0.75 bharatts_w + 0.25 seasonal_naive
    M0.5 bharatts_g5 + 0.5 bharatts_g2
    Qbharatts_q
    Y0.75 bharatts_g1 + 0.25 bharatts_y
  2. Per-series local backtest: for each series the candidates forecast that series' own most recent k windows inside the context you pass (never beyond it). Each candidate gets a scale-free score (pinball loss / sum |y|). The forecast is the best candidate if it beats router by the margin, otherwise router. A series too short for any backtest window gets router.

    freqkrulecandidates
    D2best, margin 0.5router, chronos2, timesfm25, seasonal_naive, router+chronos2, router+timesfm25, router+chronos2+timesfm25, router+seasonal_naive
    W5best, margin 0.1router, chronos2, timesfm25, seasonal_naive, router+chronos2, router+timesfm25, router+chronos2+timesfm25, router+seasonal_naive
    M5best, margin 0.1router, chronos2, timesfm25, seasonal_naive, router+chronos2, router+timesfm25, router+chronos2+timesfm25, router+seasonal_naive
    Q3best, margin 0.25router, chronos2, timesfm25, seasonal_naive, router+chronos2, router+timesfm25, router+chronos2+timesfm25, router+seasonal_naive
    Y1best, margin 1.0router, chronos2, timesfm25, seasonal_naive

    a+b candidates are equal-weight quantile blends. The gate was frozen before the test windows were scored.

Results

Test windows, one pass of the frozen gate (eval/leaderboard.json, eval/by_freq.parquet). Lower is better for both metrics. WQL = pooled weighted quantile loss; GM-MASE = geometric mean of the MASE ratio to seasonal-naive. v2 is the full gate (default); v1 is its frequency route alone (step 1 of the gate); distilled is the single-checkpoint variant. heldout = series never trained on, last h points; time = training series, the h points after the per-frequency calendar cutoff.

Overall test results (eval/leaderboard.json, eval/distilled/leaderboard.json)

SplitnMetricv2 (default)distilledv1Chronos-2TimesFM-2.5Seasonal-naive
heldout8,349WQL0.1840.1750.1710.2070.2570.246
heldout8,349GM-MASE0.6700.6620.6650.7160.7151.000
time5,932WQL0.1880.1910.1870.1950.2020.276
time5,932GM-MASE0.6140.6300.6190.6470.6351.000

Held-out series by frequency, WQL (GM-MASE) — frequencies where a BharatTS-Large variant is best

Freqnv2 (default)distilledv1Chronos-2TimesFM-2.5Seasonal-naive
D2,3030.049 (0.606)0.050 (0.593)0.053 (0.598)0.054 (0.658)0.059 (0.635)0.091 (1.000)
M3,2080.184 (0.556)0.175 (0.564)0.171 (0.549)0.207 (0.601)0.257 (0.588)0.246 (1.000)
Q3000.444 (0.717)0.333 (0.591)0.444 (0.711)0.396 (0.745)0.428 (0.696)0.973 (1.000)

All frequencies and the per-ministry breakdown: eval/by_freq.parquet, eval/leaderboard.md, eval/by_ministry.parquet (distilled: eval/distilled/).

Coverage

Indian government statistics at national, state, district and sub-district level, D/W/M/Q/Y frequencies, series starting between 1901 and 2026, from 8,461 source tables (1,799,285 series in BharatTS-Corpus). The heldout series of BharatTS-Corpus were never trained on.

Source data

Source data: Open Government Data Platform India (data.gov.in) and NDAP (ndap.niti.gov.in), used under the Government Open Data License - India (GODL-India), https://data.gov.in/government-open-data-license-india. Aggregates only; no personal data.

Expert weights derived from or equal to Apache-2.0 models (amazon/chronos-2, google/timesfm-2.5-200m-pytorch); see NOTICE.

Original data: published by the Indian ministries, departments and agencies named per series in the ministry column of BharatTS-Corpus on the Open Government Data Platform India (data.gov.in) and, where marked, NITI Aayog's National Data and Analytics Platform (NDAP), under the Government Open Data License - India (GODL-India). The original public data remains under GODL-India; the CC BY-NC-SA 4.0 licence of this repository covers JudicialMind's compilation, derived fields, annotations, benchmarks and models.

Citation

@misc{judicialmind2026bharattslarge,
  title        = {BharatTS-Large: A Mixture-of-Experts Forecaster for Indian Open Government Time Series},
  author       = {JudicialMind},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/judicialmind/BharatTS-Large}}
}

License

CC BY-NC-SA 4.0 (see LICENSE): research, academic, personal and other non-commercial use, with attribution to JudicialMind and to the original data publishers; adaptations must be shared under the same licence. Commercial use requires a separate licence.

Commercial use: contact surya@judicialmind.ai or hello@judicialmind.ai.

Base model(s): amazon/chronos-2 (apache-2.0), google/timesfm-2.5-200m-pytorch (apache-2.0). Their licence terms and notices continue to apply to the upstream components; see THIRD_PARTY_NOTICES.md and NOTICE.

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

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

GPU в ailist

Универсальный рантайм · chronos-forecasting

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

Временные ряды пока не поддерживаются.

Ревизия весов
03befe1

0 моделей