According to Dynamic Beating Monitoring, Hugging Face CEO Clem Delangue announced the official launch of Kernels on Hub. The GPU operator is low-level optimized code that pushes the graphics card to its limit speed, accelerating inference and training by 1.7 to 2.5 times, but installation has always been a nightmare: taking the most common FlashAttention as an example, local compilation requires about 96GB of memory and several hours. Any slight mismatch in the PyTorch version or CUDA version results in an error, causing most developers to get stuck at this installation step.
Kernels Hub moves the compilation to the cloud. Hugging Face has pre-compiled operators under various GPU and system environments. Developers write one line of code, and the Hub automatically matches the hardware environment, downloading pre-compiled files in seconds for immediate use. The same process can load multiple different versions of operators, compatible with torch.compile.
Kernels were tested online in June last year, upgraded to the Hub repository type this month, on par with Models, Datasets, and Spaces. There are currently 61 precompiled operators covering common scenarios such as attention mechanisms, normalization, hybrid expert routing, quantization, supporting four hardware acceleration platforms: NVIDIA CUDA, AMD ROCm, Apple Metal, and Intel XPU, already integrated into Hugging Face's inference framework TGI and Transformers library.
