Netflix Post‑Training Framework
Netflix's Post‑Training Framework abstracts the complexity of distributed fine‑tuning for large language models. It unifies data preparation, model sharding, and workflow orchestration so researchers can concentrate on algorithmic innovation while the platform handles GPU mesh allocation, fault‑tolerant checkpoints, and metric logging across thousands of nodes.
Architecture Overview
The framework sits atop Netflix's internal Mako compute platform, which provisions GPU clusters on AWS. Core services include PyTorch for tensor operations, Ray for actor‑based orchestration, and vLLM for efficient inference serving. Configuration‑driven recipes translate high‑level intents-Supervised Fine‑Tuning, Direct Preference Optimization, reinforcement learning, Knowledge Distillation-into reproducible jobs that automatically select sharding strategies, precision modes, and checkpoint policies.
Data Ingestion & Preprocessing
Data pipelines enforce explicit loss masking so only target assistant tokens contribute to gradient updates. Variable‑length sequences are packed into fixed‑size blocks, and a document‑mask prevents cross‑sample attention, reducing padding waste. Large vocabularies are handled by chunked logit computation, which trims memory spikes before projection.
Model Sharding & Memory Management
When a model exceeds a single GPU's memory, the framework applies Fully Sharded Data Parallel (FSDP) or Tensor Parallel (TP) strategies, loading partial weights directly onto the device mesh. Optional LoRA adapters enable parameter‑efficient fine‑tuning, while activation checkpointing and compilation pathways further lower peak memory footprints.
Workflow Orchestration
Ray actors decouple modeling logic from hardware, allowing concurrent rollout generation, reward evaluation, and policy updates for on‑policy reinforcement learning loops. Experiment tracking records loss curves, MFU metrics, and hardware utilization, while standardized checkpoints support seamless recovery after node failures.
Recipe‑Based Configuration
Users specify a YAML recipe that selects a training paradigm and injects task‑specific components such as custom projection heads or domain‑specific tokenizers. The framework validates configurations against a schema to prevent mismatched dimensions before job submission.
Monitoring & Fault Tolerance
Integration with Netflix's observability stack streams GPU utilization, network bandwidth, and error logs to a central dashboard. The AWS Well‑Architected ML lens informs best‑practice alerts, and the real‑time orchestration layer coordinates checkpoint uploads and metric aggregation across distributed nodes.