---
title: "🤗 Kernels: Major Updates"
description: "Hugging Face's Kernels project, which packages and distributes custom GPU kernels via the Hub, now has a dedicated \"kernel\" repository type and several security layers on top of Nix-based reproducible builds."
url: "https://swe.quest/articles/kernels-major-updates-0414619a175c2f31"
canonical: "https://huggingface.co/blog/revamped-kernels"
source: "Hugging Face"
published: "2026-07-06"
difficulty: "medium"
kind: "Release"
reading_minutes: 8
tags: ["supply-chain-security","inference","build-systems","ai-agents"]
---

# 🤗 Kernels: Major Updates

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-07-06, 8 min read, Release. Original: [https://huggingface.co/blog/revamped-kernels](https://huggingface.co/blog/revamped-kernels)

## Summary

Hugging Face's Kernels project, which packages and distributes custom GPU kernels via the Hub, now has a dedicated "kernel" repository type and several security layers on top of Nix-based reproducible builds. By default only kernels from trusted publishers load, with an explicit trust\_remote\_code opt-in for others, and Sigstore cosign signing with ephemeral keys tied to trusted GitHub workflows (verification is not yet enforced at load time). Other changes include separate kernels and kernel-builder CLIs designed to be easy for agents to drive, Torch Stable ABI and Apache TVM FFI support, and compatibility-checking APIs. A segfault-causing libstdc++ global-initialization conflict was fixed by switching from static linking to dynamic linking with the official manylinux\_2\_28 toolchain.

Written by swe.quest, not by the author.

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

## Topics

- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- PyTorch custom ops
- GPU kernels ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- Python packaging ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))

## Keywords

Hugging Face Kernels, kernel-builder, Sigstore cosign, Nix, Torch Stable ABI, Apache TVM FFI, manylinux\_2\_28, libstdc++

## Related posts

- [From Zero to GPU: A Guide to Building and Scaling Production-Ready CUDA Kernels](https://swe.quest/articles/from-zero-to-gpu-a-guide-to-building-and-scaling-production-ready-cuda-kernels-c01f08e3adeb6b0b.md): Hugging Face · 2025-08-18 · Medium · 16 min read · Hardware, Python, C & C++, Build systems, Machine learning
  Hugging Face's kernel-builder lets developers write a custom CUDA kernel, register it as a native PyTorch operator, build it reproducibly with Nix for every supported PyTorch/CUDA combination, and publish it to the Hub for loading via \`get\_kernel\`.
- [Easily Build and Share ROCm Kernels with Hugging Face](https://swe.quest/articles/easily-build-and-share-rocm-kernels-with-hugging-face-dfc0e1a655e74ace.md): Hugging Face · 2025-11-17 · Medium · 13 min read · Build systems, Hardware, Machine learning, C & C++, Python
  Hugging Face's kernels library and kernel-builder can package a custom ROCm kernel as a native PyTorch operator and share it on the Hub, shown with the prize-winning RadeonFlow FP8 block-wise GEMM kernel for AMD MI300X.
- [Learn the Hugging Face Kernel Hub in 5 Minutes](https://swe.quest/articles/learn-the-hugging-face-kernel-hub-in-5-minutes-049114b1e85677a7.md): Hugging Face · 2025-06-12 · Medium · 13 min read · Inference & serving, Performance engineering, Python, Hardware
  Hugging Face's Kernel Hub and \`kernels\` library let PyTorch code download pre-compiled, optimized GPU kernels such as FlashAttention, activations, RMSNorm and quantization kernels with a single \`get\_kernel\` call.
- [4M Models Scanned: Protect AI + Hugging Face 6 Months In](https://swe.quest/articles/4m-models-scanned-protect-ai-hugging-face-6-months-in-5f51101feb9d865e.md): Hugging Face · 2025-04-14 · Easy · 7 min read · Supply chain security, Vulnerability research, Machine learning, Security
  Six months into the Hugging Face partnership, Protect AI's Guardian has scanned 4.47 million model versions across 1.41 million Hub repositories and flagged 352,000 unsafe or suspicious issues in 51,700 models.
- [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.

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)
