|
|
+ source /mnt/weka/home/hao.zhang/conda/miniconda/bin/activate |
|
|
++ _CONDA_ROOT=/mnt/weka/home/hao.zhang/conda/miniconda |
|
|
++ . /mnt/weka/home/hao.zhang/conda/miniconda/etc/profile.d/conda.sh |
|
|
+++ export CONDA_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda |
|
|
+++ CONDA_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda |
|
|
+++ export _CE_M= |
|
|
+++ _CE_M= |
|
|
+++ export _CE_CONDA= |
|
|
+++ _CE_CONDA= |
|
|
+++ export CONDA_PYTHON_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/python |
|
|
+++ CONDA_PYTHON_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/python |
|
|
+++ '[' -z x ']' |
|
|
++ conda activate |
|
|
++ local cmd=activate |
|
|
++ case "$cmd" in |
|
|
++ __conda_activate activate |
|
|
++ '[' -n '' ']' |
|
|
++ local ask_conda |
|
|
+++ PS1= |
|
|
+++ __conda_exe shell.posix activate |
|
|
+++ '[' -n '' ']' |
|
|
+++ /mnt/weka/home/hao.zhang/conda/miniconda/bin/conda shell.posix activate |
|
|
++ ask_conda='unset _CE_M |
|
|
unset _CE_CONDA |
|
|
PS1='\''(base) '\'' |
|
|
export PATH='\''/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'\'' |
|
|
export CONDA_SHLVL='\''1'\'' |
|
|
export CONDA_PROMPT_MODIFIER='\''(base) '\'' |
|
|
export CONDA_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda'\'' |
|
|
export CONDA_PYTHON_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/python'\''' |
|
|
++ eval 'unset _CE_M |
|
|
unset _CE_CONDA |
|
|
PS1='\''(base) '\'' |
|
|
export PATH='\''/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'\'' |
|
|
export CONDA_SHLVL='\''1'\'' |
|
|
export CONDA_PROMPT_MODIFIER='\''(base) '\'' |
|
|
export CONDA_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda'\'' |
|
|
export CONDA_PYTHON_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/python'\''' |
|
|
+++ unset _CE_M |
|
|
+++ unset _CE_CONDA |
|
|
+++ PS1='(base) ' |
|
|
+++ export PATH=/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin |
|
|
+++ PATH=/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin |
|
|
+++ export CONDA_SHLVL=1 |
|
|
+++ CONDA_SHLVL=1 |
|
|
+++ export 'CONDA_PROMPT_MODIFIER=(base) ' |
|
|
+++ CONDA_PROMPT_MODIFIER='(base) ' |
|
|
+++ export CONDA_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda |
|
|
+++ CONDA_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda |
|
|
+++ export CONDA_PYTHON_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/python |
|
|
+++ CONDA_PYTHON_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/python |
|
|
++ __conda_hashr |
|
|
++ '[' -n '' ']' |
|
|
++ '[' -n '' ']' |
|
|
++ hash -r |
|
|
+ conda activate junda-attnserver |
|
|
+ local cmd=activate |
|
|
+ case "$cmd" in |
|
|
+ __conda_activate activate junda-attnserver |
|
|
+ '[' -n '' ']' |
|
|
+ local ask_conda |
|
|
++ PS1='(base) ' |
|
|
++ __conda_exe shell.posix activate junda-attnserver |
|
|
++ '[' -n '' ']' |
|
|
++ /mnt/weka/home/hao.zhang/conda/miniconda/bin/conda shell.posix activate junda-attnserver |
|
|
+ ask_conda='unset _CE_M |
|
|
unset _CE_CONDA |
|
|
PS1='\''(junda-attnserver) '\'' |
|
|
export PATH='\''/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'\'' |
|
|
export CONDA_PREFIX='\''/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver'\'' |
|
|
export CONDA_SHLVL='\''2'\'' |
|
|
export CONDA_DEFAULT_ENV='\''junda-attnserver'\'' |
|
|
export CONDA_PROMPT_MODIFIER='\''(junda-attnserver) '\'' |
|
|
export CONDA_PREFIX_1='\''/mnt/weka/home/hao.zhang/conda/miniconda'\'' |
|
|
export CONDA_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda'\'' |
|
|
export CONDA_PYTHON_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/python'\''' |
|
|
+ eval 'unset _CE_M |
|
|
unset _CE_CONDA |
|
|
PS1='\''(junda-attnserver) '\'' |
|
|
export PATH='\''/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'\'' |
|
|
export CONDA_PREFIX='\''/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver'\'' |
|
|
export CONDA_SHLVL='\''2'\'' |
|
|
export CONDA_DEFAULT_ENV='\''junda-attnserver'\'' |
|
|
export CONDA_PROMPT_MODIFIER='\''(junda-attnserver) '\'' |
|
|
export CONDA_PREFIX_1='\''/mnt/weka/home/hao.zhang/conda/miniconda'\'' |
|
|
export CONDA_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda'\'' |
|
|
export CONDA_PYTHON_EXE='\''/mnt/weka/home/hao.zhang/conda/miniconda/bin/python'\''' |
|
|
++ unset _CE_M |
|
|
++ unset _CE_CONDA |
|
|
++ PS1='(junda-attnserver) ' |
|
|
++ export PATH=/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin |
|
|
++ PATH=/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/.local/bin:/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/bin:/mnt/weka/home/hao.zhang/conda/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin |
|
|
++ export CONDA_PREFIX=/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver |
|
|
++ CONDA_PREFIX=/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver |
|
|
++ export CONDA_SHLVL=2 |
|
|
++ CONDA_SHLVL=2 |
|
|
++ export CONDA_DEFAULT_ENV=junda-attnserver |
|
|
++ CONDA_DEFAULT_ENV=junda-attnserver |
|
|
++ export 'CONDA_PROMPT_MODIFIER=(junda-attnserver) ' |
|
|
++ CONDA_PROMPT_MODIFIER='(junda-attnserver) ' |
|
|
++ export CONDA_PREFIX_1=/mnt/weka/home/hao.zhang/conda/miniconda |
|
|
++ CONDA_PREFIX_1=/mnt/weka/home/hao.zhang/conda/miniconda |
|
|
++ export CONDA_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda |
|
|
++ CONDA_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/conda |
|
|
++ export CONDA_PYTHON_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/python |
|
|
++ CONDA_PYTHON_EXE=/mnt/weka/home/hao.zhang/conda/miniconda/bin/python |
|
|
+ __conda_hashr |
|
|
+ '[' -n '' ']' |
|
|
+ '[' -n '' ']' |
|
|
+ hash -r |
|
|
+ export CHROME_TRACE_PREFIX=/mnt/sharefs/users/hao.zhang/junda/megatron-prof-data--unstable-v5 |
|
|
+ CHROME_TRACE_PREFIX=/mnt/sharefs/users/hao.zhang/junda/megatron-prof-data--unstable-v5 |
|
|
+ mkdir -p /mnt/sharefs/users/hao.zhang/junda/megatron-prof-data--unstable-v5 |
|
|
+ export PROF_TP_SIZE=8 |
|
|
+ PROF_TP_SIZE=8 |
|
|
+ export PROF_CP_SIZE=4 |
|
|
+ PROF_CP_SIZE=4 |
|
|
+ export PROF_BS=32 |
|
|
+ PROF_BS=32 |
|
|
+ for ctx_length in 1024 2048 4096 8192 12288 16384 24576 32768 40960 49152 65536 81920 98304 131072 |
|
|
+ export PROF_CTX_LENGTH=1024 |
|
|
+ PROF_CTX_LENGTH=1024 |
|
|
+ name='/mnt/sharefs/users/hao.zhang/junda/megatron-prof-data--unstable-v5/mytrace.L1024*tp8.cp4.bs32.json' |
|
|
+ '[' -f '/mnt/sharefs/users/hao.zhang/junda/megatron-prof-data--unstable-v5/mytrace.L1024*tp8.cp4.bs32.json' ']' |
|
|
+ echo 'Running ctx_length=1024, TP_SIZE=8, CP_SIZE=4, BATCH_SIZE=32' |
|
|
+ srun bash ./attnserver.sh |
|
|
+ which python3 |
|
|
+ python3 -m torch.distributed.launch --nproc_per_node 8 --nnodes 4 --node_rank 3 --rdzv_id 343200 --rdzv_backend c10d --rdzv_endpoint fs-mbz-gpu-852:29500 ./pretrain_gpt_profile.py --tensor-model-parallel-size 8 --context-parallel-size 4 --num-layers 2 --hidden-size 4096 --num-attention-heads 64 --group-query-attention --num-query-groups 16 --seq-length 1024 --max-position-embeddings 1024 --micro-batch-size 1 --global-batch-size 1 --lr 0.0005 --train-iters 10 --lr-decay-iters 150000 --lr-decay-style cosine --lr-warmup-iters 2 --weight-decay .1 --adam-beta2 .999 --fp16 --log-interval 1 --save-interval 16 --eval-interval 16 --eval-iters 1 --vocab-file vocab.json --merge-file merges.txt --save gpt-checkpoint --load gpt-checkpoint --logging-level 0 --mock-data --tensorboard-dir tensorboard-logs/ |
|
|
+ which python3 |
|
|
+ python3 -m torch.distributed.launch --nproc_per_node 8 --nnodes 4 --node_rank 2 --rdzv_id 343200 --rdzv_backend c10d --rdzv_endpoint fs-mbz-gpu-852:29500 ./pretrain_gpt_profile.py --tensor-model-parallel-size 8 --context-parallel-size 4 --num-layers 2 --hidden-size 4096 --num-attention-heads 64 --group-query-attention --num-query-groups 16 --seq-length 1024 --max-position-embeddings 1024 --micro-batch-size 1 --global-batch-size 1 --lr 0.0005 --train-iters 10 --lr-decay-iters 150000 --lr-decay-style cosine --lr-warmup-iters 2 --weight-decay .1 --adam-beta2 .999 --fp16 --log-interval 1 --save-interval 16 --eval-interval 16 --eval-iters 1 --vocab-file vocab.json --merge-file merges.txt --save gpt-checkpoint --load gpt-checkpoint --logging-level 0 --mock-data --tensorboard-dir tensorboard-logs/ |
|
|
+ which python3 |
|
|
+ python3 -m torch.distributed.launch --nproc_per_node 8 --nnodes 4 --node_rank 0 --rdzv_id 343200 --rdzv_backend c10d --rdzv_endpoint fs-mbz-gpu-852:29500 ./pretrain_gpt_profile.py --tensor-model-parallel-size 8 --context-parallel-size 4 --num-layers 2 --hidden-size 4096 --num-attention-heads 64 --group-query-attention --num-query-groups 16 --seq-length 1024 --max-position-embeddings 1024 --micro-batch-size 1 --global-batch-size 1 --lr 0.0005 --train-iters 10 --lr-decay-iters 150000 --lr-decay-style cosine --lr-warmup-iters 2 --weight-decay .1 --adam-beta2 .999 --fp16 --log-interval 1 --save-interval 16 --eval-interval 16 --eval-iters 1 --vocab-file vocab.json --merge-file merges.txt --save gpt-checkpoint --load gpt-checkpoint --logging-level 0 --mock-data --tensorboard-dir tensorboard-logs/ |
|
|
+ which python3 |
|
|
+ python3 -m torch.distributed.launch --nproc_per_node 8 --nnodes 4 --node_rank 1 --rdzv_id 343200 --rdzv_backend c10d --rdzv_endpoint fs-mbz-gpu-852:29500 ./pretrain_gpt_profile.py --tensor-model-parallel-size 8 --context-parallel-size 4 --num-layers 2 --hidden-size 4096 --num-attention-heads 64 --group-query-attention --num-query-groups 16 --seq-length 1024 --max-position-embeddings 1024 --micro-batch-size 1 --global-batch-size 1 --lr 0.0005 --train-iters 10 --lr-decay-iters 150000 --lr-decay-style cosine --lr-warmup-iters 2 --weight-decay .1 --adam-beta2 .999 --fp16 --log-interval 1 --save-interval 16 --eval-interval 16 --eval-iters 1 --vocab-file vocab.json --merge-file merges.txt --save gpt-checkpoint --load gpt-checkpoint --logging-level 0 --mock-data --tensorboard-dir tensorboard-logs/ |
|
|
/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/lib/python3.12/site-packages/torch/distributed/launch.py:207: FutureWarning: The module torch.distributed.launch is deprecated |
|
|
and will be removed in future. Use torchrun. |
|
|
Note that --use-env is set by default in torchrun. |
|
|
If your script expects `--local-rank` argument to be set, please |
|
|
change it to read from `os.environ['LOCAL_RANK']` instead. See |
|
|
https://pytorch.org/docs/stable/distributed.html |
|
|
further instructions |
|
|
|
|
|
main() |
|
|
W0621 21:08:49.911000 121562 site-packages/torch/distributed/run.py:766] |
|
|
W0621 21:08:49.911000 121562 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
W0621 21:08:49.911000 121562 site-packages/torch/distributed/run.py:766] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. |
|
|
W0621 21:08:49.911000 121562 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/lib/python3.12/site-packages/torch/distributed/launch.py:207: FutureWarning: The module torch.distributed.launch is deprecated |
|
|
and will be removed in future. Use torchrun. |
|
|
Note that --use-env is set by default in torchrun. |
|
|
If your script expects `--local-rank` argument to be set, please |
|
|
change it to read from `os.environ['LOCAL_RANK']` instead. See |
|
|
https://pytorch.org/docs/stable/distributed.html |
|
|
further instructions |
|
|
|
|
|
main() |
|
|
/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/lib/python3.12/site-packages/torch/distributed/launch.py:207: FutureWarning: The module torch.distributed.launch is deprecated |
|
|
and will be removed in future. Use torchrun. |
|
|
Note that --use-env is set by default in torchrun. |
|
|
If your script expects `--local-rank` argument to be set, please |
|
|
change it to read from `os.environ['LOCAL_RANK']` instead. See |
|
|
https://pytorch.org/docs/stable/distributed.html |
|
|
further instructions |
|
|
|
|
|
main() |
|
|
W0621 21:08:49.997000 2041342 site-packages/torch/distributed/run.py:766] |
|
|
W0621 21:08:49.997000 2041342 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
W0621 21:08:49.997000 2041342 site-packages/torch/distributed/run.py:766] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. |
|
|
W0621 21:08:49.997000 2041342 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
W0621 21:08:49.997000 3410371 site-packages/torch/distributed/run.py:766] |
|
|
W0621 21:08:49.997000 3410371 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
W0621 21:08:49.997000 3410371 site-packages/torch/distributed/run.py:766] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. |
|
|
W0621 21:08:49.997000 3410371 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
/mnt/weka/home/hao.zhang/conda/miniconda/envs/junda-attnserver/lib/python3.12/site-packages/torch/distributed/launch.py:207: FutureWarning: The module torch.distributed.launch is deprecated |
|
|
and will be removed in future. Use torchrun. |
|
|
Note that --use-env is set by default in torchrun. |
|
|
If your script expects `--local-rank` argument to be set, please |
|
|
change it to read from `os.environ['LOCAL_RANK']` instead. See |
|
|
https://pytorch.org/docs/stable/distributed.html |
|
|
further instructions |
|
|
|
|
|
main() |
|
|
W0621 21:08:50.019000 3341756 site-packages/torch/distributed/run.py:766] |
|
|
W0621 21:08:50.019000 3341756 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
W0621 21:08:50.019000 3341756 site-packages/torch/distributed/run.py:766] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. |
|
|
W0621 21:08:50.019000 3341756 site-packages/torch/distributed/run.py:766] ***************************************** |
|
|
|