---
title: "Augment Your LiveKit Agent with Modal GPUs"
description: "LiveKit agents can offload custom or open-weights models to Modal serverless GPUs, demonstrated with a BitHuman Expression video avatar voiced by Qwen3-TTS."
url: "https://swe.quest/articles/augment-your-livekit-agent-with-modal-gpus-7c537d7efe5221b2"
canonical: "https://modal.com/blog/livekit-modal"
source: "Modal"
published: "2026-10-15"
difficulty: "medium"
kind: "How-to"
reading_minutes: 2
tags: ["serverless","realtime","inference","speech-audio","video-media"]
---

# Augment Your LiveKit Agent with Modal GPUs

A post on [Modal](https://swe.quest/sources/modal.md), published 2026-10-15, 2 min read, How-to. Original: [https://modal.com/blog/livekit-modal](https://modal.com/blog/livekit-modal)

## Summary

LiveKit agents can offload custom or open-weights models to Modal serverless GPUs, demonstrated with a BitHuman Expression video avatar voiced by Qwen3-TTS. The BitHuman container's /launch endpoint returns as soon as the avatar joins the room, which conflicts with Modal Servers scaling on in-flight requests. Modal's Sticky Sessions solve this by letting the agent open a session before calling /launch and close it when the call ends, holding the container slot for the session's duration. GPU snapshots hide cold starts that would otherwise require reloading gigabytes of model weights.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)
- [Video & media](https://swe.quest/tags/video-media.md) (Domains)

## Prerequisites

- WebRTC basics ([easy posts on Communications](https://swe.quest/tags/communications.md?difficulty=easy))
- serverless GPU containers ([easy posts on Serverless](https://swe.quest/tags/serverless.md?difficulty=easy))

## Keywords

LiveKit Agents, Modal, Sticky Sessions, BitHuman, Qwen3-TTS, WebRTC, GPU snapshots

## Related posts

- [GPU Memory Snapshots: Supercharging sub-second startup](https://swe.quest/articles/gpu-memory-snapshots-supercharging-sub-second-startup-14c07f765f85f384.md): Modal · 2025-07-30 · Medium · 6 min read · Serverless, Inference & serving, Hardware, Performance engineering
  Modal's GPU memory snapshots extend its gVisor-based checkpoint/restore to capture GPU state, using NVIDIA's new CUDA checkpoint API (driver branches 570/575) to lock CUDA processes, copy device memory, kernels, streams, contexts and memory mappings to host memory, then snapshot CPU and GPU state together.
- [Real-time inference for robots at Physical Intelligence](https://swe.quest/articles/real-time-inference-for-robots-at-physical-intelligence-e3fe41515a87309d.md): Modal · 2026-04-08 · Medium · 3 min read · Inference & serving, Networking, Hardware, Cloud platforms
  Physical Intelligence runs closed-loop inference for its Visual-Language-Action robot models on Modal GPUs instead of on-board GPUs, adding only about 10-15 ms of network overhead.
- [How Doppel eliminated ML infrastructure tax with Modal](https://swe.quest/articles/how-doppel-eliminated-ml-infrastructure-tax-with-modal-6cfb61f19c711d02.md): Modal · 2026-03-25 · Medium · 5 min read · ML platforms, Serverless, Inference & serving, Model training, Threat detection
  Doppel, which builds ML models to detect social engineering attacks, moved much of its training and inference from sequential experiments and GCP Cloud Run to Modal.
- [How we achieved truly serverless GPUs](https://swe.quest/articles/how-we-achieved-truly-serverless-gpus-d82b0620ff18c95f.md): Modal · 2026-05-12 · Medium · 23 min read · Serverless, Inference & serving, Containers, Storage systems, Capacity planning
  Modal cuts GPU inference replica cold starts from roughly 2,000 seconds to about 50 seconds, a 40x speedup, by attacking each stage of spin-up.
- [Serverless routing made sticky](https://swe.quest/articles/serverless-routing-made-sticky-bebd537ed004d584.md): Modal · 2026-10-20 · Medium · 5 min read · Serverless, Load balancing, System design, Real-time systems, Capacity planning
  Modal's Sticky Sessions pin every request in a session to the same serverless container, which suits stateful workloads like streaming speech-to-text, voice agents, shared rooms and multiplayer games without resorting to max\_containers=1.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
