Skip to content

Commit 8c0b050

Browse files
Merge pull request #715 from mlcommons/dev
dev -> main
2 parents c211386 + 060b20d commit 8c0b050

File tree

1,280 files changed

+226972
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,280 files changed

+226972
-53
lines changed

algorithmic_efficiency/workloads/imagenet_resnet/imagenet_jax/workload.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ def use_silu(self) -> bool:
272272

273273
@property
274274
def validation_target_value(self) -> float:
275-
return 0.22009
275+
return 1 - 0.22009
276276

277277
@property
278278
def test_target_value(self) -> float:
279-
return 0.3426
279+
return 1 - 0.3426
280280

281281

282282
class ImagenetResNetGELUWorkload(ImagenetResNetWorkload):
@@ -287,11 +287,11 @@ def use_gelu(self) -> bool:
287287

288288
@property
289289
def validation_target_value(self) -> float:
290-
return 0.22077
290+
return 1 - 0.22077
291291

292292
@property
293293
def test_target_value(self) -> float:
294-
return 0.3402
294+
return 1 - 0.3402
295295

296296

297297
class ImagenetResNetLargeBNScaleWorkload(ImagenetResNetWorkload):
@@ -302,8 +302,8 @@ def bn_init_scale(self) -> float:
302302

303303
@property
304304
def validation_target_value(self) -> float:
305-
return 0.23474
305+
return 1 - 0.23474
306306

307307
@property
308308
def test_target_value(self) -> float:
309-
return 0.3577
309+
return 1 - 0.3577

algorithmic_efficiency/workloads/imagenet_resnet/imagenet_pytorch/workload.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,11 @@ def use_silu(self) -> bool:
326326

327327
@property
328328
def validation_target_value(self) -> float:
329-
return 0.22009
329+
return 1 - 0.22009
330330

331331
@property
332332
def test_target_value(self) -> float:
333-
return 0.342
333+
return 1 - 0.342
334334

335335

336336
class ImagenetResNetGELUWorkload(ImagenetResNetWorkload):
@@ -341,11 +341,11 @@ def use_gelu(self) -> bool:
341341

342342
@property
343343
def validation_target_value(self) -> float:
344-
return 0.22077
344+
return 1 - 0.22077
345345

346346
@property
347347
def test_target_value(self) -> float:
348-
return 0.3402
348+
return 1 - 0.3402
349349

350350

351351
class ImagenetResNetLargeBNScaleWorkload(ImagenetResNetWorkload):
@@ -356,8 +356,8 @@ def bn_init_scale(self) -> float:
356356

357357
@property
358358
def validation_target_value(self) -> float:
359-
return 0.23474
359+
return 1 - 0.23474
360360

361361
@property
362362
def test_target_value(self) -> float:
363-
return 0.3577
363+
return 1 - 0.3577

algorithmic_efficiency/workloads/imagenet_vit/imagenet_jax/workload.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ def use_glu(self) -> bool:
9999

100100
@property
101101
def validation_target_value(self) -> float:
102-
return 0.2233
102+
return 1 - 0.2233
103103

104104
@property
105105
def test_target_value(self) -> float:
106-
return 0.3455
106+
return 1 - 0.3455
107107

108108

109109
class ImagenetVitPostLNWorkload(ImagenetVitWorkload):
@@ -114,11 +114,11 @@ def use_post_layer_norm(self) -> bool:
114114

115115
@property
116116
def validation_target_value(self) -> float:
117-
return 0.24688
117+
return 1 - 0.24688
118118

119119
@property
120120
def test_target_value(self) -> float:
121-
return 0.3714
121+
return 1 - 0.3714
122122

123123

124124
class ImagenetVitMapWorkload(ImagenetVitWorkload):
@@ -129,8 +129,8 @@ def use_map(self) -> bool:
129129

130130
@property
131131
def validation_target_value(self) -> float:
132-
return 0.22886
132+
return 1 - 0.22886
133133

134134
@property
135135
def test_target_value(self) -> float:
136-
return 0.3477
136+
return 1 - 0.3477

algorithmic_efficiency/workloads/imagenet_vit/imagenet_pytorch/workload.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ def use_glu(self) -> bool:
9090

9191
@property
9292
def validation_target_value(self) -> float:
93-
return 0.2233
93+
return 1 - 0.2233
9494

9595
@property
9696
def test_target_value(self) -> float:
97-
return 0.3455
97+
return 1 - 0.3455
9898

9999

100100
class ImagenetVitPostLNWorkload(ImagenetVitWorkload):
@@ -105,11 +105,11 @@ def use_post_layer_norm(self) -> bool:
105105

106106
@property
107107
def validation_target_value(self) -> float:
108-
return 0.24688
108+
return 1 - 0.24688
109109

110110
@property
111111
def test_target_value(self) -> float:
112-
return 0.3714
112+
return 1 - 0.3714
113113

114114

115115
class ImagenetVitMapWorkload(ImagenetVitWorkload):
@@ -120,8 +120,8 @@ def use_map(self) -> bool:
120120

121121
@property
122122
def validation_target_value(self) -> float:
123-
return 0.22886
123+
return 1 - 0.22886
124124

125125
@property
126126
def test_target_value(self) -> float:
127-
return 0.3477
127+
return 1 - 0.3477

algorithmic_efficiency/workloads/librispeech_deepspeech/librispeech_jax/workload.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,29 @@ class LibriSpeechDeepSpeechTanhWorkload(LibriSpeechDeepSpeechWorkload):
107107
def use_tanh(self) -> bool:
108108
return True
109109

110+
@property
111+
def validation_target_value(self) -> float:
112+
return 0.133449
113+
114+
@property
115+
def test_target_value(self) -> float:
116+
return 0.079810
117+
110118

111119
class LibriSpeechDeepSpeechNoResNetWorkload(LibriSpeechDeepSpeechWorkload):
112120

113121
@property
114122
def enable_residual_connections(self) -> bool:
115123
return False
116124

125+
@property
126+
def validation_target_value(self) -> float:
127+
return 0.105042
128+
129+
@property
130+
def test_target_value(self) -> float:
131+
return 0.060388
132+
117133

118134
class LibriSpeechDeepSpeechNormAndSpecAugWorkload(LibriSpeechDeepSpeechWorkload
119135
):
@@ -137,3 +153,11 @@ def freq_mask_count(self) -> int:
137153
@property
138154
def time_mask_count(self) -> int:
139155
return 15
156+
157+
@property
158+
def validation_target_value(self) -> float:
159+
return 0.131553
160+
161+
@property
162+
def test_target_value(self) -> float:
163+
return 0.082442

algorithmic_efficiency/workloads/workloads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
'imagenet_vit_map': {
8080
'workload_path': 'imagenet_vit/imagenet',
81-
'workload_class_name': 'ImagenetVitMapLNWorkload',
81+
'workload_class_name': 'ImagenetVitMapWorkload',
8282
},
8383
'librispeech_conformer': {
8484
'workload_path': 'librispeech_conformer/librispeech',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)