-
Notifications
You must be signed in to change notification settings - Fork 70
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
Cannot install lantern dependencies on aarm64 architecture #1182
Comments
This is unfortunatelly not a simple task as LibTorch doesn't provide pre-built binaries for aarch64 systems, so you will need to first:
Sorry for the inconvenience about this :( |
Thank you for such a rapid response! Do you mean to point to the correct python installation? Or do I need to refer to the version of R torch package? The container is running 3.10 python version. So do I build the binaries using cmake as in the instructions you provided and then set BUILD_LANTERN=1 and run install.packages("torch", type="source')? And that should be it effectively? |
Sorry, I meant pointing to the correct LibTorch version (currently it's 2.0.1), when building LibTorch from source: torch/src/lantern/CMakeLists.txt Line 4 in fe5020f
|
Wouldn't the version be decided by the branch name I provide when cloning the pytorch repository? In this case it would be the latest ~2.4, should I set the branch to v2.0.1 instead? |
Yes, you have to clone from the tag v2.0.1 in order to get the correct LibTorch version. |
Unfortunately I'm getting this error when building the sources:
I tried using this to fix these errors, https://github.com/shanemcandrewai/pytorch-setup?tab=readme-ov-file, but it's not compatible with 2.0.1 Also, when I tried cloning from the main branch I didn't get these errors and I managed to run all of the steps successfully... It's when I tried to downgrad it stopped working Torch 2.0.1 is compatible with python3.10, so I'm unsure what's wrong. Edit: Somehow managed to build the sources using the pytorch-setup CMakeFile.txt in the link above, but now I get this output (but I'm guessing this is because removing that stuff before doesn't really fix anything):
|
Hello, whenever I try to install and use torch, it says that I don't have certain dependencies installed (lantern).
I went through all documentation and I still don't get how I can achieve that manually.
When I try to get the physical files for manual installation, I get an error that my architecture is unsupported. I'm running a rocker/rstudio docker container on an M1 Mac computer.
What I tried:
get_install_libs_url()
doesn't work on my architectureWhen trying to run
torch::install_torch()
orget_install_libs_url
I get the following error:! Architecture "aarch64" is not supported in this OS.
I looked at the code, is this issue due to me running this in a docker container?
My architecture is aarch64, but the "OS" in the container is ubuntu. How can I work around this?
Maybe someone could point me to how I can download the actual lantern lib or something? I will set the env variables for torch and lantern urls and maybe then it will get installed? I am starting to go crazy over this
The text was updated successfully, but these errors were encountered: