/ Модель

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

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

Mandi-Chronos

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

Модель JudicialMind на базе Chronos-2 прогнозирует вероятностные диапазоны ежедневных оптовых цен на сельскохозяйственные товары на рынках Индии.

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

Бенчмарки

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

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

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

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

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

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

Mandi-Chronos — модель прогнозирования временных рядов, разработанная JudicialMind на основе Chronos-2 от Amazon. Она дообучена на MandiBench для прогнозирования ежедневных оптовых цен на сельскохозяйственные товары на рынках Индии (mandi). На вход подаются история модальных цен одного сорта товара на одном рынке в рупиях за квинтал, включая пропуски в дни без торговли; модель выдаёт вероятностные прогнозы-квантили на последующие дни. Архитектура и API унаследованы от Chronos-2, размер модели — около 120 млн параметров; доступны веса safetensors.

Модель обучалась на 12 863 временных рядах цен 176 продовольственных товаров в 2 126 рынках 24 штатов и союзных территорий. На тестовых окнах MandiBench она превзошла zero-shot Chronos-2 по WQL на горизонтах 7, 14 и 30 дней, в том числе на отложенных штатах. Для работы достаточно истории цен. Ограничение области применения — прогнозирование рыночных цен в контексте индийского сельского хозяйства; результаты бенчмарка не гарантируют точность для иных рынков и данных. Лицензия CC BY-NC-SA 4.0 разрешает некоммерческое использование при соблюдении условий атрибуции и распространения производных материалов на той же лицензии; для коммерческого использования нужно связаться с разработчиком.

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

  • прогноз цен на сельскохозяйственные товары на индийских рынках
  • оценка диапазона оптовых цен на ближайшие 7–30 дней
  • сравнение ожидаемых цен разных сортов товара и рынков
  • подготовка прогнозов для анализа сезонности и рыночных тенденций

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Mandi-Chronos

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.

Mandi-Chronos is Chronos-2 fine-tuned to forecast daily wholesale (mandi) prices in India. Given a market's daily modal price history for one commodity variety (Rs per quintal, with gaps on days without trade), it returns probabilistic forecasts (quantiles) for the next days. It was fine-tuned on the MandiBench series before 2025-06-01, leaving out the nine benchmark held-out states and union territories, and on MandiBench it beats zero-shot Chronos-2 at every horizon, both overall and in the held-out states. Architecture and API are those of Chronos-2 (about 120M parameters).

Quickstart

pip install -r requirements.txt   # chronos-forecasting, torch, transformers, pandas, ...
import pandas as pd
import torch
from chronos import Chronos2Pipeline
from huggingface_hub import hf_hub_download

repo = "judicialmind/Mandi-Chronos"
pipe = Chronos2Pipeline.from_pretrained(repo, device_map="cpu")  # device_map="cuda" on a GPU

# daily modal prices (Rs per quintal) of three Agmarknet series over the 512 days before 2025-06-01
df = pd.read_csv(hf_hub_download(repo, "example.csv"), parse_dates=["ts"])
origin = pd.Timestamp("2025-06-01")
days = pd.date_range(origin - pd.Timedelta(days=512), periods=512, freq="D")
ids, contexts = [], []
for sid, g in df.groupby("series_id"):
    ids.append(sid)
    contexts.append(torch.tensor(g.set_index("ts")["target"].reindex(days).to_numpy(), dtype=torch.float32))

quantiles, mean = pipe.predict_quantiles(contexts, prediction_length=30, quantile_levels=[0.1, 0.5, 0.9])
for sid, q in zip(ids, quantiles):  # q: (1 variate, 30 days, 3 quantiles)
    print(" | ".join(sid.split("|")[1:5]))
    print("  day 1 :", [round(v) for v in q[0, 0].tolist()], " day 30:", [round(v) for v in q[0, -1].tolist()])

Forecast quantiles, Rs per quintal (CPU, float32)

statedistrictmarketcommodityday 1 q0.1day 1 medianday 1 q0.9day 30 q0.1day 30 medianday 30 q0.9
OdishaDhenkanalHindolTomato2,4962,7983,1162,4403,4915,174
Uttar PradeshPrayagrajAjuhaOnion1,1631,2081,2621,4961,8052,121
Uttar PradeshRaebarelliRaibareillyWheat2,4252,4362,4452,3922,4582,516

