Transformers is adding kernels as a default dependency, according to @art_zucker’s November 30 announcement. Kernels explicitly registered in Transformers will activate by default, the post says. Source
@art_zucker says the library downloads only what a user’s hardware needs for their PyTorch version, contrasting that approach with the installation work previously associated with FA2. Less installation wrestling is the pitch. Source
Hugging Face’s documentation describes kernels as a Python package that loads compatible compute kernels directly from the Hugging Face Hub. Kernel repositories have dedicated pages showing supported hardware and versions. The system is also designed to let multiple versions of the same kernel load within one Python process. Compatibility gets actual infrastructure, not just crossed fingers. Source
The announcement also makes a case for community-built kernels, with specialized contributions potentially benefiting other users. @art_zucker describes explicitly registered kernels activating by default, not every community upload automatically joining the party. Source
Default doesn’t mean fully tuned
In a December 2 post, @mervenoyann describes kernels as having recently become a default dependency and says compilation needs additional arguments. The post doesn’t provide a complete setup recipe. Source
The announcement and documentation don’t provide benchmark figures for the integration or identify the Transformers release carrying it. SourceSource
Comments