最高第 3 名 已下榜
Transformers新增kernels依赖
Hugging Face为transformers新增默认依赖kernels,为多硬件提供开箱即用性能。
要点
- @art_zucker 宣布 transformers 在大约 6 年来首次新增默认依赖:kernels。
- kernels 库只下载用户硬件针对其 torch 版本所需的内容,不需要 FA2 过去那种复杂安装。
- kernels 在 transformers 中显式注册,并将默认启用。
要点和反应摘要由 AI 依据本页推文整理,请以原推为准。 我们怎么用 AI
原推
Big announcement today: for the first time in probably 6 years we are adding 1 default dependency to transformers: kernels.
The kernel library brings good default performances to any model, on many hardware. It does not require crazy installs like FA2 use to, it only downloads what your hardware needs for your torch version. There’s a lot more to it, inviting you to read https://t.co/5EnxSlDnET.
This is super important for transformers as it reinforces our commitment to performances, but also to community built kernels: you are all actors of the ecosystem, and a crazy dev can push a specialized kernel that will help the entire community.
Kernels are explicitly registered in transformers and will be activated by default, we tested but of course if you have any feedback or issues, ping us on github we’ll fix them asap!
讨论 0
注册 登录 后参与讨论
还没有人讨论,来说第一句。