-
Notifications
You must be signed in to change notification settings - Fork 526
Building llava cpp runner fails #8881
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
Comments
Thanks @spalatinate for reporting it! Have you tried |
Hi @spalatinate it looks like you need to install libgfortran based on this log:
Try the following
|
@iseeyuan Yeah, I tried multiple times
I think @larryliu0820 solution sounds good. I will try it and will give asap feedback. Thank you! Much appreciated. |
@larryliu0820 I tried your approach. Unfortunately, the error remains the same. I also tried As an alternative, I tried to build the llava runner on a VM on Azure ML. However, here the compilation gets stuck when creating the microkernels and I have to reboot the machine. Can you build the runner or is it just my set-up? I am strictly following the installation guidelines. |
I found a potential root cause. I assume there is broken rpath in the ARM64 build of PyTorch (found similar issues, see below), which makes sense because the error remains although libgfortran5 is installed. But I am not sure how to fix it. Sources: |
For a quick hack, can you do
and then run the installation again? |
@larryliu0820 Thanks for your response. So I tried the following: I found libgfortran binaries in:
Hence, I tried:
Unfortunately, the error message stays the same. In the error message it says libgfortran-4435c6db.so.5.0.0, needed by ... Is 4435c6db a hash? Thank you for your support!! |
Can you alias your Just do a |
@larryliu0820: It worked! Thanks for the hint though.Wasn't sure why this hash was attached to the file name. |
Great! closing feel free to open a new one if there's anything else |
🐛 Describe the bug
I am trying to reproduce the llava example on an Raspberry Pi5. As a preliminary, I have exported the pte file already. Hence, the only objective is to build the llava cpp runner locally using ci/scripts/test_llava.sh. Unfortunately, I am running into the following error when executing .ci/scripts/test_llava.sh.
Versions
Collecting environment information...
PyTorch version: 2.7.0.dev20250131+cpu
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: Debian GNU/Linux 12 (bookworm) (aarch64)
GCC version: (Debian 12.2.0-14) 12.2.0
Clang version: 14.0.6
CMake version: version 3.31.6
Libc version: glibc-2.36
Python version: 3.10.0 (default, Mar 3 2022, 09:51:40) [GCC 10.2.0] (64-bit runtime)
Python platform: Linux-6.6.74+rpt-rpi-v8-aarch64-with-glibc2.36
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: ARM
Model name: Cortex-A76
Model: 1
Thread(s) per core: 1
Core(s) per cluster: 4
Socket(s): -
Cluster(s): 1
Stepping: r4p1
CPU(s) scaling MHz: 100%
CPU max MHz: 2400,0000
CPU min MHz: 1500,0000
BogoMIPS: 108,00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
L1d cache: 256 KiB (4 instances)
L1i cache: 256 KiB (4 instances)
L2 cache: 2 MiB (4 instances)
L3 cache: 2 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-3
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Mitigation; CSV2, BHB
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Versions of relevant libraries:
[pip3] executorch==0.6.0a0+542480c
[pip3] numpy==2.2.3
[pip3] torch==2.7.0.dev20250131+cpu
[pip3] torchao==0.10.0+git7d879462
[pip3] torchaudio==2.6.0.dev20250131
[pip3] torchgen==0.0.1
[pip3] torchsr==1.0.4
[pip3] torchvision==0.22.0.dev20250131
[conda] executorch 0.6.0a0+542480c pypi_0 pypi
[conda] numpy 2.2.3 pypi_0 pypi
[conda] torch 2.7.0.dev20250131+cpu pypi_0 pypi
[conda] torchao 0.10.0+git7d879462 pypi_0 pypi
[conda] torchaudio 2.6.0.dev20250131 pypi_0 pypi
[conda] torchgen 0.0.1 pypi_0 pypi
[conda] torchsr 1.0.4 pypi_0 pypi
[conda] torchvision 0.22.0.dev20250131 pypi_0 pypi
cc @larryliu0820 @lucylq @mergennachin @cccclai @helunwencser @jackzhxng
The text was updated successfully, but these errors were encountered: