What Is an AI Factory? Four Stages From Data to Served Answer
An AI factory turns raw data and GPU-hours into served model output. This diagram breaks it into four stages — feed, shape, serve, restore — plus the control plane that owns them.
Loading…
Topic
22 posts about Infrastructure. Every summary links to the original.
See the idea
An AI factory turns raw data and GPU-hours into served model output. This diagram breaks it into four stages — feed, shape, serve, restore — plus the control plane that owns them.
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
Cloudflare’s DNS team experienced a rollout where a scheduling bug left record changes unpublished for hours, causing slow resolution and certificate failures. DNS failures are hard to catch because they are slow, spread across the network, and partial in impact. To address this, they extended Flamingo, their end-to-end testing framework that runs hundreds of millions of tests daily against the real Cloudflare edge, to support DNS queries. Flamingo is written in Rust and uses a custom DSL with a setup-action-response format, and its modular architecture decouples action logic from scheduling. The DNS module sends queries from every data center, measures propagation latency against expected TTLs, and uses SLO-based error budgets to automatically decide whether to promote or roll back a release.
A breach at Hugging Face showed that capable agents can chain vulnerabilities across trust boundaries when the surrounding harness gives them paths around security controls. The post argues that capabilities models can reliably learn should be absorbed into the model, while enforcement properties such as permissions, identity, isolation, and budgets must be hardened as infrastructure outside the model. It classifies harnesses into four types—workflow, coding, research, and agent runtime—each with different architectures for different jobs. The better the model gets, the more dangerous a weak harness becomes, because teams often remove enforcement scaffolding as the model absorbs planning and tool use. The post recommends diagnosing gaps in an existing agent’s harness before applying tooling such as a gateway layer, sandboxed containers, or distributed tracing.
Sprites are isolated virtual computers that can create and manage other Sprites via an API, and Claude can use that API when authorized by a token from sprites.dev/account. This enables automated workflows like central OAuth token management, where an Auth Sprite handles token refresh and storage for other Sprites. For CI, an orchestrator Sprite spins up a worker for each test file, locks its network to only pypi and github, runs the test, collects results, and destroys the worker. Preview environments are created per pull request, with each PR getting its own Sprite that is redeployed on updates and destroyed on merge. Additional use cases include agent delegation with network-policy-locked workers, running untrusted code in a deny-all network Sprite, and team provisioning via a provisioner Sprite that creates and configures new Sprites with checkpoints enabling fast restoration.
GPU clusters often suffer from hidden performance issues that standard health checks miss, wasting compute on failing nodes. The NVIDIA DSX OS provides three open-source tools under Apache 2.0: AICR configures reproducible baselines using version-locked recipes with dependency graphs and health assertions that check container waiting reasons rather than pod phases. NVCRE certifies workload readiness by running training jobs like Nemotron-5B and NCCL all-reduce tests, attributing failures to specific nodes. NVSentinel monitors health, cordons or taints unhealthy nodes, drains workloads, and can trigger revalidation via NVCRE before nodes return to service. These tools reduce manual handoffs between detection, remediation, and recertification, while operators still manage baseline approval, test selection, and escalation for unresolved faults.
Meta’s Facebook Feature Framework (F3) compiles all ads ML features into a single merged graph for efficient execution, but this graph also serves as the release unit, so one failing feature blocks the entire pipeline. F3 Lightning decouples feature releases from shared execution, allowing each feature to be compiled, validated, deployed, and rolled back independently. The main challenge was preserving F3’s computational efficiency, as early per-feature release prototypes increased CPU usage by losing shared computation. F3 Lightning closes this gap through four optimizations: stable computation identifiers, a single shared execution plan, one shared memory buffer across all features, and dense index mapping for direct array access. With F3 Lightning, comparable extraction features reach production ~3.6x faster than traditional F3 with no increase in infrastructure compute cost.
MongoDB has released a reference implementation for deploying Atlas on Microsoft Azure, aimed at teams that need secure, governed, production-ready database environments built on a standardized cloud foundation. The toolkit provides Terraform infrastructure-as-code templates that provision and configure single-region and multi-region Atlas clusters through a DevOps pipeline with a manual approval gate. It also automates private endpoints inside the customer Azure VNet, network security groups, a NAT gateway, and VNet peering between multi-region application nodes. An Azure Function App periodically queries the Atlas API for health and performance metrics and displays them in Application Insights dashboards, while an optional Web App tests application-to-Atlas connectivity. The implementation is intended to give development teams a repeatable, pre-configured Atlas environment that aligns with Azure and MongoDB architecture standards and enterprise governance requirements.
An outage of a central Red Hat Ansible Automation Platform controller halts CI/CD pipelines and automated remediation. To maintain continuous availability, platform teams can deploy a federated multi-cluster architecture managed through GitOps, using Git repositories as a single source of truth for declarative Infrastructure as Code. This approach decouples platform configuration from workload execution, with GitHub Actions coordinating deployment and integrating with ServiceNow for change governance and Splunk for centralized logging. The framework operates in two stages: declarative infrastructure provisioning via the main branch runs playbooks/configure_aap.yml to configure enterprise settings and inventory mappings, while dynamic workload dispatch via the deploy branch uses playbooks/dispatch_round_robin.yml to route jobs across clusters using round-robin or explicit targeting. Key use cases include continuous operations across geographic clusters, rolling updates by diverting workloads to a secondary datacenter, and phased platform migrations by running distinct Ansible Automation Platform versions side by side.
PrivacyLib is a common library that runs inside clients of Meta’s data and processing systems at the data access boundary, replacing separate privacy enforcement implementations across systems. Systems integrate with PrivacyLib once, and new privacy capabilities are added as modules that reuse that integration, performing billions of checks per second. PrivacyLib addresses three engineering challenges: coverage by integrating at typed client libraries and network boundaries, scale by compiling requirements at build time and using in-process caches, and reliability by deploying enforcement changes through each service’s own pipeline. For internal AI agents, tool calls carry agent context that PrivacyLib uses to observe data access and block disallowed operations. Meta learned that designing for evolving systems, prioritizing reliability to earn adoption, and ensuring coverage includes deployment are critical for operating PrivacyLib at scale.
Cloudflare Radar recorded 49 Internet disruptions in Q3 2026, with government-directed shutdowns leading at 19 incidents, mostly exam-related in Iraq. Power outages caused 14 disruptions, including repeated grid failures in Cuba (traffic dropped 18-59%), a national outage in Honduras from an interconnection facility failure (63% drop), and two outages in Ukraine from power grid strain and drone strikes (95% drop). Natural disasters included Super Typhoon Bavi in Guam, a 7.4 earthquake in Colombia damaging fiber, a 7.1 earthquake in Japan, and floods in Nepal. A cooling system failure in a Phoenix data center caused near-total traffic loss from Namecheap. Despite these, many outages were brief: 14 recovered in under an hour and 16 in under three hours.
Together GPU Clusters introduces an auto-repair system that detects GPU, host, and fabric faults without relying solely on node NotReady signals. Detection runs both inside the VM (kernel logs, DCGM, Node Problem Detector) and on the host (InfiniBand, reachability). Each fault maps to the lightest remediation action, such as a reboot or migration, and the platform lets operators set per-fault and per-Xid-code consent for automatic execution. Repairs proceed through a four-stage pipeline of detect, decide, repair, and re-validate the physical host on Together side. Custom detectors can trigger the same pipeline via API or node-label annotations, unifying all repair records in the control plane for audit and safety.
Resend began by improving the developer experience of email with React Email, a modern API, and a dashboard. Now it is moving down the stack to the foundational infrastructure layer with Resend Forge, its own Mail Transfer Agent. Forge uses IP blocks that Resend owns and operates, giving it control over the entire path from the API call to the email leaving the address. Customers activate Forge by adding a single CNAME record with no code changes, resulting in faster time-to-inbox, more reliable delivery, and better visibility. Hundreds of customers have sent over 10 million emails through Forge, with companies like Profound, Firecrawl, Clay, and OTown reporting immediate improvements.
Databricks announced the General Availability of AI Runtime (AIR), a fully managed GPU infrastructure platform integrated directly into the Databricks Lakehouse. AIR provides serverless, on-demand access to advanced GPUs with RDMA-enabled networking, environment caching, and seconds-level launch latency. It includes built-in debugging via MLflow and Genie Code, which analyzes training logs to identify issues. Security features include Unity Catalog governance across all GPU workloads, VM-level isolation, PrivateLink, and serverless egress controls. Early adopters report a 3.5x speedup training a model with H100 GPUs and reduced time from days to hours for deploying custom models.
AI factories require tight integration of compute, networking, storage, power, cooling, and software before they can produce tokens. Traditional builds sequence site selection, design, installation, and validation sequentially, exposing the timeline to delays from specialized labor and dependency chains. NVIDIA DSX POD shifts most integration work into the factory by providing a standard reference design for pre-built AI infrastructure containers. The design covers compute, networking, storage, power delivery, liquid cooling, cabling, and validation for NVIDIA Vera Rubin rack-scale systems. Factory integration and site preparation proceed in parallel, and after delivery teams focus on inter-container connections and commissioning. This repeatable model reduces schedule risk late in the build and helps operators reach productive AI capacity more predictably.
Meta’s Prometheus supercluster in New Albany, Ohio, is a gigawatt-scale AI infrastructure project designed to train frontier models like Muse Wonder. The first phase is complete, comprising hundreds of thousands of GPUs across multiple interconnected buildings, with a target of roughly 1 million GPUs at full scale. Prometheus deploys multiple NVIDIA GPU platforms, including Catalina (GB200 NVL72) with 13.4 TB of HBM3e and Clemente (GB300 NVL72) with 20.7 TB of HBM3e, with Vera Rubin NVL72 arriving soon. The cluster uses a dedicated Back-End Ethernet network for GPU-to-GPU communication, and employs closed-loop liquid cooling and power management via Dynamo Dimmer to maintain high goodput. By focusing on stability, Meta achieved over 85% goodput for pre-training and over 90% for reinforcement learning runs, with a mean time between interruptions of ~47k GPU hours, later improved to over 54k GPU hours.
Databricks’ AI Research team uses AI Runtime (AIR) to manage hundreds of parallel research workstreams for products like Genie, Smart Routing, and AI Functions, training models from a few billion to nearly a trillion parameters. AIR performs preflight checks on GPU nodes to ensure health and communication before training, and monitors node health during execution to detect issues like NCCL failures or thermal throttling. The AIR CLI and custom Docker containers enable fast experimentation by launching jobs in seconds without rebuilding environments, supporting both supervised fine-tuning and reinforcement learning. MLflow integration automatically tracks experiments, while Unity Catalog FUSE mounting gives governed access to research data across workspaces without changing training code. The team has scaled to agent-led training, where AI agents propose changes, launch trials, and evaluate results, increasing training job volume by 8x across AI Functions research workloads.
MCP standardized how AI models connect to tools, with clients like Claude Code and Cursor adopting it and SDK downloads approaching half a billion monthly. However, production use reveals that the protocol solves only the interface problem, not the operational concerns around authentication, rate limiting, idempotency, and observability. Teams repeatedly build duplicate infrastructure for deployment, secret handling, health checks, and access control because the protocol does not address these. Context efficiency also remains a challenge: a benchmark showed reducing context from 220,393 to 27,352 tokens (87.6%) while maintaining test pass rates, highlighting the need for deliberate context selection. The author argues that MCP’s success forces the question of building a production-grade infrastructure layer, similar to how HTTP led to CDNs and API gateways.
The 2026 FIFA World Cup produced the largest planned stress test of Meta’s infrastructure, with WhatsApp setting an all-time record of over 30 million messages per second during the final and delivering 8.4 billion messages in its peak five-minute window. Traffic analysis revealed that surges in sharing primarily occurred during breaks and final whistles, not during active gameplay, shaping capacity decisions. Instagram and Facebook saw live video watch time spike 90% and 242% respectively, while recommendation traffic rose 80% week-over-week. To absorb these spikes, Meta layered pre-provisioned capacity buffers, country-level graceful degradation, cascade prevention, and early warning signals across all serving tiers. Notably, the team did not shift load between regions or freeze deployments, relying instead on year-round reliability enhancements and phased runbook execution.
Anthropic released a policy report, “Build AI in America,” calling for major U.S. investment in computing and electricity infrastructure to maintain global AI leadership. The report projects frontier AI training will require 20-25GW of capacity by 2028, with total AI sector needs reaching at least 50GW including inference. This demand is driven by China adding over 400GW of power capacity last year versus the U.S.’s few dozen GW, creating a critical gap. To compete, Anthropic proposes two pillars: building large-scale training infrastructure via federal lands and accelerated NEPA reviews, and nationwide AI innovation infrastructure through faster permitting, transmission corridors, and domestic supply chain strengthening. The recommendations leverage existing federal authorities to cut regulatory barriers and ensure American AI leadership.
Modal crossed $1B in annualized run rate and raised $750M in Series D funding at a $15.75B post-money valuation, led by Accel. Usage has tripled since the Series C five months ago, with year-over-year growth exceeding 15x, and the company now powers applications from companies including DoorDash, Cognition, and Runway. To avoid the friction of the old stack, Modal built its own file system, container runtime, scheduler, and networking from scratch on a capacity pool spanning over 20 clouds. Sandboxes, launched in 2023 for running LLM-generated code, now represent a $300M run rate product with nearly 3 billion sandboxes spun up and scaling to a million concurrent. New products include multi-node training with a single decorator giving a fully RDMA-connected cluster, Modal servers for HTTP serving, Endpoint Candidates for LLM serving, and generally available virtual machines.
Cloudflare’s Data team manages a pipeline handling over two billion events per second from tens of thousands of servers, powering Logs, SQL API, and observability. To counter exponential traffic growth against linear hardware expansion, they implemented several optimizations over five years, deferring two and a half years of hardware expansion. In 2022, they replaced a monolithic schema with product-specific schemas, reducing backbone bandwidth by 35-40%. In 2024, they switched compression from LZ4 to zstd, achieving a 40% reduction in compressed traffic with negligible CPU impact. In 2026, they decoupled pipeline transit from database redundancy via a shared ingest pool and late replication, applied sampling downstream, and introduced aggregations, eliminating about 70 GB/s of compressed traffic and halving projected 2031 data volume.
The best engineering reads, once a week.