Skip to content

Commit ae2c801

Browse files
authored
Restrict vit training to single socket (#1484)
1 parent 5b98b14 commit ae2c801

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

quickstart/image_recognition/tensorflow/vision_transformer/training/cpu/run_vit_fine_tune.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ if [ -z "${BATCH_SIZE}"]; then
7070
echo "Running with default batch size of ${BATCH_SIZE}"
7171
fi
7272

73+
# Execute launch_benchmark with socket id 0, to run single instance on single socket
74+
echo "Running one innstance of vision transformer fine-tuning on single socket"
75+
7376
# Run vision transformer training
7477
source "$MODEL_DIR/quickstart/common/utils.sh"
7578
_command python ${MODEL_DIR}/benchmarks/launch_benchmark.py \
@@ -81,6 +84,7 @@ _command python ${MODEL_DIR}/benchmarks/launch_benchmark.py \
8184
--epochs=${EPOCHS} \
8285
--data-location $DATASET_DIR \
8386
--checkpoint $OUTPUT_DIR \
87+
--socket_id=0 \
8488
$@ \
8589
--init-checkpoint=$INIT_CHECKPOINT_DIR
8690

0 commit comments

Comments
 (0)