kernels 成为 transformers 默认依赖,编译参数即可启用加速内核
transformers 现在内置了 kernels,跑推理能拿到更快的内核。以前要自己折腾 kernel 编译,现在设几个参数就行。经常用 transformers 部署模型的朋友可以试试,不用换推理框架就能提速。
Hugging Face 的 transformers 库近期把 kernels 设为默认依赖,目的是让更快的内核能以默认方式启用。
用户只需额外设置几个编译参数即可触发内核编译,无需手动安装或管理内核包。这个改动意味着 transformers 的推理速度可以更快,前提是使用者主动开启相关配置。
kernels has recently become a default dependency in transformers so faster kernels can be default
you just need to set few other args for compilation transformers is fast 💨 you just need to tell it to be fast
This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include transformers, kernels, Hugging Face, inference optimization.
Source attribution: curated from Merve Noyan (@mervenoyann).