Adding regression benchmark for the transformers SHA e7e9261a202dd5623f488f1cb05007e88629f275
Browse files- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/.config/config.yaml +66 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/.config/hydra.yaml +172 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/.config/overrides.yaml +1 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/hydra_config.yaml +66 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/inference_results.csv +2 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/main.log +20 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/.config/config.yaml +66 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/.config/hydra.yaml +172 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/.config/overrides.yaml +1 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/hydra_config.yaml +66 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/inference_results.csv +2 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/main.log +20 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/.config/config.yaml +66 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/.config/hydra.yaml +170 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/.config/overrides.yaml +1 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/hydra_config.yaml +66 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/inference_results.csv +2 -0
- raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/main.log +22 -0
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/.config/config.yaml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
backend:
|
2 |
+
name: pytorch
|
3 |
+
version: 2.0.1+cu117
|
4 |
+
_target_: optimum_benchmark.backends.pytorch.PyTorchBackend
|
5 |
+
inter_op_num_threads: null
|
6 |
+
intra_op_num_threads: null
|
7 |
+
initial_isolation_check: true
|
8 |
+
continous_isolation_check: true
|
9 |
+
delete_cache: false
|
10 |
+
no_weights: false
|
11 |
+
torch_dtype: null
|
12 |
+
device_map: null
|
13 |
+
load_in_8bit: false
|
14 |
+
load_in_4bit: false
|
15 |
+
bettertransformer: false
|
16 |
+
torch_compile: false
|
17 |
+
torch_compile_config:
|
18 |
+
fullgraph: false
|
19 |
+
dynamic: false
|
20 |
+
backend: inductor
|
21 |
+
mode: null
|
22 |
+
options: null
|
23 |
+
disable: false
|
24 |
+
amp_autocast: false
|
25 |
+
amp_dtype: null
|
26 |
+
disable_grad: ${is_inference:${benchmark.name}}
|
27 |
+
eval_mode: ${is_inference:${benchmark.name}}
|
28 |
+
benchmark:
|
29 |
+
name: inference
|
30 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
31 |
+
seed: 42
|
32 |
+
memory: true
|
33 |
+
warmup_runs: 10
|
34 |
+
benchmark_duration: 5
|
35 |
+
input_shapes:
|
36 |
+
batch_size: 1
|
37 |
+
sequence_length: 16
|
38 |
+
num_choices: 1
|
39 |
+
width: 64
|
40 |
+
height: 64
|
41 |
+
num_channels: 3
|
42 |
+
point_batch_size: 3
|
43 |
+
nb_points_per_image: 2
|
44 |
+
feature_size: 80
|
45 |
+
nb_max_frames: 3000
|
46 |
+
audio_sequence_length: 16000
|
47 |
+
new_tokens: 100
|
48 |
+
experiment_name: pytorch_bert_inference
|
49 |
+
model: hf-internal-testing/tiny-random-bert
|
50 |
+
device: cpu
|
51 |
+
task: text-classification
|
52 |
+
hub_kwargs:
|
53 |
+
revision: main
|
54 |
+
cache_dir: null
|
55 |
+
force_download: false
|
56 |
+
local_files_only: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.1
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
accelerate_version: 0.21.0
|
61 |
+
diffusers_version: null
|
62 |
+
python_version: 3.10.12
|
63 |
+
system: Linux
|
64 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
65 |
+
cpu_count: 96
|
66 |
+
cpu_ram_mb: 1204539.797504
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/.config/hydra.yaml
ADDED
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
hydra:
|
2 |
+
run:
|
3 |
+
dir: runs/${oc.env:COMMIT_DATE_GMT}_${oc.env:COMMIT_SHA}/${experiment_name}
|
4 |
+
sweep:
|
5 |
+
dir: sweeps/${oc.env:COMMIT_DATE_GMT}_${oc.env:COMMIT_SHA}/${experiment_name}
|
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:
|
13 |
+
benchmark.input_shapes.batch_size: 1,4
|
14 |
+
help:
|
15 |
+
app_name: ${hydra.job.name}
|
16 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
17 |
+
|
18 |
+
'
|
19 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
20 |
+
|
21 |
+
Use --hydra-help to view Hydra specific help
|
22 |
+
|
23 |
+
'
|
24 |
+
template: '${hydra.help.header}
|
25 |
+
|
26 |
+
== Configuration groups ==
|
27 |
+
|
28 |
+
Compose your configuration from those groups (group=option)
|
29 |
+
|
30 |
+
|
31 |
+
$APP_CONFIG_GROUPS
|
32 |
+
|
33 |
+
|
34 |
+
== Config ==
|
35 |
+
|
36 |
+
Override anything in the config (foo.bar=value)
|
37 |
+
|
38 |
+
|
39 |
+
$CONFIG
|
40 |
+
|
41 |
+
|
42 |
+
${hydra.help.footer}
|
43 |
+
|
44 |
+
'
|
45 |
+
hydra_help:
|
46 |
+
template: 'Hydra (${hydra.runtime.version})
|
47 |
+
|
48 |
+
See https://hydra.cc for more info.
|
49 |
+
|
50 |
+
|
51 |
+
== Flags ==
|
52 |
+
|
53 |
+
$FLAGS_HELP
|
54 |
+
|
55 |
+
|
56 |
+
== Configuration groups ==
|
57 |
+
|
58 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
59 |
+
to command line)
|
60 |
+
|
61 |
+
|
62 |
+
$HYDRA_CONFIG_GROUPS
|
63 |
+
|
64 |
+
|
65 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
66 |
+
|
67 |
+
'
|
68 |
+
hydra_help: ???
|
69 |
+
hydra_logging:
|
70 |
+
version: 1
|
71 |
+
formatters:
|
72 |
+
colorlog:
|
73 |
+
(): colorlog.ColoredFormatter
|
74 |
+
format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s'
|
75 |
+
handlers:
|
76 |
+
console:
|
77 |
+
class: logging.StreamHandler
|
78 |
+
formatter: colorlog
|
79 |
+
stream: ext://sys.stdout
|
80 |
+
root:
|
81 |
+
level: INFO
|
82 |
+
handlers:
|
83 |
+
- console
|
84 |
+
disable_existing_loggers: false
|
85 |
+
job_logging:
|
86 |
+
version: 1
|
87 |
+
formatters:
|
88 |
+
simple:
|
89 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
90 |
+
colorlog:
|
91 |
+
(): colorlog.ColoredFormatter
|
92 |
+
format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]
|
93 |
+
- %(message)s'
|
94 |
+
log_colors:
|
95 |
+
DEBUG: purple
|
96 |
+
INFO: green
|
97 |
+
WARNING: yellow
|
98 |
+
ERROR: red
|
99 |
+
CRITICAL: red
|
100 |
+
handlers:
|
101 |
+
console:
|
102 |
+
class: logging.StreamHandler
|
103 |
+
formatter: colorlog
|
104 |
+
stream: ext://sys.stdout
|
105 |
+
file:
|
106 |
+
class: logging.FileHandler
|
107 |
+
formatter: simple
|
108 |
+
filename: ${hydra.job.name}.log
|
109 |
+
root:
|
110 |
+
level: INFO
|
111 |
+
handlers:
|
112 |
+
- console
|
113 |
+
- file
|
114 |
+
disable_existing_loggers: false
|
115 |
+
env: {}
|
116 |
+
mode: MULTIRUN
|
117 |
+
searchpath: []
|
118 |
+
callbacks: {}
|
119 |
+
output_subdir: .hydra
|
120 |
+
overrides:
|
121 |
+
hydra:
|
122 |
+
- hydra.mode=MULTIRUN
|
123 |
+
task:
|
124 |
+
- benchmark.input_shapes.batch_size=1
|
125 |
+
job:
|
126 |
+
name: main
|
127 |
+
chdir: true
|
128 |
+
override_dirname: benchmark.input_shapes.batch_size=1
|
129 |
+
id: '0'
|
130 |
+
num: 0
|
131 |
+
config_name: bert_cpu_inference
|
132 |
+
env_set: {}
|
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: /home/user/transformers-regression
|
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: /home/user/transformers-regression/configs
|
154 |
+
schema: file
|
155 |
+
provider: command-line
|
156 |
+
- path: ''
|
157 |
+
schema: structured
|
158 |
+
provider: schema
|
159 |
+
output_dir: /home/user/transformers-regression/sweeps/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0
|
160 |
+
choices:
|
161 |
+
benchmark: inference
|
162 |
+
backend: pytorch
|
163 |
+
hydra/env: default
|
164 |
+
hydra/callbacks: null
|
165 |
+
hydra/job_logging: colorlog
|
166 |
+
hydra/hydra_logging: colorlog
|
167 |
+
hydra/hydra_help: default
|
168 |
+
hydra/help: default
|
169 |
+
hydra/sweeper: basic
|
170 |
+
hydra/launcher: basic
|
171 |
+
hydra/output: default
|
172 |
+
verbose: false
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/.config/overrides.yaml
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
- benchmark.input_shapes.batch_size=1
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/hydra_config.yaml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
backend:
|
2 |
+
name: pytorch
|
3 |
+
version: 2.0.1+cu117
|
4 |
+
_target_: optimum_benchmark.backends.pytorch.PyTorchBackend
|
5 |
+
inter_op_num_threads: null
|
6 |
+
intra_op_num_threads: null
|
7 |
+
initial_isolation_check: true
|
8 |
+
continous_isolation_check: true
|
9 |
+
delete_cache: false
|
10 |
+
no_weights: false
|
11 |
+
torch_dtype: null
|
12 |
+
device_map: null
|
13 |
+
load_in_8bit: false
|
14 |
+
load_in_4bit: false
|
15 |
+
bettertransformer: false
|
16 |
+
torch_compile: false
|
17 |
+
torch_compile_config:
|
18 |
+
fullgraph: false
|
19 |
+
dynamic: false
|
20 |
+
backend: inductor
|
21 |
+
mode: null
|
22 |
+
options: null
|
23 |
+
disable: false
|
24 |
+
amp_autocast: false
|
25 |
+
amp_dtype: null
|
26 |
+
disable_grad: true
|
27 |
+
eval_mode: true
|
28 |
+
benchmark:
|
29 |
+
name: inference
|
30 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
31 |
+
seed: 42
|
32 |
+
memory: true
|
33 |
+
warmup_runs: 10
|
34 |
+
benchmark_duration: 5
|
35 |
+
input_shapes:
|
36 |
+
batch_size: 1
|
37 |
+
sequence_length: 16
|
38 |
+
num_choices: 1
|
39 |
+
width: 64
|
40 |
+
height: 64
|
41 |
+
num_channels: 3
|
42 |
+
point_batch_size: 3
|
43 |
+
nb_points_per_image: 2
|
44 |
+
feature_size: 80
|
45 |
+
nb_max_frames: 3000
|
46 |
+
audio_sequence_length: 16000
|
47 |
+
new_tokens: 100
|
48 |
+
experiment_name: pytorch_bert_inference
|
49 |
+
model: hf-internal-testing/tiny-random-bert
|
50 |
+
device: cpu
|
51 |
+
task: text-classification
|
52 |
+
hub_kwargs:
|
53 |
+
revision: main
|
54 |
+
cache_dir: null
|
55 |
+
force_download: false
|
56 |
+
local_files_only: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.1
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
accelerate_version: 0.21.0
|
61 |
+
diffusers_version: null
|
62 |
+
python_version: 3.10.12
|
63 |
+
system: Linux
|
64 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
65 |
+
cpu_count: 96
|
66 |
+
cpu_ram_mb: 1204539.797504
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/inference_results.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
,forward.peak_memory(MB),forward.latency(s),forward.throughput(samples/s)
|
2 |
+
0,467.013632,0.0032,312.0
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/0/main.log
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[2023-08-17 10:28:33,813][benchmark][INFO] - Configuring inference benchmark
|
2 |
+
[2023-08-17 10:28:33,814][benchmark][INFO] - + Setting seed(42)
|
3 |
+
[2023-08-17 10:28:35,024][pytorch][INFO] - + Infered AutoModel class AutoModelForSequenceClassification for task text-classification and model_type bert
|
4 |
+
[2023-08-17 10:28:35,024][backend][INFO] - Configuring pytorch backend
|
5 |
+
[2023-08-17 10:28:35,025][backend][INFO] - + Checking initial device isolation
|
6 |
+
[2023-08-17 10:28:35,025][backend][INFO] - + Checking contineous device isolation
|
7 |
+
[2023-08-17 10:28:35,025][pytorch][INFO] - + Disabling gradients
|
8 |
+
[2023-08-17 10:28:35,025][pytorch][INFO] - + Loading pretrained model weights in dtype: None on device: cpu
|
9 |
+
[2023-08-17 10:28:35,672][pytorch][INFO] - + Turning on eval mode
|
10 |
+
[2023-08-17 10:28:35,673][inference][INFO] - Running inference benchmark
|
11 |
+
[2023-08-17 10:28:35,787][dummy_input][INFO] - Generating dummy input for: ['input_ids', 'attention_mask', 'token_type_ids']
|
12 |
+
[2023-08-17 10:28:35,789][inference][INFO] - + Tracking forward pass peak memory
|
13 |
+
[2023-08-17 10:28:35,847][inference][INFO] - + Forward pass peak memory: 467.013632 (MB)
|
14 |
+
[2023-08-17 10:28:35,848][dummy_input][INFO] - Generating dummy input for: ['input_ids', 'attention_mask', 'token_type_ids']
|
15 |
+
[2023-08-17 10:28:35,850][inference][INFO] - + Warming up the forward pass
|
16 |
+
[2023-08-17 10:28:35,886][inference][INFO] - + Tracking forward pass latency and throughput
|
17 |
+
[2023-08-17 10:28:40,938][inference][INFO] - + Forward pass latency: 3.20e-03 (s)
|
18 |
+
[2023-08-17 10:28:40,940][inference][INFO] - + Forward pass throughput: 312.00 (samples/s)
|
19 |
+
[2023-08-17 10:28:40,940][inference][INFO] - Saving inference results
|
20 |
+
[2023-08-17 10:28:40,952][backend][INFO] - Cleaning backend
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/.config/config.yaml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
backend:
|
2 |
+
name: pytorch
|
3 |
+
version: 2.0.1+cu117
|
4 |
+
_target_: optimum_benchmark.backends.pytorch.PyTorchBackend
|
5 |
+
inter_op_num_threads: null
|
6 |
+
intra_op_num_threads: null
|
7 |
+
initial_isolation_check: true
|
8 |
+
continous_isolation_check: true
|
9 |
+
delete_cache: false
|
10 |
+
no_weights: false
|
11 |
+
torch_dtype: null
|
12 |
+
device_map: null
|
13 |
+
load_in_8bit: false
|
14 |
+
load_in_4bit: false
|
15 |
+
bettertransformer: false
|
16 |
+
torch_compile: false
|
17 |
+
torch_compile_config:
|
18 |
+
fullgraph: false
|
19 |
+
dynamic: false
|
20 |
+
backend: inductor
|
21 |
+
mode: null
|
22 |
+
options: null
|
23 |
+
disable: false
|
24 |
+
amp_autocast: false
|
25 |
+
amp_dtype: null
|
26 |
+
disable_grad: ${is_inference:${benchmark.name}}
|
27 |
+
eval_mode: ${is_inference:${benchmark.name}}
|
28 |
+
benchmark:
|
29 |
+
name: inference
|
30 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
31 |
+
seed: 42
|
32 |
+
memory: true
|
33 |
+
warmup_runs: 10
|
34 |
+
benchmark_duration: 5
|
35 |
+
input_shapes:
|
36 |
+
batch_size: 4
|
37 |
+
sequence_length: 16
|
38 |
+
num_choices: 1
|
39 |
+
width: 64
|
40 |
+
height: 64
|
41 |
+
num_channels: 3
|
42 |
+
point_batch_size: 3
|
43 |
+
nb_points_per_image: 2
|
44 |
+
feature_size: 80
|
45 |
+
nb_max_frames: 3000
|
46 |
+
audio_sequence_length: 16000
|
47 |
+
new_tokens: 100
|
48 |
+
experiment_name: pytorch_bert_inference
|
49 |
+
model: hf-internal-testing/tiny-random-bert
|
50 |
+
device: cpu
|
51 |
+
task: text-classification
|
52 |
+
hub_kwargs:
|
53 |
+
revision: main
|
54 |
+
cache_dir: null
|
55 |
+
force_download: false
|
56 |
+
local_files_only: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.1
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
accelerate_version: 0.21.0
|
61 |
+
diffusers_version: null
|
62 |
+
python_version: 3.10.12
|
63 |
+
system: Linux
|
64 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
65 |
+
cpu_count: 96
|
66 |
+
cpu_ram_mb: 1204539.797504
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/.config/hydra.yaml
ADDED
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
hydra:
|
2 |
+
run:
|
3 |
+
dir: runs/${oc.env:COMMIT_DATE_GMT}_${oc.env:COMMIT_SHA}/${experiment_name}
|
4 |
+
sweep:
|
5 |
+
dir: sweeps/${oc.env:COMMIT_DATE_GMT}_${oc.env:COMMIT_SHA}/${experiment_name}
|
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:
|
13 |
+
benchmark.input_shapes.batch_size: 1,4
|
14 |
+
help:
|
15 |
+
app_name: ${hydra.job.name}
|
16 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
17 |
+
|
18 |
+
'
|
19 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
20 |
+
|
21 |
+
Use --hydra-help to view Hydra specific help
|
22 |
+
|
23 |
+
'
|
24 |
+
template: '${hydra.help.header}
|
25 |
+
|
26 |
+
== Configuration groups ==
|
27 |
+
|
28 |
+
Compose your configuration from those groups (group=option)
|
29 |
+
|
30 |
+
|
31 |
+
$APP_CONFIG_GROUPS
|
32 |
+
|
33 |
+
|
34 |
+
== Config ==
|
35 |
+
|
36 |
+
Override anything in the config (foo.bar=value)
|
37 |
+
|
38 |
+
|
39 |
+
$CONFIG
|
40 |
+
|
41 |
+
|
42 |
+
${hydra.help.footer}
|
43 |
+
|
44 |
+
'
|
45 |
+
hydra_help:
|
46 |
+
template: 'Hydra (${hydra.runtime.version})
|
47 |
+
|
48 |
+
See https://hydra.cc for more info.
|
49 |
+
|
50 |
+
|
51 |
+
== Flags ==
|
52 |
+
|
53 |
+
$FLAGS_HELP
|
54 |
+
|
55 |
+
|
56 |
+
== Configuration groups ==
|
57 |
+
|
58 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
59 |
+
to command line)
|
60 |
+
|
61 |
+
|
62 |
+
$HYDRA_CONFIG_GROUPS
|
63 |
+
|
64 |
+
|
65 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
66 |
+
|
67 |
+
'
|
68 |
+
hydra_help: ???
|
69 |
+
hydra_logging:
|
70 |
+
version: 1
|
71 |
+
formatters:
|
72 |
+
colorlog:
|
73 |
+
(): colorlog.ColoredFormatter
|
74 |
+
format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s'
|
75 |
+
handlers:
|
76 |
+
console:
|
77 |
+
class: logging.StreamHandler
|
78 |
+
formatter: colorlog
|
79 |
+
stream: ext://sys.stdout
|
80 |
+
root:
|
81 |
+
level: INFO
|
82 |
+
handlers:
|
83 |
+
- console
|
84 |
+
disable_existing_loggers: false
|
85 |
+
job_logging:
|
86 |
+
version: 1
|
87 |
+
formatters:
|
88 |
+
simple:
|
89 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
90 |
+
colorlog:
|
91 |
+
(): colorlog.ColoredFormatter
|
92 |
+
format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]
|
93 |
+
- %(message)s'
|
94 |
+
log_colors:
|
95 |
+
DEBUG: purple
|
96 |
+
INFO: green
|
97 |
+
WARNING: yellow
|
98 |
+
ERROR: red
|
99 |
+
CRITICAL: red
|
100 |
+
handlers:
|
101 |
+
console:
|
102 |
+
class: logging.StreamHandler
|
103 |
+
formatter: colorlog
|
104 |
+
stream: ext://sys.stdout
|
105 |
+
file:
|
106 |
+
class: logging.FileHandler
|
107 |
+
formatter: simple
|
108 |
+
filename: ${hydra.job.name}.log
|
109 |
+
root:
|
110 |
+
level: INFO
|
111 |
+
handlers:
|
112 |
+
- console
|
113 |
+
- file
|
114 |
+
disable_existing_loggers: false
|
115 |
+
env: {}
|
116 |
+
mode: MULTIRUN
|
117 |
+
searchpath: []
|
118 |
+
callbacks: {}
|
119 |
+
output_subdir: .hydra
|
120 |
+
overrides:
|
121 |
+
hydra:
|
122 |
+
- hydra.mode=MULTIRUN
|
123 |
+
task:
|
124 |
+
- benchmark.input_shapes.batch_size=4
|
125 |
+
job:
|
126 |
+
name: main
|
127 |
+
chdir: true
|
128 |
+
override_dirname: benchmark.input_shapes.batch_size=4
|
129 |
+
id: '1'
|
130 |
+
num: 1
|
131 |
+
config_name: bert_cpu_inference
|
132 |
+
env_set: {}
|
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: /home/user/transformers-regression
|
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: /home/user/transformers-regression/configs
|
154 |
+
schema: file
|
155 |
+
provider: command-line
|
156 |
+
- path: ''
|
157 |
+
schema: structured
|
158 |
+
provider: schema
|
159 |
+
output_dir: /home/user/transformers-regression/sweeps/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1
|
160 |
+
choices:
|
161 |
+
benchmark: inference
|
162 |
+
backend: pytorch
|
163 |
+
hydra/env: default
|
164 |
+
hydra/callbacks: null
|
165 |
+
hydra/job_logging: colorlog
|
166 |
+
hydra/hydra_logging: colorlog
|
167 |
+
hydra/hydra_help: default
|
168 |
+
hydra/help: default
|
169 |
+
hydra/sweeper: basic
|
170 |
+
hydra/launcher: basic
|
171 |
+
hydra/output: default
|
172 |
+
verbose: false
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/.config/overrides.yaml
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
- benchmark.input_shapes.batch_size=4
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/hydra_config.yaml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
backend:
|
2 |
+
name: pytorch
|
3 |
+
version: 2.0.1+cu117
|
4 |
+
_target_: optimum_benchmark.backends.pytorch.PyTorchBackend
|
5 |
+
inter_op_num_threads: null
|
6 |
+
intra_op_num_threads: null
|
7 |
+
initial_isolation_check: true
|
8 |
+
continous_isolation_check: true
|
9 |
+
delete_cache: false
|
10 |
+
no_weights: false
|
11 |
+
torch_dtype: null
|
12 |
+
device_map: null
|
13 |
+
load_in_8bit: false
|
14 |
+
load_in_4bit: false
|
15 |
+
bettertransformer: false
|
16 |
+
torch_compile: false
|
17 |
+
torch_compile_config:
|
18 |
+
fullgraph: false
|
19 |
+
dynamic: false
|
20 |
+
backend: inductor
|
21 |
+
mode: null
|
22 |
+
options: null
|
23 |
+
disable: false
|
24 |
+
amp_autocast: false
|
25 |
+
amp_dtype: null
|
26 |
+
disable_grad: true
|
27 |
+
eval_mode: true
|
28 |
+
benchmark:
|
29 |
+
name: inference
|
30 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
31 |
+
seed: 42
|
32 |
+
memory: true
|
33 |
+
warmup_runs: 10
|
34 |
+
benchmark_duration: 5
|
35 |
+
input_shapes:
|
36 |
+
batch_size: 4
|
37 |
+
sequence_length: 16
|
38 |
+
num_choices: 1
|
39 |
+
width: 64
|
40 |
+
height: 64
|
41 |
+
num_channels: 3
|
42 |
+
point_batch_size: 3
|
43 |
+
nb_points_per_image: 2
|
44 |
+
feature_size: 80
|
45 |
+
nb_max_frames: 3000
|
46 |
+
audio_sequence_length: 16000
|
47 |
+
new_tokens: 100
|
48 |
+
experiment_name: pytorch_bert_inference
|
49 |
+
model: hf-internal-testing/tiny-random-bert
|
50 |
+
device: cpu
|
51 |
+
task: text-classification
|
52 |
+
hub_kwargs:
|
53 |
+
revision: main
|
54 |
+
cache_dir: null
|
55 |
+
force_download: false
|
56 |
+
local_files_only: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.1
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
accelerate_version: 0.21.0
|
61 |
+
diffusers_version: null
|
62 |
+
python_version: 3.10.12
|
63 |
+
system: Linux
|
64 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
65 |
+
cpu_count: 96
|
66 |
+
cpu_ram_mb: 1204539.797504
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/inference_results.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
,forward.peak_memory(MB),forward.latency(s),forward.throughput(samples/s)
|
2 |
+
0,468.0704,0.00352,1140.0
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_bert_inference/1/main.log
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[2023-08-17 10:28:41,543][benchmark][INFO] - Configuring inference benchmark
|
2 |
+
[2023-08-17 10:28:41,544][benchmark][INFO] - + Setting seed(42)
|
3 |
+
[2023-08-17 10:28:42,059][pytorch][INFO] - + Infered AutoModel class AutoModelForSequenceClassification for task text-classification and model_type bert
|
4 |
+
[2023-08-17 10:28:42,060][backend][INFO] - Configuring pytorch backend
|
5 |
+
[2023-08-17 10:28:42,060][backend][INFO] - + Checking initial device isolation
|
6 |
+
[2023-08-17 10:28:42,060][backend][INFO] - + Checking contineous device isolation
|
7 |
+
[2023-08-17 10:28:42,060][pytorch][INFO] - + Disabling gradients
|
8 |
+
[2023-08-17 10:28:42,061][pytorch][INFO] - + Loading pretrained model weights in dtype: None on device: cpu
|
9 |
+
[2023-08-17 10:28:42,175][pytorch][INFO] - + Turning on eval mode
|
10 |
+
[2023-08-17 10:28:42,175][inference][INFO] - Running inference benchmark
|
11 |
+
[2023-08-17 10:28:42,293][dummy_input][INFO] - Generating dummy input for: ['input_ids', 'attention_mask', 'token_type_ids']
|
12 |
+
[2023-08-17 10:28:42,294][inference][INFO] - + Tracking forward pass peak memory
|
13 |
+
[2023-08-17 10:28:42,339][inference][INFO] - + Forward pass peak memory: 468.0704 (MB)
|
14 |
+
[2023-08-17 10:28:42,340][dummy_input][INFO] - Generating dummy input for: ['input_ids', 'attention_mask', 'token_type_ids']
|
15 |
+
[2023-08-17 10:28:42,342][inference][INFO] - + Warming up the forward pass
|
16 |
+
[2023-08-17 10:28:42,379][inference][INFO] - + Tracking forward pass latency and throughput
|
17 |
+
[2023-08-17 10:28:47,424][inference][INFO] - + Forward pass latency: 3.52e-03 (s)
|
18 |
+
[2023-08-17 10:28:47,425][inference][INFO] - + Forward pass throughput: 1140.00 (samples/s)
|
19 |
+
[2023-08-17 10:28:47,425][inference][INFO] - Saving inference results
|
20 |
+
[2023-08-17 10:28:47,436][backend][INFO] - Cleaning backend
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/.config/config.yaml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
backend:
|
2 |
+
name: pytorch
|
3 |
+
version: 2.0.1+cu117
|
4 |
+
_target_: optimum_benchmark.backends.pytorch.PyTorchBackend
|
5 |
+
inter_op_num_threads: null
|
6 |
+
intra_op_num_threads: null
|
7 |
+
initial_isolation_check: true
|
8 |
+
continous_isolation_check: true
|
9 |
+
delete_cache: false
|
10 |
+
no_weights: false
|
11 |
+
torch_dtype: null
|
12 |
+
device_map: null
|
13 |
+
load_in_8bit: false
|
14 |
+
load_in_4bit: false
|
15 |
+
bettertransformer: false
|
16 |
+
torch_compile: false
|
17 |
+
torch_compile_config:
|
18 |
+
fullgraph: false
|
19 |
+
dynamic: false
|
20 |
+
backend: inductor
|
21 |
+
mode: null
|
22 |
+
options: null
|
23 |
+
disable: false
|
24 |
+
amp_autocast: false
|
25 |
+
amp_dtype: null
|
26 |
+
disable_grad: ${is_inference:${benchmark.name}}
|
27 |
+
eval_mode: ${is_inference:${benchmark.name}}
|
28 |
+
benchmark:
|
29 |
+
name: inference
|
30 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
31 |
+
seed: 42
|
32 |
+
memory: true
|
33 |
+
warmup_runs: 10
|
34 |
+
benchmark_duration: 5
|
35 |
+
input_shapes:
|
36 |
+
batch_size: 1
|
37 |
+
sequence_length: 16
|
38 |
+
num_choices: 1
|
39 |
+
width: 64
|
40 |
+
height: 64
|
41 |
+
num_channels: 3
|
42 |
+
point_batch_size: 3
|
43 |
+
nb_points_per_image: 2
|
44 |
+
feature_size: 80
|
45 |
+
nb_max_frames: 3000
|
46 |
+
audio_sequence_length: 16000
|
47 |
+
new_tokens: 100
|
48 |
+
experiment_name: pytorch_gpt2_inference
|
49 |
+
model: hf-internal-testing/tiny-random-gpt2
|
50 |
+
device: cpu
|
51 |
+
task: text-generation
|
52 |
+
hub_kwargs:
|
53 |
+
revision: main
|
54 |
+
cache_dir: null
|
55 |
+
force_download: false
|
56 |
+
local_files_only: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.1
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
accelerate_version: 0.21.0
|
61 |
+
diffusers_version: null
|
62 |
+
python_version: 3.10.12
|
63 |
+
system: Linux
|
64 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
65 |
+
cpu_count: 96
|
66 |
+
cpu_ram_mb: 1204539.797504
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/.config/hydra.yaml
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
hydra:
|
2 |
+
run:
|
3 |
+
dir: runs/${oc.env:COMMIT_DATE_GMT}_${oc.env:COMMIT_SHA}/${experiment_name}
|
4 |
+
sweep:
|
5 |
+
dir: sweeps/${oc.env:COMMIT_DATE_GMT}_${oc.env:COMMIT_SHA}/${experiment_name}
|
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: MULTIRUN
|
116 |
+
searchpath: []
|
117 |
+
callbacks: {}
|
118 |
+
output_subdir: .hydra
|
119 |
+
overrides:
|
120 |
+
hydra:
|
121 |
+
- hydra.mode=MULTIRUN
|
122 |
+
task: []
|
123 |
+
job:
|
124 |
+
name: main
|
125 |
+
chdir: true
|
126 |
+
override_dirname: ''
|
127 |
+
id: '0'
|
128 |
+
num: 0
|
129 |
+
config_name: gpt2_cpu_inference
|
130 |
+
env_set: {}
|
131 |
+
env_copy: []
|
132 |
+
config:
|
133 |
+
override_dirname:
|
134 |
+
kv_sep: '='
|
135 |
+
item_sep: ','
|
136 |
+
exclude_keys: []
|
137 |
+
runtime:
|
138 |
+
version: 1.3.2
|
139 |
+
version_base: '1.3'
|
140 |
+
cwd: /home/user/transformers-regression
|
141 |
+
config_sources:
|
142 |
+
- path: hydra.conf
|
143 |
+
schema: pkg
|
144 |
+
provider: hydra
|
145 |
+
- path: optimum_benchmark
|
146 |
+
schema: pkg
|
147 |
+
provider: main
|
148 |
+
- path: hydra_plugins.hydra_colorlog.conf
|
149 |
+
schema: pkg
|
150 |
+
provider: hydra-colorlog
|
151 |
+
- path: /home/user/transformers-regression/configs
|
152 |
+
schema: file
|
153 |
+
provider: command-line
|
154 |
+
- path: ''
|
155 |
+
schema: structured
|
156 |
+
provider: schema
|
157 |
+
output_dir: /home/user/transformers-regression/sweeps/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0
|
158 |
+
choices:
|
159 |
+
benchmark: inference
|
160 |
+
backend: pytorch
|
161 |
+
hydra/env: default
|
162 |
+
hydra/callbacks: null
|
163 |
+
hydra/job_logging: colorlog
|
164 |
+
hydra/hydra_logging: colorlog
|
165 |
+
hydra/hydra_help: default
|
166 |
+
hydra/help: default
|
167 |
+
hydra/sweeper: basic
|
168 |
+
hydra/launcher: basic
|
169 |
+
hydra/output: default
|
170 |
+
verbose: false
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/.config/overrides.yaml
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
[]
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/hydra_config.yaml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
backend:
|
2 |
+
name: pytorch
|
3 |
+
version: 2.0.1+cu117
|
4 |
+
_target_: optimum_benchmark.backends.pytorch.PyTorchBackend
|
5 |
+
inter_op_num_threads: null
|
6 |
+
intra_op_num_threads: null
|
7 |
+
initial_isolation_check: true
|
8 |
+
continous_isolation_check: true
|
9 |
+
delete_cache: false
|
10 |
+
no_weights: false
|
11 |
+
torch_dtype: null
|
12 |
+
device_map: null
|
13 |
+
load_in_8bit: false
|
14 |
+
load_in_4bit: false
|
15 |
+
bettertransformer: false
|
16 |
+
torch_compile: false
|
17 |
+
torch_compile_config:
|
18 |
+
fullgraph: false
|
19 |
+
dynamic: false
|
20 |
+
backend: inductor
|
21 |
+
mode: null
|
22 |
+
options: null
|
23 |
+
disable: false
|
24 |
+
amp_autocast: false
|
25 |
+
amp_dtype: null
|
26 |
+
disable_grad: true
|
27 |
+
eval_mode: true
|
28 |
+
benchmark:
|
29 |
+
name: inference
|
30 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
31 |
+
seed: 42
|
32 |
+
memory: true
|
33 |
+
warmup_runs: 10
|
34 |
+
benchmark_duration: 5
|
35 |
+
input_shapes:
|
36 |
+
batch_size: 1
|
37 |
+
sequence_length: 16
|
38 |
+
num_choices: 1
|
39 |
+
width: 64
|
40 |
+
height: 64
|
41 |
+
num_channels: 3
|
42 |
+
point_batch_size: 3
|
43 |
+
nb_points_per_image: 2
|
44 |
+
feature_size: 80
|
45 |
+
nb_max_frames: 3000
|
46 |
+
audio_sequence_length: 16000
|
47 |
+
new_tokens: 100
|
48 |
+
experiment_name: pytorch_gpt2_inference
|
49 |
+
model: hf-internal-testing/tiny-random-gpt2
|
50 |
+
device: cpu
|
51 |
+
task: text-generation
|
52 |
+
hub_kwargs:
|
53 |
+
revision: main
|
54 |
+
cache_dir: null
|
55 |
+
force_download: false
|
56 |
+
local_files_only: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.1
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
accelerate_version: 0.21.0
|
61 |
+
diffusers_version: null
|
62 |
+
python_version: 3.10.12
|
63 |
+
system: Linux
|
64 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
65 |
+
cpu_count: 96
|
66 |
+
cpu_ram_mb: 1204539.797504
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/inference_results.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
,forward.peak_memory(MB),forward.latency(s),forward.throughput(samples/s),generate.latency(s),generate.throughput(tokens/s)
|
2 |
+
0,468.94284799999997,0.00376,266.0,0.516,194.0
|
raw_results/2023-08-17_10:08:11_e7e9261a202dd5623f488f1cb05007e88629f275/pytorch_gpt2_inference/0/main.log
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[2023-08-17 10:28:52,199][benchmark][INFO] - Configuring inference benchmark
|
2 |
+
[2023-08-17 10:28:52,200][benchmark][INFO] - + Setting seed(42)
|
3 |
+
[2023-08-17 10:28:53,621][pytorch][INFO] - + Infered AutoModel class AutoModelForCausalLM for task text-generation and model_type gpt2
|
4 |
+
[2023-08-17 10:28:53,621][backend][INFO] - Configuring pytorch backend
|
5 |
+
[2023-08-17 10:28:53,621][backend][INFO] - + Checking initial device isolation
|
6 |
+
[2023-08-17 10:28:53,621][backend][INFO] - + Checking contineous device isolation
|
7 |
+
[2023-08-17 10:28:53,622][pytorch][INFO] - + Disabling gradients
|
8 |
+
[2023-08-17 10:28:53,622][pytorch][INFO] - + Loading pretrained model weights in dtype: None on device: cpu
|
9 |
+
[2023-08-17 10:28:54,395][pytorch][INFO] - + Turning on eval mode
|
10 |
+
[2023-08-17 10:28:54,396][inference][INFO] - Running inference benchmark
|
11 |
+
[2023-08-17 10:28:54,595][inference][INFO] - + Tracking forward pass peak memory
|
12 |
+
[2023-08-17 10:28:54,642][inference][INFO] - + Forward pass peak memory: 468.94284799999997 (MB)
|
13 |
+
[2023-08-17 10:28:54,643][inference][INFO] - + Warming up the forward pass
|
14 |
+
[2023-08-17 10:28:54,674][inference][INFO] - + Tracking forward pass latency and throughput
|
15 |
+
[2023-08-17 10:28:59,719][inference][INFO] - + Forward pass latency: 3.76e-03 (s)
|
16 |
+
[2023-08-17 10:28:59,721][inference][INFO] - + Forward pass throughput: 266.00 (samples/s)
|
17 |
+
[2023-08-17 10:28:59,722][inference][INFO] - + Warming up the generation pass
|
18 |
+
[2023-08-17 10:29:00,272][inference][INFO] - + Tracking generation latency and throughput
|
19 |
+
[2023-08-17 10:29:05,429][inference][INFO] - + Generation pass latency: 5.16e-01 (s)
|
20 |
+
[2023-08-17 10:29:05,430][inference][INFO] - + Generation pass throughput: 194.00 (tokens/s)
|
21 |
+
[2023-08-17 10:29:05,430][inference][INFO] - Saving inference results
|
22 |
+
[2023-08-17 10:29:05,442][backend][INFO] - Cleaning backend
|