Megatron-LM tutorial details implementation from market time-series preprocessing to multi-horizon training
Key Details NVIDIA released an implementation tutorial for converting market bar data into tensors for Megatron-LM training and learning returns and volume across multiple forecast horizons. It explains a preprocessing script that groups consecutive observations into patches and creates fixed-length context windows, along with a dataset provider for distributed training. Data settings are stored in metadata, allowing the forecasting model to be replaced while retaining the prepared data layer. Use Cases Users prepare Parquet files with Symbol, Date, Timestamp, Close, and Volume columns by symbol and trading day, then run preprocessing.py. The example uses eight bars per patch and a context of 32 patches, then checks the connections among the data loader, masking, and loss calculation with a small model. Costs and Limitations Users need their own market bar data and an environment capable of running Megatron-LM. The example demonstrates distributed execution with four processes but does not specify minimum GPU requirements. Data usage fees and licensing are unconfirmed.
Visit original source