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
75 posts about Inference. 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.
Clairic is a System One extraction model that turns unstructured input into typed values in a single forward pass. This five-step flow shows how to declare fields, call it, and use the results.
BitNet trades floating-point precision for a tiny, CPU-friendly footprint. This diagram maps the payoff—small memory and local serving—against the constraints that decide when the trade is worth it.
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
The podcast episode features two conversations from We Are Developers. Ivan Burazin, CEO of Daytona, explains that sandboxes are secured virtual machines used both as tools for agents and for security. He notes that the Hugging Face breakout was a deliberate exploit benchmark test with lowered security, not a surprise. Burazin observes that most sandbox providers build on underlying isolation layers like Firecracker, and that enterprises prefer these established foundations over newer, potentially more secure alternatives. Richard Risk, CTO of Blackbox AI, argues that end-to-end encrypted inference is distinct from zero data retention because encryption ensures data invisibility during processing. He states that Blackbox AI only serves whitelisted US enterprises and government customers through a manual process, and takes a clear stance against collaborating with Chinese AI labs.
The llama.cpp × AMD Benchmark dashboard on Hugging Face tracks prompt processing and text generation performance across llama.cpp builds, models, and quantizations on AMD Ryzen and Radeon hardware. Users select hardware, model, and build in the Configuration sidebar, with current choices including Radeon 8060S and Radeon AI Pro R9700S. The Overview tab compares quantizations using PP512 (512 input tokens, no generation) and TG128 (128 generated tokens), both starting at context depth zero. The Build history tab tracks these metrics across all recorded builds, and the Context scaling tab shows how token-generation throughput changes as context grows. The benchmark workflow and underlying results are public, stored in a Hugging Face Storage Bucket, and the data can be inspected or reused for custom analysis.
NVIDIA released Nemotron 3.5 Parse, a compact document model that converts page images into structured data for RAG and agents. The model extracts content into reading order, assigns content classes such as headings, tables, and charts, and returns bounding boxes. Training used supervised fine-tuning followed by reinforcement learning with verifiable rewards (RLVR) using Group Relative Policy Optimization (GRPO), which reduced loop-flagged outputs by 77% and improved overall score from 66.24 to 71.38. Inference optimizations include NaViT dynamic inputs, GQA-8 attention, and a DFlash2 speculator that increased throughput up to 7.62× on one H200. NVIDIA open-sourced three synthetic datasets (Synthetic Charts V1, Synthetic Tables V1, OCR Synthetic Multilingual v2) and a fine-tuning recipe for adapting Parse to new document types.
Inkling 2 Mini is a looped Mixture-of-Experts model with 24 physical layers where the middle 12 run three times, totaling 48 layers per token. The authors used a coding agent with an inference-optimization skill to systematically tune serving parameters on a single NVIDIA RTX PRO 6000 96 GB GPU. By switching from SGLang to vLLM nightly and enabling DSpark speculative decoding with 7 drafts and probabilistic sampling, they increased single-user decoding speed from 136 to 190.6 tok/s, a 40% gain. Aggregate throughput for 8 concurrent users rose from ~570 to 716 tok/s. The winning configuration achieved ~95% of the memory-bandwidth ceiling and passed long-context needle retrieval up to 250K tokens before deployment as an Inference Endpoint.
Reinforcement learning training uses inference to generate rollouts, but redundant prompt processing, slow weight updates, and worker failures waste GPU capacity and delay training. NVIDIA Dynamo provides a serving layer that separates routing and weight distribution from the RL framework, allowing independent serving optimization while the framework retains control over training. KV-aware routing balances cache reuse and worker load by directing requests to workers with cached contexts, reducing repeated prefix computation and queuing. ModelExpress accelerates weight updates by transferring only compressed delta changes between GPUs, reducing transfer time and also aiding recovery. These capabilities help teams complete more training iterations within fixed compute budgets, with CoreWeave achieving up to 15x faster weight updates and H Company reducing training-step time by up to 20%.
The author modified Transformers to stream MoE experts from disk, enabling a 180B-parameter Qwen model to run on a 32 GB MacBook M5 at ~14 tok/s. Existing engines like llama.cpp and vLLM either thrash the page cache or copy all experts on every token. The key innovation is a slot-pool cache: one preallocated device tensor shared across layers, with a per-layer mapping from expert ID to slot, so that grouped_mm runs on the pool as if it were a regular expert bank. Experts are quantized to 3 bits, read by 8 I/O threads, and prefetched by running the next two layers’ routers early. The implementation closes the gap with Strata to about 6% on short decode, with slightly faster prefill. The author notes that closing the remaining gap would require deeper changes in PyTorch’s MPS stream control.
Sparse attention limits each query to attending to only a small subset of the context, cutting compute and memory traffic on long sequences, but the indexer that finds those keys still scores all N keys. This post is a practical primer for model developers designing model-level sparse attention that runs well on NVIDIA GPUs. It uses a production FP8 kernel to sweep the indexer’s design knobs, including query heads, key heads, head dimension, compression ratio, and speculative-decoding depth. The measurements show that decode runtime is nearly independent of group size because the single key cache read sets the bottleneck, while prefill runtime grows with group size. The post concludes with eight guidelines for efficient indexer, Top-k, and core attention design on NVIDIA hardware.
Agentic AI workflows accumulate conversation history across turns and require inference systems capable of serving many users while maintaining responsiveness. The MLPerf Endpoints v1.0 benchmark measures this balance using coding trajectories and enterprise workflows exposed as API endpoints, with tool calls and workflow intent checked against reference values. Provisional results show the NVIDIA Vera Rubin NVL72 achieving over 10x the throughput per kilowatt of provisioned power compared to the NVIDIA GB300 NVL72 at a shared minimum end-to-end interactivity of 50 tokens per second per user. The benchmark evaluated three model architectures: Kimi K3, Qwen3.6-35B-A3B, and DeepSeek-V4.1-Flash. Hardware advances including HBM4 memory, Tensor Cores, and NVLink combine with software techniques like prefix caching, disaggregated prefill and decode, and model-specific kernels to reduce redundant computation and improve token generation speed.
Latent 3D representations enable compact encoding of scenes and support generative models, but they struggle to capture fine details due to limited latent capacity. Scaling capacity at training is computationally expensive and often infeasible under memory limits, while naively increasing latents at inference fails to use added capacity effectively. Split-and-scale addresses both challenges by representing 3D scenes as continuous functions of 3D coordinates, allowing a single pretrained tokenizer to be applied at inference to arbitrarily small sub-regions. This allocates the same latent capacity to a smaller spatial extent, capturing far higher detail. Extensive ablations show inference-time scaling achieves quality competitive with much larger models that exceed single-GPU memory limits, and the method supports high-quality generative modeling with an autoregressive 3D generator competitive with state-of-the-art baselines.
Together Compiler uses AI agents to rewrite and fuse GPU kernels in a model’s forward pass, achieving 2,118 tokens per second on Llama 3.2 1B on B200, 28% faster than hand-written megakernels. The team previously built megakernels that executed an entire forward pass in a single fused kernel but found them difficult to productionize, supporting only one model and batch size. They discovered that combining CUDA Graphs and PDL on top of default Torch Inductor kernels recovered 98% of megakernel performance without writing custom kernels. Further multi-kernel and agent-loop techniques beat the old megakernels by up to 1.7x on H100, achieving over 1,100 TPS for Llama 1B. The post details investigations into Torch Compile’s limitations, including 607 tuning flags and unpredictable interactions, motivating the development of Together Compiler’s agent-driven optimization.
Coding agents resend the entire conversation history on every turn, creating a pattern of large input and small output. Prefix caching avoids recomputing earlier tokens, but it is fragile: any change near the top of the prompt invalidates the cache for everything after it. The harness must avoid re-rendering dynamic system prompts or inserting tool definitions at the top, and must instead add new content at the end. The inference engine must route each turn to the same GPU that holds the cached KV pairs from the previous turn. Together AI and Ollama document the specific responsibilities of each side to keep long agent sessions fast and cost-effective.
Hugging Face and OpenRouter are partnering to simplify running open-weight models. Hugging Face now routes language model requests through OpenRouter, which selects the best provider for each call based on live price, speed, and reliability, and retries on another provider if the first fails. The router supports OpenAI’s Chat Completions and Responses APIs and Anthropic’s Messages API for every chat model. Open-weight models on OpenRouter grew from 26.8% of tokens served in October 2025 to 71.7% by September 2026, and cost about four times less on average than closed models. Users pay the provider’s price on their Hugging Face bill with no markup, and can still pin a provider or policy via a model id suffix.
NVIDIA Snapshot is a new open-source component of the NVIDIA DSX AI Factory Platform that checkpoints and restores initialized GPU workloads on Kubernetes, skipping repeated cold-start phases such as weight loading, compilation, and CUDA graph capture. Benchmarks on NVIDIA B200 GPUs with VAST NFS storage show restore times of 3.6 to 42.7 seconds across vLLM, SGLang, and TensorRT LLM, achieving 8x to 36x speedups over cold starts. For large mixture-of-experts models with 1 TB checkpoints across eight GPUs, Snapshot restored replicas in under 43 seconds compared with cold-start times of 6 to 19 minutes. Checkpoint creation took 15 seconds to 5.5 minutes, but checkpoint time plus restore time was shorter than a single cold start in every configuration. Platform teams integrate Snapshot via Kubernetes custom resources and the annotation nvidia.com/restore-from.
FLUX 3 Image Klein from Black Forest Labs is an image editing and generation model for design and production workflows. This tutorial explains how to configure it in NVIDIA TensorRT LLM VisualGen on Blackwell GPUs to reduce inference latency through multiple optimizations. These include NVFP4 quantization for the diffusion transformer, fused GEMM kernels with epilogue fusion, quantized attention via cuDNN FP8 or VC-Attention FP8, sparse attention with Sol-Attention, and step caching with Cache-DiT that reuses intermediate outputs. At 2048x2048 resolution on a single NVIDIA B200 GPU, combining these optimizations delivered up to 3.46x faster text-to-image and 4.45x faster image-to-image generation for the Base checkpoint compared to uncompiled BF16 VANILLA inference. The tutorial provides deployment instructions and YAML configuration files to replicate these results.
Together Compiler (TKCC) targets AI inference workloads whose traffic, models, and hardware change too quickly for hand-tuned optimization, with architectures and customer traffic shapes varying widely. TKCC takes traffic shape, model, and hardware as inputs and uses agents to generate optimizations for an inference engine. Its design relies on persistent engines that start once and hot-reload candidate forward passes, avoiding a 467-second status-quo startup path. A two-tier engine setup trades measurement throughput against fidelity, while a custom cost model selects parallelism strategies such as TP, EP, and DCP. In under 24 hours, TKCC reports up to 2.6x higher TPS across frontier open-source models, 1.7x over open-source megakernels on Llama 1B at batch size 1, and 252x higher experiment throughput than baseline agentic optimization systems.
Together AI introduces Polymorphic Inference, a new approach for production open-source inference systems that adapts to rapidly changing model architectures, workloads, and hardware platforms. The company argues that traditional static inference, with fixed hyperparameter-tuned configurations, is insufficient for the current landscape where 80% of OpenRouter traffic goes to models released in the last three months. To address this, Together AI announces Together Compiler, a rapid AI-powered performance optimization loop that recasts inference optimization as an agentic search problem. Together Compiler uses a swarm of AI agents paired with a high-fidelity persistent engine to identify key optimization patterns and iterate quickly. The system is already running in production on some of Together AI’s most popular serverless endpoints, finding further gains on top of already highly optimized code.
Deploying NVIDIA Dynamo on Kubernetes needs a validated runtime layer including GPU drivers, scheduling, networking, and monitoring. NVIDIA AI Cluster Runtime (AICR) packages Dynamo and its infrastructure into validated recipes with pinned component versions and compatibility constraints. AICR supports two routing paths: the Dynamo Frontend router for direct worker selection based on KV-cache overlap and load, and the Gateway API Inference Extension with Dynamo Endpoint Picker for Kubernetes-native ingress. The walkthrough details deploying and validating the runtime using AICR’s Helmfile or GitOps bundles, with validation checks covering cluster baseline, platform health, accelerator access, scheduling, observability, and ingress. AICR ensures a repeatable foundation for serving models, with validation phases that must pass before application workloads are installed.
Junie Local, JetBrains’ local AI coding agent, now delivers ~70 tokens/s on Mac M5 Max, up from ~40 tokens/s, with bursts up to 107 tokens/s. The speedup comes from replacing the MLX-VLM inference engine with Inco AI’s Splash engine, which verifies eight drafted tokens per decode step and reduces attention cost per position. A new DFlash2 draft model, fine-tuned with SpecForge on ~1 million generated tokens of coding trajectories, improves acceptance rate for speculative decoding. The release also improves prefill from 850 t/s to 1200 t/s and reduces memory consumption to ~24 GB on 100k context. Junie Local now supports M4 Macs and newer with 64GB of RAM, though prefill on M4 is about four times slower than on M5.
Mixture-of-experts inference on NVIDIA DGX Spark is memory-bound, with weight reads dominating execution time in batch-size-1 decoding. Three techniques address this bottleneck: Humming MXFP4 MoE kernels use NVRTC to compile specialized CUBINs at runtime for the model’s specific shapes, improving routed-expert computation. Online FP8 quantization of the LM head halves the weight-read volume for the vocabulary projection layer, enabled by SGLANG_ENABLE_FP8_LM_HEAD=1. Multi-token prediction speculative decoding with NEXTN drafts and verifies multiple tokens per round, reducing the number of decode steps. On GSM8K, the combined optimizations increase decode throughput by 42.5% and reduce mean latency by 24.5% without statistically detectable accuracy change; however, enabling MTP with online FP8 LM head requires the draft model to share the full LM-head module to avoid silently degraded performance.
A2UI is an agent-optimized protocol for generative UI where agents describe interfaces from a client’s component catalog. Generating those descriptions directly as JSON constrained by a complex schema proved slow and error-prone for LLMs. This release introduces swappable inference formats, notably A2UI Express, which requires up to 3x fewer tokens to produce the same UI and reduces latency by up to 3x. For screens with predefined layouts, decision models like Jev can reduce layout decision latency by up to 80x by making structured decisions in 100-300ms instead of generating full JSON. The SDK generates the appropriate prompt instructions and compiler from the catalog schema, and the post benchmarks four formats on 51 tasks using Gemini 3.5 Flash, with Express performing well even without thinking.
The best engineering reads, once a week.