We are using end of turn and other packages versio...
# ask-ai
c
We are using end of turn and other packages version 1.2.18, and after a random deployment, without any significant changes we get the following error: 2025-11-24T204230.04527389Z stdout F {“message”: “error initializing inference runner\nTraceback (most recent call last):\n File \“/opt/venv/lib/python3.11/site-packages/livekit/agents/ipc/inference_proc_lazy_main.py\“, line 82, in initialize\n runner.initialize()\n File \“/opt/venv/lib/python3.11/site-packages/livekit/plugins/turn_detector/base.py\“, line 127, in initialize\n raise RuntimeError(\nRuntimeError: livekit-plugins-turn-detector initialization failed. Could not find model livekit/turn-detector with revision v0.4.0-intl.“, “level”: “ERROR”, “name”: “livekit.agents”, “runner”: “lk_end_of_utterance_multilingual”, “pid”: 26, “inference”: true, “timestamp”: “2025-11-24T204230.038139+00:00"} 2025-11-24T204229.620361868Z stdout F {“message”: “Could not find model livekit/turn-detector with revision v0.4.0-intl. Make sure you have downloaded the model before running the agent. Use
python3 your_agent.py download-files
to download the models.“, “level”: “ERROR”, “name”: “livekit.plugins.turn_detector”, “pid”: 26, “inference”: true, “timestamp”: “2025-11-24T204229.618863+00:00"} Could this indicate an issue with huggingface?
t
Thanks for reaching out, Vahid. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're seeing the error because the turn-detector model files are missing locally at startup — not because of a Hugging Face outage. What the logs show • The plugin expects model
livekit/turn-detector
at revision
v0.4.0-intl
and could not find the local files. • The plugin requires pre-downloaded model weights for offline inference; it does not fetch them automatically at runtime. What to do next 1. Run the model download step on your deployment host or in your build process:
Copy code
python3 your_agent.py download-files
1. Ensure the downloaded model directory (the turn-detector files) is included in your deployment artifact or container image. Common ways: ◦ Run
download-files
during your Docker build (COPY then RUN). ◦ Persist the model directory to shared/persistent storage used by your containers. 1. Add a startup/health check that verifies the model directory exists before initializing the inference runner. 2. If you use CI/CD, add the download step to the pipeline so new deployments don’t start from a clean environment without the models. Why this isn’t a Hugging Face outage • The model is hosted on Hugging Face, but the error specifically indicates missing local files. If Hugging Face were unreachable during a download attempt, you would see a network/download failure rather than “Could not find model …” at initialization. If you’d like, tell me: • How you deploy (Docker image, Kubernetes, VM), and • Whether you currently run
download-files
in your build pipeline— and I’ll suggest the exact placement/commands to make the model persistent in your deployment. Sources: LiveKit turn detector plugin | LiveKit docs | Voice AI quickstart | LiveKit docs