meg HF Staff commited on
Commit
51bcc1c
·
verified ·
1 Parent(s): 29e81b1

Upload folder using huggingface_hub

Browse files
Files changed (28) hide show
  1. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/.hydra/config.yaml +94 -0
  2. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/.hydra/hydra.yaml +173 -0
  3. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/.hydra/overrides.yaml +1 -0
  4. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/benchmark_report.json +107 -0
  5. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/cli.log +113 -0
  6. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/experiment_config.json +107 -0
  7. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/forward_codecarbon.json +33 -0
  8. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/preprocess_codecarbon.json +33 -0
  9. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/.hydra/config.yaml +94 -0
  10. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/.hydra/hydra.yaml +173 -0
  11. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/.hydra/overrides.yaml +1 -0
  12. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/cli.log +30 -0
  13. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/experiment_config.json +107 -0
  14. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/preprocess_codecarbon.json +33 -0
  15. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/.hydra/config.yaml +94 -0
  16. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/.hydra/hydra.yaml +173 -0
  17. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/.hydra/overrides.yaml +1 -0
  18. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/benchmark_report.json +107 -0
  19. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/cli.log +113 -0
  20. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/experiment_config.json +107 -0
  21. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/forward_codecarbon.json +33 -0
  22. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/preprocess_codecarbon.json +33 -0
  23. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/.hydra/config.yaml +94 -0
  24. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/.hydra/hydra.yaml +173 -0
  25. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/.hydra/overrides.yaml +1 -0
  26. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/cli.log +30 -0
  27. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/experiment_config.json +107 -0
  28. text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/preprocess_codecarbon.json +33 -0
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/.hydra/config.yaml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ backend:
2
+ name: pytorch
3
+ version: 2.4.0
4
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
5
+ task: text-classification
6
+ model: lvwerra/distilbert-imdb
7
+ processor: lvwerra/distilbert-imdb
8
+ library: null
9
+ device: cuda
10
+ device_ids: '0'
11
+ seed: 42
12
+ inter_op_num_threads: null
13
+ intra_op_num_threads: null
14
+ hub_kwargs: {}
15
+ no_weights: true
16
+ device_map: null
17
+ torch_dtype: null
18
+ amp_autocast: false
19
+ amp_dtype: null
20
+ eval_mode: true
21
+ to_bettertransformer: false
22
+ low_cpu_mem_usage: null
23
+ attn_implementation: null
24
+ cache_implementation: null
25
+ torch_compile: false
26
+ torch_compile_config: {}
27
+ quantization_scheme: null
28
+ quantization_config: {}
29
+ deepspeed_inference: false
30
+ deepspeed_inference_config: {}
31
+ peft_type: null
32
+ peft_config: {}
33
+ launcher:
34
+ name: process
35
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
36
+ device_isolation: true
37
+ device_isolation_action: warn
38
+ start_method: spawn
39
+ benchmark:
40
+ name: energy_star
41
+ _target_: optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark
42
+ dataset_name: EnergyStarAI/text_classification
43
+ dataset_config: ''
44
+ dataset_split: train
45
+ num_samples: 1000
46
+ input_shapes:
47
+ batch_size: 1
48
+ text_column_name: text
49
+ truncation: true
50
+ max_length: -1
51
+ dataset_prefix1: ''
52
+ dataset_prefix2: ''
53
+ t5_task: ''
54
+ image_column_name: image
55
+ resize: false
56
+ question_column_name: question
57
+ context_column_name: context
58
+ sentence1_column_name: sentence1
59
+ sentence2_column_name: sentence2
60
+ audio_column_name: audio
61
+ iterations: 10
62
+ warmup_runs: 10
63
+ energy: true
64
+ forward_kwargs: {}
65
+ generate_kwargs: {}
66
+ call_kwargs: {}
67
+ experiment_name: text_classification
68
+ environment:
69
+ cpu: ' AMD EPYC 7R32'
70
+ cpu_count: 48
71
+ cpu_ram_mb: 200472.73984
72
+ system: Linux
73
+ machine: x86_64
74
+ platform: Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35
75
+ processor: x86_64
76
+ python_version: 3.9.20
77
+ gpu:
78
+ - NVIDIA A10G
79
+ gpu_count: 1
80
+ gpu_vram_mb: 24146608128
81
+ optimum_benchmark_version: 0.2.0
82
+ optimum_benchmark_commit: null
83
+ transformers_version: 4.44.0
84
+ transformers_commit: null
85
+ accelerate_version: 0.33.0
86
+ accelerate_commit: null
87
+ diffusers_version: 0.30.0
88
+ diffusers_commit: null
89
+ optimum_version: null
90
+ optimum_commit: null
91
+ timm_version: null
92
+ timm_commit: null
93
+ peft_version: null
94
+ peft_commit: null
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/.hydra/hydra.yaml ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: /data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
4
+ sweep:
5
+ dir: sweeps/${experiment_name}/${now:%Y-%m-%d-%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ colorlog:
72
+ (): colorlog.ColoredFormatter
73
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s'
74
+ handlers:
75
+ console:
76
+ class: logging.StreamHandler
77
+ formatter: colorlog
78
+ stream: ext://sys.stdout
79
+ root:
80
+ level: INFO
81
+ handlers:
82
+ - console
83
+ disable_existing_loggers: false
84
+ job_logging:
85
+ version: 1
86
+ formatters:
87
+ simple:
88
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
89
+ colorlog:
90
+ (): colorlog.ColoredFormatter
91
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]
92
+ - %(message)s'
93
+ log_colors:
94
+ DEBUG: purple
95
+ INFO: green
96
+ WARNING: yellow
97
+ ERROR: red
98
+ CRITICAL: red
99
+ handlers:
100
+ console:
101
+ class: logging.StreamHandler
102
+ formatter: colorlog
103
+ stream: ext://sys.stdout
104
+ file:
105
+ class: logging.FileHandler
106
+ formatter: simple
107
+ filename: ${hydra.job.name}.log
108
+ root:
109
+ level: INFO
110
+ handlers:
111
+ - console
112
+ - file
113
+ disable_existing_loggers: false
114
+ env: {}
115
+ mode: RUN
116
+ searchpath: []
117
+ callbacks: {}
118
+ output_subdir: .hydra
119
+ overrides:
120
+ hydra:
121
+ - hydra.run.dir=/data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
122
+ - hydra.mode=RUN
123
+ task: []
124
+ job:
125
+ name: cli
126
+ chdir: true
127
+ override_dirname: ''
128
+ id: ???
129
+ num: ???
130
+ config_name: text_classification
131
+ env_set:
132
+ OVERRIDE_BENCHMARKS: '1'
133
+ env_copy: []
134
+ config:
135
+ override_dirname:
136
+ kv_sep: '='
137
+ item_sep: ','
138
+ exclude_keys: []
139
+ runtime:
140
+ version: 1.3.2
141
+ version_base: '1.3'
142
+ cwd: /
143
+ config_sources:
144
+ - path: hydra.conf
145
+ schema: pkg
146
+ provider: hydra
147
+ - path: optimum_benchmark
148
+ schema: pkg
149
+ provider: main
150
+ - path: hydra_plugins.hydra_colorlog.conf
151
+ schema: pkg
152
+ provider: hydra-colorlog
153
+ - path: /optimum-benchmark/examples/energy_star
154
+ schema: file
155
+ provider: command-line
156
+ - path: ''
157
+ schema: structured
158
+ provider: schema
159
+ output_dir: /data/runs/text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41
160
+ choices:
161
+ benchmark: energy_star
162
+ launcher: process
163
+ backend: pytorch
164
+ hydra/env: default
165
+ hydra/callbacks: null
166
+ hydra/job_logging: colorlog
167
+ hydra/hydra_logging: colorlog
168
+ hydra/hydra_help: default
169
+ hydra/help: default
170
+ hydra/sweeper: basic
171
+ hydra/launcher: basic
172
+ hydra/output: default
173
+ verbose: false
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/.hydra/overrides.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ []
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/benchmark_report.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "forward": {
3
+ "memory": null,
4
+ "latency": null,
5
+ "throughput": null,
6
+ "energy": {
7
+ "unit": "kWh",
8
+ "cpu": 4.3482758016160814e-05,
9
+ "ram": 3.530945704837259e-07,
10
+ "gpu": 0.00017019055281900509,
11
+ "total": 0.0002140264054056495
12
+ },
13
+ "efficiency": {
14
+ "unit": "samples/kWh",
15
+ "value": 4672320.679799651
16
+ },
17
+ "measures": [
18
+ {
19
+ "unit": "kWh",
20
+ "cpu": 4.9169106020932915e-05,
21
+ "ram": 3.992160817248977e-07,
22
+ "gpu": 0.00018487237011988178,
23
+ "total": 0.0002344406922225396
24
+ },
25
+ {
26
+ "unit": "kWh",
27
+ "cpu": 4.891624309778612e-05,
28
+ "ram": 3.97207827964734e-07,
29
+ "gpu": 0.00019204015363205595,
30
+ "total": 0.0002413536045578068
31
+ },
32
+ {
33
+ "unit": "kWh",
34
+ "cpu": 4.801877442291192e-05,
35
+ "ram": 3.8993293688730217e-07,
36
+ "gpu": 0.00018461125879998264,
37
+ "total": 0.00023301996615978184
38
+ },
39
+ {
40
+ "unit": "kWh",
41
+ "cpu": 4.7590834556326115e-05,
42
+ "ram": 3.864572527689617e-07,
43
+ "gpu": 0.00018999987422207987,
44
+ "total": 0.00023797716603117492
45
+ },
46
+ {
47
+ "unit": "kWh",
48
+ "cpu": 4.7959735913829935e-05,
49
+ "ram": 3.894593323663141e-07,
50
+ "gpu": 0.00018702209406196157,
51
+ "total": 0.00023537128930815768
52
+ },
53
+ {
54
+ "unit": "kWh",
55
+ "cpu": 4.898230459018829e-05,
56
+ "ram": 3.9777463129738375e-07,
57
+ "gpu": 0.00018898792896804295,
58
+ "total": 0.00023836800818952857
59
+ },
60
+ {
61
+ "unit": "kWh",
62
+ "cpu": 0.0,
63
+ "ram": 0.0,
64
+ "gpu": 0.0,
65
+ "total": 0.0
66
+ },
67
+ {
68
+ "unit": "kWh",
69
+ "cpu": 4.7688653146512184e-05,
70
+ "ram": 3.8726427186418893e-07,
71
+ "gpu": 0.00018768653903800114,
72
+ "total": 0.0002357624564563775
73
+ },
74
+ {
75
+ "unit": "kWh",
76
+ "cpu": 4.778206956320395e-05,
77
+ "ram": 3.879996779336657e-07,
78
+ "gpu": 0.000192859043176008,
79
+ "total": 0.00024102911241714528
80
+ },
81
+ {
82
+ "unit": "kWh",
83
+ "cpu": 4.8719858849916714e-05,
84
+ "ram": 3.956336920298112e-07,
85
+ "gpu": 0.0001938262661720369,
86
+ "total": 0.00024294175871398312
87
+ }
88
+ ]
89
+ },
90
+ "preprocess": {
91
+ "memory": null,
92
+ "latency": null,
93
+ "throughput": null,
94
+ "energy": {
95
+ "unit": "kWh",
96
+ "cpu": 5.05552379719221e-06,
97
+ "ram": 3.2448592583758865e-08,
98
+ "gpu": 7.676117252053416e-06,
99
+ "total": 1.2764089641829385e-05
100
+ },
101
+ "efficiency": {
102
+ "unit": "samples/kWh",
103
+ "value": 78344796.06934798
104
+ },
105
+ "measures": null
106
+ }
107
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/cli.log ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-01 21:09:41,569][launcher][INFO] - ََAllocating process launcher
2
+ [2024-10-01 21:09:41,569][process][INFO] - + Setting multiprocessing start method to spawn.
3
+ [2024-10-01 21:09:41,583][device-isolation][INFO] - + Launched device(s) isolation process 66
4
+ [2024-10-01 21:09:41,583][device-isolation][INFO] - + Isolating device(s) [0]
5
+ [2024-10-01 21:09:41,590][process][INFO] - + Launched benchmark in isolated process 67.
6
+ [PROC-0][2024-10-01 21:09:44,268][datasets][INFO] - PyTorch version 2.4.0 available.
7
+ [PROC-0][2024-10-01 21:09:45,259][backend][INFO] - َAllocating pytorch backend
8
+ [PROC-0][2024-10-01 21:09:45,259][backend][INFO] - + Setting random seed to 42
9
+ [PROC-0][2024-10-01 21:09:45,766][pytorch][INFO] - + Using AutoModel class AutoModelForSequenceClassification
10
+ [PROC-0][2024-10-01 21:09:45,766][pytorch][INFO] - + Creating backend temporary directory
11
+ [PROC-0][2024-10-01 21:09:45,766][pytorch][INFO] - + Loading model with random weights
12
+ [PROC-0][2024-10-01 21:09:45,766][pytorch][INFO] - + Creating no weights model
13
+ [PROC-0][2024-10-01 21:09:45,766][pytorch][INFO] - + Creating no weights model directory
14
+ [PROC-0][2024-10-01 21:09:45,767][pytorch][INFO] - + Creating no weights model state dict
15
+ [PROC-0][2024-10-01 21:09:45,769][pytorch][INFO] - + Saving no weights model safetensors
16
+ [PROC-0][2024-10-01 21:09:45,769][pytorch][INFO] - + Saving no weights model pretrained config
17
+ [PROC-0][2024-10-01 21:09:45,770][pytorch][INFO] - + Loading no weights AutoModel
18
+ [PROC-0][2024-10-01 21:09:45,770][pytorch][INFO] - + Loading model directly on device: cuda
19
+ [PROC-0][2024-10-01 21:09:46,034][pytorch][INFO] - + Turning on model's eval mode
20
+ [PROC-0][2024-10-01 21:09:46,040][benchmark][INFO] - Allocating energy_star benchmark
21
+ [PROC-0][2024-10-01 21:09:46,040][energy_star][INFO] - + Loading raw dataset
22
+ [PROC-0][2024-10-01 21:09:47,035][energy_star][INFO] - + Initializing Inference report
23
+ [PROC-0][2024-10-01 21:09:47,036][energy][INFO] - + Tracking GPU energy on devices [0]
24
+ [PROC-0][2024-10-01 21:09:51,221][energy_star][INFO] - + Preprocessing dataset
25
+ [PROC-0][2024-10-01 21:09:51,652][energy][INFO] - + Saving codecarbon emission data to preprocess_codecarbon.json
26
+ [PROC-0][2024-10-01 21:09:51,654][energy_star][INFO] - + Preparing backend for Inference
27
+ [PROC-0][2024-10-01 21:09:51,654][energy_star][INFO] - + Initialising dataloader
28
+ [PROC-0][2024-10-01 21:09:51,654][energy_star][INFO] - + Warming up backend for Inference
29
+ [PROC-0][2024-10-01 21:09:52,180][energy_star][INFO] - + Running Inference energy tracking for 10 iterations
30
+ [PROC-0][2024-10-01 21:09:52,180][energy_star][INFO] - + Iteration 1/10
31
+ [PROC-0][2024-10-01 21:09:56,347][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
32
+ [PROC-0][2024-10-01 21:09:56,349][energy_star][INFO] - + Iteration 2/10
33
+ [PROC-0][2024-10-01 21:10:00,495][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
34
+ [PROC-0][2024-10-01 21:10:00,498][energy_star][INFO] - + Iteration 3/10
35
+ [PROC-0][2024-10-01 21:10:04,568][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
36
+ [PROC-0][2024-10-01 21:10:04,571][energy_star][INFO] - + Iteration 4/10
37
+ [PROC-0][2024-10-01 21:10:08,605][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
38
+ [PROC-0][2024-10-01 21:10:08,607][energy_star][INFO] - + Iteration 5/10
39
+ [PROC-0][2024-10-01 21:10:12,673][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
40
+ [PROC-0][2024-10-01 21:10:12,675][energy_star][INFO] - + Iteration 6/10
41
+ [PROC-0][2024-10-01 21:10:16,827][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
42
+ [PROC-0][2024-10-01 21:10:16,829][energy_star][INFO] - + Iteration 7/10
43
+ [PROC-0][2024-10-01 21:10:20,880][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
44
+ [PROC-0][2024-10-01 21:10:20,882][energy_star][INFO] - + Iteration 8/10
45
+ [PROC-0][2024-10-01 21:10:24,924][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
46
+ [PROC-0][2024-10-01 21:10:24,927][energy_star][INFO] - + Iteration 9/10
47
+ [PROC-0][2024-10-01 21:10:28,977][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
48
+ [PROC-0][2024-10-01 21:10:28,979][energy_star][INFO] - + Iteration 10/10
49
+ [PROC-0][2024-10-01 21:10:33,109][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
50
+ [PROC-0][2024-10-01 21:10:33,111][energy][INFO] - + forward energy consumption:
51
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + CPU: 0.000043 (kWh)
52
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + GPU: 0.000170 (kWh)
53
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + RAM: 0.000000 (kWh)
54
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + total: 0.000214 (kWh)
55
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + forward_iteration_1 energy consumption:
56
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + CPU: 0.000049 (kWh)
57
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + GPU: 0.000185 (kWh)
58
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + RAM: 0.000000 (kWh)
59
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + total: 0.000234 (kWh)
60
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + forward_iteration_2 energy consumption:
61
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + CPU: 0.000049 (kWh)
62
+ [PROC-0][2024-10-01 21:10:33,112][energy][INFO] - + GPU: 0.000192 (kWh)
63
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + RAM: 0.000000 (kWh)
64
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + total: 0.000241 (kWh)
65
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + forward_iteration_3 energy consumption:
66
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + CPU: 0.000048 (kWh)
67
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + GPU: 0.000185 (kWh)
68
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + RAM: 0.000000 (kWh)
69
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + total: 0.000233 (kWh)
70
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + forward_iteration_4 energy consumption:
71
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + CPU: 0.000048 (kWh)
72
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + GPU: 0.000190 (kWh)
73
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + RAM: 0.000000 (kWh)
74
+ [PROC-0][2024-10-01 21:10:33,113][energy][INFO] - + total: 0.000238 (kWh)
75
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + forward_iteration_5 energy consumption:
76
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + CPU: 0.000048 (kWh)
77
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + GPU: 0.000187 (kWh)
78
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + RAM: 0.000000 (kWh)
79
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + total: 0.000235 (kWh)
80
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + forward_iteration_6 energy consumption:
81
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + CPU: 0.000049 (kWh)
82
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + GPU: 0.000189 (kWh)
83
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + RAM: 0.000000 (kWh)
84
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + total: 0.000238 (kWh)
85
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + forward_iteration_7 energy consumption:
86
+ [PROC-0][2024-10-01 21:10:33,114][energy][INFO] - + CPU: 0.000000 (kWh)
87
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + GPU: 0.000000 (kWh)
88
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + RAM: 0.000000 (kWh)
89
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + total: 0.000000 (kWh)
90
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + forward_iteration_8 energy consumption:
91
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + CPU: 0.000048 (kWh)
92
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + GPU: 0.000188 (kWh)
93
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + RAM: 0.000000 (kWh)
94
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + total: 0.000236 (kWh)
95
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + forward_iteration_9 energy consumption:
96
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + CPU: 0.000048 (kWh)
97
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + GPU: 0.000193 (kWh)
98
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + RAM: 0.000000 (kWh)
99
+ [PROC-0][2024-10-01 21:10:33,115][energy][INFO] - + total: 0.000241 (kWh)
100
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + forward_iteration_10 energy consumption:
101
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + CPU: 0.000049 (kWh)
102
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + GPU: 0.000194 (kWh)
103
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + RAM: 0.000000 (kWh)
104
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + total: 0.000243 (kWh)
105
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + preprocess energy consumption:
106
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + CPU: 0.000005 (kWh)
107
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + GPU: 0.000008 (kWh)
108
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + RAM: 0.000000 (kWh)
109
+ [PROC-0][2024-10-01 21:10:33,116][energy][INFO] - + total: 0.000013 (kWh)
110
+ [PROC-0][2024-10-01 21:10:33,117][energy][INFO] - + forward energy efficiency: 4672320.679800 (samples/kWh)
111
+ [PROC-0][2024-10-01 21:10:33,117][energy][INFO] - + preprocess energy efficiency: 78344796.069348 (samples/kWh)
112
+ [2024-10-01 21:10:33,744][device-isolation][INFO] - + Closing device(s) isolation process...
113
+ [2024-10-01 21:10:33,800][datasets][INFO] - PyTorch version 2.4.0 available.
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/experiment_config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "experiment_name": "text_classification",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-classification",
8
+ "model": "lvwerra/distilbert-imdb",
9
+ "processor": "lvwerra/distilbert-imdb",
10
+ "library": "transformers",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "hub_kwargs": {
17
+ "revision": "main",
18
+ "force_download": false,
19
+ "local_files_only": false,
20
+ "trust_remote_code": true
21
+ },
22
+ "no_weights": true,
23
+ "device_map": null,
24
+ "torch_dtype": null,
25
+ "amp_autocast": false,
26
+ "amp_dtype": null,
27
+ "eval_mode": true,
28
+ "to_bettertransformer": false,
29
+ "low_cpu_mem_usage": null,
30
+ "attn_implementation": null,
31
+ "cache_implementation": null,
32
+ "torch_compile": false,
33
+ "torch_compile_config": {},
34
+ "quantization_scheme": null,
35
+ "quantization_config": {},
36
+ "deepspeed_inference": false,
37
+ "deepspeed_inference_config": {},
38
+ "peft_type": null,
39
+ "peft_config": {}
40
+ },
41
+ "launcher": {
42
+ "name": "process",
43
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
44
+ "device_isolation": true,
45
+ "device_isolation_action": "warn",
46
+ "start_method": "spawn"
47
+ },
48
+ "benchmark": {
49
+ "name": "energy_star",
50
+ "_target_": "optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark",
51
+ "dataset_name": "EnergyStarAI/text_classification",
52
+ "dataset_config": "",
53
+ "dataset_split": "train",
54
+ "num_samples": 1000,
55
+ "input_shapes": {
56
+ "batch_size": 1
57
+ },
58
+ "text_column_name": "text",
59
+ "truncation": true,
60
+ "max_length": -1,
61
+ "dataset_prefix1": "",
62
+ "dataset_prefix2": "",
63
+ "t5_task": "",
64
+ "image_column_name": "image",
65
+ "resize": false,
66
+ "question_column_name": "question",
67
+ "context_column_name": "context",
68
+ "sentence1_column_name": "sentence1",
69
+ "sentence2_column_name": "sentence2",
70
+ "audio_column_name": "audio",
71
+ "iterations": 10,
72
+ "warmup_runs": 10,
73
+ "energy": true,
74
+ "forward_kwargs": {},
75
+ "generate_kwargs": {},
76
+ "call_kwargs": {}
77
+ },
78
+ "environment": {
79
+ "cpu": " AMD EPYC 7R32",
80
+ "cpu_count": 48,
81
+ "cpu_ram_mb": 200472.73984,
82
+ "system": "Linux",
83
+ "machine": "x86_64",
84
+ "platform": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
85
+ "processor": "x86_64",
86
+ "python_version": "3.9.20",
87
+ "gpu": [
88
+ "NVIDIA A10G"
89
+ ],
90
+ "gpu_count": 1,
91
+ "gpu_vram_mb": 24146608128,
92
+ "optimum_benchmark_version": "0.2.0",
93
+ "optimum_benchmark_commit": null,
94
+ "transformers_version": "4.44.0",
95
+ "transformers_commit": null,
96
+ "accelerate_version": "0.33.0",
97
+ "accelerate_commit": null,
98
+ "diffusers_version": "0.30.0",
99
+ "diffusers_commit": null,
100
+ "optimum_version": null,
101
+ "optimum_commit": null,
102
+ "timm_version": null,
103
+ "timm_commit": null,
104
+ "peft_version": null,
105
+ "peft_commit": null
106
+ }
107
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/forward_codecarbon.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": "2024-10-01T21:10:33",
3
+ "project_name": "codecarbon",
4
+ "run_id": "75ce62d4-cc28-42f9-a817-c1b3aadade45",
5
+ "duration": -1727749209.1593964,
6
+ "emissions": 8.967815496656838e-05,
7
+ "emissions_rate": 2.1740395178211913e-05,
8
+ "cpu_power": 42.5,
9
+ "gpu_power": 169.17741289202826,
10
+ "ram_power": 0.3453798294067383,
11
+ "cpu_energy": 4.8719858849916714e-05,
12
+ "gpu_energy": 0.0001938262661720369,
13
+ "ram_energy": 3.956336920298112e-07,
14
+ "energy_consumed": 0.00024294175871398312,
15
+ "country_name": "United States",
16
+ "country_iso_code": "USA",
17
+ "region": "virginia",
18
+ "cloud_provider": "",
19
+ "cloud_region": "",
20
+ "os": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
21
+ "python_version": "3.9.20",
22
+ "codecarbon_version": "2.5.1",
23
+ "cpu_count": 48,
24
+ "cpu_model": "AMD EPYC 7R32",
25
+ "gpu_count": 1,
26
+ "gpu_model": "1 x NVIDIA A10G",
27
+ "longitude": -77.4903,
28
+ "latitude": 39.0469,
29
+ "ram_total_size": 186.7047882080078,
30
+ "tracking_mode": "process",
31
+ "on_cloud": "N",
32
+ "pue": 1.0
33
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-09-41/preprocess_codecarbon.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": "2024-10-01T21:09:51",
3
+ "project_name": "codecarbon",
4
+ "run_id": "75ce62d4-cc28-42f9-a817-c1b3aadade45",
5
+ "duration": -1727749212.8582268,
6
+ "emissions": 4.711664289278329e-06,
7
+ "emissions_rate": 1.1054344333457656e-05,
8
+ "cpu_power": 42.5,
9
+ "gpu_power": 64.86775595639516,
10
+ "ram_power": 0.274709701538086,
11
+ "cpu_energy": 5.05552379719221e-06,
12
+ "gpu_energy": 7.676117252053416e-06,
13
+ "ram_energy": 3.2448592583758865e-08,
14
+ "energy_consumed": 1.2764089641829385e-05,
15
+ "country_name": "United States",
16
+ "country_iso_code": "USA",
17
+ "region": "virginia",
18
+ "cloud_provider": "",
19
+ "cloud_region": "",
20
+ "os": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
21
+ "python_version": "3.9.20",
22
+ "codecarbon_version": "2.5.1",
23
+ "cpu_count": 48,
24
+ "cpu_model": "AMD EPYC 7R32",
25
+ "gpu_count": 1,
26
+ "gpu_model": "1 x NVIDIA A10G",
27
+ "longitude": -77.4903,
28
+ "latitude": 39.0469,
29
+ "ram_total_size": 186.7047882080078,
30
+ "tracking_mode": "process",
31
+ "on_cloud": "N",
32
+ "pue": 1.0
33
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/.hydra/config.yaml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ backend:
2
+ name: pytorch
3
+ version: 2.4.0
4
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
5
+ task: text-classification
6
+ model: lvwerra/distilbert-imdb
7
+ processor: lvwerra/distilbert-imdb
8
+ library: null
9
+ device: cuda
10
+ device_ids: '0'
11
+ seed: 42
12
+ inter_op_num_threads: null
13
+ intra_op_num_threads: null
14
+ hub_kwargs: {}
15
+ no_weights: true
16
+ device_map: null
17
+ torch_dtype: null
18
+ amp_autocast: false
19
+ amp_dtype: null
20
+ eval_mode: true
21
+ to_bettertransformer: false
22
+ low_cpu_mem_usage: null
23
+ attn_implementation: null
24
+ cache_implementation: null
25
+ torch_compile: false
26
+ torch_compile_config: {}
27
+ quantization_scheme: null
28
+ quantization_config: {}
29
+ deepspeed_inference: false
30
+ deepspeed_inference_config: {}
31
+ peft_type: null
32
+ peft_config: {}
33
+ launcher:
34
+ name: process
35
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
36
+ device_isolation: true
37
+ device_isolation_action: warn
38
+ start_method: spawn
39
+ benchmark:
40
+ name: energy_star
41
+ _target_: optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark
42
+ dataset_name: EnergyStarAI/text_classification
43
+ dataset_config: ''
44
+ dataset_split: train
45
+ num_samples: 1000
46
+ input_shapes:
47
+ batch_size: 1
48
+ text_column_name: text
49
+ truncation: true
50
+ max_length: -1
51
+ dataset_prefix1: ''
52
+ dataset_prefix2: ''
53
+ t5_task: ''
54
+ image_column_name: image
55
+ resize: false
56
+ question_column_name: question
57
+ context_column_name: context
58
+ sentence1_column_name: sentence1
59
+ sentence2_column_name: sentence2
60
+ audio_column_name: audio
61
+ iterations: 10
62
+ warmup_runs: 10
63
+ energy: true
64
+ forward_kwargs: {}
65
+ generate_kwargs: {}
66
+ call_kwargs: {}
67
+ experiment_name: text_classification
68
+ environment:
69
+ cpu: ' AMD EPYC 7R32'
70
+ cpu_count: 48
71
+ cpu_ram_mb: 200472.73984
72
+ system: Linux
73
+ machine: x86_64
74
+ platform: Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35
75
+ processor: x86_64
76
+ python_version: 3.9.20
77
+ gpu:
78
+ - NVIDIA A10G
79
+ gpu_count: 1
80
+ gpu_vram_mb: 24146608128
81
+ optimum_benchmark_version: 0.2.0
82
+ optimum_benchmark_commit: null
83
+ transformers_version: 4.44.0
84
+ transformers_commit: null
85
+ accelerate_version: 0.33.0
86
+ accelerate_commit: null
87
+ diffusers_version: 0.30.0
88
+ diffusers_commit: null
89
+ optimum_version: null
90
+ optimum_commit: null
91
+ timm_version: null
92
+ timm_commit: null
93
+ peft_version: null
94
+ peft_commit: null
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/.hydra/hydra.yaml ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: /data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
4
+ sweep:
5
+ dir: sweeps/${experiment_name}/${now:%Y-%m-%d-%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ colorlog:
72
+ (): colorlog.ColoredFormatter
73
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s'
74
+ handlers:
75
+ console:
76
+ class: logging.StreamHandler
77
+ formatter: colorlog
78
+ stream: ext://sys.stdout
79
+ root:
80
+ level: INFO
81
+ handlers:
82
+ - console
83
+ disable_existing_loggers: false
84
+ job_logging:
85
+ version: 1
86
+ formatters:
87
+ simple:
88
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
89
+ colorlog:
90
+ (): colorlog.ColoredFormatter
91
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]
92
+ - %(message)s'
93
+ log_colors:
94
+ DEBUG: purple
95
+ INFO: green
96
+ WARNING: yellow
97
+ ERROR: red
98
+ CRITICAL: red
99
+ handlers:
100
+ console:
101
+ class: logging.StreamHandler
102
+ formatter: colorlog
103
+ stream: ext://sys.stdout
104
+ file:
105
+ class: logging.FileHandler
106
+ formatter: simple
107
+ filename: ${hydra.job.name}.log
108
+ root:
109
+ level: INFO
110
+ handlers:
111
+ - console
112
+ - file
113
+ disable_existing_loggers: false
114
+ env: {}
115
+ mode: RUN
116
+ searchpath: []
117
+ callbacks: {}
118
+ output_subdir: .hydra
119
+ overrides:
120
+ hydra:
121
+ - hydra.run.dir=/data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
122
+ - hydra.mode=RUN
123
+ task: []
124
+ job:
125
+ name: cli
126
+ chdir: true
127
+ override_dirname: ''
128
+ id: ???
129
+ num: ???
130
+ config_name: text_classification
131
+ env_set:
132
+ OVERRIDE_BENCHMARKS: '1'
133
+ env_copy: []
134
+ config:
135
+ override_dirname:
136
+ kv_sep: '='
137
+ item_sep: ','
138
+ exclude_keys: []
139
+ runtime:
140
+ version: 1.3.2
141
+ version_base: '1.3'
142
+ cwd: /
143
+ config_sources:
144
+ - path: hydra.conf
145
+ schema: pkg
146
+ provider: hydra
147
+ - path: optimum_benchmark
148
+ schema: pkg
149
+ provider: main
150
+ - path: hydra_plugins.hydra_colorlog.conf
151
+ schema: pkg
152
+ provider: hydra-colorlog
153
+ - path: /optimum-benchmark/examples/energy_star
154
+ schema: file
155
+ provider: command-line
156
+ - path: ''
157
+ schema: structured
158
+ provider: schema
159
+ output_dir: /data/runs/text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38
160
+ choices:
161
+ benchmark: energy_star
162
+ launcher: process
163
+ backend: pytorch
164
+ hydra/env: default
165
+ hydra/callbacks: null
166
+ hydra/job_logging: colorlog
167
+ hydra/hydra_logging: colorlog
168
+ hydra/hydra_help: default
169
+ hydra/help: default
170
+ hydra/sweeper: basic
171
+ hydra/launcher: basic
172
+ hydra/output: default
173
+ verbose: false
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/.hydra/overrides.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ []
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/cli.log ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-01 21:10:38,131][launcher][INFO] - ََAllocating process launcher
2
+ [2024-10-01 21:10:38,131][process][INFO] - + Setting multiprocessing start method to spawn.
3
+ [2024-10-01 21:10:38,145][device-isolation][INFO] - + Launched device(s) isolation process 66
4
+ [2024-10-01 21:10:38,145][device-isolation][INFO] - + Isolating device(s) [0]
5
+ [2024-10-01 21:10:38,152][process][INFO] - + Launched benchmark in isolated process 67.
6
+ [PROC-0][2024-10-01 21:10:40,783][datasets][INFO] - PyTorch version 2.4.0 available.
7
+ [PROC-0][2024-10-01 21:10:41,752][backend][INFO] - َAllocating pytorch backend
8
+ [PROC-0][2024-10-01 21:10:41,753][backend][INFO] - + Setting random seed to 42
9
+ [PROC-0][2024-10-01 21:10:42,048][pytorch][INFO] - + Using AutoModel class AutoModelForSequenceClassification
10
+ [PROC-0][2024-10-01 21:10:42,049][pytorch][INFO] - + Creating backend temporary directory
11
+ [PROC-0][2024-10-01 21:10:42,049][pytorch][INFO] - + Loading model with random weights
12
+ [PROC-0][2024-10-01 21:10:42,049][pytorch][INFO] - + Creating no weights model
13
+ [PROC-0][2024-10-01 21:10:42,049][pytorch][INFO] - + Creating no weights model directory
14
+ [PROC-0][2024-10-01 21:10:42,049][pytorch][INFO] - + Creating no weights model state dict
15
+ [PROC-0][2024-10-01 21:10:42,051][pytorch][INFO] - + Saving no weights model safetensors
16
+ [PROC-0][2024-10-01 21:10:42,052][pytorch][INFO] - + Saving no weights model pretrained config
17
+ [PROC-0][2024-10-01 21:10:42,052][pytorch][INFO] - + Loading no weights AutoModel
18
+ [PROC-0][2024-10-01 21:10:42,052][pytorch][INFO] - + Loading model directly on device: cuda
19
+ [PROC-0][2024-10-01 21:10:42,308][pytorch][INFO] - + Turning on model's eval mode
20
+ [PROC-0][2024-10-01 21:10:42,314][benchmark][INFO] - Allocating energy_star benchmark
21
+ [PROC-0][2024-10-01 21:10:42,314][energy_star][INFO] - + Loading raw dataset
22
+ [PROC-0][2024-10-01 21:10:42,950][energy_star][INFO] - + Initializing Inference report
23
+ [PROC-0][2024-10-01 21:10:42,950][energy][INFO] - + Tracking GPU energy on devices [0]
24
+ [PROC-0][2024-10-01 21:10:47,140][energy_star][INFO] - + Preprocessing dataset
25
+ [PROC-0][2024-10-01 21:10:47,571][energy][INFO] - + Saving codecarbon emission data to preprocess_codecarbon.json
26
+ [PROC-0][2024-10-01 21:10:47,573][energy_star][INFO] - + Preparing backend for Inference
27
+ [PROC-0][2024-10-01 21:10:47,573][energy_star][INFO] - + Initialising dataloader
28
+ [PROC-0][2024-10-01 21:10:47,574][energy_star][INFO] - + Warming up backend for Inference
29
+ [PROC-0][2024-10-01 21:10:48,067][energy_star][INFO] - + Running Inference energy tracking for 10 iterations
30
+ [PROC-0][2024-10-01 21:10:48,067][energy_star][INFO] - + Iteration 1/10
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/experiment_config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "experiment_name": "text_classification",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-classification",
8
+ "model": "lvwerra/distilbert-imdb",
9
+ "processor": "lvwerra/distilbert-imdb",
10
+ "library": "transformers",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "hub_kwargs": {
17
+ "revision": "main",
18
+ "force_download": false,
19
+ "local_files_only": false,
20
+ "trust_remote_code": true
21
+ },
22
+ "no_weights": true,
23
+ "device_map": null,
24
+ "torch_dtype": null,
25
+ "amp_autocast": false,
26
+ "amp_dtype": null,
27
+ "eval_mode": true,
28
+ "to_bettertransformer": false,
29
+ "low_cpu_mem_usage": null,
30
+ "attn_implementation": null,
31
+ "cache_implementation": null,
32
+ "torch_compile": false,
33
+ "torch_compile_config": {},
34
+ "quantization_scheme": null,
35
+ "quantization_config": {},
36
+ "deepspeed_inference": false,
37
+ "deepspeed_inference_config": {},
38
+ "peft_type": null,
39
+ "peft_config": {}
40
+ },
41
+ "launcher": {
42
+ "name": "process",
43
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
44
+ "device_isolation": true,
45
+ "device_isolation_action": "warn",
46
+ "start_method": "spawn"
47
+ },
48
+ "benchmark": {
49
+ "name": "energy_star",
50
+ "_target_": "optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark",
51
+ "dataset_name": "EnergyStarAI/text_classification",
52
+ "dataset_config": "",
53
+ "dataset_split": "train",
54
+ "num_samples": 1000,
55
+ "input_shapes": {
56
+ "batch_size": 1
57
+ },
58
+ "text_column_name": "text",
59
+ "truncation": true,
60
+ "max_length": -1,
61
+ "dataset_prefix1": "",
62
+ "dataset_prefix2": "",
63
+ "t5_task": "",
64
+ "image_column_name": "image",
65
+ "resize": false,
66
+ "question_column_name": "question",
67
+ "context_column_name": "context",
68
+ "sentence1_column_name": "sentence1",
69
+ "sentence2_column_name": "sentence2",
70
+ "audio_column_name": "audio",
71
+ "iterations": 10,
72
+ "warmup_runs": 10,
73
+ "energy": true,
74
+ "forward_kwargs": {},
75
+ "generate_kwargs": {},
76
+ "call_kwargs": {}
77
+ },
78
+ "environment": {
79
+ "cpu": " AMD EPYC 7R32",
80
+ "cpu_count": 48,
81
+ "cpu_ram_mb": 200472.73984,
82
+ "system": "Linux",
83
+ "machine": "x86_64",
84
+ "platform": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
85
+ "processor": "x86_64",
86
+ "python_version": "3.9.20",
87
+ "gpu": [
88
+ "NVIDIA A10G"
89
+ ],
90
+ "gpu_count": 1,
91
+ "gpu_vram_mb": 24146608128,
92
+ "optimum_benchmark_version": "0.2.0",
93
+ "optimum_benchmark_commit": null,
94
+ "transformers_version": "4.44.0",
95
+ "transformers_commit": null,
96
+ "accelerate_version": "0.33.0",
97
+ "accelerate_commit": null,
98
+ "diffusers_version": "0.30.0",
99
+ "diffusers_commit": null,
100
+ "optimum_version": null,
101
+ "optimum_commit": null,
102
+ "timm_version": null,
103
+ "timm_commit": null,
104
+ "peft_version": null,
105
+ "peft_commit": null
106
+ }
107
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-10-38/preprocess_codecarbon.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": "2024-10-01T21:10:47",
3
+ "project_name": "codecarbon",
4
+ "run_id": "e46047aa-3462-4d2d-a571-3d3f0cd27e12",
5
+ "duration": -1727749212.8580024,
6
+ "emissions": 5.577941431000072e-06,
7
+ "emissions_rate": 1.3080425238753529e-05,
8
+ "cpu_power": 42.5,
9
+ "gpu_power": 84.61399818253058,
10
+ "ram_power": 0.27436065673828125,
11
+ "cpu_energy": 5.058987712547807e-06,
12
+ "gpu_energy": 1.0019452459930633e-05,
13
+ "ram_energy": 3.2429378260302086e-08,
14
+ "energy_consumed": 1.5110869550738742e-05,
15
+ "country_name": "United States",
16
+ "country_iso_code": "USA",
17
+ "region": "virginia",
18
+ "cloud_provider": "",
19
+ "cloud_region": "",
20
+ "os": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
21
+ "python_version": "3.9.20",
22
+ "codecarbon_version": "2.5.1",
23
+ "cpu_count": 48,
24
+ "cpu_model": "AMD EPYC 7R32",
25
+ "gpu_count": 1,
26
+ "gpu_model": "1 x NVIDIA A10G",
27
+ "longitude": -77.4903,
28
+ "latitude": 39.0469,
29
+ "ram_total_size": 186.7047882080078,
30
+ "tracking_mode": "process",
31
+ "on_cloud": "N",
32
+ "pue": 1.0
33
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/.hydra/config.yaml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ backend:
2
+ name: pytorch
3
+ version: 2.4.0
4
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
5
+ task: text-classification
6
+ model: lvwerra/distilbert-imdb
7
+ processor: lvwerra/distilbert-imdb
8
+ library: null
9
+ device: cuda
10
+ device_ids: '0'
11
+ seed: 42
12
+ inter_op_num_threads: null
13
+ intra_op_num_threads: null
14
+ hub_kwargs: {}
15
+ no_weights: true
16
+ device_map: null
17
+ torch_dtype: null
18
+ amp_autocast: false
19
+ amp_dtype: null
20
+ eval_mode: true
21
+ to_bettertransformer: false
22
+ low_cpu_mem_usage: null
23
+ attn_implementation: null
24
+ cache_implementation: null
25
+ torch_compile: false
26
+ torch_compile_config: {}
27
+ quantization_scheme: null
28
+ quantization_config: {}
29
+ deepspeed_inference: false
30
+ deepspeed_inference_config: {}
31
+ peft_type: null
32
+ peft_config: {}
33
+ launcher:
34
+ name: process
35
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
36
+ device_isolation: true
37
+ device_isolation_action: warn
38
+ start_method: spawn
39
+ benchmark:
40
+ name: energy_star
41
+ _target_: optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark
42
+ dataset_name: EnergyStarAI/text_classification
43
+ dataset_config: ''
44
+ dataset_split: train
45
+ num_samples: 1000
46
+ input_shapes:
47
+ batch_size: 1
48
+ text_column_name: text
49
+ truncation: true
50
+ max_length: -1
51
+ dataset_prefix1: ''
52
+ dataset_prefix2: ''
53
+ t5_task: ''
54
+ image_column_name: image
55
+ resize: false
56
+ question_column_name: question
57
+ context_column_name: context
58
+ sentence1_column_name: sentence1
59
+ sentence2_column_name: sentence2
60
+ audio_column_name: audio
61
+ iterations: 10
62
+ warmup_runs: 10
63
+ energy: true
64
+ forward_kwargs: {}
65
+ generate_kwargs: {}
66
+ call_kwargs: {}
67
+ experiment_name: text_classification
68
+ environment:
69
+ cpu: ' AMD EPYC 7R32'
70
+ cpu_count: 48
71
+ cpu_ram_mb: 200472.73984
72
+ system: Linux
73
+ machine: x86_64
74
+ platform: Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35
75
+ processor: x86_64
76
+ python_version: 3.9.20
77
+ gpu:
78
+ - NVIDIA A10G
79
+ gpu_count: 1
80
+ gpu_vram_mb: 24146608128
81
+ optimum_benchmark_version: 0.2.0
82
+ optimum_benchmark_commit: null
83
+ transformers_version: 4.44.0
84
+ transformers_commit: null
85
+ accelerate_version: 0.33.0
86
+ accelerate_commit: null
87
+ diffusers_version: 0.30.0
88
+ diffusers_commit: null
89
+ optimum_version: null
90
+ optimum_commit: null
91
+ timm_version: null
92
+ timm_commit: null
93
+ peft_version: null
94
+ peft_commit: null
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/.hydra/hydra.yaml ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: /data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
4
+ sweep:
5
+ dir: sweeps/${experiment_name}/${now:%Y-%m-%d-%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ colorlog:
72
+ (): colorlog.ColoredFormatter
73
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s'
74
+ handlers:
75
+ console:
76
+ class: logging.StreamHandler
77
+ formatter: colorlog
78
+ stream: ext://sys.stdout
79
+ root:
80
+ level: INFO
81
+ handlers:
82
+ - console
83
+ disable_existing_loggers: false
84
+ job_logging:
85
+ version: 1
86
+ formatters:
87
+ simple:
88
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
89
+ colorlog:
90
+ (): colorlog.ColoredFormatter
91
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]
92
+ - %(message)s'
93
+ log_colors:
94
+ DEBUG: purple
95
+ INFO: green
96
+ WARNING: yellow
97
+ ERROR: red
98
+ CRITICAL: red
99
+ handlers:
100
+ console:
101
+ class: logging.StreamHandler
102
+ formatter: colorlog
103
+ stream: ext://sys.stdout
104
+ file:
105
+ class: logging.FileHandler
106
+ formatter: simple
107
+ filename: ${hydra.job.name}.log
108
+ root:
109
+ level: INFO
110
+ handlers:
111
+ - console
112
+ - file
113
+ disable_existing_loggers: false
114
+ env: {}
115
+ mode: RUN
116
+ searchpath: []
117
+ callbacks: {}
118
+ output_subdir: .hydra
119
+ overrides:
120
+ hydra:
121
+ - hydra.run.dir=/data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
122
+ - hydra.mode=RUN
123
+ task: []
124
+ job:
125
+ name: cli
126
+ chdir: true
127
+ override_dirname: ''
128
+ id: ???
129
+ num: ???
130
+ config_name: text_classification
131
+ env_set:
132
+ OVERRIDE_BENCHMARKS: '1'
133
+ env_copy: []
134
+ config:
135
+ override_dirname:
136
+ kv_sep: '='
137
+ item_sep: ','
138
+ exclude_keys: []
139
+ runtime:
140
+ version: 1.3.2
141
+ version_base: '1.3'
142
+ cwd: /
143
+ config_sources:
144
+ - path: hydra.conf
145
+ schema: pkg
146
+ provider: hydra
147
+ - path: optimum_benchmark
148
+ schema: pkg
149
+ provider: main
150
+ - path: hydra_plugins.hydra_colorlog.conf
151
+ schema: pkg
152
+ provider: hydra-colorlog
153
+ - path: /optimum-benchmark/examples/energy_star
154
+ schema: file
155
+ provider: command-line
156
+ - path: ''
157
+ schema: structured
158
+ provider: schema
159
+ output_dir: /data/runs/text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17
160
+ choices:
161
+ benchmark: energy_star
162
+ launcher: process
163
+ backend: pytorch
164
+ hydra/env: default
165
+ hydra/callbacks: null
166
+ hydra/job_logging: colorlog
167
+ hydra/hydra_logging: colorlog
168
+ hydra/hydra_help: default
169
+ hydra/help: default
170
+ hydra/sweeper: basic
171
+ hydra/launcher: basic
172
+ hydra/output: default
173
+ verbose: false
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/.hydra/overrides.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ []
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/benchmark_report.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "forward": {
3
+ "memory": null,
4
+ "latency": null,
5
+ "throughput": null,
6
+ "energy": {
7
+ "unit": "kWh",
8
+ "cpu": 4.355165919801039e-05,
9
+ "ram": 3.5362527039697286e-07,
10
+ "gpu": 0.00017136030375478618,
11
+ "total": 0.00021526558822319348
12
+ },
13
+ "efficiency": {
14
+ "unit": "samples/kWh",
15
+ "value": 4645424.325615721
16
+ },
17
+ "measures": [
18
+ {
19
+ "unit": "kWh",
20
+ "cpu": 4.8104926704157454e-05,
21
+ "ram": 3.9054895498142873e-07,
22
+ "gpu": 0.0001860626488499051,
23
+ "total": 0.00023455812450904397
24
+ },
25
+ {
26
+ "unit": "kWh",
27
+ "cpu": 4.782010336809132e-05,
28
+ "ram": 3.8826966993259507e-07,
29
+ "gpu": 0.00018919626246804988,
30
+ "total": 0.0002374046355060738
31
+ },
32
+ {
33
+ "unit": "kWh",
34
+ "cpu": 4.832758784033205e-05,
35
+ "ram": 3.9240088140921216e-07,
36
+ "gpu": 0.00018827987284597558,
37
+ "total": 0.0002369998615677168
38
+ },
39
+ {
40
+ "unit": "kWh",
41
+ "cpu": 4.749602328956825e-05,
42
+ "ram": 3.856586673819651e-07,
43
+ "gpu": 0.0001864615380580137,
44
+ "total": 0.00023434322001496385
45
+ },
46
+ {
47
+ "unit": "kWh",
48
+ "cpu": 4.808530271881563e-05,
49
+ "ram": 3.9044281729542126e-07,
50
+ "gpu": 0.00019150737542794616,
51
+ "total": 0.00023998312096405717
52
+ },
53
+ {
54
+ "unit": "kWh",
55
+ "cpu": 4.875787911387308e-05,
56
+ "ram": 3.9590713315237427e-07,
57
+ "gpu": 0.00019061737471604,
58
+ "total": 0.0002397711609630653
59
+ },
60
+ {
61
+ "unit": "kWh",
62
+ "cpu": 0.0,
63
+ "ram": 0.0,
64
+ "gpu": 0.0,
65
+ "total": 0.0
66
+ },
67
+ {
68
+ "unit": "kWh",
69
+ "cpu": 4.890511859306974e-05,
70
+ "ram": 3.9710929925780034e-07,
71
+ "gpu": 0.00019204404252393115,
72
+ "total": 0.00024134627041625875
73
+ },
74
+ {
75
+ "unit": "kWh",
76
+ "cpu": 4.905691560698971e-05,
77
+ "ram": 3.983413394642348e-07,
78
+ "gpu": 0.00019520987838994586,
79
+ "total": 0.00024466513533639967
80
+ },
81
+ {
82
+ "unit": "kWh",
83
+ "cpu": 4.896273474520662e-05,
84
+ "ram": 3.9757394109469705e-07,
85
+ "gpu": 0.00019422404426805429,
86
+ "total": 0.00024358435295435566
87
+ }
88
+ ]
89
+ },
90
+ "preprocess": {
91
+ "memory": null,
92
+ "latency": null,
93
+ "throughput": null,
94
+ "energy": {
95
+ "unit": "kWh",
96
+ "cpu": 5.0351720819384764e-06,
97
+ "ram": 3.2301772858555534e-08,
98
+ "gpu": 7.807506245960383e-06,
99
+ "total": 1.2874980100757415e-05
100
+ },
101
+ "efficiency": {
102
+ "unit": "samples/kWh",
103
+ "value": 77670022.9572527
104
+ },
105
+ "measures": null
106
+ }
107
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/cli.log ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-01 21:14:18,000][launcher][INFO] - ََAllocating process launcher
2
+ [2024-10-01 21:14:18,001][process][INFO] - + Setting multiprocessing start method to spawn.
3
+ [2024-10-01 21:14:18,015][device-isolation][INFO] - + Launched device(s) isolation process 66
4
+ [2024-10-01 21:14:18,015][device-isolation][INFO] - + Isolating device(s) [0]
5
+ [2024-10-01 21:14:18,022][process][INFO] - + Launched benchmark in isolated process 67.
6
+ [PROC-0][2024-10-01 21:14:20,788][datasets][INFO] - PyTorch version 2.4.0 available.
7
+ [PROC-0][2024-10-01 21:14:21,752][backend][INFO] - َAllocating pytorch backend
8
+ [PROC-0][2024-10-01 21:14:21,752][backend][INFO] - + Setting random seed to 42
9
+ [PROC-0][2024-10-01 21:14:21,996][pytorch][INFO] - + Using AutoModel class AutoModelForSequenceClassification
10
+ [PROC-0][2024-10-01 21:14:21,996][pytorch][INFO] - + Creating backend temporary directory
11
+ [PROC-0][2024-10-01 21:14:21,996][pytorch][INFO] - + Loading model with random weights
12
+ [PROC-0][2024-10-01 21:14:21,996][pytorch][INFO] - + Creating no weights model
13
+ [PROC-0][2024-10-01 21:14:21,996][pytorch][INFO] - + Creating no weights model directory
14
+ [PROC-0][2024-10-01 21:14:21,996][pytorch][INFO] - + Creating no weights model state dict
15
+ [PROC-0][2024-10-01 21:14:21,998][pytorch][INFO] - + Saving no weights model safetensors
16
+ [PROC-0][2024-10-01 21:14:21,999][pytorch][INFO] - + Saving no weights model pretrained config
17
+ [PROC-0][2024-10-01 21:14:22,000][pytorch][INFO] - + Loading no weights AutoModel
18
+ [PROC-0][2024-10-01 21:14:22,000][pytorch][INFO] - + Loading model directly on device: cuda
19
+ [PROC-0][2024-10-01 21:14:22,260][pytorch][INFO] - + Turning on model's eval mode
20
+ [PROC-0][2024-10-01 21:14:22,266][benchmark][INFO] - Allocating energy_star benchmark
21
+ [PROC-0][2024-10-01 21:14:22,266][energy_star][INFO] - + Loading raw dataset
22
+ [PROC-0][2024-10-01 21:14:23,029][energy_star][INFO] - + Initializing Inference report
23
+ [PROC-0][2024-10-01 21:14:23,029][energy][INFO] - + Tracking GPU energy on devices [0]
24
+ [PROC-0][2024-10-01 21:14:27,213][energy_star][INFO] - + Preprocessing dataset
25
+ [PROC-0][2024-10-01 21:14:27,642][energy][INFO] - + Saving codecarbon emission data to preprocess_codecarbon.json
26
+ [PROC-0][2024-10-01 21:14:27,644][energy_star][INFO] - + Preparing backend for Inference
27
+ [PROC-0][2024-10-01 21:14:27,644][energy_star][INFO] - + Initialising dataloader
28
+ [PROC-0][2024-10-01 21:14:27,645][energy_star][INFO] - + Warming up backend for Inference
29
+ [PROC-0][2024-10-01 21:14:28,278][energy_star][INFO] - + Running Inference energy tracking for 10 iterations
30
+ [PROC-0][2024-10-01 21:14:28,278][energy_star][INFO] - + Iteration 1/10
31
+ [PROC-0][2024-10-01 21:14:32,358][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
32
+ [PROC-0][2024-10-01 21:14:32,360][energy_star][INFO] - + Iteration 2/10
33
+ [PROC-0][2024-10-01 21:14:36,414][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
34
+ [PROC-0][2024-10-01 21:14:36,416][energy_star][INFO] - + Iteration 3/10
35
+ [PROC-0][2024-10-01 21:14:40,512][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
36
+ [PROC-0][2024-10-01 21:14:40,514][energy_star][INFO] - + Iteration 4/10
37
+ [PROC-0][2024-10-01 21:14:44,540][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
38
+ [PROC-0][2024-10-01 21:14:44,542][energy_star][INFO] - + Iteration 5/10
39
+ [PROC-0][2024-10-01 21:14:48,617][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
40
+ [PROC-0][2024-10-01 21:14:48,620][energy_star][INFO] - + Iteration 6/10
41
+ [PROC-0][2024-10-01 21:14:52,752][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
42
+ [PROC-0][2024-10-01 21:14:52,754][energy_star][INFO] - + Iteration 7/10
43
+ [PROC-0][2024-10-01 21:14:56,909][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
44
+ [PROC-0][2024-10-01 21:14:56,911][energy_star][INFO] - + Iteration 8/10
45
+ [PROC-0][2024-10-01 21:15:01,056][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
46
+ [PROC-0][2024-10-01 21:15:01,058][energy_star][INFO] - + Iteration 9/10
47
+ [PROC-0][2024-10-01 21:15:05,217][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
48
+ [PROC-0][2024-10-01 21:15:05,219][energy_star][INFO] - + Iteration 10/10
49
+ [PROC-0][2024-10-01 21:15:09,369][energy][INFO] - + Saving codecarbon emission data to forward_codecarbon.json
50
+ [PROC-0][2024-10-01 21:15:09,371][energy][INFO] - + forward energy consumption:
51
+ [PROC-0][2024-10-01 21:15:09,371][energy][INFO] - + CPU: 0.000044 (kWh)
52
+ [PROC-0][2024-10-01 21:15:09,371][energy][INFO] - + GPU: 0.000171 (kWh)
53
+ [PROC-0][2024-10-01 21:15:09,371][energy][INFO] - + RAM: 0.000000 (kWh)
54
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + total: 0.000215 (kWh)
55
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + forward_iteration_1 energy consumption:
56
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + CPU: 0.000048 (kWh)
57
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + GPU: 0.000186 (kWh)
58
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + RAM: 0.000000 (kWh)
59
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + total: 0.000235 (kWh)
60
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + forward_iteration_2 energy consumption:
61
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + CPU: 0.000048 (kWh)
62
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + GPU: 0.000189 (kWh)
63
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + RAM: 0.000000 (kWh)
64
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + total: 0.000237 (kWh)
65
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + forward_iteration_3 energy consumption:
66
+ [PROC-0][2024-10-01 21:15:09,372][energy][INFO] - + CPU: 0.000048 (kWh)
67
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + GPU: 0.000188 (kWh)
68
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + RAM: 0.000000 (kWh)
69
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + total: 0.000237 (kWh)
70
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + forward_iteration_4 energy consumption:
71
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + CPU: 0.000047 (kWh)
72
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + GPU: 0.000186 (kWh)
73
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + RAM: 0.000000 (kWh)
74
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + total: 0.000234 (kWh)
75
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + forward_iteration_5 energy consumption:
76
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + CPU: 0.000048 (kWh)
77
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + GPU: 0.000192 (kWh)
78
+ [PROC-0][2024-10-01 21:15:09,373][energy][INFO] - + RAM: 0.000000 (kWh)
79
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + total: 0.000240 (kWh)
80
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + forward_iteration_6 energy consumption:
81
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + CPU: 0.000049 (kWh)
82
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + GPU: 0.000191 (kWh)
83
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + RAM: 0.000000 (kWh)
84
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + total: 0.000240 (kWh)
85
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + forward_iteration_7 energy consumption:
86
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + CPU: 0.000000 (kWh)
87
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + GPU: 0.000000 (kWh)
88
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + RAM: 0.000000 (kWh)
89
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + total: 0.000000 (kWh)
90
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + forward_iteration_8 energy consumption:
91
+ [PROC-0][2024-10-01 21:15:09,374][energy][INFO] - + CPU: 0.000049 (kWh)
92
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + GPU: 0.000192 (kWh)
93
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + RAM: 0.000000 (kWh)
94
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + total: 0.000241 (kWh)
95
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + forward_iteration_9 energy consumption:
96
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + CPU: 0.000049 (kWh)
97
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + GPU: 0.000195 (kWh)
98
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + RAM: 0.000000 (kWh)
99
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + total: 0.000245 (kWh)
100
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + forward_iteration_10 energy consumption:
101
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + CPU: 0.000049 (kWh)
102
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + GPU: 0.000194 (kWh)
103
+ [PROC-0][2024-10-01 21:15:09,375][energy][INFO] - + RAM: 0.000000 (kWh)
104
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + total: 0.000244 (kWh)
105
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + preprocess energy consumption:
106
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + CPU: 0.000005 (kWh)
107
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + GPU: 0.000008 (kWh)
108
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + RAM: 0.000000 (kWh)
109
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + total: 0.000013 (kWh)
110
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + forward energy efficiency: 4645424.325616 (samples/kWh)
111
+ [PROC-0][2024-10-01 21:15:09,376][energy][INFO] - + preprocess energy efficiency: 77670022.957253 (samples/kWh)
112
+ [2024-10-01 21:15:10,016][device-isolation][INFO] - + Closing device(s) isolation process...
113
+ [2024-10-01 21:15:10,071][datasets][INFO] - PyTorch version 2.4.0 available.
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/experiment_config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "experiment_name": "text_classification",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-classification",
8
+ "model": "lvwerra/distilbert-imdb",
9
+ "processor": "lvwerra/distilbert-imdb",
10
+ "library": "transformers",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "hub_kwargs": {
17
+ "revision": "main",
18
+ "force_download": false,
19
+ "local_files_only": false,
20
+ "trust_remote_code": true
21
+ },
22
+ "no_weights": true,
23
+ "device_map": null,
24
+ "torch_dtype": null,
25
+ "amp_autocast": false,
26
+ "amp_dtype": null,
27
+ "eval_mode": true,
28
+ "to_bettertransformer": false,
29
+ "low_cpu_mem_usage": null,
30
+ "attn_implementation": null,
31
+ "cache_implementation": null,
32
+ "torch_compile": false,
33
+ "torch_compile_config": {},
34
+ "quantization_scheme": null,
35
+ "quantization_config": {},
36
+ "deepspeed_inference": false,
37
+ "deepspeed_inference_config": {},
38
+ "peft_type": null,
39
+ "peft_config": {}
40
+ },
41
+ "launcher": {
42
+ "name": "process",
43
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
44
+ "device_isolation": true,
45
+ "device_isolation_action": "warn",
46
+ "start_method": "spawn"
47
+ },
48
+ "benchmark": {
49
+ "name": "energy_star",
50
+ "_target_": "optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark",
51
+ "dataset_name": "EnergyStarAI/text_classification",
52
+ "dataset_config": "",
53
+ "dataset_split": "train",
54
+ "num_samples": 1000,
55
+ "input_shapes": {
56
+ "batch_size": 1
57
+ },
58
+ "text_column_name": "text",
59
+ "truncation": true,
60
+ "max_length": -1,
61
+ "dataset_prefix1": "",
62
+ "dataset_prefix2": "",
63
+ "t5_task": "",
64
+ "image_column_name": "image",
65
+ "resize": false,
66
+ "question_column_name": "question",
67
+ "context_column_name": "context",
68
+ "sentence1_column_name": "sentence1",
69
+ "sentence2_column_name": "sentence2",
70
+ "audio_column_name": "audio",
71
+ "iterations": 10,
72
+ "warmup_runs": 10,
73
+ "energy": true,
74
+ "forward_kwargs": {},
75
+ "generate_kwargs": {},
76
+ "call_kwargs": {}
77
+ },
78
+ "environment": {
79
+ "cpu": " AMD EPYC 7R32",
80
+ "cpu_count": 48,
81
+ "cpu_ram_mb": 200472.73984,
82
+ "system": "Linux",
83
+ "machine": "x86_64",
84
+ "platform": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
85
+ "processor": "x86_64",
86
+ "python_version": "3.9.20",
87
+ "gpu": [
88
+ "NVIDIA A10G"
89
+ ],
90
+ "gpu_count": 1,
91
+ "gpu_vram_mb": 24146608128,
92
+ "optimum_benchmark_version": "0.2.0",
93
+ "optimum_benchmark_commit": null,
94
+ "transformers_version": "4.44.0",
95
+ "transformers_commit": null,
96
+ "accelerate_version": "0.33.0",
97
+ "accelerate_commit": null,
98
+ "diffusers_version": "0.30.0",
99
+ "diffusers_commit": null,
100
+ "optimum_version": null,
101
+ "optimum_commit": null,
102
+ "timm_version": null,
103
+ "timm_commit": null,
104
+ "peft_version": null,
105
+ "peft_commit": null
106
+ }
107
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/forward_codecarbon.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": "2024-10-01T21:15:09",
3
+ "project_name": "codecarbon",
4
+ "run_id": "62571789-e33c-4aa9-8938-1dccac1b80ae",
5
+ "duration": -1727749209.1388986,
6
+ "emissions": 8.991535859172444e-05,
7
+ "emissions_rate": 2.169014157580518e-05,
8
+ "cpu_power": 42.5,
9
+ "gpu_power": 168.68108366185925,
10
+ "ram_power": 0.34534549713134766,
11
+ "cpu_energy": 4.896273474520662e-05,
12
+ "gpu_energy": 0.00019422404426805429,
13
+ "ram_energy": 3.9757394109469705e-07,
14
+ "energy_consumed": 0.00024358435295435566,
15
+ "country_name": "United States",
16
+ "country_iso_code": "USA",
17
+ "region": "virginia",
18
+ "cloud_provider": "",
19
+ "cloud_region": "",
20
+ "os": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
21
+ "python_version": "3.9.20",
22
+ "codecarbon_version": "2.5.1",
23
+ "cpu_count": 48,
24
+ "cpu_model": "AMD EPYC 7R32",
25
+ "gpu_count": 1,
26
+ "gpu_model": "1 x NVIDIA A10G",
27
+ "longitude": -77.4903,
28
+ "latitude": 39.0469,
29
+ "ram_total_size": 186.7047882080078,
30
+ "tracking_mode": "process",
31
+ "on_cloud": "N",
32
+ "pue": 1.0
33
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-14-17/preprocess_codecarbon.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": "2024-10-01T21:14:27",
3
+ "project_name": "codecarbon",
4
+ "run_id": "62571789-e33c-4aa9-8938-1dccac1b80ae",
5
+ "duration": -1727749212.8599434,
6
+ "emissions": 4.7525977698487455e-06,
7
+ "emissions_rate": 1.119615391187917e-05,
8
+ "cpu_power": 42.5,
9
+ "gpu_power": 66.26954645159809,
10
+ "ram_power": 0.27468109130859375,
11
+ "cpu_energy": 5.0351720819384764e-06,
12
+ "gpu_energy": 7.807506245960383e-06,
13
+ "ram_energy": 3.2301772858555534e-08,
14
+ "energy_consumed": 1.2874980100757415e-05,
15
+ "country_name": "United States",
16
+ "country_iso_code": "USA",
17
+ "region": "virginia",
18
+ "cloud_provider": "",
19
+ "cloud_region": "",
20
+ "os": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
21
+ "python_version": "3.9.20",
22
+ "codecarbon_version": "2.5.1",
23
+ "cpu_count": 48,
24
+ "cpu_model": "AMD EPYC 7R32",
25
+ "gpu_count": 1,
26
+ "gpu_model": "1 x NVIDIA A10G",
27
+ "longitude": -77.4903,
28
+ "latitude": 39.0469,
29
+ "ram_total_size": 186.7047882080078,
30
+ "tracking_mode": "process",
31
+ "on_cloud": "N",
32
+ "pue": 1.0
33
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/.hydra/config.yaml ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ backend:
2
+ name: pytorch
3
+ version: 2.4.0
4
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
5
+ task: text-classification
6
+ model: lvwerra/distilbert-imdb
7
+ processor: lvwerra/distilbert-imdb
8
+ library: null
9
+ device: cuda
10
+ device_ids: '0'
11
+ seed: 42
12
+ inter_op_num_threads: null
13
+ intra_op_num_threads: null
14
+ hub_kwargs: {}
15
+ no_weights: true
16
+ device_map: null
17
+ torch_dtype: null
18
+ amp_autocast: false
19
+ amp_dtype: null
20
+ eval_mode: true
21
+ to_bettertransformer: false
22
+ low_cpu_mem_usage: null
23
+ attn_implementation: null
24
+ cache_implementation: null
25
+ torch_compile: false
26
+ torch_compile_config: {}
27
+ quantization_scheme: null
28
+ quantization_config: {}
29
+ deepspeed_inference: false
30
+ deepspeed_inference_config: {}
31
+ peft_type: null
32
+ peft_config: {}
33
+ launcher:
34
+ name: process
35
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
36
+ device_isolation: true
37
+ device_isolation_action: warn
38
+ start_method: spawn
39
+ benchmark:
40
+ name: energy_star
41
+ _target_: optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark
42
+ dataset_name: EnergyStarAI/text_classification
43
+ dataset_config: ''
44
+ dataset_split: train
45
+ num_samples: 1000
46
+ input_shapes:
47
+ batch_size: 1
48
+ text_column_name: text
49
+ truncation: true
50
+ max_length: -1
51
+ dataset_prefix1: ''
52
+ dataset_prefix2: ''
53
+ t5_task: ''
54
+ image_column_name: image
55
+ resize: false
56
+ question_column_name: question
57
+ context_column_name: context
58
+ sentence1_column_name: sentence1
59
+ sentence2_column_name: sentence2
60
+ audio_column_name: audio
61
+ iterations: 10
62
+ warmup_runs: 10
63
+ energy: true
64
+ forward_kwargs: {}
65
+ generate_kwargs: {}
66
+ call_kwargs: {}
67
+ experiment_name: text_classification
68
+ environment:
69
+ cpu: ' AMD EPYC 7R32'
70
+ cpu_count: 48
71
+ cpu_ram_mb: 200472.73984
72
+ system: Linux
73
+ machine: x86_64
74
+ platform: Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35
75
+ processor: x86_64
76
+ python_version: 3.9.20
77
+ gpu:
78
+ - NVIDIA A10G
79
+ gpu_count: 1
80
+ gpu_vram_mb: 24146608128
81
+ optimum_benchmark_version: 0.2.0
82
+ optimum_benchmark_commit: null
83
+ transformers_version: 4.44.0
84
+ transformers_commit: null
85
+ accelerate_version: 0.33.0
86
+ accelerate_commit: null
87
+ diffusers_version: 0.30.0
88
+ diffusers_commit: null
89
+ optimum_version: null
90
+ optimum_commit: null
91
+ timm_version: null
92
+ timm_commit: null
93
+ peft_version: null
94
+ peft_commit: null
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/.hydra/hydra.yaml ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: /data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
4
+ sweep:
5
+ dir: sweeps/${experiment_name}/${now:%Y-%m-%d-%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ colorlog:
72
+ (): colorlog.ColoredFormatter
73
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s'
74
+ handlers:
75
+ console:
76
+ class: logging.StreamHandler
77
+ formatter: colorlog
78
+ stream: ext://sys.stdout
79
+ root:
80
+ level: INFO
81
+ handlers:
82
+ - console
83
+ disable_existing_loggers: false
84
+ job_logging:
85
+ version: 1
86
+ formatters:
87
+ simple:
88
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
89
+ colorlog:
90
+ (): colorlog.ColoredFormatter
91
+ format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]
92
+ - %(message)s'
93
+ log_colors:
94
+ DEBUG: purple
95
+ INFO: green
96
+ WARNING: yellow
97
+ ERROR: red
98
+ CRITICAL: red
99
+ handlers:
100
+ console:
101
+ class: logging.StreamHandler
102
+ formatter: colorlog
103
+ stream: ext://sys.stdout
104
+ file:
105
+ class: logging.FileHandler
106
+ formatter: simple
107
+ filename: ${hydra.job.name}.log
108
+ root:
109
+ level: INFO
110
+ handlers:
111
+ - console
112
+ - file
113
+ disable_existing_loggers: false
114
+ env: {}
115
+ mode: RUN
116
+ searchpath: []
117
+ callbacks: {}
118
+ output_subdir: .hydra
119
+ overrides:
120
+ hydra:
121
+ - hydra.run.dir=/data/runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
122
+ - hydra.mode=RUN
123
+ task: []
124
+ job:
125
+ name: cli
126
+ chdir: true
127
+ override_dirname: ''
128
+ id: ???
129
+ num: ???
130
+ config_name: text_classification
131
+ env_set:
132
+ OVERRIDE_BENCHMARKS: '1'
133
+ env_copy: []
134
+ config:
135
+ override_dirname:
136
+ kv_sep: '='
137
+ item_sep: ','
138
+ exclude_keys: []
139
+ runtime:
140
+ version: 1.3.2
141
+ version_base: '1.3'
142
+ cwd: /
143
+ config_sources:
144
+ - path: hydra.conf
145
+ schema: pkg
146
+ provider: hydra
147
+ - path: optimum_benchmark
148
+ schema: pkg
149
+ provider: main
150
+ - path: hydra_plugins.hydra_colorlog.conf
151
+ schema: pkg
152
+ provider: hydra-colorlog
153
+ - path: /optimum-benchmark/examples/energy_star
154
+ schema: file
155
+ provider: command-line
156
+ - path: ''
157
+ schema: structured
158
+ provider: schema
159
+ output_dir: /data/runs/text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14
160
+ choices:
161
+ benchmark: energy_star
162
+ launcher: process
163
+ backend: pytorch
164
+ hydra/env: default
165
+ hydra/callbacks: null
166
+ hydra/job_logging: colorlog
167
+ hydra/hydra_logging: colorlog
168
+ hydra/hydra_help: default
169
+ hydra/help: default
170
+ hydra/sweeper: basic
171
+ hydra/launcher: basic
172
+ hydra/output: default
173
+ verbose: false
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/.hydra/overrides.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ []
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/cli.log ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-01 21:15:14,724][launcher][INFO] - ََAllocating process launcher
2
+ [2024-10-01 21:15:14,724][process][INFO] - + Setting multiprocessing start method to spawn.
3
+ [2024-10-01 21:15:14,738][device-isolation][INFO] - + Launched device(s) isolation process 66
4
+ [2024-10-01 21:15:14,738][device-isolation][INFO] - + Isolating device(s) [0]
5
+ [2024-10-01 21:15:14,745][process][INFO] - + Launched benchmark in isolated process 67.
6
+ [PROC-0][2024-10-01 21:15:17,313][datasets][INFO] - PyTorch version 2.4.0 available.
7
+ [PROC-0][2024-10-01 21:15:18,249][backend][INFO] - َAllocating pytorch backend
8
+ [PROC-0][2024-10-01 21:15:18,249][backend][INFO] - + Setting random seed to 42
9
+ [PROC-0][2024-10-01 21:15:18,543][pytorch][INFO] - + Using AutoModel class AutoModelForSequenceClassification
10
+ [PROC-0][2024-10-01 21:15:18,543][pytorch][INFO] - + Creating backend temporary directory
11
+ [PROC-0][2024-10-01 21:15:18,543][pytorch][INFO] - + Loading model with random weights
12
+ [PROC-0][2024-10-01 21:15:18,543][pytorch][INFO] - + Creating no weights model
13
+ [PROC-0][2024-10-01 21:15:18,543][pytorch][INFO] - + Creating no weights model directory
14
+ [PROC-0][2024-10-01 21:15:18,544][pytorch][INFO] - + Creating no weights model state dict
15
+ [PROC-0][2024-10-01 21:15:18,546][pytorch][INFO] - + Saving no weights model safetensors
16
+ [PROC-0][2024-10-01 21:15:18,546][pytorch][INFO] - + Saving no weights model pretrained config
17
+ [PROC-0][2024-10-01 21:15:18,547][pytorch][INFO] - + Loading no weights AutoModel
18
+ [PROC-0][2024-10-01 21:15:18,547][pytorch][INFO] - + Loading model directly on device: cuda
19
+ [PROC-0][2024-10-01 21:15:18,810][pytorch][INFO] - + Turning on model's eval mode
20
+ [PROC-0][2024-10-01 21:15:18,816][benchmark][INFO] - Allocating energy_star benchmark
21
+ [PROC-0][2024-10-01 21:15:18,816][energy_star][INFO] - + Loading raw dataset
22
+ [PROC-0][2024-10-01 21:15:19,320][energy_star][INFO] - + Initializing Inference report
23
+ [PROC-0][2024-10-01 21:15:19,320][energy][INFO] - + Tracking GPU energy on devices [0]
24
+ [PROC-0][2024-10-01 21:15:23,511][energy_star][INFO] - + Preprocessing dataset
25
+ [PROC-0][2024-10-01 21:15:23,943][energy][INFO] - + Saving codecarbon emission data to preprocess_codecarbon.json
26
+ [PROC-0][2024-10-01 21:15:23,945][energy_star][INFO] - + Preparing backend for Inference
27
+ [PROC-0][2024-10-01 21:15:23,945][energy_star][INFO] - + Initialising dataloader
28
+ [PROC-0][2024-10-01 21:15:23,946][energy_star][INFO] - + Warming up backend for Inference
29
+ [PROC-0][2024-10-01 21:15:24,433][energy_star][INFO] - + Running Inference energy tracking for 10 iterations
30
+ [PROC-0][2024-10-01 21:15:24,434][energy_star][INFO] - + Iteration 1/10
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/experiment_config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "experiment_name": "text_classification",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-classification",
8
+ "model": "lvwerra/distilbert-imdb",
9
+ "processor": "lvwerra/distilbert-imdb",
10
+ "library": "transformers",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "hub_kwargs": {
17
+ "revision": "main",
18
+ "force_download": false,
19
+ "local_files_only": false,
20
+ "trust_remote_code": true
21
+ },
22
+ "no_weights": true,
23
+ "device_map": null,
24
+ "torch_dtype": null,
25
+ "amp_autocast": false,
26
+ "amp_dtype": null,
27
+ "eval_mode": true,
28
+ "to_bettertransformer": false,
29
+ "low_cpu_mem_usage": null,
30
+ "attn_implementation": null,
31
+ "cache_implementation": null,
32
+ "torch_compile": false,
33
+ "torch_compile_config": {},
34
+ "quantization_scheme": null,
35
+ "quantization_config": {},
36
+ "deepspeed_inference": false,
37
+ "deepspeed_inference_config": {},
38
+ "peft_type": null,
39
+ "peft_config": {}
40
+ },
41
+ "launcher": {
42
+ "name": "process",
43
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
44
+ "device_isolation": true,
45
+ "device_isolation_action": "warn",
46
+ "start_method": "spawn"
47
+ },
48
+ "benchmark": {
49
+ "name": "energy_star",
50
+ "_target_": "optimum_benchmark.benchmarks.energy_star.benchmark.EnergyStarBenchmark",
51
+ "dataset_name": "EnergyStarAI/text_classification",
52
+ "dataset_config": "",
53
+ "dataset_split": "train",
54
+ "num_samples": 1000,
55
+ "input_shapes": {
56
+ "batch_size": 1
57
+ },
58
+ "text_column_name": "text",
59
+ "truncation": true,
60
+ "max_length": -1,
61
+ "dataset_prefix1": "",
62
+ "dataset_prefix2": "",
63
+ "t5_task": "",
64
+ "image_column_name": "image",
65
+ "resize": false,
66
+ "question_column_name": "question",
67
+ "context_column_name": "context",
68
+ "sentence1_column_name": "sentence1",
69
+ "sentence2_column_name": "sentence2",
70
+ "audio_column_name": "audio",
71
+ "iterations": 10,
72
+ "warmup_runs": 10,
73
+ "energy": true,
74
+ "forward_kwargs": {},
75
+ "generate_kwargs": {},
76
+ "call_kwargs": {}
77
+ },
78
+ "environment": {
79
+ "cpu": " AMD EPYC 7R32",
80
+ "cpu_count": 48,
81
+ "cpu_ram_mb": 200472.73984,
82
+ "system": "Linux",
83
+ "machine": "x86_64",
84
+ "platform": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
85
+ "processor": "x86_64",
86
+ "python_version": "3.9.20",
87
+ "gpu": [
88
+ "NVIDIA A10G"
89
+ ],
90
+ "gpu_count": 1,
91
+ "gpu_vram_mb": 24146608128,
92
+ "optimum_benchmark_version": "0.2.0",
93
+ "optimum_benchmark_commit": null,
94
+ "transformers_version": "4.44.0",
95
+ "transformers_commit": null,
96
+ "accelerate_version": "0.33.0",
97
+ "accelerate_commit": null,
98
+ "diffusers_version": "0.30.0",
99
+ "diffusers_commit": null,
100
+ "optimum_version": null,
101
+ "optimum_commit": null,
102
+ "timm_version": null,
103
+ "timm_commit": null,
104
+ "peft_version": null,
105
+ "peft_commit": null
106
+ }
107
+ }
text_classification/lvwerra/distilbert-imdb/2024-10-01-21-15-14/preprocess_codecarbon.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": "2024-10-01T21:15:23",
3
+ "project_name": "codecarbon",
4
+ "run_id": "65f7cffa-58dc-44e2-b73b-9318c4a3d1e6",
5
+ "duration": -1727749212.8575919,
6
+ "emissions": 4.865202615390215e-06,
7
+ "emissions_rate": 1.1398218104190734e-05,
8
+ "cpu_power": 42.5,
9
+ "gpu_power": 68.217578741548,
10
+ "ram_power": 0.2742791175842285,
11
+ "cpu_energy": 5.062855885363307e-06,
12
+ "gpu_energy": 8.084728689961018e-06,
13
+ "ram_energy": 3.2446618709477586e-08,
14
+ "energy_consumed": 1.3180031194033802e-05,
15
+ "country_name": "United States",
16
+ "country_iso_code": "USA",
17
+ "region": "virginia",
18
+ "cloud_provider": "",
19
+ "cloud_region": "",
20
+ "os": "Linux-5.10.192-183.736.amzn2.x86_64-x86_64-with-glibc2.35",
21
+ "python_version": "3.9.20",
22
+ "codecarbon_version": "2.5.1",
23
+ "cpu_count": 48,
24
+ "cpu_model": "AMD EPYC 7R32",
25
+ "gpu_count": 1,
26
+ "gpu_model": "1 x NVIDIA A10G",
27
+ "longitude": -77.4903,
28
+ "latitude": 39.0469,
29
+ "ram_total_size": 186.7047882080078,
30
+ "tracking_mode": "process",
31
+ "on_cloud": "N",
32
+ "pue": 1.0
33
+ }