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

ggml-backend : metal #552

Merged
merged 5 commits into from
Oct 6, 2023
Merged

ggml-backend : metal #552

merged 5 commits into from
Oct 6, 2023

Conversation

ggerganov
Copy link
Member

@ggerganov ggerganov commented Oct 5, 2023

This is probably not the best way to implement this, but at least it works

@ggerganov ggerganov marked this pull request as ready for review October 5, 2023 13:48
@slaren
Copy link
Member

slaren commented Oct 5, 2023

Other than some leftovers from the CPU backend, like the work buffers, plans and n_threads, looks good.

src/ggml-metal.m Outdated
Comment on lines 1430 to 1431
// TODO: get page size ??
//return sysconf(_SC_PAGESIZE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the tensor alignment only. I don't think that tensors need to be aligned to pages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll clean-up this tomorrow and merge and then we can merge the main PR

@ggerganov ggerganov merged commit 94b0529 into ggml-backend Oct 6, 2023
slaren added a commit that referenced this pull request Oct 6, 2023
* ggml backends interface v1

* ggml-backend : metal (#552)

---------

Co-authored-by: Georgi Gerganov <[email protected]>
@slaren slaren mentioned this pull request Oct 6, 2023
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

Successfully merging this pull request may close these issues.

2 participants