NVIDIA
NVIDIA
SE-ResNeXt101-32x4d for PyTorch
Resource
NVIDIA
NVIDIA
SE-ResNeXt101-32x4d for PyTorch

ResNeXt with Squeeze-and-Excitation module added.

The performance measurements in this document were conducted at the time of publication and may not reflect the performance achieved from NVIDIA's latest software release. For the most up-to-date performance measurements, go to NVIDIA Data Center Deep Learning Product Performance.

Benchmarking

The following section shows how to run benchmarks measuring the model performance in training and inference modes.

Training performance benchmark

To benchmark training, run:

  • For 1 GPU
    • FP32 (V100 GPUs only) python ./launch.py --model se-resnext101-32x4d --precision FP32 --mode benchmark_training --platform DGX1V <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100
    • TF32 (A100 GPUs only) python ./launch.py --model se-resnext101-32x4d --precision TF32 --mode benchmark_training --platform DGXA100 <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100
    • AMP python ./launch.py --model se-resnext101-32x4d --precision AMP --mode benchmark_training --platform <DGX1V|DGXA100> <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100
  • For multiple GPUs
    • FP32 (V100 GPUs only) python ./launch.py --model se-resnext101-32x4d --precision FP32 --mode benchmark_training --platform DGX1V <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100
    • TF32 (A100 GPUs only) python ./multiproc.py --nproc_per_node 8 ./launch.py --model se-resnext101-32x4d --precision TF32 --mode benchmark_training --platform DGXA100 <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100
    • AMP python ./multiproc.py --nproc_per_node 8 ./launch.py --model se-resnext101-32x4d --precision AMP --mode benchmark_training --platform <DGX1V|DGXA100> <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100

Each of these scripts will run 100 iterations and save results in the benchmark.json file.

Inference performance benchmark

To benchmark inference, run:

  • FP32 (V100 GPUs only)

python ./launch.py --model se-resnext101-32x4d --precision FP32 --mode benchmark_inference --platform DGX1V <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100

  • TF32 (A100 GPUs only)

python ./launch.py --model se-resnext101-32x4d --precision TF32 --mode benchmark_inference --platform DGXA100 <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100

  • AMP

python ./launch.py --model se-resnext101-32x4d --precision AMP --mode benchmark_inference --platform <DGX1V|DGXA100> <path to imagenet> --raport-file benchmark.json --epochs 1 --prof 100

Each of these scripts will run 100 iterations and save results in the benchmark.json file.

Results

Training accuracy results

Our results were obtained by running the applicable training script the pytorch-20.12 NGC container.

To achieve these same results, follow the steps in the Quick Start Guide.

Training accuracy: NVIDIA DGX A100 (8x A100 80GB)
EpochsMixed Precision Top1TF32 Top1
9080.03 +/- 0.1179.92 +/- 0.07
25080.9 +/- 0.0880.98 +/- 0.07
Training accuracy: NVIDIA DGX-1 (8x V100 16GB)
EpochsMixed Precision Top1FP32 Top1
9080.04 +/- 0.0779.93 +/- 0.10
25080.92 +/- 0.0980.97 +/- 0.09
Example plots

The following images show a 250 epochs configuration on a DGX-1V.

ValidationLoss

ValidationTop1

ValidationTop5

Training performance results

Our results were obtained by running the applicable training script the pytorch-21.03 NGC container.

To achieve these same results, follow the steps in the Quick Start Guide.

Training performance: NVIDIA DGX A100 (8x A100 80GB)
GPUsThroughput - TF32Throughput - mixed precisionThroughput speedup (TF32 to mixed precision)TF32 Strong ScalingMixed Precision Strong ScalingMixed Precision Training Time (90E)TF32 Training Time (90E)
1395 img/s855 img/s2.16 x1.0 x1.0 x~40 hours~86 hours
82991 img/s5779 img/s1.93 x7.56 x6.75 x~6 hours~12 hours
Training performance: NVIDIA DGX-1 16GB (8x V100 16GB)
GPUsThroughput - FP32Throughput - mixed precisionThroughput speedup (FP32 to mixed precision)FP32 Strong ScalingMixed Precision Strong ScalingMixed Precision Training Time (90E)FP32 Training Time (90E)
1132 img/s443 img/s3.34 x1.0 x1.0 x~76 hours~254 hours
81004 img/s2971 img/s2.95 x7.57 x6.7 x~12 hours~34 hours
Training performance: NVIDIA DGX-1 32GB (8x V100 32GB)
GPUsThroughput - FP32Throughput - mixed precisionThroughput speedup (FP32 to mixed precision)FP32 Strong ScalingMixed Precision Strong ScalingMixed Precision Training Time (90E)FP32 Training Time (90E)
1130 img/s427 img/s3.26 x1.0 x1.0 x~79 hours~257 hours
8992 img/s2925 img/s2.94 x7.58 x6.84 x~12 hours~34 hours

