Skip to content

Fix v4-megatron-sakura installer #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions pretrain/installers/v4-megatron-abci/qsub_setup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/bin/bash
#PBS -P gcg51557
#PBS -q R10415
#PBS -v RTYPE=rt_HF
#PBS -l select=1
#PBS -l walltime=01:00:00
#PBS -o /dev/null
#PBS -e /dev/null

cd $PBS_O_WORKDIR

Expand Down
13 changes: 9 additions & 4 deletions pretrain/installers/v4-megatron-abci/run_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@

set -eu -o pipefail

if [ $# -ne 1 ]; then
>&2 echo "Usage: $0 <target-dir>"
>&2 echo "Example: $0 /path/to/target_dir"
if [ $# -ne 2 ]; then
>&2 echo "Usage: $0 <target-dir> <reservation-id>"
>&2 echo "Example: $0 /path/to/target_dir R01234567890"
exit 1
fi

target_dir=$1; shift
reservation_id=$1; shift

qsub \
-P gcg51557 \
-q ${reservation_id} \
-v TARGET_DIR=${target_dir},RTYPE=rt_HF \
-o /dev/null -e /dev/null \
-m n \
-o /dev/null \
-e /dev/null \
-l select=1,walltime=01:00:00 \
qsub_setup.sh