steep-balloon-41261
11/05/2025, 12:15 PMtall-airline-16756
11/05/2025, 12:15 PMtall-airline-16756
11/05/2025, 12:16 PM.imx into your image during build so it’s on disk at runtime. Example pattern: add a “download files” step in your Docker build, then reference it via BITHUMAN_MODEL_PATH so the plugin loads locally instead of fetching on first use. Guide
• Prewarm the worker: Use the agent worker’s prewarm to load the avatar/model into memory once per process and keep a few idle processes ready via num_idle_processes. Worker options
• Avoid heavy local models when possible: Use a avatar_id or avatar_image with BitHuman to skip large local loads. bitHuman integration
• Keep instances warm: Disable scale-to-zero or maintain a small pool of warm agents to bypass platform cold starts. Deployment tips
If helpful, I can share:
• A Dockerfile snippet to pre-download the model
• A prewarm code example that caches the model and sets num_idle_processes Sources: Virtual avatar plugins | LiveKit Docs | Agent Deployment & Docker Configuration | livekit/livekit_composite | DeepW... | Worker options | LiveKit Docs | Node.js Agents Architecture | livekit/livekit_composite | DeepWiki | Deploying to production | LiveKit Docsfancy-planet-81885
11/05/2025, 12:18 PMtall-airline-16756
11/05/2025, 12:19 PMWorkerOptions.prewarm to load the BitHuman resources once per process and stash them in proc.userData, so the first job is fast. Pair this with num_idle_processes to keep a small pool ready. See worker options.
• Use BitHuman without heavy local models: Prefer avatar_id or avatar_image so the provider uses an existing cloud avatar instead of loading a large .imx. See BitHuman plugin.
• Keep instances warm: Avoid scale-to-zero and keep a minimal number of agents running to skip platform cold starts. See deployment tips.
Would you like a short prewarm code sample (showing proc.userData usage) or guidance on choosing between avatar_id vs avatar_image for your flow?fancy-planet-81885
11/05/2025, 12:19 PMtall-airline-16756
11/05/2025, 12:20 PM