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

metal : compile-time kernel args and params #4085

Open
ggerganov opened this issue Nov 15, 2023 · 4 comments
Open

metal : compile-time kernel args and params #4085

ggerganov opened this issue Nov 15, 2023 · 4 comments
Labels
performance Speed related topics research 🔬

Comments

@ggerganov
Copy link
Owner

I was just thinking about this idea, so writing it down for future research.

We should be able to fairly easy generate model-specific Metal code that has hardcoded kernels for every single node in the computation graph. The idea is to make an initial pass of a certain graph where we record all kernel calls with their respective argument values and parameters and then generate a model-specific MSL source file with all these kernels instances - either copy-paste or via templates. I guess this is something similar to what people call JIT. Wondering what kind of speed-up we will be able to see with this strategy.

@ggerganov ggerganov added performance Speed related topics research 🔬 labels Nov 15, 2023
@github-actions github-actions bot added the stale label Mar 19, 2024
Copy link
Contributor

github-actions bot commented Apr 2, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Apr 2, 2024
@ggerganov ggerganov removed the stale label Apr 4, 2024
@ggerganov ggerganov reopened this Apr 4, 2024
@github-actions github-actions bot added the stale label May 5, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@ggerganov ggerganov removed the stale label May 19, 2024
@ggerganov ggerganov reopened this May 19, 2024
@github-actions github-actions bot added the stale label Jun 19, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Jul 4, 2024
@ggerganov ggerganov reopened this Jul 4, 2024
@ggerganov ggerganov removed the stale label Jul 4, 2024
@github-actions github-actions bot added the stale label Aug 4, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@ggerganov ggerganov removed the stale label Aug 18, 2024
@ggerganov ggerganov reopened this Aug 18, 2024
@github-actions github-actions bot added the stale label Sep 18, 2024
@ggerganov ggerganov removed the stale label Sep 28, 2024
@github-actions github-actions bot added the stale label Oct 29, 2024
@ggerganov ggerganov removed the stale label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Speed related topics research 🔬
Projects
Status: Todo
Development

No branches or pull requests

1 participant