Skip to main content
NVIDIA
NCF for PyTorch
Resource
NVIDIA
NCF for PyTorch

The NCF model focuses on providing recommendations. This is a modified implementation with improved overfitting and better accuracy.

Performance

Results

The following sections provide details on how we achieved our performance and accuracy in training and inference.

Training accuracy results

The following table lists the best hit rate at 10 for DGX-1 with 8 V100 32G GPUs:

Number of GPUsFull precision HR@10Mixed precision HR@10
10.9590150.959485
40.9593890.959274
80.9590150.96

Here's an example validation accuracy curve for mixed precision vs full precision on DGX-1 with 8 V100 32G GPUs:

ValidationAccuracy

The histogram below shows the best HR@10 achieved for 400 experiments using mixed precision and 400 experiments using single precision. Mean HR@10 for mixed precision was equal to 0.95917 and for single precision it was equal to 0.95915. hr_histogram

Training performance results

NVIDIA DGX-1 with 8 V100 16G GPUs

The following table shows the best training throughput:

Number of GPUs (samples/sec)Mixed precision (samples/sec)Full precision (samples/sec)Speedup
120,027 8409,529,2712.10
462,633 26032,719,7001.91
899,332 23055,004,5901.81
NVIDIA DGX-1 with 8 V100 32G GPUs

The following table shows the best training throughput:

Number of GPUs (samples/sec)Mixed precision (samples/sec)Full precision (samples/sec)Speedup
118,871 6509,206 4242.05
459,413 64031,898 8701.86
894,752 77053,645 6401.77

Inference performance results

NVIDIA DGX-1 with 8 V100 16G GPUs

The following table shows the best inference throughput:

Number of GPUs (samples/sec)Mixed precision (samples/sec)Full precision (samples/sec)Speedup
158,836,42028,964,9642.03
NVIDIA DGX-1 with 8 V100 32G GPUs

The following table shows the best inference throughput:

Number of GPUs (samples/sec)Mixed precision (samples/sec)Full precision (samples/sec)Speedup
155,317,01028,470,9201.94

Modal Content

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.