ML Training Platforms and Sequential Context:
Notes on Architecting Intelligence
Three recent posts by Pawan K Jha, each one starting from the problem rather than the tool. Two design an enterprise ML training platform and then check Ray, DeepSpeed, Kubeflow and others against it. The third explains how RNNs, LSTMs, GRUs, CNNs and TCNs carry context. Here is a summary of each, with links.
Updated: November 29, 2026 · Source: Architecting Intelligence on Substack · Read: 9 minutes
At a glance
- The source: Architecting Intelligence, a Substack by Pawan K Jha. His bio says he is a senior principal AI/ML scientist and systems architect who has spent nearly twenty years building production AI and ML systems.
- The method: every post starts with the problem, works out the design from it, and only then looks at real tools. He doesn't ask "which platform is best?" He asks "which problems does each one solve?"
- Covered here: Part 3.1 and Part 3.2 of The Architecture Behind Modern ML Systems, on ML training platforms, and Part 1 of Architecting Context in AI Models, on sequential models.
- Who should read it: platform and infrastructure teams choosing a training stack, and founders who want a clear map of where tools like Ray, Kubeflow and DeepSpeed sit before they buy or build.
- Access: Parts 3.1 and 3.2 are for paid subscribers. Our summaries of those two cover only the free opening sections. The context article is free to read in full.
Part 3.1: Designing an enterprise ML training platform
November 20, 2026 · Read the post · paid after the opening sections
Jha starts with how much has changed. When he began building models around 2011 and 2012, one engineer in one notebook could do the whole job: load data, build features, train, check, repeat. Today one training run can use many GPUs across many machines, share hardware with other teams, and depend on data pipelines, scheduling, checkpoints and recovery. Foundation models add pretraining, supervised fine-tuning (SFT) and reinforcement learning (RL) on top. "Train any model" is too vague to design for, so he defines the scope first.
Workloads in scope
| Workload | What it covers |
|---|---|
| Traditional ML | Training on CPUs, feature processing, batch experiments |
| Single-node deep learning | One GPU, or several GPUs in one machine |
| Distributed deep learning | Several machines, one or more GPUs on each |
| Foundation-model training | Pretraining and continued pretraining |
| Fine-tuning | SFT and parameter-efficient methods |
| Reinforcement learning | Rollout or generation, reward and scoring, policy optimisation |
| Nearby workloads | Hyperparameter tuning, evaluation, data preparation |
Two dimensions of a distributed job
The parallelism strategy is how the model or the work is split. The hardware topology is how the GPUs are arranged across machines. Most real jobs combine strategies. For example, a job might split each layer's maths across the GPUs inside a machine (tensor parallelism) and copy the model across machines (data parallelism). Each choice changes GPU memory, network traffic, where the job can be placed and how it recovers from failures. That is why a platform has to understand parallelism, even though the model code owns it.
Ten problems the platform has to solve
- 1Submitting and orchestrating jobs: how users define, submit, watch, stop and retry jobs.
- 2Admission and queueing: quotas, priorities, budgets and teams competing for the same GPUs.
- 3Scheduling and placement: placing jobs across mixed GPU types, clusters and network layouts.
- 4Distributed execution: starting, coordinating, monitoring and replacing workers.
- 5Data access and throughput: reading large datasets fast enough that GPUs never sit idle.
- 6Checkpointing and recovery: how much work a failure loses, and how a job safely resumes.
- 7Multi-tenancy and security: identity, data access, isolation and resource limits.
- 8Observability and debugging: finding slowdowns, failed workers, network bottlenecks and stalled data.
- 9Artifacts and lineage: linking code, config, dataset versions, checkpoints, metrics and final models.
- 10Capacity and cost: tracking utilisation, fragmentation, budgets and spend per team.
The design boundary. The platform owns the shared machinery: submitting, scheduling, running, observing and recovering work. Model code, the framework's parallelism strategy and the training algorithm stay with each team, and the platform integrates with them where it needs to. The paid sections go on to the real problems teams hit at scale, the requirements that follow, and a reference architecture.
Part 3.2: How real platforms tackle ML training
November 26, 2026 · Read the post · paid after the opening sections
This part puts open source projects on the map from Part 3.1: Apache Ray, DeepSpeed and Kubeflow by name, and NVIDIA NeMo and Hugging Face in the post's search summary. It also briefly covers managed cloud platforms and the in-house systems some companies have described in public. The key point is that "training platform" means very different things. A library for model parallelism, a scheduler for jobs on Kubernetes and a distributed runtime all help with training, but each solves a different part of the problem. Ray, for example, gives you distributed compute plus libraries for data, training, tuning and RL, but that still isn't everything an enterprise needs.
So he holds every project to the same three questions:
- 1Which capabilities from the reference architecture does it provide?
- 2Which capabilities does it expect from other systems, or integrate with?
- 3What tradeoffs does its design create for the team that runs it?
He presents the map as a lens for seeing where each project starts and stops, not a recipe every company must follow. The paid sections go project by project.
Our quick orientation
This table is ours, not the author's. It is a rough guide to where each project sits, so you can read his comparison with the layers in mind. Check his post for the detailed mapping and the tradeoffs.
| Project | Main layer | What you still bring |
|---|---|---|
| Apache Ray | Distributed compute runtime, plus Ray Data, Train, Tune and RLlib | Cluster provisioning, quotas across teams, lineage |
| DeepSpeed | Large-model training library: ZeRO memory sharding, parallelism, offload | Scheduling, queueing, data pipelines, ops |
| Kubeflow | Running training jobs on Kubernetes, pipelines, hyperparameter tuning | The training framework itself, GPU-aware batch scheduling |
| NVIDIA NeMo | End-to-end foundation-model training on Megatron-style parallelism | The platform around it: tenancy, queueing, cost tracking |
| Hugging Face | Model and data libraries (Transformers, Accelerate, TRL for SFT and RL) | Compute, orchestration, recovery at cluster scale |
Architecting Context, Part 1: Foundations of sequential context
November 13, 2026 · Read the post (free) · Video version
A model's answer depends on what it is told and on how it stores and uses that information. This series asks how different architectures hold on to context. Part 1 compares two older approaches. Recurrent models carry a compressed summary of the past forward, one step at a time. Convolutional models combine information inside a window, called the receptive field. In short, one carries the past forward and the other looks across a window.
Six questions for comparing them
- State: where context lives: a hidden vector, a gated cell, or a window of activations.
- Update: how the representation changes when a new input arrives.
- Information loss: what gets thrown away, and whether it fades slowly or cuts off at a boundary.
- Gradient path: how many steps separate a later prediction from an earlier input during training.
- Training parallelism: whether positions in a sequence can be computed at the same time.
- Streaming cost: what the model must keep between inputs to produce the next output.
Recurrent models: RNN, LSTM, GRU
An RNN updates a hidden state from the current input and the previous state, using the same weights at every step. That handles sequences of any length, but it squeezes the whole past into a fixed-size vector. Early details get blurred or overwritten, and the learning signal (the gradient) has to travel back through every step, so it can fade to nothing or blow up. An LSTM adds a separate cell state with gates that decide what to forget, what to write and what to show. Because the cell is updated by addition, information and gradients pass through more easily, though nothing guarantees they will. A GRU does something similar with two gates and a single state. Neither one always wins. All three must be computed one step at a time within a sequence, which makes training slow. The upside is cheap streaming: the memory needed stays the same however long the sequence gets.
Convolutional models: CNN and TCN
A causal convolution combines the current input with the inputs just before it. Stacking layers widens the receptive field, the span of inputs that can affect an output. A TCN (temporal convolutional network) adds dilation, which skips inputs to sample positions further apart without adding weights, and usually residual connections. With kernel size k and L layers, the article gives:
| Stack | Receptive field (positions) |
|---|---|
| Plain causal convolutions | R = 1 + L(k − 1) |
| Dilations 1, 2, 4, … 2L−1 | R = 1 + (k − 1)(2L − 1) |
| Residual blocks, two convolutions per dilation level | R = 1 + 2(k − 1)(2L − 1) |
With k = 3 and dilations 1, 2, 4 and 8, the field grows to 3, 7, 15 and 31 positions: the current one plus the previous 30. The range grows exponentially with depth, while a plain stack only grows linearly. Every position in a layer can be computed at once, so training runs in parallel. Streaming keeps a cache of recent activations. That cache has a fixed maximum size, but it can be much bigger than an RNN's state. Anything outside the receptive field is simply out of reach.
Side by side
| RNN / LSTM / GRU | CNN / TCN | |
|---|---|---|
| Context lives in | A fixed-size state, gated in LSTMs and GRUs | Activations across a receptive field |
| Path back to an input Δ steps ago | Δ recurrent updates | Set by kernel size, depth and dilation; logarithmic depth with exponential dilation |
| Training parallelism | Sequential within a sequence; batched across sequences | Parallel across positions within a layer |
| Streaming memory | Constant, small | Constant cap, often larger |
| Main limit | The past is compressed and can be lost | Nothing outside the receptive field is visible |
| Good fit | Streaming, where inputs arrive one at a time | Local patterns (CNN); causal tasks with a known range (TCN) |
His closing point: how a model represents context is a design choice with real costs, and no architecture fits every sequence task. The right one depends on how far back the dependencies reach, latency, memory, training speed and how costly it is to lose information. The rest of the series is planned as Part 2 on attention, Transformers, state space models and graph neural networks, Part 3 on retrieval, external memory and latent context, and Part 4 on a unified framework.
References
The Architecture Behind Modern ML Systems, Part 3.2: How Real Platforms Tackle ML Training
Pawan K Jha, November 26, 2026. How Apache Ray, DeepSpeed, Kubeflow and other platforms handle large-scale training, and the tradeoffs they make. Paid.
The Architecture Behind Modern ML Systems, Part 3.1: Designing an Enterprise ML Training Platform
Pawan K Jha, November 20, 2026. A first-principles design for scaling distributed deep learning and foundation-model training. Paid.
Architecting Context in AI Models, Part 1: Foundations of Sequential Context
Pawan K Jha, November 13, 2026. How RNNs, LSTMs, GRUs, CNNs and TCNs encode, keep and pass along context. Free, with a video version.
Architecting Intelligence on Substack
The full archive, including earlier parts of the ML systems series and posts on LLM inference, recommendation systems and agentic AI.
Our take
The most useful idea here is the order of work: write down the ten platform problems before you open any vendor's docs. Most teams that say "we picked Ray" or "we're on Kubeflow" have really picked one layer and are filling in the rest by hand: queueing, tenancy, lineage and cost. Jha's map makes those gaps visible early, while they are still cheap to plan for. For founders, those gaps are also where the product opportunities are. The context series is a clean refresher on why attention took over, and it sets up the state space model discussion coming in Part 2. For the GPU and Kubernetes layer underneath all of this, see our guide to NVKE, NVIDIA Kubernetes Engine.
Sources: the three posts linked above, from Architecting Intelligence by Pawan K Jha. Parts 3.1 and 3.2 are for paid subscribers, so our summaries cover only their free opening sections. The project orientation table and our take are our own, not the author's. This guide is independent and not affiliated with the author or with any project named. Spot something out of date? Tell us.