Skip to content

Commit

Permalink
yolov3: reduce batch size due to OOM
Browse files Browse the repository at this point in the history
  • Loading branch information
xmfan committed Oct 23, 2023
1 parent b5631ed commit c5fb66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchbenchmark/models/yolov3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Model(BenchmarkModel):
task = COMPUTER_VISION.SEGMENTATION
# Original train batch size: 16
# Source: https://github.com/ultralytics/yolov3/blob/master/train.py#L447
DEFAULT_TRAIN_BSIZE = 16
DEFAULT_TRAIN_BSIZE = 8 # reduced from 16 to 8 due to OOM in TorchInductor dashboard
DEFAULT_EVAL_BSIZE = 8
# yolov3 CUDA inference test uses amp precision
DEFAULT_EVAL_CUDA_PRECISION = "amp"
Expand Down

0 comments on commit c5fb66e

Please sign in to comment.