The best ChatGPT that $100 can buy.
Python
at 28 and above we start to need batch size 8
Andrej Karpathy1ec0a347792f
diff --git a/runs/miniseries.sh b/runs/miniseries.shindex e57ee16..01c4459 100644--- a/runs/miniseries.sh+++ b/runs/miniseries.sh@@ -57,8 +57,10 @@ for d in "${DEPTHS[@]}"; doTAG="${SERIES_NAME}_miniseries_d${d}"START_TIME=$(date +%s)- # For depths >= 22, use smaller device batch size to avoid OOM- if [ $d -ge 22 ]; then+ # Reduce --device-batch-size to avoid OOM at larger depths+ if [ $d -ge 28 ]; then+ DEVICE_BATCH_SIZE_ARG="--device-batch-size=8"+ elif [ $d -ge 20 ]; thenDEVICE_BATCH_SIZE_ARG="--device-batch-size=16"elseDEVICE_BATCH_SIZE_ARG="--device-batch-size=32"