-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into gnn_logging_update
- Loading branch information
Showing
15 changed files
with
200 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
- KEY: | ||
NAME: gradient_accumulation_steps | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] > 0 " | ||
CHECK: " v['value'] > 0 " |
74 changes: 74 additions & 0 deletions
74
mlperf_logging/compliance_checker/training_4.0.0/closed_stable_diffusion.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Stable diffusion uses two metrics, FID and CLIP. | ||
# These metrics can be calculated offline, using different scripts | ||
# and logged seperatly. Therefore, we create a virtual key | ||
# called aggregated_eval_accuracy, which aggregates | ||
# both metrics into a single log line | ||
|
||
- BEGIN: | ||
CODE: | | ||
from dataclasses import replace | ||
agg_eval_lines = {} | ||
for line in loglines: | ||
if line.key == "eval_accuracy" and 'metric' in line.value['metadata']: | ||
samples_count = line.value['metadata']['samples_count'] | ||
if samples_count not in agg_eval_lines: | ||
new_line = replace(line) # Make a copy | ||
new_line.key = "aggregated_eval_accuracy" | ||
new_line.full_string = "" # Not needed | ||
new_line.lineno = -1 # Not needed | ||
new_line.value = {'value': {'samples_count': samples_count}, 'metadata':{}} | ||
agg_eval_lines[samples_count] = new_line | ||
agg_eval_lines[samples_count].timestamp = max(line.timestamp, agg_eval_lines[samples_count].timestamp) | ||
agg_eval_lines[samples_count].value['value'][line.value['metadata']['metric']] = line.value['value'] | ||
loglines.extend(agg_eval_lines.values()) | ||
- KEY: | ||
NAME: global_batch_size | ||
REQ: AT_LEAST_ONE | ||
CHECK: " v['value'] >= 0 " | ||
|
||
- KEY: | ||
NAME: opt_name | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] == 'adamw' " | ||
|
||
- KEY: | ||
NAME: opt_adamw_beta_1 | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] == 0.9 " | ||
|
||
- KEY: | ||
NAME: opt_adamw_beta_2 | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] == 0.999 " | ||
|
||
- KEY: | ||
NAME: opt_adamw_epsilon | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] == 1e-08 " | ||
|
||
- KEY: | ||
NAME: opt_adamw_weight_decay | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] == 0.01 " | ||
|
||
- KEY: | ||
NAME: opt_base_learning_rate | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] >= 0.0 " | ||
|
||
- KEY: | ||
NAME: opt_learning_rate_warmup_steps | ||
REQ: EXACTLY_ONE | ||
CHECK: " v['value'] >= 0 " | ||
|
||
- KEY: | ||
NAME: aggregated_eval_accuracy | ||
REQ: AT_LEAST(2) | ||
CHECK: | ||
- "'FID' in v['value']" | ||
- "'CLIP' in v['value']" | ||
- "'samples_count' in v['value']" | ||
ATLEAST_ONE_CHECK: "(0.0 <= v['value']['FID'] <= 90.0) and (0.15 <= v['value']['CLIP'] <= 1.0)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
mlperf_logging/compliance_checker/training_4.0.0/open_stable_diffusion.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Stable diffusion uses two metrics, FID and CLIP. | ||
# These metrics can be calculated offline, using different scripts | ||
# and logged seperatly. Therefore, we create a virtual key | ||
# called aggregated_eval_accuracy, which aggregates | ||
# both metrics into a single log line | ||
|
||
- BEGIN: | ||
CODE: | | ||
from dataclasses import replace | ||
agg_eval_lines = {} | ||
for line in loglines: | ||
if line.key == "eval_accuracy" and 'metric' in line.value['metadata']: | ||
samples_count = line.value['metadata']['samples_count'] | ||
if samples_count not in agg_eval_lines: | ||
new_line = replace(line) # Make a copy | ||
new_line.key = "aggregated_eval_accuracy" | ||
new_line.full_string = "" # Not needed | ||
new_line.lineno = -1 # Not needed | ||
new_line.value = {'value': {'samples_count': samples_count}, 'metadata':{}} | ||
agg_eval_lines[samples_count] = new_line | ||
agg_eval_lines[samples_count].timestamp = max(line.timestamp, agg_eval_lines[samples_count].timestamp) | ||
agg_eval_lines[samples_count].value['value'][line.value['metadata']['metric']] = line.value['value'] | ||
loglines.extend(agg_eval_lines.values()) | ||
- KEY: | ||
NAME: aggregated_eval_accuracy | ||
REQ: AT_LEAST(2) | ||
CHECK: | ||
- "'FID' in v['value']" | ||
- "'CLIP' in v['value']" | ||
- "'samples_count' in v['value']" | ||
ATLEAST_ONE_CHECK: "v['value']['FID'] >= 0.0 and v['value']['CLIP'] <= 1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
mlperf_logging/rcp_checker/training_4.0.0/rcps_stable_diffusion.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
|
||
"sd_ref_512": | ||
{ | ||
"Benchmark": "stable_diffusion", | ||
"Creator": "NVIDIA", | ||
"When": "Reference RCPs before v3.1", | ||
"Platform": "32xDGX-A100", | ||
"BS": 512, | ||
"Hyperparams": { | ||
"opt_adamw_beta_1": 0.9, | ||
"opt_adamw_beta_2": 0.999, | ||
"opt_adamw_epsilon": 1e-08, | ||
"opt_adamw_weight_decay": 0.01, | ||
"opt_base_learning_rate": 1.25e-7, | ||
"opt_learning_rate_warmup_steps": 1000 | ||
}, | ||
"Epochs to converge": [ | ||
2560000, 2560000, 2560000, 2560000, 2560000, | ||
2560000, 2560000, 2560000, 2560000, 2560000, | ||
2560000, 2560000, 2560000, 3072000] | ||
}, | ||
|
||
"sd_ref_1024": | ||
{ | ||
"Benchmark": "stable_diffusion", | ||
"Creator": "NVIDIA", | ||
"When": "Reference RCPs before v3.1", | ||
"Platform": "32xDGX-A100", | ||
"BS": 1024, | ||
"Hyperparams": { | ||
"opt_adamw_beta_1": 0.9, | ||
"opt_adamw_beta_2": 0.999, | ||
"opt_adamw_epsilon": 1e-08, | ||
"opt_adamw_weight_decay": 0.01, | ||
"opt_base_learning_rate": 1.25e-7, | ||
"opt_learning_rate_warmup_steps": 1000 | ||
}, | ||
"Epochs to converge": [ | ||
2560000, 2560000, 2560000, 2560000, 2560000, | ||
3072000, 3072000, 3072000, 3072000, 3072000, | ||
3072000, 3072000, 2560000] | ||
}, | ||
|
||
"sd_ref_2048": | ||
{ | ||
"Benchmark": "stable_diffusion", | ||
"Creator": "NVIDIA", | ||
"When": "Reference RCPs before v3.1", | ||
"Platform": "32xDGX-A100", | ||
"BS": 2048, | ||
"Hyperparams": { | ||
"opt_adamw_beta_1": 0.9, | ||
"opt_adamw_beta_2": 0.999, | ||
"opt_adamw_epsilon": 1e-08, | ||
"opt_adamw_weight_decay": 0.01, | ||
"opt_base_learning_rate": 1.25e-7, | ||
"opt_learning_rate_warmup_steps": 1000 | ||
}, | ||
"Epochs to converge": [ | ||
3584000, 3584000, 3584000, 3584000, 4096000, | ||
4096000, 4096000, 4096000, 4096000, 4096000, | ||
4096000, 4608000, 4608000] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters