Skip to content

skills: update cuda skills to make the generated kernels compliant with the builder#630

Open
sayakpaul wants to merge 7 commits into
mainfrom
cuda-skill-update
Open

skills: update cuda skills to make the generated kernels compliant with the builder#630
sayakpaul wants to merge 7 commits into
mainfrom
cuda-skill-update

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

As discussed internally.

There were several issues with the CUDA skills instructions. For example, it cannot compile with the builder as it uses pybind.

I have checked on my Spark that with the updated instructions, the kernels can successfully build and be consumed with get_local_kernel().

It also uses the latest kernel-builder subcommands.

@sayakpaul sayakpaul changed the title update cuda skills to make the generated kernels compliant with the builder skills: update cuda skills to make the generated kernels compliant with the builder Jun 11, 2026
Comment thread kernel-builder/skills/cuda-kernels/references/a100-optimization-guide.md Outdated
python ../../.claude/skills/h100-diffusers-kernels/references/ltx_kernel_injection_example.py
cd <your-kernel-project> # kernel-builder project with your kernels
nix run .#build-and-copy -L # Build kernels with kernel-builder
python path/to/skills/cuda-kernels/scripts/ltx_kernel_injection_example.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this run command still correct?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Would you rather kernel-builder build-and-copy -L?

The other stuff, e.g., cd <> and python ... are okay because the users are supposed to change them. Or did you mean something else?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I meant the python path/to/skills etc. I would expect a placeholder in place of skills/cuda-kernels/scripts/ltx_kernel_injection_example.py.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure if I follow. ltx_kernel_injection_example.py is the script we want the agent to refer to here.

Comment thread kernel-builder/skills/cuda-kernels/references/huggingface-kernels-integration.md Outdated
Comment thread kernel-builder/skills/cuda-kernels/references/huggingface-kernels-integration.md Outdated
Comment thread kernel-builder/skills/cuda-kernels/references/huggingface-kernels-integration.md Outdated
Comment thread kernel-builder/skills/cuda-kernels/scripts/huggingface_kernels_example.py Outdated
Comment thread kernel-builder/skills/cuda-kernels/scripts/huggingface_kernels_example.py Outdated
Co-authored-by: Daniël de Kok <me@danieldk.eu>
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