AI Engineer

The Frontier AI Inference Cloud for Agents — Byung-Gon (Gon) Chun, FriendliAI

Published 2026-09-19 · Duration 14:59

Summary

The talk outlines the shift from traditional request-based LLM inference (chat) to complex, task-based agentic inference. Because agents run in long loops (plan, act, observe, repeat) and generate massive context prefixes, standard inference stacks fail. FriendliAI addresses this by presenting an 'inference cloud for agents' built on four pillars: Prefix Caching, hierarchical KV Cache Management, Cache Aware Routing, and Agent Aware Scheduling. This architecture enables open-weight models (like GLM 5.2) to achieve frontier quality at a fraction of the cost of closed models, making complex, multi-step agents economically viable for production.

Download summary

Key takeaways

  1. The Unit of Work Shifts from Request to Task 5:18

    In chat, the unit is the request (optimizing for low latency). In agents, the unit is the task, which runs autonomously for minutes or hours. Optimization must therefore focus on end-to-end task latency, not single-call latency. (3:18)

  2. Open Weights Achieve Frontier Quality at Lower Cost 2:06

    Open-weight models are now capable of completing complex agentic tasks (e.g., building a tower defense game) at a usable level, rivaling closed models. For the same task, GLM 5.2 (open-weight) was approximately 5.6 times cheaper than Anthropic's Opus 4.8. (2:06)

  3. The Four Pillars of Agentic Inference Cloud 11:42

    To optimize for task latency, the stack relies on: 1) Prefix Caching (computing shared prefixes once); 2) Hierarchical KV Cache Management (across GPU, host, and disk); 3) Cache Aware Routing (sending requests to replicas holding the prefix); and 4) Agent Aware Scheduling (understanding the long-term program context). (7:02)

Technical details

  • Prefix Caching 730s

    Since consecutive agent steps share enormous prefixes, the system computes the Key-Value (KV) cache for this prefix once and reuses it, significantly reducing compute spent on already-done work. (7:30)

  • KV Cache Management 815s

    The system uses frugal memory management and KV cache contigation to pack context onto GPU memory. It implements hierarchical caching across GPU memory, host memory, and disk to scale beyond GPU limits. (8:15)

  • Cache Aware Routing

    Unlike naive load balancers, a cache aware router sends a request to a specific replica that already holds the required prefix cache, turning a costly prefill into a single cache hit while maintaining load balance. (9:19)

  • Agentic Workload Structure 400s

    Agent workflows are iterative loops: Plan (LLM call) $\rightarrow$ Act (Tool call) $\rightarrow$ Observe (Context update) $\rightarrow$ Repeat. The context grows continuously, and the number of model calls is variable, making fixed request rate planning impossible. (4:00)

Mentioned resources

  • FriendliAI (Inference Cloud)
  • GLM 5.2 (Open-Weight Model)
  • Anthropic Opus 4.8 (Closed-Weight Model)

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.