ewfian / faiss-node

Node.js bindings for faiss
https://www.npmjs.com/package/faiss-node
MIT License
107 stars 10 forks source link

[AWS]Any chance of an arm64 build of the Node.js layer #36

Closed dmb0058 closed 1 year ago

dmb0058 commented 1 year ago

Hi,

Just wondering if an arm64 build could be available as well as the x86_64 one?

I'd like to keep the runtime costs down, and arm64 is cheap :)

Thanks,

David

ewfian commented 1 year ago

We do have arm64 pre-builds

image
ewfian commented 1 year ago

Sorry, it just occurred to me that I might have misunderstood you, you actually wanted arm64 build for AWS?

dmb0058 commented 1 year ago

Hi,

Sorry, yes, for AWS. I should have been clearer :)

David

On 29 Aug 2023, at 17:12, Fan @.***> wrote:

Sorry, it just occurred to me that I might have misunderstood you, you actually wanted arm64 build for AWS?

— Reply to this email directly, view it on GitHub https://github.com/ewfian/faiss-node/issues/36#issuecomment-1697755708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDXCQOCMLBMRNBYZHDTR4DXXYIGBANCNFSM6AAAAAA4DEOM54. You are receiving this because you authored the thread.

dmb0058 commented 1 year ago

In case it helps anyone, when I attached the faiss x86_64 layer to a lambda built for the arm64 architecture I got a rather strange error message. Re-building the lambda as x86_64 fixed the problem and it all worked

Could not import faiss-node. Please install faiss-node as a dependency with, e.g. npm install -S faiss-node.

/opt/nodejs/node_modules/faiss-node/build/Release/faiss-node.node: cannot open shared object file: No such file or directory

On 29 Aug 2023, at 17:52, David Byrne @.***> wrote:

Hi,

Sorry, yes, for AWS. I should have been clearer :)

David

On 29 Aug 2023, at 17:12, Fan @.***> wrote:

Sorry, it just occurred to me that I might have misunderstood you, you actually wanted arm64 build for AWS?

— Reply to this email directly, view it on GitHub https://github.com/ewfian/faiss-node/issues/36#issuecomment-1697755708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDXCQOCMLBMRNBYZHDTR4DXXYIGBANCNFSM6AAAAAA4DEOM54. You are receiving this because you authored the thread.