---
title: "We Got Claude to Build CUDA Kernels and teach open models!"
description: "upskill is a CLI that uses a strong teacher model (Claude Opus 4.5) to turn an agent trace into a portable Agent Skill (SKILL.md), auto-generates test cases, and measures skill lift on cheaper or local student models with and without the skill."
url: "https://swe.quest/articles/we-got-claude-to-build-cuda-kernels-and-teach-open-models-729005bab002af9e"
canonical: "https://huggingface.co/blog/upskill"
source: "Hugging Face"
published: "2026-01-28"
difficulty: "medium"
kind: "How-to"
reading_minutes: 13
tags: ["ai-agents","ai-coding","evals","llms"]
---

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

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-01-28, 13 min read, How-to. Original: [https://huggingface.co/blog/upskill](https://huggingface.co/blog/upskill)

## Summary

upskill is a CLI that uses a strong teacher model (Claude Opus 4.5) to turn an agent trace into a portable Agent Skill (SKILL.md), auto-generates test cases, and measures skill lift on cheaper or local student models with and without the skill. Applied to building CUDA kernels with Hugging Face's kernel-builder, a ~520-token skill raised a quantized local GLM-4.7-Flash from 40% to 85% on the generated tests. The gains were not uniform across models. Some models used fewer tokens with the skill, while Opus gained no accuracy and spent more tokens, so each model should be evaluated on both accuracy and token cost before a skill is adopted.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- coding agents ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))
- LLM prompting and context ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

upskill, Agent Skills, Claude Opus 4.5, CUDA, kernel-builder, llama.cpp, GLM-4.7-Flash, Kimi-K2-Thinking

## Related posts

- [CoderForge-Preview: SOTA open dataset for training efficient coding agents](https://swe.quest/articles/coderforge-preview-sota-open-dataset-for-training-efficient-coding-agents-83e1f3c7a7bdb67a.md): Together AI · 2026-02-25 · Hard · 14 min read · Model training, AI for coding, AI agents, Evaluation, LLMs
  CoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench.
- [Custom Kernels for All from Codex and Claude](https://swe.quest/articles/custom-kernels-for-all-from-codex-and-claude-9d652cbc33fa9001.md): Hugging Face · 2026-02-13 · Medium · 9 min read · AI for coding, Performance engineering, Inference & serving, Hardware, Python
  Hugging Face packaged CUDA kernel expertise (GPU architecture guides for H100/A100/T4, diffusers and transformers integration patterns, vectorized kernel templates, benchmark scripts) into an agent skill that lets Claude and Codex generate complete kernel-builder projects with PyTorch bindings.
- [Train AI models with Unsloth and Hugging Face Jobs for FREE](https://swe.quest/articles/train-ai-models-with-unsloth-and-hugging-face-jobs-for-free-6587fc68358b0d7c.md): Hugging Face · 2026-02-20 · Medium · 4 min read · Model training, AI agents, LLMs, Python
  Unsloth on Hugging Face Jobs can fine-tune small models like LiquidAI/LFM2.5-1.2B-Instruct on managed cloud GPUs.
- [Codex is Open Sourcing AI models](https://swe.quest/articles/codex-is-open-sourcing-ai-models-fa17d18abe8d9c1f.md): Hugging Face · 2025-12-11 · Medium · 18 min read · Model training, AI agents, AI for coding, Evaluation
  Hugging Face Skills, a repository of agent instructions loaded via AGENTS.md (or Claude Code Skills), lets OpenAI Codex run end-to-end fine-tuning experiments on Hugging Face Jobs.
- [Is it agentic enough? Benchmarking open models on your own tooling](https://swe.quest/articles/is-it-agentic-enough-benchmarking-open-models-on-your-own-tooling-0278c737719b3002.md): Hugging Face · 2026-06-18 · Medium · 15 min read · Evaluation, AI agents, AI for coding, Developer tools, API design
  A benchmarking harness measures not just whether a coding agent solves a task with a library, but how much work it took: turns, tokens, time, errors, and behavior "markers" such as whether it used a CLI or the pipeline API.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
