Azure 上的 PyTorch

Enterprise-ready PyTorch experience in the cloud

PyTorch is an open-source deep learning framework that accelerates the path from research to production. Data scientists at Microsoft use PyTorch as the primary framework to develop models that enable new experiences in Office 365, Bing, Xbox, and more. Microsoft is a top contributor to the PyTorch ecosystem with recent contributions such as PyTorch Profiler.

PyTorch on Azure–better together


Train and deploy models reliably at scale using a built-in PyTorch environment within Azure Machine Learning, and rest assured that your entire PyTorch stack is fully supported through PyTorch Enterprise.


Decrease your time to market with powerful GPU hardware, a production-grade software accelerator with ONNX Runtime, and the latest innovative scaling techniques with DeepSpeed in Azure.

Strengthen the ecosystem

Achieve more with the rich PyTorch ecosystem of tools and capabilities, including PyTorch Profiler. Microsoft actively contributes to the PyTorch environment to make the experience better.

PyTorch Enterprise

Microsoft is a founding member of the PyTorch Enterprise Support Group, creating a reliable production experience with enterprise-grade support that benefits both Azure customers and the PyTorch community users. With PyTorch Enterprise, you can be confident that Azure is the best place to run PyTorch.

Long-term support

Microsoft provides long-term support (LTS) to selected versions of PyTorch for up to two years, enabling a stable production experience without frequent major upgrade investment.

Prioritized troubleshooting

Microsoft Premier support customers are automatically eligible for PyTorch Enterprise. They can request hotfixes directly to the dedicated Azure team. The requests will be prioritized, quickly addressed, and deployed in the next version of PyTorch.

Azure integration

The latest release of PyTorch will be integrated with Azure Machine Learning, along with other PyTorch add-ons including ONNX Runtime for faster inferencing.

Open source

All code is fed back to the public PyTorch distribution so everyone in the PyTorch community can benefit.


"Scientists have to comb through massive amounts of data to deliver life-changing medicines. Microsoft and PyTorch are helping global biopharmaceutical company AstraZeneca to accelerate its drug discovery research."

Gavin Edwards,AstraZeneca 机器学习工程师

Microsoft 是 PyTorch 开源项目生态系统的积极参与者:

PyTorch Profiler

Introducing PyTorch Profiler, the new and improved performance debugging tool. Developed as part of a collaboration between Microsoft and Facebook, PyTorch Profiler is an open-source tool that enables accurate and efficient performance analysis and troubleshooting for large-scale deep learning models.

ONNX Runtime on PyTorch

As deep-learning models get bigger, reducing training time becomes both a financial and environmental issue. ONNX Runtime accelerates large scale, distributed training of PyTorch transformer models with a one-line code change. Combine with DeepSpeed to further improve training speed on PyTorch.

Windows 上的 PyTorch

Microsoft 会维护 Windows 的 PyTorch 版本,以便你的团队能够体验经过良好测试且稳定的版本、简单可靠的安装、快速入门和教程,以及对高性能和更高级功能(如分布式 GPU 训练)的支持。

ONNX 运行时:用于加快推理和训练 PyTorch 模型的运行时,支持 Windows、Mac、Linux、Android 和 iOS,并针对各种硬件加速器进行了优化。


Hummingbird:一种库,可将 Scikit-Learn 或 LightGBM 等传统模型编译为 PyTorch 张量计算,以加快推理速度。

Two ways to use Azure for PyTorch development

使用 Azure 机器学习加快工作流速度

Build, train, and deploy PyTorch models with ease. Azure Machine Learning removes the heavy lifting of end-to-end machine learning workflows while also handling housekeeping tasks such as data preparation and experiment tracking, which cuts time to production from weeks to hours.

Develop with preconfigured Azure Data Science Virtual Machines

Data Science Virtual Machines come installed with PyTorch as well as the necessary GPU drivers and a comprehensive suite of other popular data science tools. Get a frictionless development experience out of the box and the ability to work with all Azure hardware configurations including GPUs.

观看 AI Show 以开始使用 PyTorch

了解 PyTorch 的基础知识,包括如何生成和部署模型,以及如何连接到强大的用户社区。

DeepSpeed — PyTorch 开发人员日

在本次演讲中,Microsoft 的合作伙伴研究经理 Yuxiong He 介绍了 DeepSpeed,这是一种与 PyTorch 兼容的开源深度学习训练优化库。

Windows 上的 PyTorch

Azure AI 平台的产品经理 Maxim Lukiyanov 介绍了 PyTorch 版本 1.7 中对 Windows 平台支持所做的改进。

使用 PyTorch 进行深度学习的基础知识

请参阅如何使用 PyTorch 解决简单的图像分类问题。

了解 PyTorch 方面的基础知识

了解 PyTorch 的概念和模块。通过本快速入门指南了解如何加载数据、生成深度神经网络、训练和保存模型。

PyTorch,PyTorch 徽标和任何相关标记均为 Facebook, Inc. 的商标。

使用 Azure 在云中提升 PyTorch 项目的完成速度