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

attempt to add metal on mac #65

Merged
merged 9 commits into from
Feb 25, 2024
Merged

attempt to add metal on mac #65

merged 9 commits into from
Feb 25, 2024

Conversation

MarcusDunn
Copy link
Contributor

No description provided.

@MarcusDunn
Copy link
Contributor Author

still needs testing.

@MarcusDunn MarcusDunn mentioned this pull request Feb 5, 2024
@MarcusDunn MarcusDunn added help wanted 🍎 mac macos only updates labels Feb 15, 2024
@philschmid
Copy link

Hey, I having a mac m1 happy to test if needed.

@MarcusDunn
Copy link
Contributor Author

@philschmid, thanks for the offer, unfortunately I know it does not work at the moment. There's not much need for us (utilityai) to add mac support - so I've put up my attempt here in the hopes someone else brings it across the finish line.

There are examples for working build scripts in llm https://github.com/rustformers/llm and shadowmint's llama-cpp-rs https://github.com/shadowmint/llama-cpp-sys/ but I have not been able to replicate them successfully.

You can see some documentation of my attempt in #8 if you (or anyone else) want to take a stab at adding metal support.

@MarcusDunn
Copy link
Contributor Author

MarcusDunn commented Feb 25, 2024

working on my m1 mac @ 24 tokens per second (llama 7b). Nice.

I also changed the c/cpp versions to 11, this lines up with what llama.cpp uses but seems to have broken the docker build. Investigating.

@MarcusDunn MarcusDunn merged commit e9e80e2 into main Feb 25, 2024
5 checks passed
@MarcusDunn MarcusDunn deleted the 8-metal-on-mac branch February 25, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted 🍎 mac macos only updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants