Loading…
Topic
Megatron Core
2 posts about Megatron Core. Every summary links to the original.
- 2 posts
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Prepare Market Data for Forecasting with NVIDIA Megatron Core
Market data arrives as a stream of trades and quotes, timestamped to the microsecond, requiring aggregation into bars for AI-based forecasting. NVIDIA Megatron Core, an open-source library of GPU-optimized components, powers transformer model training at scale; this post shows offline preprocessing that turns intraday bars into patches of, for example, eight bars per patch and 32 patches per context window, and then training a small model with Megatron-LM. The preprocessing records configuration like patch length and forecast horizons in metadata and saves outputs as memory-mapped PyTorch tensors. The data loader supplies batches to distributed training while enforcing date-based splits and an embargo to prevent look-ahead bias, with reads shared within tensor-parallel groups. This framework forecasts log returns and trading volume across several horizons from each context position, supporting both point and cumulative targets with the same input representation.
Scale Bitwise-Deterministic Pretraining with NVIDIA Megatron Core
Bitwise determinism ensures independent and checkpoint-resumed training runs follow the same numerical trajectory, providing four key benefits: replaying failures, preserving checkpoint continuity, detecting unexpected differences, and comparing changes without run-to-run variation. At trillion-parameter scale across thousands of GPUs, nondeterminism complicates failure reproduction and fix validation. NVIDIA Megatron Core targets two guarantees: independent reproducibility and bitwise checkpoint resume. The post describes a validation procedure using full-precision metrics and a progressive tracing workflow that uses torch.hash_tensor for GPU-resident fingerprints to narrow divergence from end-to-end metrics to the responsible kernel. A Nemotron case study demonstrates that kernel optimizations, such as separating grouped-GEMM writers and applying a fixed reduction order, can reduce the determinism performance overhead to approximately 2% steady-state determinism tax at scale.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.