Skip to content

Commit e72142d

Browse files
Add missing DEFAULT_TRAIN_BSIZE field
1 parent 9028c93 commit e72142d

File tree

12 files changed

+12
-0
lines changed

12 files changed

+12
-0
lines changed

torchbenchmark/models/cm3leon_generate/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
class Model(BenchmarkModel):
99
task = NLP.LANGUAGE_MODELING
1010
DEFAULT_EVAL_BSIZE = 1
11+
DEFAULT_TRAIN_BSIZE = 1
1112

1213
def __init__(self, test, device, batch_size=None, extra_args=[]):
1314
super().__init__(

torchbenchmark/models/doctr_det_predictor/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class Model(BenchmarkModel):
1414
task = COMPUTER_VISION.DETECTION
1515
DEFAULT_EVAL_BSIZE = 1
16+
DEFAULT_TRAIN_BSIZE = 1
1617
CANNOT_SET_CUSTOM_OPTIMIZER = True
1718

1819
def __init__(self, test, device, batch_size=None, extra_args=[]):

torchbenchmark/models/doctr_reco_predictor/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class Model(BenchmarkModel):
1414
task = COMPUTER_VISION.DETECTION
1515
DEFAULT_EVAL_BSIZE = 1
16+
DEFAULT_TRAIN_BSIZE = 1
1617
CANNOT_SET_CUSTOM_OPTIMIZER = True
1718

1819
def __init__(self, test, device, batch_size=None, extra_args=[]):

torchbenchmark/models/llama/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class Model(BenchmarkModel):
1313
task = NLP.LANGUAGE_MODELING
1414
DEFAULT_EVAL_BSIZE = 32
15+
DEFAULT_TRAIN_BSIZE = 32
1516

1617
def __init__(self, test, device, batch_size=None, extra_args=[]):
1718
super().__init__(

torchbenchmark/models/pyhpc_equation_of_state/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Model(BenchmarkModel):
4040
# Source: https://github.com/dionhaefner/pyhpc-benchmarks/blob/650ecc650e394df829944ffcf09e9d646ec69691/run.py#L25
4141
# Pick data point: i = 20, size = 1048576
4242
DEFAULT_EVAL_BSIZE = 1048576
43+
DEFAULT_TRAIN_BSIZE = 1048576
4344
CANNOT_SET_CUSTOM_OPTIMIZER = True
4445

4546
def __init__(self, test, device, batch_size=None, extra_args=[]):

torchbenchmark/models/pyhpc_isoneutral_mixing/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class Model(BenchmarkModel):
131131
# Source: https://github.com/dionhaefner/pyhpc-benchmarks/blob/650ecc650e394df829944ffcf09e9d646ec69691/run.py#L25
132132
# Pick data-point when i = 20, size = 1048576
133133
DEFAULT_EVAL_BSIZE = 1048576
134+
DEFAULT_TRAIN_BSIZE = 1048576
134135
CANNOT_SET_CUSTOM_OPTIMIZER = True
135136

136137
def __init__(self, test, device, batch_size=None, extra_args=[]):

torchbenchmark/models/pyhpc_turbulent_kinetic_energy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class Model(BenchmarkModel):
129129
# Source: https://github.com/dionhaefner/pyhpc-benchmarks/blob/650ecc650e394df829944ffcf09e9d646ec69691/run.py#L25
130130
# Pick data-point when i = 20, size = 1048576
131131
DEFAULT_EVAL_BSIZE = 1048576
132+
DEFAULT_TRAIN_BSIZE = 1048576
132133
ALLOW_CUSTOMIZE_BSIZE = False
133134
CANNOT_SET_CUSTOM_OPTIMIZER = True
134135

torchbenchmark/models/sam/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
class Model(BenchmarkModel):
1818
task = COMPUTER_VISION.SEGMENTATION
1919
DEFAULT_EVAL_BSIZE = 32
20+
DEFAULT_TRAIN_BSIZE = 32
2021

2122
def __init__(self, test, device, batch_size=1, extra_args=[]):
2223
super().__init__(

torchbenchmark/models/sam_fast/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
class Model(BenchmarkModel):
1919
task = COMPUTER_VISION.SEGMENTATION
2020
DEFAULT_EVAL_BSIZE = 32
21+
DEFAULT_TRAIN_BSIZE = 32
2122

2223
def __init__(self, test, device, batch_size=1, extra_args=[]):
2324
super().__init__(

torchbenchmark/models/simple_gpt/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class Model(BenchmarkModel):
1212
task = NLP.GENERATION
1313
DEFAULT_EVAL_BSIZE = 1
14+
DEFAULT_TRAIN_BSIZE = 1
1415

1516
def validate_environment(self):
1617
if not torch.cuda.is_available() or "cuda" not in self.device:

0 commit comments

Comments
 (0)