Prepare Market Data for Forecasting with NVIDIA Megatron Core
Web page · https://developer.nvidia.com/blog/prepare-market-data-for-forecasting-with-nvidia-megatron-core
Market data arrives as a stream of trades and quotes: every execution, bid, and ask, timestamped to the microsecond. Preparing this data for AI-based market...
First seen by Oriel on .
AI summary
The post presents a Megatron-LM pipeline that converts market-bar data into reusable tensors for distributed models forecasting returns and trading volume across multiple horizons.
- The preprocessor reads Parquet bars, derives within-day log returns and log volumes, groups observations into patches, and creates sliding context windows with future targets.
- Saved train, validation, and test tensors include metadata for instruments, features, horizons, and normalization; a memory-mapped loader supplies batches during training.
- The dataset provider broadcasts each microbatch from rank zero to other ranks in its tensor-parallel group, while Megatron handles data-parallel sampling.
- Date-based splits, an optional training embargo, non-overlapping context checks, and training-only target statistics help prevent cross-split leakage.
- Targets can be point or cumulative, and settings determine whether forecasts may cross trading-session boundaries; irregular time gaps remain unchanged unless aligned upstream.
#megatron core #time series forecasting #financial data #distributed training
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| NVIDIA Developer Blog | https://developer.nvidia.com/blog/?p=125645 | https://developer.nvidia.com/blog/prepare-market-data-for-forecasting-with-nvidia-megatron-core/ Read discussion |