SyncAI.news, a Varaisys broadcasting
We Got Claude to Build CUDA Kernels and teach open models!
HF

Hugging Face Blog

· 2 min read

AI LabsHugging Face Blog

We Got Claude to Build CUDA Kernels and teach open models!

The best thing about agent skills is upskilling your agents on hard problems. There are two ways to look at that:

  1. You can take Opus 4.5 or other SOTA models and tackle the hardest problems out there.
  2. You can take models that run on your laptop and upskill them to harder problems. In this blog post, we’ll show you how to take on the latter.

This blog post walks through the process of using a new tool, upskill, to generate and evaluate agent skills with large models and use them with smaller models. We will benchmark upskill on the task of writing CUDA kernels for diffusers models, but the process is generally useful for cutting costs, or using smaller models on hard and domain-specific problems.

What are agent skills?

In case you missed it, agent skills are taking the coding agent game by storm. In fact, they’re a straightforward concept to define model context as files, like instructions as markdown and code as scripts. The file format makes them easy to generate, share, and review. In short, they’re a practical medium to share capabilities across models and tools, and they're most useful in specific domains or hard problems. Not stuff the model can do well anyway.

This post showcases this process by using Claude to generate a Skill file that can be used by open source models for a complex and specialized task: write CUDA kernels. We first tried a simple skill based on existing documentation, and we found that it improved performance for some others, but not all. In fact, it could even degrade performance or increase token usage for some models. Check out the plot below to see the performance of the model with and without the basic skill.

Now, let's walk through how you can use upskill to upskill your agents on hard problems, and measure performance.

1. Get the teacher (Claude Opus 4.5) to build a kernel

2. Make an agent skill from the trace

Once the teacher model has performed the task, we need them to make a skill. There are a number of effective ways to do this.

Open `SKILL.md` to see what upskill generated:

Original source

This story was published by Hugging Face Blog. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on huggingface.co

Similar News