Adding regression benchmark for the transformers SHA 944ddce8bfd09ebbbdc71fb1d116421db42149b2
Browse files- raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_bert_inference/0/hydra_config.yaml +68 -0
- raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_bert_inference/0/inference_results.csv +2 -0
- raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_bert_inference/0/main.log +20 -0
- raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_gpt2_inference/0/hydra_config.yaml +68 -0
- raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_gpt2_inference/0/inference_results.csv +2 -0
- raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_gpt2_inference/0/main.log +22 -0
raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_bert_inference/0/hydra_config.yaml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
load_in_8bit: false
|
13 |
+
load_in_4bit: false
|
14 |
+
bettertransformer: false
|
15 |
+
torch_compile: false
|
16 |
+
torch_compile_config:
|
17 |
+
fullgraph: false
|
18 |
+
dynamic: false
|
19 |
+
backend: inductor
|
20 |
+
mode: null
|
21 |
+
options: null
|
22 |
+
disable: false
|
23 |
+
amp_autocast: false
|
24 |
+
amp_dtype: null
|
25 |
+
disable_grad: true
|
26 |
+
eval_mode: true
|
27 |
+
benchmark:
|
28 |
+
name: inference
|
29 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
30 |
+
seed: 42
|
31 |
+
memory: true
|
32 |
+
warmup_runs: 10
|
33 |
+
benchmark_duration: 10
|
34 |
+
input_shapes:
|
35 |
+
batch_size: 1
|
36 |
+
sequence_length: 16
|
37 |
+
num_choices: 4
|
38 |
+
width: 64
|
39 |
+
height: 64
|
40 |
+
num_channels: 3
|
41 |
+
point_batch_size: 3
|
42 |
+
nb_points_per_image: 2
|
43 |
+
feature_size: 80
|
44 |
+
nb_max_frames: 3000
|
45 |
+
audio_sequence_length: 16000
|
46 |
+
new_tokens: 100
|
47 |
+
experiment_name: pytorch_bert_inference
|
48 |
+
model: hf-internal-testing/tiny-random-bert
|
49 |
+
device: cpu
|
50 |
+
task: text-classification
|
51 |
+
hub_kwargs:
|
52 |
+
revision: main
|
53 |
+
cache_dir: null
|
54 |
+
force_download: false
|
55 |
+
local_files_only: false
|
56 |
+
use_auth_token: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.0
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
transformers_commit: null
|
61 |
+
accelerate_version: 0.21.0
|
62 |
+
accelerate_commit: null
|
63 |
+
diffusers_version: null
|
64 |
+
python_version: 3.10.12
|
65 |
+
system: Linux
|
66 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
67 |
+
cpu_count: 96
|
68 |
+
cpu_ram_mb: 1148738
|
raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/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,433,0.00308,325.0
|
raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_bert_inference/0/main.log
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[2023-08-09 16:54:54,073][benchmark][INFO] - Configuring inference benchmark
|
2 |
+
[2023-08-09 16:54:54,074][benchmark][INFO] - + Setting seed(42)
|
3 |
+
[2023-08-09 16:54:54,266][pytorch][INFO] - + Infered AutoModel class AutoModelForSequenceClassification for task text-classification and model_type bert
|
4 |
+
[2023-08-09 16:54:54,267][backend][INFO] - Configuring pytorch backend
|
5 |
+
[2023-08-09 16:54:54,267][backend][INFO] - + Checking initial device isolation
|
6 |
+
[2023-08-09 16:54:54,267][backend][INFO] - + Checking contineous device isolation
|
7 |
+
[2023-08-09 16:54:54,268][pytorch][INFO] - + Disabling gradients
|
8 |
+
[2023-08-09 16:54:54,268][pytorch][INFO] - + Loading pretrained model weights in dtype: None on device: cpu
|
9 |
+
[2023-08-09 16:54:54,893][pytorch][INFO] - + Turning on eval mode
|
10 |
+
[2023-08-09 16:54:54,893][inference][INFO] - Running inference benchmark
|
11 |
+
[2023-08-09 16:54:55,014][dummy_input][INFO] - Generating dummy input for: ['input_ids', 'attention_mask', 'token_type_ids']
|
12 |
+
[2023-08-09 16:54:55,016][inference][INFO] - + Tracking forward pass peak memory
|
13 |
+
[2023-08-09 16:54:55,075][inference][INFO] - + Forward pass peak memory: 433 (MB)
|
14 |
+
[2023-08-09 16:54:55,076][dummy_input][INFO] - Generating dummy input for: ['input_ids', 'attention_mask', 'token_type_ids']
|
15 |
+
[2023-08-09 16:54:55,078][inference][INFO] - + Warming up the forward pass
|
16 |
+
[2023-08-09 16:54:55,114][inference][INFO] - + Tracking forward pass latency and throughput
|
17 |
+
[2023-08-09 16:55:05,230][inference][INFO] - + Forward pass latency: 3.08e-03 (s)
|
18 |
+
[2023-08-09 16:55:05,234][inference][INFO] - + Forward pass throughput: 325.00 (samples/s)
|
19 |
+
[2023-08-09 16:55:05,234][inference][INFO] - Saving inference results
|
20 |
+
[2023-08-09 16:55:05,249][backend][INFO] - Cleaning backend
|
raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_gpt2_inference/0/hydra_config.yaml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
load_in_8bit: false
|
13 |
+
load_in_4bit: false
|
14 |
+
bettertransformer: false
|
15 |
+
torch_compile: false
|
16 |
+
torch_compile_config:
|
17 |
+
fullgraph: false
|
18 |
+
dynamic: false
|
19 |
+
backend: inductor
|
20 |
+
mode: null
|
21 |
+
options: null
|
22 |
+
disable: false
|
23 |
+
amp_autocast: false
|
24 |
+
amp_dtype: null
|
25 |
+
disable_grad: true
|
26 |
+
eval_mode: true
|
27 |
+
benchmark:
|
28 |
+
name: inference
|
29 |
+
_target_: optimum_benchmark.benchmarks.inference.InferenceBenchmark
|
30 |
+
seed: 42
|
31 |
+
memory: true
|
32 |
+
warmup_runs: 10
|
33 |
+
benchmark_duration: 10
|
34 |
+
input_shapes:
|
35 |
+
batch_size: 1
|
36 |
+
sequence_length: 16
|
37 |
+
num_choices: 4
|
38 |
+
width: 64
|
39 |
+
height: 64
|
40 |
+
num_channels: 3
|
41 |
+
point_batch_size: 3
|
42 |
+
nb_points_per_image: 2
|
43 |
+
feature_size: 80
|
44 |
+
nb_max_frames: 3000
|
45 |
+
audio_sequence_length: 16000
|
46 |
+
new_tokens: 100
|
47 |
+
experiment_name: pytorch_gpt2_inference
|
48 |
+
model: hf-internal-testing/tiny-random-gpt2
|
49 |
+
device: cpu
|
50 |
+
task: text-generation
|
51 |
+
hub_kwargs:
|
52 |
+
revision: main
|
53 |
+
cache_dir: null
|
54 |
+
force_download: false
|
55 |
+
local_files_only: false
|
56 |
+
use_auth_token: false
|
57 |
+
environment:
|
58 |
+
optimum_version: 1.11.0
|
59 |
+
transformers_version: 4.32.0.dev0
|
60 |
+
transformers_commit: null
|
61 |
+
accelerate_version: 0.21.0
|
62 |
+
accelerate_commit: null
|
63 |
+
diffusers_version: null
|
64 |
+
python_version: 3.10.12
|
65 |
+
system: Linux
|
66 |
+
cpu: ' Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz'
|
67 |
+
cpu_count: 96
|
68 |
+
cpu_ram_mb: 1148738
|
raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/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,436,0.00321,312.0,0.48,208.0
|
raw_results/2023-08-09_16:41:21_944ddce8bfd09ebbbdc71fb1d116421db42149b2/pytorch_gpt2_inference/0/main.log
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[2023-08-09 16:55:08,942][benchmark][INFO] - Configuring inference benchmark
|
2 |
+
[2023-08-09 16:55:08,943][benchmark][INFO] - + Setting seed(42)
|
3 |
+
[2023-08-09 16:55:09,132][pytorch][INFO] - + Infered AutoModel class AutoModelForCausalLM for task text-generation and model_type gpt2
|
4 |
+
[2023-08-09 16:55:09,133][backend][INFO] - Configuring pytorch backend
|
5 |
+
[2023-08-09 16:55:09,133][backend][INFO] - + Checking initial device isolation
|
6 |
+
[2023-08-09 16:55:09,133][backend][INFO] - + Checking contineous device isolation
|
7 |
+
[2023-08-09 16:55:09,135][pytorch][INFO] - + Disabling gradients
|
8 |
+
[2023-08-09 16:55:09,135][pytorch][INFO] - + Loading pretrained model weights in dtype: None on device: cpu
|
9 |
+
[2023-08-09 16:55:09,946][pytorch][INFO] - + Turning on eval mode
|
10 |
+
[2023-08-09 16:55:09,946][inference][INFO] - Running inference benchmark
|
11 |
+
[2023-08-09 16:55:10,138][inference][INFO] - + Tracking forward pass peak memory
|
12 |
+
[2023-08-09 16:55:10,187][inference][INFO] - + Forward pass peak memory: 436 (MB)
|
13 |
+
[2023-08-09 16:55:10,188][inference][INFO] - + Warming up the forward pass
|
14 |
+
[2023-08-09 16:55:10,220][inference][INFO] - + Tracking forward pass latency and throughput
|
15 |
+
[2023-08-09 16:55:20,332][inference][INFO] - + Forward pass latency: 3.21e-03 (s)
|
16 |
+
[2023-08-09 16:55:20,334][inference][INFO] - + Forward pass throughput: 312.00 (samples/s)
|
17 |
+
[2023-08-09 16:55:20,335][inference][INFO] - + Warming up the generation pass
|
18 |
+
[2023-08-09 16:55:20,824][inference][INFO] - + Tracking generation latency and throughput
|
19 |
+
[2023-08-09 16:55:30,900][inference][INFO] - + Generation pass latency: 4.80e-01 (s)
|
20 |
+
[2023-08-09 16:55:30,901][inference][INFO] - + Generation pass throughput: 208.00 (tokens/s)
|
21 |
+
[2023-08-09 16:55:30,901][inference][INFO] - Saving inference results
|
22 |
+
[2023-08-09 16:55:30,916][backend][INFO] - Cleaning backend
|