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

Added permute kernel in dev/cuda #712

Merged
merged 2 commits into from
Jul 28, 2024
Merged

Conversation

indianspeedster
Copy link
Contributor

This PR primarily focuses on the educational aspects of llm.c. I observed that permute kernels are not present in dev/cuda directory, so I have added the implementation showing a small example of permuting a 4d tensor. Additionally, also have included explainations on how the permute operation works, along with guidance on developing a mental model for understanding permute operation while working with threads.

@karpathy
Copy link
Owner

cool!

@karpathy karpathy merged commit b4623bc into karpathy:master Jul 28, 2024
13 checks passed
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