(AVX and AVX2) or (AVX or AVX2)

I am buying a Microserver to use as a NAS and IMMICH server. So I checked the requirements to run IMMICH with Machine Learning, and the docs say that the CPU should support AVX and AVX2. But I also found someone saying that only AVX should work. I was wondering if maybe the requirement is an OR, not an AND. So, I tried to do some search, but I could not find the answer. My server CPU will be an Intel Xeon E3-1220L v2, and it supports only the AVX, so no AVX2. Will this CPU work with IMMICH Machine Learning? Ps. I know that there we can use the machine learning image that is built for Non-AVX CPU, but I just want to know the answer.
4 Replies
Alex Tran
Alex Tran3y ago
The official image needs the CPU with AVX to work, however there is a community image that support non-AVX CPU https://github.com/bertmelis/immich-machine-learning-no-avx
GitHub
GitHub - bertmelis/immich-machine-learning-no-avx
Contribute to bertmelis/immich-machine-learning-no-avx development by creating an account on GitHub.
james151
james151OP3y ago
Alex, I saw your comment on the chat, but another user did the same question, and it seems that no one answered. I was trying to confirm if a CPU with AVX without AVX2 will be enough to make the machine learning work. If the answer is YES, then IMMIC requirements documentation is wrong. The oficial IMMICH documenation says: "The TensorFlow version used by Immich doesn't run on older CPU architectures. It requires a CPU with AVX and AVX2 instruction sets. If you encounter the error illegal instruction core dump check your CPU flags with the command below and make sure you see avx and avx2:"
Alex Tran
Alex Tran3y ago
noted thank you. I think usually the CPU if it has AVX, it would come with AVX2
james151
james151OP3y ago
Nope, AVX is from 2008, and AVX2 is from 2013. As I mentioned, the CPU I would use only supports AVX (not AVX2). Of course, I know that newer CPUs can support both extensions. I hope that someone clarifies this doubt, as I saw in the discord there are others with the same doubt.

Did you find this page helpful?