Skip to content

Commit

Permalink
Generate several regnetY model variants upto 5B params
Browse files Browse the repository at this point in the history
Summary: generating more variants that can be used to push model scale. we study deeper, wider , deeper + wider

Reviewed By: min-xu-ai

Differential Revision: D26484267

fbshipit-source-id: fbc28a4d2ec1d8f0f61ffc16bbeaa989489afbed
  • Loading branch information
prigoyal authored and facebook-github-bot committed Feb 19, 2021
1 parent 2e194e5 commit 3502ee9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/low_resource_1gpu_train_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ SRC_DIR=$(dirname "${SRC_DIR}")
CHECKPOINT_DIR=$(mktemp -d)
TYPE=${TYPE-engine} # engine | svm | cluster | knn
CFG=( "$@" )
DEVICE=${DEVICE-gpu}
DIST_BACKEND=${DIST_BACKEND-nccl}

########################## Select the binary ##################################
if [ "$TYPE" = "engine" ]; then
Expand All @@ -35,12 +37,13 @@ echo "Starting...."
# shellcheck disable=SC2086
$BINARY ${CFG[*]} \
config.DATA.NUM_DATALOADER_WORKERS=0 \
config.MACHINE.DEVICE=gpu \
config.MACHINE.DEVICE=$DEVICE \
config.MULTI_PROCESSING_METHOD=forkserver \
config.DISTRIBUTED.INIT_METHOD=tcp \
config.DISTRIBUTED.RUN_ID=auto \
config.DISTRIBUTED.NUM_NODES=1 \
config.DISTRIBUTED.NUM_PROC_PER_NODE=1 \
config.DISTRIBUTED.BACKEND=$DIST_BACKEND \
config.CHECKPOINT.DIR="$CHECKPOINT_DIR" \
config.MODEL.SYNC_BN_CONFIG.SYNC_BN_TYPE=pytorch \
config.DATA.TRAIN.BATCHSIZE_PER_REPLICA=16 \
Expand Down

0 comments on commit 3502ee9

Please sign in to comment.