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

Include AVX Runner #1

Open
kth8 opened this issue Oct 24, 2024 · 1 comment
Open

Include AVX Runner #1

kth8 opened this issue Oct 24, 2024 · 1 comment

Comments

@kth8
Copy link

kth8 commented Oct 24, 2024

without AVX runner the performance is going to be crippled as discussed in ollama/ollama#2821

@ozbillwang
Copy link
Contributor

ozbillwang commented Oct 24, 2024

yes, I am working on it.

The problem here is, I need use same Dockerfile, build for both ARM64 and AMD64.

https://github.com/alpine-docker/ollama/blob/master/Dockerfile#L10-L12

I commented out below lines

# In arm64 ollama/ollama image, there is no avx libraries and seems they are not must-have (#2903, #3891)
COPY --from=ollama /usr/lib/ollama/runners/cpu_avx /usr/lib/ollama/runners/cpu_avx
COPY --from=ollama /usr/lib/ollama/runners/cpu_avx2 /usr/lib/ollama/runners/cpu_avx2

But in ARM build, above two folders are not exist.

In Dockerfile , COPY doesn't support wildcard yet, I don't get folders, but files under destination folder

COPY --from=ollama /usr/lib/ollama/runners/cpu_* /usr/lib/ollama/runners/

Need find way to add them back

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

No branches or pull requests

2 participants