Home

Awesome

NVIDIA Deep Learning Examples for Tensor Cores

Introduction

This repository provides State-of-the-Art Deep Learning examples that are easy to train and deploy, achieving the best reproducible accuracy and performance with NVIDIA CUDA-X software stack running on NVIDIA Volta, Turing and Ampere GPUs.

NVIDIA GPU Cloud (NGC) Container Registry

These examples, along with our NVIDIA deep learning software stack, are provided in a monthly updated Docker container on the NGC container registry (https://ngc.nvidia.com). These containers include:

Computer Vision

ModelsFrameworkAMPMulti-GPUMulti-NodeTensorRTONNXTritonDLCNB
EfficientNet-B0PyTorchYesYes-Supported-SupportedYes-
EfficientNet-B4PyTorchYesYes-Supported-SupportedYes-
EfficientNet-WideSE-B0PyTorchYesYes-Supported-SupportedYes-
EfficientNet-WideSE-B4PyTorchYesYes-Supported-SupportedYes-
EfficientNet v1-B0TensorFlow2YesYesYesExample-SupportedYes-
EfficientNet v1-B4TensorFlow2YesYesYesExample-SupportedYes-
EfficientNet v2-STensorFlow2YesYesYesExample-SupportedYes-
GPUNetPyTorchYesYes-ExampleYesExampleYes-
Mask R-CNNPyTorchYesYes-Example-Supported-Yes
Mask R-CNNTensorFlow2YesYes-Example-SupportedYes-
nnUNetPyTorchYesYes-Supported-SupportedYes-
ResNet-50MXNetYesYes-Supported-Supported--
ResNet-50PaddlePaddleYesYes-Example-Supported--
ResNet-50PyTorchYesYes-Example-ExampleYes-
ResNet-50TensorFlowYesYes-Supported-SupportedYes-
ResNeXt-101PyTorchYesYes-Example-ExampleYes-
ResNeXt-101TensorFlowYesYes-Supported-SupportedYes-
SE-ResNeXt-101PyTorchYesYes-Example-ExampleYes-
SE-ResNeXt-101TensorFlowYesYes-Supported-SupportedYes-
SSDPyTorchYesYes-Supported-Supported-Yes
SSDTensorFlowYesYes-Supported-SupportedYesYes
U-Net MedTensorFlow2YesYes-Example-SupportedYes-

Natural Language Processing

ModelsFrameworkAMPMulti-GPUMulti-NodeTensorRTONNXTritonDLCNB
BERTPyTorchYesYesYesExample-ExampleYes-
GNMTPyTorchYesYes-Supported-Supported--
ELECTRATensorFlow2YesYesYesSupported-SupportedYes-
BERTTensorFlowYesYesYesExample-ExampleYesYes
BERTTensorFlow2YesYesYesSupported-SupportedYes-
GNMTTensorFlowYesYes-Supported-Supported--
Faster TransformerTensorflow---Example-Supported--

Recommender Systems

ModelsFrameworkAMPMulti-GPUMulti-NodeONNXTritonDLCNB
DLRMPyTorchYesYes-YesExampleYesYes
DLRMTensorFlow2YesYesYes-SupportedYes-
NCFPyTorchYesYes--Supported--
Wide&DeepTensorFlowYesYes--SupportedYes-
Wide&DeepTensorFlow2YesYes--SupportedYes-
NCFTensorFlowYesYes--SupportedYes-
VAE-CFTensorFlowYesYes--Supported--
SIMTensorFlow2YesYes--SupportedYes-

Speech to Text

ModelsFrameworkAMPMulti-GPUMulti-NodeTensorRTONNXTritonDLCNB
JasperPyTorchYesYes-ExampleYesExampleYesYes
QuartzNetPyTorchYesYes-Supported-SupportedYes-

Text to Speech

ModelsFrameworkAMPMulti-GPUMulti-NodeTensorRTONNXTritonDLCNB
FastPitchPyTorchYesYes-Example-ExampleYesYes
FastSpeechPyTorchYesYes-Example-Supported--
Tacotron 2 and WaveGlowPyTorchYesYes-ExampleYesExampleYes-
HiFi-GANPyTorchYesYes-Supported-SupportedYes-

Graph Neural Networks

ModelsFrameworkAMPMulti-GPUMulti-NodeONNXTritonDLCNB
SE(3)-TransformerPyTorchYesYes--Supported--
MoFlowPyTorchYesYes--Supported--

Time-Series Forecasting

ModelsFrameworkAMPMulti-GPUMulti-NodeTensorRTONNXTritonDLCNB
Temporal Fusion TransformerPyTorchYesYes-ExampleYesExampleYes-

NVIDIA support

In each of the network READMEs, we indicate the level of support that will be provided. The range is from ongoing updates and improvements to a point-in-time release for thought leadership.

Glossary

Multinode Training Supported on a pyxis/enroot Slurm cluster.

Deep Learning Compiler (DLC) TensorFlow XLA and PyTorch JIT and/or TorchScript

Accelerated Linear Algebra (XLA) XLA is a domain-specific compiler for linear algebra that can accelerate TensorFlow models with potentially no source code changes. The results are improvements in speed and memory usage.

PyTorch JIT and/or TorchScript TorchScript is a way to create serializable and optimizable models from PyTorch code. TorchScript, an intermediate representation of a PyTorch model (subclass of nn.Module) that can then be run in a high-performance environment such as C++.

Automatic Mixed Precision (AMP) Automatic Mixed Precision (AMP) enables mixed precision training on Volta, Turing, and NVIDIA Ampere GPU architectures automatically.

TensorFloat-32 (TF32) TensorFloat-32 (TF32) is the new math mode in NVIDIA A100 GPUs for handling the matrix math also called tensor operations. TF32 running on Tensor Cores in A100 GPUs can provide up to 10x speedups compared to single-precision floating-point math (FP32) on Volta GPUs. TF32 is supported in the NVIDIA Ampere GPU architecture and is enabled by default.

Jupyter Notebooks (NB) The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text.

Feedback / Contributions

We're posting these examples on GitHub to better support the community, facilitate feedback, as well as collect and implement contributions using GitHub Issues and pull requests. We welcome all contributions!

Known issues

In each of the network READMEs, we indicate any known issues and encourage the community to provide feedback.