Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
c8e4cdae
Commit
c8e4cdae
authored
Feb 17, 2022
by
Lawrence McAfee
Browse files
moved run.sh -> examples/
parent
a0bea425
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
examples/pretrain_gpt_switch.sh
examples/pretrain_gpt_switch.sh
+7
-15
No files found.
run
.sh
→
examples/pretrain_gpt_switch
.sh
View file @
c8e4cdae
#!/bin/bash
#SBATCH -A adlr -J adlr-nlp-largelm:switch_RUNVAR_expert -p luna -t 4:00:00 --nodes=1 --exclusive --mem=0 --overcommit --ntasks-per-node=8 --dependency=singleton
NAME
=
"gpt3-357m_switch_RUNVAR_expert"
#SBATCH <SLURM OPTIONS> --nodes=1 --exclusive --ntasks-per-node=8 --job-name=megatron_gpt_switch
DIR
=
`
pwd
`
DATETIME
=
`
date
+
'date_%y-%m-%d_time_%H-%M-%S'
`
mkdir
-p
$DIR
/logs
CHECKPOINT_DIR
=
"/lustre/fsw/adlr/adlr-nlp/rprenger/switch/
${
NAME
}
"
TENSORBOARD_DIR
=
"
${
CHECKPOINT_DIR
}
/tensorboard"
mkdir
-p
${
TENSORBOARD_DIR
}
# Get the data blend
.
/lustre/fsw/adlr/adlr-nlp/data/pile-cc1-cc2-shuf/gpt3_blend.sh
BPE_DIR
=
"/lustre/fsw/adlr/adlr-nlp/data/pile-cc1-cc2-shuf/bpe"
CHECKPOINT_DIR
=
"<PATH TO CHECKPOINT DIR>"
TENSORBOARD_DIR
=
"<PATH TO TENSORBOARD DIR>"
DATA_BLEND
=
"<PATH TO DATA BLEND>"
BPE_DIR
=
"<PATH TO BPE DIR>"
options
=
"
\
--exit-duration-in-mins 230
\
...
...
@@ -59,10 +53,8 @@ options=" \
run_cmd
=
"cd
$DIR
&& python pretrain_gpt.py
${
options
}
"
srun
-l
\
--container-image
"/lustre/fsw/adlr/adlr-nlp/images/pytorch+bf16_nccl_fusion.sqsh"
\
--container-mounts
"/lustre/fsw/adlr:/lustre/fsw/adlr,/home/rprenger/workspace:/home/rprenger/workspace"
\
--ntasks-per-node
8
\
--container-image
"nvcr.io/nvidia/pytorch:20.12-py3"
\
--container-mounts
"<DIRECTORIES TO MOUNT>"
\
--output
=
$DIR
/logs/%x_%j_
$DATETIME
.log sh
-c
"
${
run_cmd
}
"
set
+x
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment