-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
132 changed files
with
12,494 additions
and
4,209 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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.12.0 | ||
1.13.0 |
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
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,3 @@ | ||
_build | ||
doxygen | ||
sphinx_rtd_theme |
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
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,21 @@ | ||
diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html | ||
index e6a38b1..579eaec 100644 | ||
--- a/sphinx_rtd_theme/layout.html | ||
+++ b/sphinx_rtd_theme/layout.html | ||
@@ -124,6 +124,16 @@ | ||
{%- endif %} | ||
</a> | ||
|
||
+ {# Show TE version and version selector #} | ||
+ <div class="version"> | ||
+ {{ version }} | ||
+ <br> | ||
+ Version select: <select onChange="window.location.href = this.value" onFocus="this.selectedIndex = {0}"> | ||
+ <option value="https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html"{1}>Current release</option> | ||
+ <option value="https://docs.nvidia.com/deeplearning/transformer-engine/documentation-archive.html">Older releases</option> | ||
+ </select> | ||
+ </div> | ||
+ | ||
{%- if READTHEDOCS or DEBUG %} | ||
{%- if theme_version_selector or theme_language_selector %} | ||
<div class="switch-menus"> |
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
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,58 @@ | ||
# Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# | ||
# See LICENSE for license information. | ||
|
||
set -e | ||
|
||
# Paths | ||
: ${TE_PATH:=/opt/transformerengine} | ||
: ${MCORE_PATH:=${TE_PATH}/qa/L1_pytorch_mcore_integration/Megatron-LM} | ||
|
||
# Download Megatron-LM if needed | ||
if [ ! -d "${MCORE_PATH}" ]; then | ||
pushd $(dirname ${MCORE_PATH}) | ||
git clone -b core_r0.9.0 https://github.com/NVIDIA/Megatron-LM.git Megatron-LM | ||
popd | ||
fi | ||
|
||
# Megatron-LM invocation | ||
COMMAND=" | ||
NVTE_TORCH_COMPILE=0 | ||
NVTE_ALLOW_NONDETERMINISTIC_ALGO=0 | ||
NVTE_FLASH_ATTN=1 | ||
NVTE_FWD_LAYERNORM_SM_MARGIN=0 | ||
NVTE_BWD_LAYERNORM_SM_MARGIN=0 | ||
CUDA_DEVICE_MAX_CONNECTIONS=1 | ||
NVTE_BIAS_GELU_NVFUSION=0 | ||
NVTE_BIAS_DROPOUT_FUSION=0 | ||
python | ||
-m torch.distributed.launch | ||
--use_env | ||
--nnodes=1 | ||
--nproc_per_node=1 | ||
${MCORE_PATH}/pretrain_gpt.py | ||
--tensor-model-parallel-size 1 | ||
--pipeline-model-parallel-size 1 | ||
--use-cpu-initialization | ||
--num-layers 2 | ||
--hidden-size 128 | ||
--num-attention-heads 8 | ||
--seq-length 128 | ||
--max-position-embeddings 2048 | ||
--micro-batch-size 1 | ||
--global-batch-size 8 | ||
--train-iters 10 | ||
--eval-iters 10 | ||
--lr 1e-4 | ||
--mock-data | ||
--vocab-file /data/gpt3/pile-cc1-cc2-shuf/bpe/gpt2-vocab.json | ||
--merge-file /data/gpt3/pile-cc1-cc2-shuf/bpe/gpt2-merges.txt | ||
--transformer-impl transformer_engine | ||
--fp8-format hybrid | ||
" | ||
COMMAND=$(echo "${COMMAND}" | tr '\n' ' ') | ||
|
||
# Launch Megatron-LM | ||
bash -c "${COMMAND}" |
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
Oops, something went wrong.