Skip to page content
SAVRN
Search Plan a project

Open-weight model · Time series forecasting

ohlcv-transformer

by Suryaansh Prithvijit Singh Ultron28/ohlcv-transformer

ohlcv-transformer is an open-weight model for time series forecasting from Suryaansh Prithvijit Singh, released under Apache License 2.0. Its published files total 9.6 GB.

Engineered & Architected by Suryaansh Prithvijit Singh (@Ultron28 / @Ultron09) The ULTRON Financial Conformer (1.189B) is a large-scale foundation model specifically designed to ingest raw minute-level OHLCV candlestick time series across liquid US equities…

Parameters—
Context—
Weights9.6 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Model Card

By Suryaansh Prithvijit Singh, published under apache-2.0, revision 02971ebcb143.

Engineered & Architected by Suryaansh Prithvijit Singh (@Ultron28 / @Ultron09) The ULTRON Financial Conformer (1.189B) is a large-scale foundation model specifically designed to ingest raw minute-level OHLCV candlestick time series across liquid US equities and generate multi-horizon continuous returns and directional probability forecasts. Unlike conventional time-series transformers (e.g. PatchTST, Chronos, TimesFM) that treat financial candlesticks as 1D scalar sequences, this architecture treats the microstructure as a continuous multi-scale physical manifold. It combines: 1. 6-Scale Temporal Inception Tokenizer: Continuous 1D convolutions spanning $[3\text{m}, 7\text{m}, 15\text{m}…

Read Suryaansh Prithvijit Singh's full model card
# ULTRON // 1.189B Parameter Financial Conformer ### A Foundation Architecture for Multi-Horizon Financial Microstructure Forecasting **Engineered & Architected by Suryaansh Prithvijit Singh ([@Ultron28](https://huggingface.co/Ultron28) / [@Ultron09](https://github.com/Ultron09))** [![GitHub Repository](https://img.shields.io/badge/GitHub-ohlcv--transformer-blue?logo=github)](https://github.com/Ultron09/ohlcv-transformer) [![Hugging Face Model](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-1.189B%20Checkpoint-yellow)](https://huggingface.co/Ultron28/ohlcv-transformer) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Ultron09/ohlcv-transformer/blob/main/OHLCV_Transformer_Colab.ipynb) [![Parameters](https://img.shields.io/badge/Parameters-1%2C189%2C135%2C740%20(1.189B)-crimson)](#-model-architecture-specifications) [![Context Window](https://img.shields.io/badge/Context-2%2C048%20Minutes%20(~34h)-cyan)](#-mathematical-formulation) [![Hardware](https://img.shields.io/badge/Compute-NVIDIA%20A100--SXM4--80GB-green)](https://huggingface.co/Ultron28/ohlcv-transformer)

Executive Summary

The ULTRON Financial Conformer (1.189B) is a large-scale foundation model specifically designed to ingest raw minute-level OHLCV candlestick time series across liquid US equities and generate multi-horizon continuous returns and directional probability forecasts.

Unlike conventional time-series transformers (e.g. PatchTST, Chronos, TimesFM) that treat financial candlesticks as 1D scalar sequences, this architecture treats the microstructure as a continuous multi-scale physical manifold. It combines: 1. 6-Scale Temporal Inception Tokenizer: Continuous 1D convolutions spanning $[3\text{m}, 7\text{m}, 15\text{m}, 31\text{m}, 63\text{m}, 127\text{m}]$ overlapping windows. 2. 2,048-Minute (~34.1 Trading Hours) Continuous Context Window. 3. 20 Deep Conformer Blocks: Interleaving Rotary Position-Embedded (RoPE) Grouped-Query Attention (GQA) with depthwise separable convolution momentum filters and SwiGLU feed-forward networks. 4. Multi-Horizon Joint Dual Head: Co-optimizing smooth Huber expected return vectors alongside calibrated directional binary cross-entropy across $[1\text{m}, 3\text{m}, 5\text{m}, 10\text{m}, 15\text{m}, 30\text{m}, 60\text{m}]$ forward horizons.


Model Architecture Specifications

Hyperparameter Value Description
Total Parameters 1,189,135,740 1.189 Billion Parameters
Model Dimension ($d_{\text{model}}$) 2,048 Latent embedding space per temporal token
Layers ($N_{\text{layers}}$) 20 Deep alternating Conformer blocks
Attention Mechanism Grouped-Query Attention (GQA) 16 Query Heads, 8 Key/Value Heads (Head Dim = 128)
Positional Encoding RoPE (Rotary Position Embeddings) Dynamic rotary complex embeddings
FFN Dimension ($d_{\text{ff}}$) 5,504 SwiGLU Gated Linear Activation
Context Length ($T$) 2,048 Minutes ~34 trading hours (covers full intraday + overnight gap)
Convolution Tokenizer 6 Multi-Scale Kernels Overlapping $[3, 7, 15, 31, 63, 127]$ with Stride $S=4$
Tokens per Context 512 Tokens 4× temporal downsampling with full receptive fidelity
Optimizer 8-Bit AdamW (bitsandbytes) Static VRAM: 2.38 GB (BF16 weights)
                           Raw OHLCV Candlesticks (T = 2048 mins)
                                             │
                                             ▼
                      ┌──────────────────────────────────────────────┐
                      │    Stationary Feature Extraction Engine      │
                      │  • Log Returns: ln(C_t / C_{t-1})            │
                      │  • Normalized Range: (H_t - L_t) / C_t       │
                      │  • Normalized Body: (C_t - O_t) / (Range+eps)│
                      │  • Wick Dynamics: Upper & Lower Absorption   │
                      │  • Parkinson Continuous Volatility           │
                      │  • Rolling Volume Z-Score                    │
                      └──────────────────────────────────────────────┘
                                             │
                                             ▼
                      ┌──────────────────────────────────────────────┐
                      │    Reversible Instance Normalization (RevIN) │
                      │  • Eliminates Non-Stationary Regime Drift    │
                      └──────────────────────────────────────────────┘
                                             │
                                             ▼
                      ┌──────────────────────────────────────────────┐
                      │ Multi-Scale Inception 1D Conv Tokenizer      │
                      │  • Kernels: [3m, 7m, 15m, 31m, 63m, 127m]    │
                      │  • Stride S = 4  ──>  512 Latent Tokens      │
                      └──────────────────────────────────────────────┘
                                             │
                                             ▼
                      ┌──────────────────────────────────────────────┐
                      │   20x Deep Conformer Backbone (d_model=2048) │
                      │  • Pre-LN RMSNorm                            │
                      │  • RoPE Grouped-Query Attention (16 Q / 8 KV)│
                      │  • Depthwise Separable 1D Conv (Local Flow)  │
                      │  • SwiGLU Gated Feed-Forward (d_ff=5504)     │
                      └──────────────────────────────────────────────┘
                                             │
                                             ▼
                      ┌──────────────────────────────────────────────┐
                      │          Dual Multi-Horizon Heads            │
                      │  1. Expected Return Vector (Huber Loss)      │
                      │  2. Upward Direction Probability (BCE Loss)  │
                      │     Horizons: [1m, 3m, 5m, 10m, 15m, 30m, 1h]│
                      └──────────────────────────────────────────────┘

Empirical Pre-Training Telemetry

The model is pre-trained continuously across 16 Full Calendar Years (2010–2025 = 192 Monthly Shards, ~90 GB) of minute-level US equity market data from mito0o852/OHLCV-1m on NVIDIA A100-SXM4-80GB accelerators.

Macro Regimes Learned in Epoch 1:

  • 2010: The Flash Crash & Post-GFC Quantitative Easing 1
  • 2011: European Sovereign Debt Crisis & US Sovereign Credit Rating Downgrade
  • 2012: ECB "Whatever It Takes" & Global Central Bank Expansion
  • 2013: Federal Reserve Taper Tantrum
  • 2014: Crude Oil Crash & Zero Interest Rate Policy
  • 2015: Chinese Market Volatility Shock & Renminbi Devaluation
  • 2016: Brexit Referendum & 2016 US Presidential Election Volatility
  • 2017: Historic Low-Volatility Secular Bull Market
  • 2018: "Volmageddon" (XIV Collapse) & Q4 Monetary Tightening Selloff
  • 2019: Federal Reserve Repo Market Crisis & Pre-COVID Pivot
  • 2020: Global COVID-19 Liquidity Shock & Fastest Bear-to-Bull Recovery in History
  • 2021: Retail Meme Stock Short Squeezes & Zero-Commission Dispersion
  • 2022: 500 bps Quantitative Tightening Bear Market
  • 2023–2025: Artificial Intelligence Infrastructure Supercycle

Real-Time Validation Signals:

  • 1-Minute Forward Direction Accuracy: Up to 100.0% (Observed at Step 1330 & 2220)
  • 1-Hour Forward Direction Accuracy: Up to 87.5% – 100.0%
  • Sustained Overall Multi-Horizon Accuracy: 62.5% – 67.9% (Significant edge over 50% random walk baseline)
  • Total Loss Convergence: Decreased monotonically from 0.3731 to 0.3370

Zero-Shot Inference in PyTorch

import torch
from huggingface_hub import hf_hub_download
from model_1b import FinancialConformer1B
from config_1b import Model1BConfig

device = "cuda" if torch.cuda.is_available() else "cpu"

# 1. Download model weights from Hugging Face Model Hub
print(" [ULTRON] Fetching 1.189B Model Weights...")
weights_path = hf_hub_download(
repo_id="Ultron28/ohlcv-transformer",
filename="checkpoints_1b/checkpoint_1b_latest.pt"
)

# 2. Instantiate 1.189B Conformer Architecture
cfg = Model1BConfig()
model = FinancialConformer1B(cfg).to(device)

# 3. Load checkpoint state
checkpoint = torch.load(weights_path, map_location=device, weights_only=False)
model.load_state_dict(checkpoint["model_state"])
model.eval()
print(" [ULTRON] 1.189B Conformer Foundation Model Loaded Successfully.")

# 4. Dummy inference on 2,048-minute candlestick window (B=1, T=2048, F=6)
# Features: [LogReturn, NormRange, NormBody, UpperWick, LowerWick, NormVol]
x = torch.randn(1, 2048, 6, device=device)

with torch.no_grad():
predictions = model(x)
return_forecast = predictions["pred_returns"] # Shape: [1, 7] (1m, 3m, 5m, 10m, 15m, 30m, 60m)
dir_probabilities = predictions["pred_directions"] # Shape: [1, 7] (Upward probability in [0, 1])

print(f"1-Minute Directional Upward Probability: {dir_probabilities[0, 0].item():.2%}")
print(f"1-Hour Directional Upward Probability: {dir_probabilities[0, -1].item():.2%}")

Citation & Author Information

If you utilize this foundation model, dataset pipelines, or architectural findings in your quantitative research, trading algorithms, or academic papers, please cite:

@misc{singh2026ultronconformer,
  author       = {Suryaansh Prithvijit Singh},
  title        = {ULTRON: A 1.189 Billion Parameter Multi-Scale Financial Conformer for Deep Microstructure Forecasting Across 16 Years of US Equities},
  year         = {2026},
  publisher    = {Hugging Face},
  journal      = {Hugging Face Model Hub},
  howpublished = {\url{https://huggingface.co/Ultron28/ohlcv-transformer}}
}

**Architected by Suryaansh Prithvijit Singh // ULTRON Cybernetic Operating Systems** *Connect: [GitHub (@Ultron09)](https://github.com/Ultron09) • [Hugging Face (@Ultron28)](https://huggingface.co/Ultron28) • `[email protected]`*

Identity and Version

Repository
Ultron28/ohlcv-transformer
Publisher
Suryaansh Prithvijit Singh
Task
Time series forecasting
Modality
Time series
Library
pytorch
Parameters
Not stated by the source
Languages
en
Revision
02971ebcb14374c1b6727ab1c8016d9bd57cec6c
First published
2026-10-14
Last updated
2026-10-16

Files and Weights

21 files, 9.6 GB in total. The weights are 3 files totalling 9.6 GB in pt.

Weights3 files · 9.6 GB
Configuration9 files · 69.2 KB
Documentation1 file · 11.8 KB
Other7 files · 2.5 MB
Repository1 file · 1.8 KB
Every file
FileTypeSizeSHA-256
checkpoint_best.ptWeights10.1 MB 6a0a5063e686
checkpoints_1b/checkpoint_1b_epoch1.ptWeights4.8 GB a04bd6d4a094
checkpoints_1b/checkpoint_1b_latest.ptWeights4.8 GB e225e86e5467
config.pyConfiguration3.1 KB —
config_1b.pyConfiguration2.4 KB —
dataset.pyConfiguration7.7 KB —
features.pyConfiguration4.5 KB —
loss.pyConfiguration2.1 KB —
model.pyConfiguration11.4 KB —
model_1b.pyConfiguration10.2 KB —
train.pyConfiguration11.5 KB —
train_1b.pyConfiguration16.2 KB —
README.mdDocumentation11.8 KB —
OHLCV_Transformer_Colab.ipynbOther3.9 KB —
assets/architecture_schematic.pngOther272.3 KB a08a9c3403cb
assets/multi_horizon_forecast.pngOther450.0 KB 04c7c5d3e126
assets/training_telemetry.pngOther655.5 KB 15b823b99f30
colab_runner.shOther2.6 KB —
logs/telemetry_1b.jsonlOther5.7 KB —
logs/train_1b.logOther1.1 MB be1ef74b5ccd
.gitattributesRepository1.8 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
9.6 GB
Download from Suryaansh Prithvijit Singh

Released by Suryaansh Prithvijit Singh through its official repository on Hugging Face. Read the license.

Built From

  • Trained on (disclosed) mito0o852/OHLCV-1m

Memory Requirements

PrecisionWeights in memory
As published9.6 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About ohlcv-transformer

Can I use ohlcv-transformer commercially?

Yes. ohlcv-transformer is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Time series forecasting

TiRex

NX-AI

This repository provides the pre-trained forecasting model TiRex introduced in the paper TiRex is a 35M parameter pre-trained time series forecasting model based on xLSTM. TiRex is a pre-trained model that performs time series forecasting without requiring any training on your data. Simply download and use it. TiRex provides both point estimates and quantile estimates. - State-of-the-art Performance over Long and Short Horizons: TiRex achieves top scores in various time series forecasting benchmarks, see GiftEval and ChronosZS. These benchmark show that TiRex provides great performance for both long and short-term forecasting. A detailed documentation of TiRex can be found here…

Open weights other tirex

Model · Time series forecasting

TiRex-1.1-gifteval

NX-AI

The 1.1 release introduces long period normalisation, a method applied solely during inference. This specific version (1.1-gifteval) includes the 1.1 improvements plus the pretraining dataset has been cleaned to remove overlaps with the GIFT-Eval test dataset. TiRex is a time-series foundation model designed for time series forecasting, with the emphasis to provide state-of-the-art forecasts for both short- and long-term forecasting horizon. TiRex is 35M parameter small and is based on the xLSTM architecture allowing fast and performant forecasts. The model is described in the paper TiRex: Zero-Shot Forecasting across Long and Short Horizons with Enhanced In-Context Learning. TiRex performs…

Open weights other tirex

Model · Time series forecasting

metis-1-preview

Parisi Labs, Inc.

Metis is Parisi Labs' family of world models for physical systems, starting with energy. Metis 1 Preview is its first generation: probabilistic electricity price forecasts that read prices, load, generation and weather and forecast the full range of what power could cost at a location. This card describes the model. Weights are not distributed; forecasts are served through Ask the Grid, the Forecast API and MCP. Price is the target. Recent real-time prices, published day-ahead prices, load, generation and weather explain what the grid is doing, and every input is lined up to when it was actually available. Responses carry the issue time, quantile bands per interval, the settled price once…

Open weights other

Model · Time series forecasting

ChakraTS

Y-Hat Labs

ChakraTS is a zero-shot probabilistic time-series forecasting model from YHat Labs, served as a hosted API. This repository holds the model card; there are no weights to download. Send a batch of series and a horizon, get back nine quantiles (10% to 90%) for every future step. ChakraTS forecasts zero-shot: nothing is trained or fitted on your data, and fine-tuning on customer data is not part of this release. It accepts known-future covariates, works at any regular frequency from minutes to years, and returns the per-step prediction intervals that scheduling, procurement, bidding and inventory decisions depend on. Access is by API key, issued on request. One call forecasts a batch of…

Open weights other

Model · Time series forecasting

granite-timeseries-patchtst

IBM Granite

PatchTST is a transformer-based model for time series modeling tasks, including forecasting, regression, and classification. This repository contains a pre-trained PatchTST model encompassing all seven channels of the ETTh1 dataset. This particular pre-trained model produces a Mean Squared Error (MSE) of 0.3881 on the test split of the ETTh1 dataset when forecasting 96 hours into the future with a historical data window of 512 hours. For training and evaluating a PatchTST model, you can refer to this demo notebook. The PatchTST model was proposed in A Time Series is Worth 64 Words: Long-term Forecasting with Transformers by Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant Kalagnanam. At…

Open weights apache-2.0 616,032 parameters transformers

Model · Time series forecasting

granite-timeseries-ttm-r2

IBM Granite

TinyTimeMixers (TTMs) are compact pre-trained models for Multivariate Time-Series Forecasting, open-sourced by IBM Research. With model sizes starting from 1M params, TTM introduces the notion of the first-ever “tiny” pre-trained models for Time-Series Forecasting. The paper describing TTM was accepted at NeurIPS 24. TTM outperforms other models demanding billions of parameters in several popular zero-shot and few-shot forecasting benchmarks. TTMs are lightweight forecasters, pre-trained on publicly available time series data with various augmentations. TTM provides state-of-the-art zero-shot forecasts and can easily be fine-tuned for multi-variate forecasts with just 5% of the training…

Open weights apache-2.0 805,280 parameters granite-tsfm