forked from NVIDIA/Megatron-LM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update scaling numbers in README and other small tweaks.
- Loading branch information
1 parent
1251833
commit 5281919
Showing
6 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
default: cases.png scaling-mp.png scaling-dp.png | ||
|
||
# for some reason the size option to convert in scaling.tex doesn't work, manually do it after | ||
cases.png scaling-mp.png scaling-dp.png: tables.tex | ||
latex --shell-escape $< | ||
convert tables-1.png -resize 650 cases.png | ||
convert tables-2.png -resize 600 scaling-mp.png | ||
convert tables-3.png -resize 350 scaling-dp.png | ||
|
||
clean: | ||
rm -rf *.aux *.log *.dvi *.ps | ||
rm -rf tables-*.png |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
\documentclass[multi,convert]{standalone} | ||
\usepackage{multirow} | ||
\standaloneenv{tabular} | ||
|
||
\begin{document} | ||
|
||
\begin{tabular}{cccccc} | ||
Case & Hidden Size & Attention Heads & Layers & Parameters (billions) & Model Parallel Partitions \\ | ||
\hline | ||
1B & 1920 & 15 & 24 & 1.16 & 1 \\ | ||
2B & 2304 & 18 & 30 & 2.03 & 2 \\ | ||
4B & 3072 & 24 & 36 & 4.24 & 4 \\ | ||
8B & 4096 & 32 & 42 & 8.67 & 8 \\ | ||
\end{tabular} | ||
|
||
\begin{tabular}{cc|ccc|ccc} | ||
& & \multicolumn{3}{c|}{\textbf{DGX-2 (V100) batch size 8}} & \multicolumn{3}{c}{\textbf{DGX-A100 batch size 16}} \\ | ||
\hline | ||
\multirow{2}{*}{Case} & Number of & Iteration & \multirow{2}{*}{Scaling} & TeraFLOPs & Iteration & \multirow{2}{*}{Scaling} & TeraFLOPs \\ | ||
& GPUs & Time (ms) & & per GPU & Time (ms) & & per GPU \\ | ||
\hline | ||
1B & 1 & 1121 & 100.0\% & 71.9 & 1076 & 100\% & 149.8 \\ | ||
2B & 2 & 1093 & 89.6\% & 64.2 & 1026 & 91.7\% & 136.8 \\ | ||
4B & 4 & 1238 & 82.5\% & 58.5 & 1162 & 84.5\% & 124.7 \\ | ||
8B & 8 & 1407 & 74.3\% & 52.2 & 1343 & 74.7\% & 109.3 \\ | ||
\end{tabular} | ||
|
||
\begin{tabular}{cc|ccc} | ||
& & \multicolumn{3}{c}{\textbf{DGX-A100 batch size 2048}} \\ | ||
\hline | ||
\multirow{2}{*}{Case} & Number of & Iteration & \multirow{2}{*}{Scaling} & TeraFLOPs \\ | ||
& GPUs & Time (ms) & & per GPU \\ | ||
\hline | ||
1B & 128 & 1153 & 93.3\% & 139.8 \\ | ||
2B & 256 & 1101 & 85.5\% & 127.5 \\ | ||
4B & 512 & 1242 & 79.0\% & 116.7 \\ | ||
8B & 1024 & 1380 & 72.7\% & 106.5 \\ | ||
\end{tabular} | ||
|
||
\end{document} |