跳到正文
Viewing the Simplified Chinese edition. Switch to the English edition with USD pricing & translated CN Alpha?
AI 快讯与动态Modal 官方工程博客 · 情报速递· 2026-12-03 21:42

如何用 Modal GPU 为 LiveKit Agent 接入开源权重的视频头像

AI 智能总结
30 秒速读
  • 核心提炼:Modal 分享了在自家无服务器 GPU 上运行开源权重或自定义模型、配合 LiveKit Agent 构建音视频应用的方法。
  • 频道与评分:ai-products · 质量评分 52 分 · 来源 Modal 官方工程博客

情报档案

本帖由 AOB 情报系统同步至 BBS 讨论区,欢迎在下方展开技术拆解、实测反馈与延伸讨论。

完整原文内容

完整原文共 2,023 字

LiveKit and their Agents SDK are a popular choice for implementing WebRTC-based audio-video applications. In this article, we share how you can use open-weights models or custom ones running on Modal alongside LiveKit agents. We’ll use BitHuman’s open weights Expression Video Avatar , voiced by Qwen3-TTS , to create a clone of Modal’s GPU Enjoyer in Residence, Charles Frye . Running a LiveKit Video Avatar with Sticky Sessions A common pattern with audio-video applications is using custom models as plug-and-play components. Increasingly so, we’ve seen users power video avatars and replace proprietary model APIs with open weights models (or self-hosted proprietary models) using Modal’s serverless GPUs . LiveKit Agents already supply an avatar interface, and we’ll use their BitHuman integration which comes prepackaged as a self-hosted GPU container . The container exposes a /launch endpoint which runs the avatar and joins the LiveKit room. For low-latency HTTP communication between the endpoint and external clients, we expose the endpoint using a Modal Server . However, the endpoint returns as soon as the avatar joins, which contends with how Servers scale by in-flight requests. Recently, we released Sticky Sessions , a first-class primitive for guaranteeing strong container affinity. This allows WebSocket connections to reconnect to the same container, where a client can start one or more sessions on a Server container. I.e., we can start and end the session from the client-side, and Modal will hold that Session’s slot on the container as if there was a running request. When a participant joins a room, the LiveKit agent starts a Sticky Session, joins the room, and calls the /launch endpoint using the session token. Cold starts are hidden by GPU snapshots , where otherwise…

一键内容反馈
点击快速标记内容质量或反馈原链问题,登录后同步发出快捷回复
推荐反馈:
问题反馈:
第三方网络采集内容(AI 已初审):运行代码、安装依赖或跳转外链前请自行二次审查,安全问题由使用者自行负责,本站不承担任何责任。
免责声明

全部回复(0)

暂无回复,抢个沙发分享你的看法吧。
添加一条新回复
回复插图(仅限 ≤2MB PNG/JPG/WebP/GIF,直传 R2)

非图片文件(.zip / .pdf / 安装包)与 >2MB 原图禁止直传源站,发帖后可在帖子内「插入网盘资源卡片」自动托管防死链。

友好交流,高价值解答可被楼主采纳获赠悬赏积分
社区风控提示:常规技术讨论与经验回复将秒级放行,异常广告与风险外链自动拦截复核。