I've encountered an issue when running text generation with Megatron-LM. Apologies in advance if there are any mistakes — I'm a new user. After successfully preprocessing the data using: bash python tools/preprocess data.py --tokenizer-type GPT2BPETokenizer and completing…
This issue tracks the Megatron-Core determinism effort. User-facing documentation describes the supported contract; this issue records current implementation and validation status. Contract Determinism claims are split into three gates: 1. Fixed-environment repeatability: two…
This roadmap tracks the key Megatron Core features, enhancements, and improvements originally planned for Q3 2026, including their carry-over status as of October 15, 2026. The 26.08 release has been delivered; remaining items continue beyond Q3 without a new delivery…
Description The focus for Megatron Core MoE is to provide comprehensive support for latest MoE architectures, advanced parallelism strategies, and performance optimizations for Blackwell and Rubin. This is a tentative roadmap and subject to change. - ⚠️ Most items are developed…
Hi TorchTitan team, I'd like to discuss integrating NCCL one-sided RMA into TorchTitan's pipeline parallel (PP) communication. The goal is to use host-initiated RMA to transfer activations and gradients between stages, eliminating SM usage by PP communication. This would allow…
TL;DR / Decision Requested Approve the initial design for composing Megatron FSDP v2 with Transformer Engine (TE) partial CUDA Graphs: retain existing gathered weight allocations, restore normal module hooks around replay, and leave the FSDP communication lifecycle outside…
RFC: Block128 FP8 Expert-Parallel Dispatch for MoE Models on SM90 Summary Megatron-LM's NCCL expert-parallel (EP) MoE dispatcher currently supports FP8 quantized all-to-all transport only through MXFP8 (E4M3 data + E8M0 scales, 32-element blocks). This RFC proposes adding…
While profiling DistMuon on a reduced-depth Kimi-K3 model, we observed substantial NS compute imbalance across ranks. The first layer’s large dense FFN matrices are isolated in one bucket, limiting the work available to the existing within-bucket placement planner.…
A cluster-agnostic triage tool that collects PyTorch Flight Recorder dumps from all ranks and correlates them with per-host GPU health (DCGM/XID) and collective timings could name the suspect rank or host automatically. It would be adopted because Flight Recorder is built into PyTorch but leaves cross-rank analysis and hardware correlation to the user.
A framework-agnostic harness that compares a small model's forward/backward outputs and converted weights across parallelism layouts and formats against a single-GPU reference would catch silent bugs early. Recent fuzzing found such bugs in Megatron Core, and converters remain a recurring request.
Many parallel mechanisms, including data parallelism, tensor parallelism, and pipeline parallelism, have been proposed and combined together to support training increasingly large deep neural networks (DNN) on massive GPU devices. Given a DNN model and GPU cluster, finding the optimal configuration…
Two NVIDIA DGX Spark GB10 systems connect directly over 200 GbE to serve larger language models and increase inference capacity, but the benefits depend on how they are deployed. We benchmark 17 open-weight checkpoints spanning dense and mixture-of-experts architectures, 8B to 235B parameters and…
Pipeline parallelism has become a critical technique for training large language models. To address the throughput limitation of existing sequence-level methods that schedule subsequences unidirectionally, we propose bidirectional sequence-level interleaved pipeline parallelism (BSIPipe), which…
Large Language Model (LLM) inference has become the dominant workload in modern AI systems, requiring serving infrastructures to maximize throughput while meeting strict latency Service-Level Objectives (SLOs). Since state-of-the-art LLMs exceed the compute and memory capacity of a single GPU,…
Serving large language models at high concurrency with long contexts requires KV-cache capacity and attention bandwidth that grow with the decode pool. Existing parallelization strategies trade one against the other: data parallelism replicates model weights, limiting KV capacity; tensor…
Training language models whose parameters and optimizer state exceed a single node's memory requires sharding these tensors across devices. Under tensor parallelism (TP) or fully sharded data parallelism (FSDP), matrix-aware optimizers such as Muon introduce communication to perform global matrix…
Growing large language model applications demand efficient inference. At high concurrency, block-diffusion speculative decoding suffers from verification padding, rejected candidates, and incompatibility between variable prefixes and fixed-shape graphs. Uniform truncation sacrifices acceptable…
Emerging multi-agent LLMs demand privacy-preserving edge deployment, yet current inference systems struggle with these collaborative workflows. Specifically, the memory-bound decode phase causes severe bus contention on unified memory architectures (UMA), paralyzing naive CPU-GPU co-execution.…
We study the problem of efficient generative inference for Transformer models, in one of its most challenging settings: large deep models, with tight latency targets and long sequence lengths. Better understanding of the engineering tradeoffs for inference for large Transformer-based models is…
This paper presents ExeGPT, a distributed system designed for constraint-aware LLM inference. ExeGPT finds and runs with an optimal execution schedule to maximize inference throughput while satisfying a given latency constraint. By leveraging the distribution of input and output sequences, it…
LLM inference is increasingly deployed as a core service for enterprise and interactive applications, but sovereignty, compliance, latency and resource-locality requirements can limit the suitability of centralised cloud deployments. Telco operators offer geographically distributed compute and…
FullAttn often assigns negligible normalized mass to much of the causal score space, yet dense kernels execute the complete post-score path after forming each QK tile. We introduce MALA, a fused attention primitive that preserves score access to every legal causal interaction and uses normalized…
Recent work in language modeling demonstrates that training large transformer models advances the state of the art in Natural Language Processing applications. However, very large models can be quite difficult to train due to memory constraints. In this work, we present our techniques for training…
In distributed training of large DNN models, the scalability of one-dimensional (1D) tensor parallelism (TP) is limited because of its high communication cost. 2D TP attains extra scalability and efficiency because it reduces communication relative to 1D TP. Unfortunately, existing algorithms for…
Large language model (LLM) serving scales its replica count with the request load, yet GPU memory still stands idle inside the replicas. Adding a replica takes minutes, while the memory that a replica needs changes within seconds. Even instant autoscaling could not return this idle memory, because…
For sufficiently large transformer-based Large Language Models (LLMs), whose parameters cannot be retained in on-chip caches, prefill throughput on multi-socket CPUs is often limited by sustainable DRAM bandwidth rather than peak floating-point throughput. In the standard PyTorch compilation (i.e.,…
Autoregressive foundation language models predominantly target high-resource Indo-European languages, imposing computational and morphological penalties on under-represented African languages. Generic multilingual tokenizers routinely exceed fertility rates of 3.2 tokens per word on agglutinative…
LLM serving reuses cached key-value (KV) state to skip prefill, and growing contexts push that state past GPU HBM and CPU DRAM onto NVMe SSDs, placing prefix restore on the critical path of time-to-first-token (TTFT). We find that on a well-configured host-issued path the SSD is not the bottleneck:…
Llama is a widely used open-source large language model. This paper presents the design and implementation of the parallelism techniques used in Llama 3 pre-training. To achieve efficient training on tens of thousands of GPUs, Llama 3 employs a combination of four-dimensional parallelism: fully…
Large Language Model (LLM) serving systems must balance latency and throughput while efficiently utilizing distributed GPU resources. This challenge arises because inference consists of two fundamentally different phases: prefill, which determines time-to-first-token (TTFT), and decode, which…
Efficient parallelism is necessary for achieving low-latency, high-throughput inference with large language models (LLMs). Tensor parallelism (TP) is the state-of-the-art method for reducing LLM response latency, however GPU communications reduces combined token throughput. On the other hand, data…