You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any environment, as long as you the TGI container with user != 0.
Information
Docker
The CLI directly
Tasks
An officially supported command
My own modifications
Reproduction
Symptom
I cannot run the current TGI image with user different than root
docker run --platform linux/amd64 -it --user 1000 ghcr.io/huggingface/text-generation-inference:3.1.1
fails immediately with the following error message
unable to refresh ld cache, not a big deal in most cases
/usr/local/bin/text-generation-launcher: error while loading shared libraries: libpython3.11.so.1.0: cannot open shared object file: No such file or directory
Error analysis
The python library which cannot be found is installed in /root/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/
The directory /root/ is not readable for non-root users.
Same issue too with v3.2.3. Setting different env vars did not fix the issue. Building a custom docker image shouldn't be the solution as proposed in the linked issue . Any ideas?
System Info
Any environment, as long as you the TGI container with user != 0.
Information
Tasks
Reproduction
Symptom
I cannot run the current TGI image with user different than root
fails immediately with the following error message
Error analysis
/root/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/
/root/
is not readable for non-root users.uv
instead ofpoetry
. #2919 because release v3.0.1 still works.Expected behavior
I expect to be able to run TGI with non-root users, e.g. on Kubernetes. This was possible previously.
The text was updated successfully, but these errors were encountered: