Commit e0e3d12
Dropout with 8-bit RNG (NVIDIA#2014)
* Add dropout kernel with 8-bit RNG
Co-authored-by: Vasudevan Rengasamy <vrengasamy@nvidia.com>
Co-authored-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix license
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* Avoid ambiguous types
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* Do not enforce dropout prob is representable in 8 bits
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* Expand error message
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix small statistical bug from using less-equal instead of less-than
Refactor kernel implementations and add comments. Interpret masks as bytes rather than 16-bit uints.
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* Fix linter warning
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove unnecessary helper function in PyTorch extensions
Signed-off-by: Tim Moon <tmoon@nvidia.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: Tim Moon <tmoon@nvidia.com>
Co-authored-by: Tim Moon <tmoon@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 607fcc4 commit e0e3d12
9 files changed
Lines changed: 639 additions & 33 deletions
File tree
- tests/pytorch
- transformer_engine
- common
- dropout
- include/transformer_engine
- pytorch
- csrc
- extensions
- ops/basic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
1752 | | - | |
| 1752 | + | |
1753 | 1753 | | |
1754 | | - | |
| 1754 | + | |
| 1755 | + | |
1755 | 1756 | | |
1756 | 1757 | | |
1757 | 1758 | | |
1758 | 1759 | | |
1759 | 1760 | | |
1760 | 1761 | | |
| 1762 | + | |
1761 | 1763 | | |
1762 | 1764 | | |
1763 | 1765 | | |
1764 | 1766 | | |
1765 | 1767 | | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
1766 | 1772 | | |
1767 | | - | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1771 | 1790 | | |
1772 | 1791 | | |
1773 | 1792 | | |
1774 | 1793 | | |
1775 | 1794 | | |
1776 | 1795 | | |
1777 | 1796 | | |
1778 | | - | |
1779 | | - | |
| 1797 | + | |
| 1798 | + | |
1780 | 1799 | | |
1781 | 1800 | | |
| 1801 | + | |
| 1802 | + | |
1782 | 1803 | | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
1786 | 1808 | | |
1787 | | - | |
1788 | | - | |
| 1809 | + | |
| 1810 | + | |
1789 | 1811 | | |
1790 | 1812 | | |
1791 | 1813 | | |
| |||
1797 | 1819 | | |
1798 | 1820 | | |
1799 | 1821 | | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
1803 | 1827 | | |
1804 | 1828 | | |
1805 | 1829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
297 | 329 | | |
298 | 330 | | |
299 | 331 | | |
| |||
303 | 335 | | |
304 | 336 | | |
305 | 337 | | |
| 338 | + | |
306 | 339 | | |
307 | 340 | | |
308 | 341 | | |
| |||
0 commit comments