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

Support for UG kernels. #2579

Merged
merged 2 commits into from
Oct 27, 2024
Merged

Support for UG kernels. #2579

merged 2 commits into from
Oct 27, 2024

Conversation

LaurentMazare
Copy link
Collaborator

This adds some preliminary support for kernels implemented using UG, this will allow for easy fusion of kernels. Only cuda is supported in this PR, the metal backend hasn't been activated yet.

@LaurentMazare LaurentMazare merged commit 594d984 into main Oct 27, 2024
10 of 11 checks passed
@LaurentMazare LaurentMazare deleted the ug branch October 27, 2024 12:37
@akashicMarga
Copy link

@LaurentMazare I just came across ug today and that led me to this pr in Candle. it would be great if you could share some details about ug. From ug readme we can see it's similar to tinygrad, so this will enable dynamic graph optimisations for candle as I know candle works in eager mode.

@LaurentMazare
Copy link
Collaborator Author

It's pretty early days at the moment but the goal is indeed to provide a backend to candle that would allow for improved fusion. ug is somewhere between triton and tinygrad and to start with candle will use it more in a triton way to make it easier to write new kernels that work on all of cpu/metal/cuda.

EricLBuehler pushed a commit to EricLBuehler/candle that referenced this pull request Nov 26, 2024
* Support for UG kernels.

* Add a dedicated test.
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