numpywren:无服务器线性代数
numpywren: serverless linear algebra
摘要:
线性代数运算广泛用于科学计算和机器学习应用中。然而,对于科学家和数据分析师来说,在单台机器之外的规模上运行线性代数是一个挑战。传统的方法要么需要访问超级计算集群,要么会带来配置和集群管理方面的挑战。在本文中,我们展示了如何在所谓的“无服务器”环境中分解存储和计算资源,结合计算密集型工作负载的特点,可以利用来实现弹性的可扩展性和易于管理。我们提出了numpywren,一个建立在无服务器架构上的线性代数系统。我们还介绍了LAmbdaPACK,这是一种特定于领域的语言,旨在在无服务器环境中实现高度并行的线性代数算法。我们发现,对于某些线性代数算法,如矩阵乘法,奇异值分解,Cholesky分解,numpywren的性能(完成时间)是ScaLAPACK的33%之内,其计算效率(总CPU小时)高达240%更好,由于弹性,同时提供了一个更容易使用的界面和更好的容错。与此同时,我们表明,无服务器运行时无法在机器的核心上利用局部性,这从根本上限制了它们的网络效率,从而限制了其他算法(如QR分解)的性能。这突出了云提供商如何通过对基础设施的微小改变来更好地支持这些类型的计算。
英文摘要:
Linear algebra operations are widely used in scientific computing and machine learning applications. However, it is challenging for scientists and data analysts to run linear algebra at scales beyond a single machine. Traditional approaches either require access to supercomputing clusters, or impose configuration and cluster management challenges. In this paper we show how the disaggregation of storage and compute resources in so-called "serverless" environments, combined with compute-intensive workload characteristics, can be exploited to achieve elastic scalability and ease of management. We present numpywren, a system for linear algebra built on a serverless architecture. We also introduce LAmbdaPACK, a domain-specific language designed to implement highly parallel linear algebra algorithms in a serverless setting. We show that, for certain linear algebra algorithms such as matrix multiply, singular value decomposition, and Cholesky decomposition, numpywren's performance (completion time) is within 33% of ScaLAPACK, and its compute efficiency (total CPU-hours) is up to 240% better due to elasticity, while providing an easier to use interface and better fault tolerance. At the same time, we show that the inability of serverless runtimes to exploit locality across the cores in a machine fundamentally limits their network efficiency, which limits performance on other algorithms such as QR factorization. This highlights how cloud providers could better support these types of computations through small changes in their infrastructure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。