-
Notifications
You must be signed in to change notification settings - Fork 6
"Failed to load NIF library" when running Docker container #8
Comments
Hey @jy-tan I did some troubleshooting, I was able to get this to work in Docker on my mac. The issue seemed related to building on ARM (do you happen to be using an M1 or other ARM machine? See also: facebookresearch/faiss#2335) Here's the Dockerfile I got to work (it can probably be cleaned up a bit):
Note the key differences here are:
This is based on instructions from here: https://github.com/facebookresearch/faiss/wiki/Installing-Faiss#compiling-faiss-on-arm After building I can go into iex and run:
If this fixes it, we can update the docs and README with deployment instructions. I can check on an x86 machine if this is still necessary |
Thanks @seanmor5 for looking into this! I'm unable to build the image this time though, here are the last few lines of the build logs:
(let me know if you would like the full log) I'm using Docker in an M1 Mac (with Virtualization framework).
|
My only guess is it's running out of memory during compilation? I think I have my Docker setup on the M1 to consume max memory available, maybe try going up in increments until you're at the max and see if it goes away? |
Overcame the memory issue by setting a low number of jobs ( Also wondering if you're missing the usage of I'm having issues compiling EXLA currently (besides that it's fine), I'll open a separate issue in Nx! |
I'm working on an app that uses exFaiss, running into issues with deployment. I can build the Docker image but when i try to run the container it dies immediately with:
Dockerfile:
Full error report
Greatly appreciate any help on this!
The text was updated successfully, but these errors were encountered: