小程序
传感搜
传感圈

Meta launches open source, GPU-agnostic, AITemplate developer tool

2022-10-07
关注

Meta has open-sourced a new set of AI tools called AITemplate that make it easier for developers to work with different GPUs without sacrificing speed and performance. It is the latest in a round of open-source AI projects from the Facebook parent including the framework PyTorch.

Meta has been making a number of AI projects open source including the popular PyTorch framework. (Photo by Lets Design Studio/Shutterstock)

The new tools are based on the PyTorch framework and when used, the code can run up to 12 times faster on Nvidia’s A100 AI GPU or four times faster on AMD’s M1250 when compared to existing PyTorch methods, according to Meta engineers.

Its biggest benefit to developers is the ability to switch between processors when running machine learning calculations. Currently, to get the most out of an AI-tailored GPU, developers need to write their code to the hardware, making it difficult to then run the same code on another graphics card.

Meta says AITemplate will act as a layer above the chip that doesn’t hamper performance but does allow for easily swapping without being locked to a specific chip.

Companies Intelligence

View All

Reports

View All

Data Insights

View All

It is built specifically for inference, which is where machine learning algorithms trained on a large dataset need to make a quick judgement based on a received request. This is used in labelling.

“Currently, AI practitioners have very limited flexibility when choosing a high-performance GPU inference solution because these are concentrated in platform-specific, and closed black box runtimes,” Meta engineers explained in a blog post.

“A machine learning system designed for one technology provider’s GPU must be completely reimplemented in order to work on a different provider’s hardware. This lack of flexibility also makes it difficult to iterate and maintain the code that makes up these solutions, due to the hardware dependencies in the complex runtime environments.”

Solutions to accelerate AI development are in high demand among developers keen to try new modelling techniques and businesses looking to use greater degrees of automation. According to a new report by Forrester the AI sector is set to outpace the overall software market over the next two years by about 50%.

Content from our partners

The growing cybersecurity threats facing retailers

The growing cybersecurity threats facing retailers

Cloud-based solutions will be key to rebuilding supply chains after global stress and disruption

Cloud-based solutions will be key to rebuilding supply chains after global stress and disruption

How to integrate security into IT operations

How to integrate security into IT operations

The report found that AI software revenues will see an 18% compound annual growth rate by 2025. Off-the-shelf and platform AI software spend will increase from $33bn in 2021 to $64bn in 2025.

Data, insights and analysis delivered to you View all newsletters By The Tech Monitor team Sign up to our newsletters

Forrester analyst Michael O'Grady said: "As AI becomes mainstream, enterprises will need to manage its complexity across its tech infrastructure, AI practices and processes, business models, and across talent management, which includes the democratisation of tools for the citizen data scientist."

Meta and its AI open source toolkits

To meet this growing demand developers are looking for faster turnarounds on new concepts, as well as ways to reduce costs – including turning to open source toolkits.

“Although proprietary software toolkits such as TensorRT provide ways of customisation, they are often not enough to satisfy this need,” Meta's team says. “Furthermore, the closed, proprietary solution may make it harder to quickly debug the code, reducing development agility.”

Meta says it created AITemplate to tackle that problem, and made it open source to allow for continued development to meet the needs of the community. It is a unified inference system with separate acceleration back ends for AMD and Nvidia GPUs with plans for other hardware in future.

“We also plan to extend AITemplate to additional hardware systems, such as Apple M-series GPUs, as well as CPUs from other technology providers," engineers from Meta revealed. "Beyond this, we are working on the automatic lowering of PyTorch models to provide an additional turnkey inference solution for PyTorch."

Benchmark tests found it was able to deliver close to hardware-native Tensor and Matrix Core performance on a range of widely used AI models including convolutional neural networks, transformers, and diffusers.

“We’ve used AIT to achieve performance improvements up to 12x on Nvidia GPUs and 4x on AMD GPUs compared with eager mode within PyTorch,” the Meta blog post says.

“Our project offers many performance innovations, including advanced kernel fusion, an optimisation method that merges multiple kernels into a single kernel to run them more efficiently, and advanced optimisations for transformer blocks. These optimisations deliver state-of-the-art performance by significantly increasing utilisation of Nvidia's Tensor Cores and AMD's Matrix Cores.”

