← all repositories
shiyu-coder/Kronos

Quantizing Wall Street into Transformer Tokens

Kronos recasts noisy, multi-dimensional candlestick data as hierarchical discrete tokens so an autoregressive Transformer can forecast financial markets like a language model.

32.6k stars Python Language ModelsDomain Apps
Kronos
Velocity · 7d
+63
★ / day
Trend
accelerating
star history

What it does

Kronos is a family of decoder-only foundation models trained specifically on the “language” of financial K-lines. A specialized tokenizer first quantizes continuous OHLCV data into hierarchical discrete tokens; an autoregressive Transformer then learns patterns across them. The result is a unified model for quantitative forecasting tasks, with pre-trained checkpoints ranging from 4.1M to 102.3M parameters available on Hugging Face.

The interesting bit

Instead of forcing candlesticks into conventional time-series formats, Kronos treats price action as a text corpus. The hierarchical tokenization compresses multi-dimensional market data into a vocabulary the Transformer can digest, which is a neat inversion of the usual “finance is just numbers” assumption.

Key highlights

  • Pre-trained on data from over 45 global exchanges, with a live BTC/USDT demo showcasing 24-hour forecasts
  • Model zoo includes Kronos-mini (2048 context, 4.1M params), Kronos-small, and Kronos-base (512 context, 102.3M params); the 499.2M Kronos-large is not yet open-sourced
  • KronosPredictor class handles normalization, truncation, and probabilistic sampling (temperature, top-p) end-to-end
  • Fine-tuning pipeline included, with an A-share market example using Qlib—though the authors explicitly note this is a demonstration, not a production trading system
  • Accepted to AAAI 2026; paper available on arXiv

Caveats

  • Context windows are tight: 512 tokens for small and base, which limits how much historical lookback you can feed the model at once
  • The fine-tuning and backtest pipeline is explicitly labeled as a simplified illustration, not a production-ready quant strategy
  • Kronos-large remains closed, so the most capable variant is not available to self-host

Verdict

Worth a look if you build quantitative tools and want a pre-trained market prior to fine-tune on niche assets. Skip it if you need a turn-key trading bot or long-context macro analysis—the context ceiling and disclaimer about production readiness make it a research springboard, not a deployable oracle.

Frequently asked

What is shiyu-coder/Kronos?
Kronos recasts noisy, multi-dimensional candlestick data as hierarchical discrete tokens so an autoregressive Transformer can forecast financial markets like a language model.
Is Kronos open source?
Yes — shiyu-coder/Kronos is open source, released under the MIT license.
What language is Kronos written in?
shiyu-coder/Kronos is primarily written in Python.
How popular is Kronos?
shiyu-coder/Kronos has 32.6k stars on GitHub and is currently accelerating.
Where can I find Kronos?
shiyu-coder/Kronos is on GitHub at https://github.com/shiyu-coder/Kronos.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.