arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.02170cs.SE
收藏

Safetensors 使用趋势与开发者认知的实证研究

An Empirical Study of Safetensors' Usage Trends and Developers' Perceptions

Beatrice Casey, Kaia Damian, Andrew Cotaj, Joanna C. S. Santos

AI总结:

本文实证研究了 Hugging Face 上开发者采用 safetensors 的趋势与认知,发现采用率上升且多由自动转换驱动,但多数开发者忽略转换拉取请求,同时虽有使用困难仍积极学习适应。

摘要:

开发者正通过 Hugging Face 等多种模型共享平台分享预训练机器学习(ML)模型,以促进 ML 开发的协作性。为了共享模型,首先必须对其进行序列化。尽管 Python 中存在多种序列化方法,但其中大多数并不安全。为应对这一安全隐患,Hugging Face 发布了 safetensors,用以缓解不安全序列化格式所带来的威胁。在此背景下,本文调查了开发者在 Hugging Face 上转向使用 safetensors 的情况,旨在理解 ML 开发社区中的安全实践,以及开发者对新型序列化方法的反应。我们的研究发现,越来越多的开发者正在采用 safetensors,并且许多 safetensors 的采用是通过 Hugging Face 转换工具对现有模型进行自动转换完成的。然而,我们也发现,大多数开发者忽略了转换工具的拉取请求(pull requests);同时,尽管许多开发者在使用 safetensors 时遇到问题,他们仍然渴望了解并适应这种格式。

英文摘要:

Developers are sharing pre-trained Machine Learning (ML) models through a variety of model sharing platforms, such as Hugging Face, in an effort to make ML development more collaborative. To share the models, they must first be serialized. While there are many methods of serialization in Python, most of them are unsafe. To tame this insecurity, Hugging Face released safetensors as a way to mitigate the threats posed by unsafe serialization formats. In this context, this paper investigates developer's shifts towards using safetensors on Hugging Face in an effort to understand security practices in the ML development community, as well as how developers react to new methods of serialization. Our results find that more developers are adopting safetensors, and many safetensor adoptions were made by automated conversions of existing models by Hugging Face's conversion tool. We also found, however, that a majority of developers ignore the conversion tool's pull requests, and that while many developers are facing issues with using safetensors, they are eager to learn about and adapt the format.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