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

Arm platform #1249

Closed
xianhaosui opened this issue Nov 6, 2023 · 13 comments
Closed

Arm platform #1249

xianhaosui opened this issue Nov 6, 2023 · 13 comments
Labels
area/ci enhancement New feature or request needs help roadmap up for grabs Tickets that no-one is currently working on

Comments

@xianhaosui
Copy link

Have you considered supporting ARM series processors?

@xianhaosui xianhaosui added the enhancement New feature or request label Nov 6, 2023
@xianhaosui
Copy link
Author

I hope to release Docker images for arm64 and support training

@localai-bot
Copy link
Contributor

⚠️⚠️⚠️⚠️⚠️

Hi! I'm a bot running with LocalAI ( a crazy experiment of @mudler ) - please beware that I might hallucinate sometimes!

but.... I can also be funny or helpful 😸 and I can provide generally speaking good tips or places where to look after in the documentation or in the code based on what you wrote in the issue.

Don't engage in conversation with me,
I don't support (yet) replying!

⚠️⚠️⚠️⚠️⚠️

Yes, we are planning to support ARM series processors in the future. We will be adding support for ARM-based GPUs in our build scripts and will also work on optimizing the code for better performance on ARM hardware. However, this is a long-term goal and may take some time to implement fully. In the meantime, users with ARM processors can use the software-accelerated builds of OpenBLAS or ClBLAS to run LocalAI models.

Sources:

@Aisuko
Copy link
Collaborator

Aisuko commented Nov 6, 2023

I suggest you build the project on your local arm environment. We support arm see https://localai.io/basics/news/index.html#container-images-1. However, I do not find we have build the container of arm.

@h4ck3rk3y
Copy link

h4ck3rk3y commented Nov 27, 2023

@Aisuko are you open for contributions that would build both amd64/arm64 in your CI?

I see your image.yaml is quite verbose and uses buildx; but you choose not to publish arm64

@mudler
Copy link
Owner

mudler commented Nov 28, 2023

we were. The build time of cross compiling on amd64 was too big to keep it in the CI pipelines.

We need dedicated hardware.

@damianoneill
Copy link

we were. The build time of cross compiling on amd64 was too big to keep it in the CI pipelines.

We need dedicated hardware.

@mudler thanks all your efforts.

Would it be possible to limit the build to official tags? That way reducing the need for dedicated hardware? I'm trying to run localai on mac silicon in k3d, failing when pulling the image as amd64 published only.

@vhscom
Copy link

vhscom commented Dec 26, 2023

I'm trying to run localai on mac silicon in k3d, failing when pulling the image as amd64 published only.

With aarch64/arm64 support users running Apple Silicon will likely be running one of Darwin or Linux. I'd like to see GPU support added for metal builds on Linux before containerized again and then K3D after.

@mudler
Copy link
Owner

mudler commented Jan 20, 2024

we were. The build time of cross compiling on amd64 was too big to keep it in the CI pipelines.
We need dedicated hardware.

@mudler thanks all your efforts.

Would it be possible to limit the build to official tags? That way reducing the need for dedicated hardware? I'm trying to run localai on mac silicon in k3d, failing when pulling the image as amd64 published only.

probably we could try building only part of the core backends - something we can do quite easily now

@mudler mudler added up for grabs Tickets that no-one is currently working on and removed blocked labels Jan 20, 2024
@adamcohenhillel
Copy link

Hey, is it on the roadmap to support arm?

@mudler
Copy link
Owner

mudler commented May 28, 2024

arm64 builds for core images is now merged on master and will be in the next release - I have to explore still how much we can build of the current image matrix, but I assume we can't as much as it is adding quite some load overall to the CI for the moment.

Update:
master arm64 images are already out master-ffmpeg-core

@pepisito
Copy link

pepisito commented Jun 19, 2024

trying to do docker pull for arm64 got the message below,

~$ docker pull quay.io/go-skynet/local-ai
Using default tag: latest
latest: Pulling from go-skynet/local-ai
no matching manifest for linux/arm64/v8 in the manifest list entries

Not sure there.

It needs a tag and that works.

ocker pull quay.io/go-skynet/local-ai:master-ffmpeg-core

arm64 builds for core images is now merged on master and will be in the next release - I have to explore still how much we can build of the current image matrix, but I assume we can't as much as it is adding quite some load overall to the CI for the moment.

Update: master arm64 images are already out master-ffmpeg-core

@xianhaosui
Copy link
Author

xianhaosui commented Jun 20, 2024 via email

@mudler
Copy link
Owner

mudler commented Jun 21, 2024

only images core image (ffmpeg-core) is supported with the ARM64 architecture as for now. Now we also have arm64 binaries as well. So I'm closing this card as it just needs follow-ups (for instance, to support all the image combinations we currently support on amd64)

@mudler mudler closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci enhancement New feature or request needs help roadmap up for grabs Tickets that no-one is currently working on
Projects
None yet
Development

No branches or pull requests

9 participants