I just started getting this error even though I ha...
# ask-ai
e
I just started getting this error even though I have downloaded all the files needed for the app to work using the python script
Copy code
Could not find file "model_q8.onnx". Make sure you have downloaded the model before running the agent. Use `python3 your_agent.py download-files` to download the model.
error initializing inference runner
Traceback (most recent call last):
  File "/Users/brianmwangi/projects/backend/demo/livekit-core/backend/.venv/lib/python3.11/site-packages/livekit/agents/ipc/inference_proc_lazy_main.py", line 64, in initialize
    runner.initialize()
  File "/Users/brianmwangi/projects/backend/demo/livekit-core/backend/.venv/lib/python3.11/site-packages/livekit/plugins/turn_detector/base.py", line 117, in initialize
    local_path_onnx = _download_from_hf_hub(
                      ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/brianmwangi/projects/backend/demo/livekit-core/backend/.venv/lib/python3.11/site-packages/livekit/plugins/turn_detector/base.py", line 40, in _download_from_hf_hub
    raise RuntimeError(
RuntimeError: livekit-plugin
t
Thanks for reaching out, Brian. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I see you're getting the "Could not find file 'model_q8.onnx'" error even after running the Python download command. Let's get this fixed. To troubleshoot, please try these steps in order and tell me which step fails or what output you see: 1. Re-run the download command from your agent entrypoint: ◦ If you run the Python agent directly:
Copy code
python3 your_agent.py download-files
• If your project uses the UV/uvicorn entrypoint:
Copy code
uv run agent.py download-files
1. Confirm the turn detector plugin is installed:
Copy code
uv add "livekit-agents[turn-detector]~=1.2"
Then re-run the download command. 1. Watch the download output for errors (network, permission, or 403/404). If you see any network errors, check that your machine can reach huggingface.co. 2. Verify the model file exists where the agent expects it. Search your project for `model_q8.onnx`:
Copy code
find . -name "model_q8.onnx"
If it’s not found, the download did not complete or placed it in a different cache location. 1. If the file is present but the agent still errors, clear the agent cache (remove the plugin’s cache directory) and re-run the download command. Please run steps 1–4 and share: • The exact command you used to download, • Any errors printed during download, • Output of
find . -name "model_q8.onnx"
. I’ll use that info to recommend the next step. Sources: LiveKit turn detector plugin | LiveKit docs