at 28 and above we start to need batch size 8
This commit is contained in:
+4
-2
@@ -57,8 +57,10 @@ for d in "${DEPTHS[@]}"; do
|
|||||||
TAG="${SERIES_NAME}_miniseries_d${d}"
|
TAG="${SERIES_NAME}_miniseries_d${d}"
|
||||||
START_TIME=$(date +%s)
|
START_TIME=$(date +%s)
|
||||||
|
|
||||||
# For depths >= 22, use smaller device batch size to avoid OOM
|
# Reduce --device-batch-size to avoid OOM at larger depths
|
||||||
if [ $d -ge 22 ]; then
|
if [ $d -ge 28 ]; then
|
||||||
|
DEVICE_BATCH_SIZE_ARG="--device-batch-size=8"
|
||||||
|
elif [ $d -ge 20 ]; then
|
||||||
DEVICE_BATCH_SIZE_ARG="--device-batch-size=16"
|
DEVICE_BATCH_SIZE_ARG="--device-batch-size=16"
|
||||||
else
|
else
|
||||||
DEVICE_BATCH_SIZE_ARG="--device-batch-size=32"
|
DEVICE_BATCH_SIZE_ARG="--device-batch-size=32"
|
||||||
|
|||||||
Reference in New Issue
Block a user