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

Apple M系列 docker 运行出错 #7

Open
lslzl3000 opened this issue Jul 27, 2023 · 4 comments
Open

Apple M系列 docker 运行出错 #7

lslzl3000 opened this issue Jul 27, 2023 · 4 comments

Comments

@lslzl3000
Copy link

lslzl3000 commented Jul 27, 2023

参考 https://soulteary.com/2023/07/23/build-llama2-chinese-large-model-that-can-run-on-cpu.html
使用 Apple M2, 用最后的 docker soulteary/llama2:runtime 运行 Chinese-Llama-2-7b-ggml-q4.bin

main: build = 0 (unknown)
main: seed  = 1690425690
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction

是不支持 m2? 需要基于 arm 架构重新构建一个 docker 镜像?

@lslzl3000 lslzl3000 changed the title docker 运行 Chinese-Llama-2-7b-ggml-q4.bin 出错 Apple M系列 docker 运行出错 Jul 27, 2023
@soulteary
Copy link
Owner

嗯,我正在写 M1/M2 的文章 & 准备一键包。

在使用标准化容器的路上,M1/M2 有非常多 trick 需要规避,原始路径不通的,性能比较值得期待的 MPS ,暂时也有问题,不过影响你贴的文章使用的路径。 @lslzl3000

@xyz-dev
Copy link

xyz-dev commented Jul 27, 2023

有Mac Intel cpu 运行Chinese-Llama-2-7b-ggml-q4.bin webui docker吗?

@soulteary
Copy link
Owner

有Mac Intel cpu 运行Chinese-Llama-2-7b-ggml-q4.bin webui docker吗?

intel 和 arm 镜像是兼容的,但是基本没法用,使用 intel 顶配 CPU 运行,目前效率极差...实在想 mac intel cpu 设备体验,试试 baby llama 或靠谱一些,走云服务..

@littleyanglovegithub
Copy link

遇到了同样的问题,请问有解决方案了么?🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants