Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text chat container example returns No module named local_llm.chat.__main__ #461

Open
GJSea opened this issue Apr 3, 2024 · 0 comments
Open

Comments

@GJSea
Copy link

GJSea commented Apr 3, 2024

I'm trying to run the first Text Chat example using the published command line, the container seemed to have properly downloaded and built, but returning "No module named local_llm.chat.main; 'local_llm.chat' is a package and cannot be directly executed"

I'm getting the same also with the MultiModal chat example

Any idea?

Thanks!

./run.sh --env HUGGINGFACE_TOKEN= $(./autotag local_llm) python3 -m local_llm.chat --api=mlc --model=meta-llama/Llama-2-7b-chat-hf

_Namespace(disable=[''], output='/tmp/autotag', packages=['local_llm'], prefer=['local', 'registry', 'build'], quiet=False, user='dustynv', verbose=False)
-- L4T_VERSION=35.2.1 JETPACK_VERSION=5.1 CUDA_VERSION=11.4
-- Finding compatible container image for ['local_llm']
dustynv/local_llm:r35.3.1
localuser:root being added to access control list

  • sudo docker run --runtime nvidia -it --rm --network host --volume /tmp/argus_socket:/tmp/argus_socket --volume /etc/enctune.conf:/etc/enctune.conf --volume /etc/nv_tegra_release:/etc/nv_tegra_release --volume /tmp/nv_jetson_model:/tmp/nv_jetson_model --volume /var/run/dbus:/var/run/dbus --volume /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket --volume /var/run/docker.sock:/var/run/docker.sock --volume /home/nvidia/jetson/jetson-containers-dev/data:/data --device /dev/snd --device /dev/bus/usb -e DISPLAY=:1 -v /tmp/.X11-unix/:/tmp/.X11-unix -v /tmp/.docker.xauth:/tmp/.docker.xauth -e XAUTHORITY=/tmp/.docker.xauth --env HUGGINGFACE_TOKEN= dustynv/local_llm:r35.3.1 python3 -m local_llm.chat --api=mlc --model=meta-llama/Llama-2-7b-chat-hf
    /usr/bin/python3: No module named local_llm.chat.main; 'local_llm.chat' is a package and cannot be directly executed_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant