-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Macosx M1 not supported? #1164
Comments
RAGFlow is supposed to support Aarch64 machine. We only built and uploaded x86 docker image. For ARM machine such as MAC m1, you need to use https://github.com/infiniflow/ragflow/blob/main/Dockerfile.arm to compile RAGFlow docker image. |
The RAGFlow image still produces an error even with requirments_arm.txt and Dockerfile.arm being used on Apple M2 chip |
Agree. When you use this in order to build arm image: you always get similiar errors:
and since changing requirements.txt causes Docker not using cache it takes almost forever to fix it. I gave up. Could you fix arm reqs, please? |
Remove version information |
For which package(s)? Every time I change requirements Docker not using cache it takes almost forever to fix it. I gave up. |
My best practice is that ignore the version conflicts and build the image anyway. Then, start the container go into it, pip install all the 'module not found can't resolve'. At last, docker commit. |
会出现两次版本冲突,运行的时候也会出现两次缺少包,建议忽略版本冲突构建,这是我修改后的 nvidia-cublas-cu12==12.1.3.1nvidia-cuda-cupti-cu12==12.1.105nvidia-cuda-nvrtc-cu12==12.1.105nvidia-cuda-runtime-cu12==12.1.105nvidia-cudnn-cu12==8.9.2.26nvidia-cufft-cu12==11.0.2.54nvidia-curand-cu12==10.3.2.106nvidia-cusolver-cu12==11.4.5.107nvidia-cusparse-cu12==12.1.0.106nvidia-nccl-cu12==2.19.3nvidia-nvjitlink-cu12==12.3.101nvidia-nvtx-cu12==12.1.105ollama==0.1.9 onnxruntime-gpu==1.17.1openai==1.12.0 triton==2.2.0typing_extensions==4.10.0 |
### What problem does this PR solve? #1164 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
I have updated the |
@aopstudio thanks! That worked, I was able to build on Mac M1 MAX:
But in the dashboard I get sometimes: And on completion I get some sentences cut every time. I am using llama3: Everythin up and running, no error logs in other containers: Thanks for the support! |
|
|
which branch? |
|
@MI-Class I think you should remove install==1.3.5 from the requirements_arm.txt as it is not an actual python package. otherwise, people will run into: 31.00 ERROR: No matching distribution found for install |
Thank you for showing the success, may I wonder if you can share the Dockerfile and the requirements.tx? In particular, the Dockerfile may use apt-get, which is not available, while I tried to manually install all dependencies, but still facing many conflicts. Is is possible to share a workable Mac configs? many thanks! |
I was able to build the Docker on my M3 MacBook just by changing the arch name in the Dockerfile. I changed the amd64 to arm64 and then built it using the embedded model version of ragflow:dev
Might not be the smartest or cleanest fix but everything is built perfectly and runs fine so far. I'll delete this if it ends up ruining anything so no one else gets swayed |
you can try to add arm64v8/ prefix for M1 mysql docker image name. then pull it. may it works. |
…flow#1177) ### What problem does this PR solve? infiniflow#1164 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
Describe your problem
Container ragflow-es-01 [+] Running 6/6 Healthy10.8s
✔ Container ragflow-mysql Healthy10.8s
✔ Container ragflow-redis Running0.0s s
✔ Container ragflow-es-01 Healthy10.8s
✔ Container ragflow-minio Running0.0s
✔ Container ragflow-server Started11.0s
! ragflow The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
any idea ? thanks a lot.
The text was updated successfully, but these errors were encountered: