Skip to content

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.

3 participants