[3.0.0] Cannot install on Jetson Orin Nano Super
LocalAI version: 3.0.0
Environment, CPU architecture, OS, and Version: nVidia Jetson Orin Nano Super (FW 36.0.4) OS: running Jetpack 6.2 Storage: MicroSD 64 gb (waiting for NVME)
Linux tomten-jetson 5.15.148-tegra #1 SMP PREEMPT Tue Jan 7 17:14:38 PST 2025 aarch64 aarch64 aarch64 GNU/Linux
Describe the bug This is a first time install since I got my Jetson Orion midweek. As in yesterday was my first ever try to install and use LocalAI. ! Please note that all commands are executed as sudo
On the website there is a start script refered to as a "Basic Installation"
curl https://localai.io/install.sh | USE_AIO=true sh
Running this ends up with docker claming there is no "matching manifest for linux/arm64/v8"
docker: no matching manifest for linux/arm64/v8 in the manifest list entries localai/localai:v3.0.0-aio-gpu-nvidia-cuda-12
Instead following the release page instruction; https://github.com/mudler/LocalAI/releases/tag/v3.0.0
Under the title; NVIDIA GPU Images there is a onelinger given with the same GPU as the script tried to download. Running this command;
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-aio-gpu-nvidia-cuda-12
Gets me another error;
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running prestart hook #0: exit status 1, stdout: , stderr: Auto-detected mode as 'csv' invoking the NVIDIA Container Runtime Hook directly (e.g. specifying the docker --gpus flag) is not supported. Please use the NVIDIA Container Runtime (e.g. specify the --runtime=nvidia flag) instead.: unknown
Then replacing GPU and adding runtime I run below command;
docker run -ti --name local-ai -p 8080:8080 --runtime=nvidia localai/localai:latest-gpu-nvidia-cuda-12
I get a platform error;
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested exec /build/entrypoint.sh: exec format error
To Reproduce Since I havent been able to install Local-AI I presume this is either a Jetson Orin Nano Super fault OR a Jetpack 6.2 fault-
Expected behavior Runnig the original Basic Installation script should have been able to determin the correct environment, iamge and setup.
curl https://localai.io/install.sh | USE_AIO=true sh
Logs Not sure which log to use as I get all errors in terminal.
Additional context I got errors about IPtables which seemed to be related to the Jetpack OS where I had to follow this forumpost: https://forums.developer.nvidia.com/t/docker-compose-unable-to-enable-direct-access-filtering-on-jetson-orin-nano-super/328223 This means that docker is now freshly reinstalled on this machine and the direct access works.
This might be a bogus report since what I experience is probably connected to using nVidias own Jetpack 6.2 OS which is bloated to max and has some odd modifications.
I was referred to; https://localai.io/basics/getting_started/#nvidia-gpu-images While the NVIDIA Jetson (L4T) ARM64 command did not work a modified command did. Adding --runtime=nvidia works.
Using below command works, BUT since the OS is modified I could not access it. My solution will prob be to reinstall with a clean Ubuntu Server OS
docker run -ti --name local-ai -p 8080:8080 --runtime=nvidia --gpus all localai/localai:latest-nvidia-l4t-arm64