Ai4
With inference consuming up to 90% of lifetime AI budgets, multi-step agentic workloads require token-level continuous batching and dynamic infrastructure to prevent latency bottlenecks and GPU cost overruns.
AI-assisted summary of Scaling Inference for Agentic AI With FriendliAI — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published on YouTube by the Ai4 channel on August 24, 2025, this presentation features Byung-Gon Chun, CEO of FriendliAI, addressing how to overcome inference bottlenecks in agentic AI. According to the page description, the Friendli Suite simplifies the deployment and operation of complex AI agents by providing scalable, high-performance endpoints without requiring custom backend infrastructure.
## TL;DR As generative AI evolves into autonomous agentic systems characterized by multi-turn reasoning, external tool calls, and model routing, inference emerges as the primary bottleneck, consuming 80% to 90% of lifetime compute budgets. To tackle spiraling GPU expenses and latency issues, FriendliAI introduces an optimized inference stack powered by continuous batching, speculative decoding, and instant on-the-fly quantization. The solution is delivered through flexible deployment modalities—including one-click Friendli Endpoints integrated with Hugging Face, a Serverless API, private VPC/on-premises Friendli Containers, and the Friendli Agent orchestration layer. Real-world enterprise validations, including Twelve Labs cutting compute costs by over 50% and LG Electronics deploying their 32B EXAONE model in under 24 hours, demonstrate substantial gains in throughput and cost efficiency.
## Atmosphere & style The presentation carries the authoritative, pragmatic tone of an enterprise tech keynote that bridges academic computer systems research with real-world infrastructure engineering. Chun speaks with calm, methodical clarity, moving deliberately from systemic industry pain points and GPU economics to live platform demonstrations and architectural breakdowns. Watching it feels like a concise, no-nonsense masterclass designed for engineering leaders seeking to turn fragile AI agent prototypes into scalable, production-grade systems.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=zl6FizzYC4M&t=4s) Generative AI is rapidly shifting from static conversational chatbots to autonomous agentic systems capable of multi-step reasoning, planning, stateful memory, and tool execution. - [00:04](https://www.youtube.com/watch?v=zl6FizzYC4M&t=4s) In real-world enterprise deployments, live model inference accounts for 80% to 90% of an AI model's total lifetime compute expenditure. - [00:04](https://www.youtube.com/watch?v=zl6FizzYC4M&t=4s) Agentic workflows place heavy pressure on serving infrastructure due to multi-turn interactions, round-trip tool calls, and multi-model routing that compound latency. - [02:40](https://www.youtube.com/watch?v=zl6FizzYC4M&t=160s) Enterprise AI pilots often fail to scale when engineering teams become bogged down reinventing custom backend infrastructure instead of developing core product features. - [02:40](https://www.youtube.com/watch?v=zl6FizzYC4M&t=160s) Production-ready agentic infrastructure must deliver ultra-low time-to-first-token (TTFT), rapid dynamic auto-scaling, high throughput, and private VPC deployment options. - [05:17](https://www.youtube.com/watch?v=zl6FizzYC4M&t=317s) Continuous batching, invented by the FriendliAI team in their OSDI 2022 Orca paper, eliminates idle GPU cycles by inserting and evicting requests at token-level granularity. - [05:17](https://www.youtube.com/watch?v=zl6FizzYC4M&t=317s) The Friendli Inference engine integrates advanced optimizations including speculative decoding, optimized KV-cache management, and zero-setup on-the-fly quantization. - [07:23](https://www.youtube.com/watch?v=zl6FizzYC4M&t=443s) Friendli Endpoints integrates natively with Hugging Face Hub to enable one-click deployments of over 423,000 models, delivering over 500 tokens per second for Llama 3.1 8B on NVIDIA Hopper GPUs. - [11:34](https://www.youtube.com/watch?v=zl6FizzYC4M&t=694s) Deployment options range from a managed Serverless API to dedicated Endpoints and self-hosted Friendli Containers packaged as native Amazon EKS add-ons. - [11:34](https://www.youtube.com/watch?v=zl6FizzYC4M&t=694s) Friendli Agent sits directly atop the inference engine to orchestrate multi-model workflows, session memory, and external API tool calls with minimal latency overhead. - [13:03](https://www.youtube.com/watch?v=zl6FizzYC4M&t=783s) Enterprise case studies demonstrate significant operational efficiency, including Twelve Labs cutting infrastructure costs by more than 50% and LG Electronics deploying their custom EXAONE model in under 24 hours.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=zl6FizzYC4M&t=4s) From Prototypes to Production: The Rise and Cost of Agentic AI
Generative AI is shifting rapidly from static tools like copilots and simple conversational chatbots into active, autonomous agentic systems. Rather than merely offering single-turn responses, agentic AI operates as an active problem solver capable of reasoning, planning, maintaining memory across multi-step interactions, and executing external tool calls. This transformation is further accelerated by the surging adoption of open-source foundational models such as Llama, DeepSeek, and Qwen, which allow enterprises to fine-tune and achieve custom domain functionality at significantly lower initial development costs.
```mermaid flowchart TD accTitle: Agentic AI Inference Demands
subgraph AgentLayer ["Agentic AI Workflow"] A["User Goal / Task"] --> B["Planning & Reasoning"] B --> C["Memory & Session State"] C --> D["Multi-Step Tool Calls & Model Routing"] end
subgraph InfraDemands ["Infrastructure Requirements"] D --> E["High-Throughput Serving"] D --> F["Ultra-Low Latency"] D --> G["Dynamic Cost Optimization"] end ```
While creating a proof-of-concept AI agent is straightforward, the real business value emerges only when agents transition into production. In real-world enterprise deployments, inference represents the live touchpoint where customers interact with models, accounting for 80% to 90% of an AI model's total lifetime expenditure. Agentic workloads place unprecedented pressure on serving stacks because they involve longer multi-turn sessions, complex multi-model orchestrations, and frequent round-trip tool integrations, demanding tight latency budgets, massive throughput, and extreme cost efficiency.
- **Open-source surge**: Widespread adoption of base and fine-tuned open-source architectures like Llama, DeepSeek, and Qwen. - **Inference cost share**: Serving and operational inference consume 80% to 90% of total lifetime AI compute budgets. - **Agentic requirements**: High throughput, ultra-low response latency, and strict cost containment across multi-step reasoning cycles.
---
[02:40](https://www.youtube.com/watch?v=zl6FizzYC4M&t=160s) Production Pitfalls and Business Priorities for Agentic Infrastructure
Many enterprise AI initiatives begin with promising pilot programs but stall completely when scaled to real users. Typical operational failure modes include delayed product launches, spiraling GPU bills caused by over-provisioning for unpredicted bursty traffic, architectural complexity, security and data privacy hurdles, and slow inference latencies that lead directly to user churn. Product engineering teams frequently find themselves bogged down trying to "reinvent infrastructure instead of building product features."
To overcome these barriers, business leaders and executives require a standardized set of operational capabilities from their inference layer:
| Priority | Operational Challenge | Platform Requirement | |:--- |:--- |:--- | | **Cost Control** | GPU hardware is costly; static provisioning leads to idle waste. | Fine-grained compute packing and automated workload right-sizing. | | **Responsiveness** | Agentic workflows compound multi-step delays. | Consistently low time-to-first-token (TTFT) and token generation latency. | | **Elasticity** | AI user request patterns are highly bursty and unpredictable. | Rapid dynamic auto-scaling up and down. | | **Simplicity** | Complex backends distract engineering teams from core apps. | One-click or API-driven deployments without manual plumbing. | | **Data Control & Security** | Sensitive enterprise data cannot leave private perimeters. | Dedicated, private VPC and on-premises deployment options. | | **Observability & Uptime** | Lack of visibility into spend, token counts, and health metrics. | Real-time monitoring dashboards with 99.99% high-availability guarantees. |
---
[05:17](https://www.youtube.com/watch?v=zl6FizzYC4M&t=317s) FriendliAI Engine: Continuous Batching and Optimization Innovations
FriendliAI was built from the ground up to solve these production bottlenecks by making model inference fast, scalable, and cost-efficient. The core engine—Friendli Inference—combines novel research innovations with industry best practices across language and multimodal models. It incorporates a suite of advanced optimizations including parallel model execution, KV-cache management, optimized scheduling, automatic quantization, and speculative decoding.
```mermaid flowchart LR accTitle: Friendli Inference Platform Stack
subgraph CoreEngine ["Friendli Inference Engine"] A["Continuous Batching<br/>(Orca OSDI 2022)"] B["Speculative Decoding & Caching"] C["On-the-Fly Quantization"] end
subgraph Delivery ["Deployment Formats"] CoreEngine --> D["Friendli Endpoints<br/>(Dedicated Cloud)"] CoreEngine --> E["Friendli Serverless API"] CoreEngine --> F["Friendli Container<br/>(EKS / On-Prem)"] end ```
A foundational breakthrough powering the engine is **continuous batching**, a pioneering technique invented by the FriendliAI team and introduced in their Orca paper at OSDI 2022. Because real-world inference traffic arrives irregularly and each generation sequence finishes at different times, traditional static batching results in idle GPU cycles. Continuous batching solves this by dynamically inserting incoming requests into an ongoing batch and evicting completed sequences at token-level granularity. This maintains near-total GPU compute utilization regardless of uneven request dynamics.
---
[07:23](https://www.youtube.com/watch?v=zl6FizzYC4M&t=443s) Friendli Endpoints: One-Click Hugging Face Integration and High-Speed Deployment
Friendli Endpoints packages the underlying inference engine into a fully managed serving service featuring intelligent traffic routing, automated scaling, real-time metrics (tokens processed, latency traces), model versioning, live rolling updates, and 99.99% uptime availability. A notable feature is zero-setup "on-the-fly quantization" and speculative decoding, which allows users to select optimized quantization schemes with a single click without running external compression tooling or degrading output accuracy.
Through native platform integrations with Hugging Face Hub and Weights & Biases, users can pull models into Friendli or deploy straight from model repositories:
- **Model versatility**: Instant, one-click deployment for over 423,000 models cataloged on Hugging Face (out of nearly 2 million total available models). - **Throughput performance**: Generates over 500 tokens per second for Llama 3.1 8B on an NVIDIA Hopper GPU. - **Cost efficiency**: Delivers greater than 2x throughput compared to alternative inference frameworks, halving operational costs. - **Reliability track record**: Proven at production scale across trillions of processed tokens.
A live platform demonstration illustrates selecting an open model—such as the Flux.1-dev image generation model or Llama 3.3 70B—choosing the target GPU profile, and launching a live endpoint within minutes. Once initiated, the dashboard provides a built-in playground to interactively test prompts, inspect deployment logs, manage version configurations, and monitor latency metrics over time.
---
[11:34](https://www.youtube.com/watch?v=zl6FizzYC4M&t=694s) Flexible Deployment: Serverless API, Friendli Container, and Friendli Agent
To meet varied enterprise architecture and compliance needs, FriendliAI provides multiple consumption pathways:
- **Friendli Serverless API**: A fully managed, pay-as-you-go API that instantly scales across a growing portfolio of open foundation models without dedicated GPU provisioning. - **Friendli Container**: An enterprise-grade, self-hosted container for on-premises clusters or private VPC environments with strict privacy, air-gap, or governance standards. On AWS, it functions as a native Amazon EKS add-on deployable via a single configuration command. - **Friendli Agent**: A dedicated agentic orchestration layer positioned directly above the model inference engine. It coordinates agentic workflows, tracks contextual memory, handles external tool calls and API integrations, and routes multi-model requests with minimal overhead.
---
[13:03](https://www.youtube.com/watch?v=zl6FizzYC4M&t=783s) Real-World Case Studies and Getting Started
FriendliAI's production engine has been validated across diverse commercial environments:
- **Twelve Labs**: The San Francisco Bay Area multimodal video search startup reduced its overall production infrastructure costs by more than 50%. - **LG Electronics**: Deployed their proprietary LG EXAONE 3.0/3.1 foundation model (a 32-billion-parameter custom architecture rivaling frontier models like Anthropic's Claude 3.5 Sonnet / Claude Opus) to production in under 24 hours. - **Enterprise Deployments**: Major regulated enterprises migrated to the self-hosted Friendli Container inside their private cloud footprints to fulfill internal security constraints while reducing required GPU counts.
Engineering teams can get started immediately by spinning up dedicated Friendli Endpoints, integrating the Serverless API, or installing the Friendli Container on-premises. FriendliAI also offers a $10,000 GenAI Inference Credit Program with a simple two-minute application process to help organizations migrate from prototype to scalable production without building bespoke inference infrastructure.
## Notable quotes > [00:04](https://www.youtube.com/watch?v=zl6FizzYC4M&t=4s) In real-world enterprise deployments, inference represents the live touchpoint where customers interact with models, accounting for 80% to 90% of an AI model's total lifetime expenditure. — Byung-Gon Chun
> [02:40](https://www.youtube.com/watch?v=zl6FizzYC4M&t=160s) reinvent infrastructure instead of building product features. — Byung-Gon Chun
> [05:17](https://www.youtube.com/watch?v=zl6FizzYC4M&t=317s) FriendliAI was built from the ground up to solve these production bottlenecks by making model inference fast, scalable, and cost-efficient. — Byung-Gon Chun
> [05:17](https://www.youtube.com/watch?v=zl6FizzYC4M&t=317s) Continuous batching solves this by dynamically inserting incoming requests into an ongoing batch and evicting completed sequences at token-level granularity. — Byung-Gon Chun
> [07:23](https://www.youtube.com/watch?v=zl6FizzYC4M&t=443s) Generates over 500 tokens per second for Llama 3.1 8B on an NVIDIA Hopper GPU. — Byung-Gon Chun
> [07:23](https://www.youtube.com/watch?v=zl6FizzYC4M&t=443s) Delivers greater than 2x throughput compared to alternative inference frameworks, halving operational costs. — Byung-Gon Chun
> [11:34](https://www.youtube.com/watch?v=zl6FizzYC4M&t=694s) A dedicated agentic orchestration layer positioned directly above the model inference engine. — Byung-Gon Chun
> [13:03](https://www.youtube.com/watch?v=zl6FizzYC4M&t=783s) Deployed their proprietary LG EXAONE 3.0/3.1 foundation model (a 32-billion-parameter custom architecture rivaling frontier models like Anthropic's Claude 3.5 Sonnet / Claude Opus) to production in under 24 hours. — Byung-Gon Chun
## Mentioned Byung-Gon Chun, FriendliAI, Friendli Inference, Friendli Endpoints, Friendli Serverless API, Friendli Container, Friendli Agent, Orca, OSDI 2022, Llama, Llama 3.1 8B, Llama 3.3 70B, DeepSeek, Qwen, Flux.1-dev, LG Electronics, EXAONE 3.0/3.1, Twelve Labs, Claude 3.5 Sonnet, Claude Opus, Hugging Face, Weights & Biases, NVIDIA Hopper, Amazon EKS
## Video description Byung-Gon Chun, CEO, FriendliAI
Abstracts
As generative AI evolves into more complex, agentic systems, inference has become the key bottleneck. These systems require dynamic interactions, tool use, memory handling, and coordination across multiple models—placing new demands on infrastructure.
Friendli Suite eliminates this complexity and empowers teams to define, deploy, and operate AI agents tailored to their business needs. With scalable, high-performance endpoints, organizations can move faster from idea to production without building custom backend infrastructure. This enables shorter development cycles, reduced engineering overhead, and a robust foundation for delivering and scaling intelligent agents in production environments.
[Source](https://www.youtube.com/watch?v=zl6FizzYC4M)