Deployed my agent to the cloud with the turn detec...
# cloud
h
Deployed my agent to the cloud with the turn detect model, getting a error that the huggingface model isn’t available in cache.
r
You deployed to LiveKit Cloud and you are getting that error? What is your Agent ID?
h
Yes when I deploy it with the trun-detection, and monitor the logs with
lk agent logs
, I can see it throw a huggingface cache related error. Agent ID:
CA_KwvygUb7q5XX
image.png
Uncommenting it now, and deploying it again to share the exact error from the logs...
Copy code
{
  "message": "unhandled exception while running the job task\nTraceback (most recent call last):\n  File \"/app/.venv/lib/python3.11/site-packages/opentelemetry/util/_decorator.py\", line 71, in async_wrapper\n    return await func(*args, **kwargs)  # type: ignore\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/agents/ipc/job_proc_lazy_main.py\", line 240, in _traceable_entrypoint\n    await self._job_entrypoint_fnc(job_ctx)\n  File \"/app/src/agent.py\", line 103, in entrypoint\n    turn_detection=EnglishModel(),\n                   ^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/plugins/turn_detector/english.py\", line 26, in __init__\n    super().__init__(model_type=\"en\", unlikely_threshold=unlikely_threshold)\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/plugins/turn_detector/base.py\", line 166, in __init__\n    config_fname = _download_from_hf_hub(\n                   ^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/livekit/plugins/turn_detector/base.py\", line 28, in _download_from_hf_hub\n    local_path = hf_hub_download(repo_id=repo_id, filename=filename, **kwargs)\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py\", line 114, in _inner_fn\n    return fn(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/huggingface_hub/file_download.py\", line 1010, in hf_hub_download\n    return _hf_hub_download_to_cache_dir(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.11/site-packages/huggingface_hub/file_download.py\", line 1117, in _hf_hub_download_to_cache_dir\n    _raise_on_head_call_error(head_call_error, force_download, local_files_only)\n  File \"/app/.venv/lib/python3.11/site-packages/huggingface_hub/file_download.py\", line 1649, in _raise_on_head_call_error\n    raise LocalEntryNotFoundError(\nhuggingface_hub.errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False.",
  "level": "ERROR",
  "name": "livekit.agents",
  "pid": 136,
  "job_id": "AJ_5RdBvchqmcAE",
  "timestamp": "2025-09-03T14:43:13.837763+00:00"
}
r
Thanks for the extra info
What version of agents are you using? Is it possible you are running an older version?
h
Running on 1.2.8
r
Can I get your Dockerfile?
h
Dockerfile
r
Why is this line commented out?
RUN uv run src/agent.py download-files
h
This file is generated by the lk cli
Never touched it
Created this agent using the
lk create app
r
I just created an app and looked at the Dockerfile and it is not commented there. Maybe you used on old version of the CLI?
h
Maybe, but that did fix the issue. Thank you for the help!
👍🏼 1