Read more: Calls to include 'general purpose' AI from new EU artificial intelligence regulation

Topics in this article: AI, Meta, open source

参考译文
Meta推出了开源的、gpu不可知的AITemplate开发工具
Meta已经开放了一套名为AITemplate的新AI工具,可以让开发者在不牺牲速度和性能的情况下更容易地使用不同的gpu。这是Facebook母公司包括PyTorch框架在内的一系列开源人工智能项目的最新成果。根据Meta工程师的说法,新工具基于PyTorch框架,与现有的PyTorch方法相比,当使用时,代码在英伟达A100 AI GPU上的运行速度可以快12倍,在AMD的M1250上的运行速度可以快4倍。它对开发人员最大的好处是在运行机器学习计算时能够在处理器之间切换。目前,为了最大限度地利用人工智能定制的GPU,开发人员需要向硬件编写代码,这样就很难在另一个显卡上运行相同的代码。Meta表示,aiitemplate将作为芯片之上的一层,它不会影响性能,但允许在不被锁定到特定芯片的情况下轻松进行交换。它是专门为推理而构建的,在推理中,针对大型数据集训练的机器学习算法需要根据收到的请求做出快速判断。这用于标签。Meta工程师在一篇博文中解释道:“目前,AI从业者在选择高性能GPU推理解决方案时的灵活性非常有限,因为这些解决方案都集中在特定平台和封闭的黑盒子运行时中。”“为一个技术供应商的GPU设计的机器学习系统必须完全重新实现,以便在另一个技术供应商的硬件上工作。由于复杂运行时环境中的硬件依赖,这种灵活性的缺乏也使得迭代和维护组成这些解决方案的代码变得困难。“在热衷于尝试新的建模技术的开发人员和希望使用更高程度自动化的企业中,加速AI开发的解决方案需求量很大。根据Forrester的一份新报告,人工智能行业在未来两年的发展速度将超过整个软件市场的50%左右。该报告发现,到2025年,人工智能软件收入将以18%的复合年增长率增长。现有和平台AI软件的支出将从2021年的330亿美元增加到2025年的640亿美元。Forrester分析师Michael O'Grady表示:随着AI成为主流,企业将需要管理其技术基础设施、AI实践和流程、商业模式和跨人才管理的复杂性,其中包括公民数据科学家工具的民主化。为了满足这一日益增长的需求,开发人员正在寻找新概念的更快转变,以及降低成本的方法——包括转向开源工具包。Meta'的团队表示:“尽管TensorRT等专有软件工具包提供了定制方式,但它们往往不足以满足这种需求。”“此外,封闭的、专有的解决方案可能使快速调试代码变得更加困难,降低了开发的敏捷性。”Meta表示,他们创建了AITemplate来解决这个问题,并将其开放源码,以允许继续开发,以满足社区的需求。这是一个统一的推理系统,具有独立的加速后端,适用于AMD和Nvidia gpu,并计划在未来用于其他硬件。“我们还计划将AITemplate扩展到其他硬件系统,如苹果m系列gpu,以及来自其他技术提供商的cpu,"Meta的工程师透露。除此之外,我们正在致力于PyTorch模型的自动降低,为PyTorch提供额外的交key推理解决方案。基准测试发现,它能够在一系列广泛使用的AI模型(包括卷积神经网络、变压器和扩散器)上提供接近硬件本地张量和矩阵核心的性能。 “与PyTorch的急切模式相比,我们已经使用AIT在Nvidia gpu上实现了12倍的性能提升,在AMD gpu上实现了4倍的性能提升,”Meta博客上写道。“我们的项目提供了许多性能创新,包括高级内核融合,一种将多个内核合并为一个内核以更有效地运行的优化方法,以及对变压器块的高级优化。通过显著提高Nvidia's Tensor Cores和AMD's Matrix Cores的利用率,这些优化提供了最先进的性能。”
您觉得本篇内容如何
评分

评论

您需要登录才可以回复|注册

提交评论

techmonitor

这家伙很懒,什么描述也没留下

关注

点击进入下一篇

燧原科技打造一站式人工智能算力中心

提取码
复制提取码
点击跳转至百度网盘