Skip to content
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

[BUG]: Non AVX CPU core dumps. #1470

Closed
Dozer316 opened this issue May 21, 2024 · 1 comment
Closed

[BUG]: Non AVX CPU core dumps. #1470

Dozer316 opened this issue May 21, 2024 · 1 comment
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.

Comments

@Dozer316
Copy link

How are you running AnythingLLM?

Docker (local)

What happened?

Hi there,

The latest docker pull for anythingllm on a CPU with AVX (No AVX2) seems to result in a core dump when a search is performed after which the container shuts down. Running the same built image on a CPU with AVX2 support doesn't exhibit the same behaviour.
llm-1

I'm not sure which part of the stack is core dumping but the container logs shows.
[NativeEmbedder] Initialized
[NativeEmbedder] Initialized
[Event Logged] - update_embedding_engine
/usr/local/bin/docker-entrypoint.sh: line 7: 107 Illegal instruction (core dumped) node /app/server/index.js

If something is being compiled with the AVX2 flag enabled, would it be possible to provide a workaround for this on older CPUs with AVX support only?

Cheers.

Are there known steps to reproduce?

No response

@Dozer316 Dozer316 added the possible bug Bug was reported but is not confirmed or is unable to be replicated. label May 21, 2024
@timothycarambat
Copy link
Member

This is related to #1331 (comment)

In fact, you just confirmed that hypothesis. The issue is that the underlying libraries do not support running ONNX on AVX arch CPUs. If you swap to another embedder model then you will not have this issue as you will not attempt to run anything via the ONNX runtime, which apparently does not support AVX?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.
Projects
None yet
Development

No branches or pull requests

2 participants