Input: one 1-D float tensor per series, the daily price on a calendar-day grid ending the day before the first forecast day, with NaN for days without trade. The MandiBench protocol uses the last 512 days. Output: predict_quantiles returns, per series, a tensor of shape (1, prediction_length, len(quantile_levels)) in the input's unit, and the mean forecast. pipe.predict_df(df, prediction_length=30, id_column=..., timestamp_column=..., target=...) takes a long pandas table instead.

Command line

mandi_chronos.py builds the daily contexts from a long table (series_id, ts, target, csv or parquet) and writes forecasts in the MandiBench submission format (series_id, origin, h, ts, q0.1 ... q0.9):

python mandi_chronos.py example.csv --origin 2025-06-01 --out forecasts.csv
# 3 series x 30 days -> forecasts.csv

In Python: from mandi_chronos import load, forecast; forecast(load(), df, "2025-06-01"). On a GPU it loads in bfloat16 (the precision used for the benchmark forecasts); float32 on CPU agrees with them to about 0.1% (median relative difference of the quantiles).

Results

MandiBench test windows: 11 monthly origins from 2025-06-01 to 2026-04-01, horizons of 7, 14 and 30 days. WQL (weighted quantile loss): lower is better; dir_acc_7d: share of windows where the median forecast moves in the same direction as the price within the first week. Mandi-Chronos is chronos2_ft_a in the MandiBench files.

All series (windows: 88,899 at h=7, 92,776 at h=14, 96,341 at h=30)

modelWQL h7WQL h14WQL h30dir_acc_7d
Mandi-Chronos0.06650.07780.09900.6271
Chronos-2 (zero-shot)0.06770.07990.10250.6156
TimesFM 2.5 (zero-shot)0.06720.07930.10120.6109
TiRex (zero-shot)0.07090.08270.10380.6204
LightGBM (global)0.07000.08310.10870.6025
ETS (damped trend)0.07080.08620.11530.6109
Seasonal naive (7 days)0.08450.09570.11930.1037

Held-out states (Chandigarh, Himachal Pradesh, Madhya Pradesh, Manipur, Meghalaya, Odisha, Rajasthan, Tamil Nadu, West Bengal; not seen in fine-tuning; windows: 13,176 / 13,875 / 14,479)

modelWQL h7WQL h14WQL h30dir_acc_7d
Mandi-Chronos0.05320.06410.08470.6150
Chronos-2 (zero-shot)0.05410.06520.08580.6008
TimesFM 2.5 (zero-shot)0.05410.06530.08690.5955
TiRex (zero-shot)0.05590.06650.08630.6137
LightGBM (global)0.05510.06660.08940.6002
ETS (damped trend)0.05690.07030.09470.6014
Seasonal naive (7 days)0.06820.07830.09900.1106

Bold: lowest WQL in the table. Mandi-Chronos also has the highest dir_acc_7d in both tables. It needs only the price history. The full leaderboard (MASE and interval coverage included), all forecasts and the scoring script are in the MandiBench dataset.

Files

filecontent
model.safetensors, config.jsonChronos-2 weights and configuration (float32)
mandi_chronos.pyload, daily_contexts, predict, forecast and the command line above
example.csvthree MandiBench series (series_id, ts, target), 2024-01-06 to 2025-05-31
requirements.txtpinned runtime dependencies

Coverage

Fine-tuned and evaluated on 12,863 MandiBench series: daily modal prices of 176 food commodities in 2,126 Agmarknet markets in 24 states and union territories. The fine-tuning data ends before 2025-06-01; the test windows run from 2025-06-01 to 2026-04-30.

Source data

Training and example data: Directorate of Marketing and Inspection (Agmarknet), Ministry of Agriculture and Farmers Welfare, "Variety-wise Daily Market Prices Data of Commodity", data.gov.in resource 35985678-0d79-46b4-9ed6-6f13308a1d24, https://api.data.gov.in/resource/35985678-0d79-46b4-9ed6-6f13308a1d24. Snapshot: May 2026.

Original data: published by Directorate of Marketing and Inspection (Agmarknet), Ministry of Agriculture and Farmers Welfare 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{judicialmind2026mandichronos,
  title        = {Mandi-Chronos: Chronos-2 fine-tuned for daily mandi price forecasting in India},
  author       = {JudicialMind},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/judicialmind/Mandi-Chronos}}
}

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). Their licence terms and notices continue to apply to the upstream components; see THIRD_PARTY_NOTICES.md.

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

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

GPU в ailist

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

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

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
5daab46

0 моделей