Inference performance results

Our results were obtained by running the applicable training script the pytorch-21.03 NGC container.

To achieve these same results, follow the steps in the Quick Start Guide.

Inference performance: NVIDIA DGX-1 (1x V100 16GB)
FP32 Inference Latency
Batch SizeThroughput AvgLatency AvgLatency 95%Latency 99%
140 img/s24.92 ms26.78 ms31.12 ms
280 img/s24.89 ms27.63 ms30.81 ms
4127 img/s31.58 ms35.92 ms39.64 ms
8250 img/s32.29 ms34.5 ms38.14 ms
16363 img/s44.5 ms44.16 ms44.37 ms
32423 img/s76.86 ms75.89 ms76.17 ms
64472 img/s138.36 ms135.85 ms136.52 ms
128501 img/s262.64 ms255.48 ms256.02 ms
256508 img/s519.84 ms500.71 ms501.5 ms
Mixed Precision Inference Latency
Batch SizeThroughput AvgLatency AvgLatency 95%Latency 99%
129 img/s33.83 ms39.1 ms41.57 ms
258 img/s34.35 ms36.92 ms41.66 ms
4117 img/s34.33 ms38.67 ms41.05 ms
8232 img/s34.66 ms39.51 ms42.16 ms
16459 img/s35.23 ms36.77 ms38.11 ms
32871 img/s37.62 ms39.36 ms41.26 ms
641416 img/s46.95 ms45.26 ms47.48 ms
1281533 img/s87.49 ms83.54 ms83.75 ms
2561576 img/s170.79 ms161.97 ms162.93 ms
Inference performance: NVIDIA T4
FP32 Inference Latency
Batch SizeThroughput AvgLatency AvgLatency 95%Latency 99%
140 img/s25.12 ms28.83 ms31.59 ms
275 img/s26.82 ms30.54 ms33.13 ms
4136 img/s29.79 ms33.33 ms37.65 ms
8155 img/s51.74 ms52.57 ms53.12 ms
16164 img/s97.99 ms98.76 ms99.21 ms
32173 img/s186.31 ms186.43 ms187.4 ms
64171 img/s378.1 ms377.19 ms378.82 ms
128165 img/s785.83 ms778.23 ms782.64 ms
256158 img/s1641.96 ms1601.74 ms1614.52 ms
Mixed Precision Inference Latency
Batch SizeThroughput AvgLatency AvgLatency 95%Latency 99%
131 img/s32.51 ms37.26 ms39.53 ms
261 img/s32.76 ms37.61 ms39.62 ms
4123 img/s32.98 ms38.97 ms42.66 ms
8262 img/s31.01 ms36.3 ms39.11 ms
16482 img/s33.76 ms34.54 ms38.5 ms
32512 img/s63.68 ms63.29 ms63.73 ms
64527 img/s123.57 ms122.69 ms123.56 ms
128525 img/s248.97 ms245.39 ms246.66 ms
256527 img/s496.23 ms485.68 ms488.3 ms

NVIDIA uses cookies to improve your experience on our web site. We and our third-party partners also use cookies and other tools to collect and record information you provide as well as information about your interactions with our websites for performance improvement, analytics, and to assist in marketing efforts. By clicking "Accept All", you consent to our use of cookies and other tools as described in our Cookie Policy. You can manage your cookie settings by clicking on "Manage Settings." By continuing to use this site or by clicking one of the buttons below, you agree to our Terms of Service (which contains important waivers). Please see our Privacy Policy for more information on our privacy practices.