hf-transformers-bot commited on
Commit
72346c5
1 Parent(s): 148f5d8

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/multirun.yaml +232 -0
  31. 2024-06-14/summaries.json +41 -0
  32. 2024-06-14/summary.json +40 -0
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: b7672826cad31e30319487af876e608d8af7d37b
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b
6
+ subdir: ${hydra.job.override_dirname}
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
+ root:
71
+ level: ERROR
72
+ disable_existing_loggers: true
73
+ job_logging:
74
+ version: 1
75
+ root:
76
+ level: ERROR
77
+ disable_existing_loggers: true
78
+ env: {}
79
+ mode: MULTIRUN
80
+ searchpath: []
81
+ callbacks: {}
82
+ output_subdir: .hydra
83
+ overrides:
84
+ hydra:
85
+ - hydra/job_logging=disabled
86
+ - hydra/hydra_logging=disabled
87
+ - hydra.sweep.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b
88
+ - hydra.run.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null
93
+ - backend.torch_compile=False
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False
98
+ id: '0'
99
+ num: 0
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: /transformers/_benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=False
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "b7672826cad31e30319487af876e608d8af7d37b",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1703.899136,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5034.576896
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.0394006404876709,
118
+ "mean": 0.01970032024383545,
119
+ "stdev": 0.0002354879379272458,
120
+ "p50": 0.01970032024383545,
121
+ "p90": 0.019888710594177246,
122
+ "p95": 0.01991225938796997,
123
+ "p99": 0.01993109842300415,
124
+ "values": [
125
+ 0.019935808181762694,
126
+ 0.019464832305908203
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 355.3241730773597
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1703.989248,
140
+ "max_global_vram": 6795.296768,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6148.849664,
143
+ "max_allocated": 5034.577408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 4.782302001953125,
149
+ "mean": 2.3911510009765626,
150
+ "stdev": 0.004780395507812507,
151
+ "p50": 2.3911510009765626,
152
+ "p90": 2.3949753173828126,
153
+ "p95": 2.395453356933594,
154
+ "p99": 2.3958357885742187,
155
+ "values": [
156
+ 2.395931396484375,
157
+ 2.38637060546875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 53.11249684697132
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 4.78247526359558,
173
+ "mean": 0.01890306428298649,
174
+ "stdev": 0.001235033105667377,
175
+ "p50": 0.0188272647857666,
176
+ "p90": 0.01889751091003418,
177
+ "p95": 0.01893766403198242,
178
+ "p99": 0.019935887908935544,
179
+ "values": [
180
+ 0.02027622413635254,
181
+ 0.01886617660522461,
182
+ 0.018725887298583984,
183
+ 0.018710527420043945,
184
+ 0.018686975479125977,
185
+ 0.018715648651123046,
186
+ 0.018711551666259766,
187
+ 0.018770944595336913,
188
+ 0.018714624404907225,
189
+ 0.018761728286743166,
190
+ 0.018751487731933594,
191
+ 0.018746368408203123,
192
+ 0.018746368408203123,
193
+ 0.018765823364257812,
194
+ 0.018710527420043945,
195
+ 0.018751487731933594,
196
+ 0.018897920608520507,
197
+ 0.018748416900634765,
198
+ 0.01880473518371582,
199
+ 0.018760704040527345,
200
+ 0.018743295669555664,
201
+ 0.01877299118041992,
202
+ 0.018698335647583008,
203
+ 0.018693023681640625,
204
+ 0.018775039672851563,
205
+ 0.018761728286743166,
206
+ 0.01877299118041992,
207
+ 0.018780160903930664,
208
+ 0.018722816467285155,
209
+ 0.018774015426635742,
210
+ 0.018726911544799805,
211
+ 0.018718719482421875,
212
+ 0.018744319915771485,
213
+ 0.018722816467285155,
214
+ 0.018759679794311524,
215
+ 0.018722816467285155,
216
+ 0.018700288772583007,
217
+ 0.0188272647857666,
218
+ 0.018815999984741212,
219
+ 0.018691072463989256,
220
+ 0.018959360122680666,
221
+ 0.018712575912475587,
222
+ 0.018576383590698242,
223
+ 0.018727935791015626,
224
+ 0.018684928894042968,
225
+ 0.018683904647827147,
226
+ 0.018765823364257812,
227
+ 0.018766847610473633,
228
+ 0.018742271423339844,
229
+ 0.018718719482421875,
230
+ 0.018723840713500976,
231
+ 0.018736127853393555,
232
+ 0.01893891143798828,
233
+ 0.01893475151062012,
234
+ 0.019166208267211913,
235
+ 0.019319807052612305,
236
+ 0.018884607315063476,
237
+ 0.018907136917114258,
238
+ 0.018832384109497072,
239
+ 0.01883647918701172,
240
+ 0.018915327072143554,
241
+ 0.018894847869873048,
242
+ 0.019323904037475585,
243
+ 0.018940927505493164,
244
+ 0.018899967193603515,
245
+ 0.018865152359008788,
246
+ 0.01886412811279297,
247
+ 0.01886412811279297,
248
+ 0.018876415252685547,
249
+ 0.018881536483764647,
250
+ 0.018851839065551757,
251
+ 0.01882521629333496,
252
+ 0.018893823623657227,
253
+ 0.018815999984741212,
254
+ 0.018852863311767578,
255
+ 0.018865152359008788,
256
+ 0.018869247436523438,
257
+ 0.018884607315063476,
258
+ 0.018876415252685547,
259
+ 0.018890752792358398,
260
+ 0.01887027168273926,
261
+ 0.018832384109497072,
262
+ 0.01881395149230957,
263
+ 0.01884774398803711,
264
+ 0.01885491180419922,
265
+ 0.01882521629333496,
266
+ 0.018869247436523438,
267
+ 0.01880985641479492,
268
+ 0.0188590087890625,
269
+ 0.018930688858032226,
270
+ 0.01884979248046875,
271
+ 0.018865152359008788,
272
+ 0.018860031127929687,
273
+ 0.018856960296630858,
274
+ 0.01883852767944336,
275
+ 0.01887539291381836,
276
+ 0.018856960296630858,
277
+ 0.018968576431274413,
278
+ 0.01881907272338867,
279
+ 0.018851839065551757,
280
+ 0.01885798454284668,
281
+ 0.018890752792358398,
282
+ 0.01884979248046875,
283
+ 0.018898944854736328,
284
+ 0.01887948799133301,
285
+ 0.01884262466430664,
286
+ 0.018817024230957033,
287
+ 0.01883955192565918,
288
+ 0.01886412811279297,
289
+ 0.01879449653625488,
290
+ 0.01883545684814453,
291
+ 0.018851839065551757,
292
+ 0.01886720085144043,
293
+ 0.01886617660522461,
294
+ 0.01883852767944336,
295
+ 0.018865152359008788,
296
+ 0.019803136825561524,
297
+ 0.020065280914306642,
298
+ 0.01981644821166992,
299
+ 0.018902015686035157,
300
+ 0.01883033561706543,
301
+ 0.0189040641784668,
302
+ 0.018799615859985352,
303
+ 0.01881497573852539,
304
+ 0.01886310386657715,
305
+ 0.01887027168273926,
306
+ 0.03829043197631836,
307
+ 0.01860505676269531,
308
+ 0.01861324882507324,
309
+ 0.018685951232910156,
310
+ 0.01863987159729004,
311
+ 0.018695167541503906,
312
+ 0.018703359603881836,
313
+ 0.018679807662963867,
314
+ 0.0186746883392334,
315
+ 0.018716672897338867,
316
+ 0.018710527420043945,
317
+ 0.018726911544799805,
318
+ 0.018715648651123046,
319
+ 0.018689023971557618,
320
+ 0.018721792221069337,
321
+ 0.018732032775878905,
322
+ 0.018671615600585938,
323
+ 0.01865830421447754,
324
+ 0.018707487106323244,
325
+ 0.01871971130371094,
326
+ 0.018726911544799805,
327
+ 0.018714624404907225,
328
+ 0.01868185615539551,
329
+ 0.018712575912475587,
330
+ 0.018715648651123046,
331
+ 0.018677759170532226,
332
+ 0.018695167541503906,
333
+ 0.018704383850097657,
334
+ 0.018751487731933594,
335
+ 0.018733055114746093,
336
+ 0.018752511978149415,
337
+ 0.018757631301879883,
338
+ 0.018701311111450195,
339
+ 0.018718719482421875,
340
+ 0.018792448043823243,
341
+ 0.018689023971557618,
342
+ 0.01868083190917969,
343
+ 0.018726911544799805,
344
+ 0.0187064323425293,
345
+ 0.018708480834960937,
346
+ 0.01868083190917969,
347
+ 0.018684928894042968,
348
+ 0.018694143295288086,
349
+ 0.018664512634277344,
350
+ 0.018683839797973632,
351
+ 0.01864396858215332,
352
+ 0.018693119049072265,
353
+ 0.018716672897338867,
354
+ 0.0187064323425293,
355
+ 0.018759679794311524,
356
+ 0.018718719482421875,
357
+ 0.018726911544799805,
358
+ 0.018694143295288086,
359
+ 0.018689023971557618,
360
+ 0.018724863052368163,
361
+ 0.018700288772583007,
362
+ 0.018682880401611326,
363
+ 0.01887027168273926,
364
+ 0.018936832427978514,
365
+ 0.018700288772583007,
366
+ 0.018691072463989256,
367
+ 0.01884876823425293,
368
+ 0.018877439498901367,
369
+ 0.018926591873168946,
370
+ 0.018883583068847656,
371
+ 0.01889587211608887,
372
+ 0.0188723201751709,
373
+ 0.018885631561279297,
374
+ 0.01884160041809082,
375
+ 0.01884671974182129,
376
+ 0.018880512237548826,
377
+ 0.01884876823425293,
378
+ 0.018865152359008788,
379
+ 0.018881536483764647,
380
+ 0.018865152359008788,
381
+ 0.01884876823425293,
382
+ 0.018834495544433595,
383
+ 0.018893760681152345,
384
+ 0.01885491180419922,
385
+ 0.018886655807495118,
386
+ 0.01888768005371094,
387
+ 0.018815999984741212,
388
+ 0.018894847869873048,
389
+ 0.01884262466430664,
390
+ 0.018807807922363282,
391
+ 0.01883545684814453,
392
+ 0.018883583068847656,
393
+ 0.018906112670898437,
394
+ 0.01885798454284668,
395
+ 0.01883443260192871,
396
+ 0.018856960296630858,
397
+ 0.018844671249389648,
398
+ 0.01883955192565918,
399
+ 0.01882828712463379,
400
+ 0.01883647918701172,
401
+ 0.01886310386657715,
402
+ 0.018928640365600585,
403
+ 0.018861055374145508,
404
+ 0.018873344421386717,
405
+ 0.018832384109497072,
406
+ 0.01887948799133301,
407
+ 0.018851839065551757,
408
+ 0.018865152359008788,
409
+ 0.01887027168273926,
410
+ 0.01883443260192871,
411
+ 0.01887129592895508,
412
+ 0.018894847869873048,
413
+ 0.01882624053955078,
414
+ 0.018832384109497072,
415
+ 0.01886412811279297,
416
+ 0.01881907272338867,
417
+ 0.0188272647857666,
418
+ 0.018883583068847656,
419
+ 0.01878937530517578,
420
+ 0.018852863311767578,
421
+ 0.01883033561706543,
422
+ 0.018795520782470702,
423
+ 0.018770944595336913,
424
+ 0.018795520782470702,
425
+ 0.018817024230957033,
426
+ 0.01884671974182129,
427
+ 0.01885491180419922,
428
+ 0.018869247436523438,
429
+ 0.01879449653625488,
430
+ 0.0188221435546875,
431
+ 0.01887846374511719,
432
+ 0.019596288681030274
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 52.90147592102513
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "b7672826cad31e30319487af876e608d8af7d37b",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1703.899136,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5034.576896
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.0394006404876709,
15
+ "mean": 0.01970032024383545,
16
+ "stdev": 0.0002354879379272458,
17
+ "p50": 0.01970032024383545,
18
+ "p90": 0.019888710594177246,
19
+ "p95": 0.01991225938796997,
20
+ "p99": 0.01993109842300415,
21
+ "values": [
22
+ 0.019935808181762694,
23
+ 0.019464832305908203
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 355.3241730773597
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1703.989248,
37
+ "max_global_vram": 6795.296768,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6148.849664,
40
+ "max_allocated": 5034.577408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 4.782302001953125,
46
+ "mean": 2.3911510009765626,
47
+ "stdev": 0.004780395507812507,
48
+ "p50": 2.3911510009765626,
49
+ "p90": 2.3949753173828126,
50
+ "p95": 2.395453356933594,
51
+ "p99": 2.3958357885742187,
52
+ "values": [
53
+ 2.395931396484375,
54
+ 2.38637060546875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 53.11249684697132
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 4.78247526359558,
70
+ "mean": 0.01890306428298649,
71
+ "stdev": 0.001235033105667377,
72
+ "p50": 0.0188272647857666,
73
+ "p90": 0.01889751091003418,
74
+ "p95": 0.01893766403198242,
75
+ "p99": 0.019935887908935544,
76
+ "values": [
77
+ 0.02027622413635254,
78
+ 0.01886617660522461,
79
+ 0.018725887298583984,
80
+ 0.018710527420043945,
81
+ 0.018686975479125977,
82
+ 0.018715648651123046,
83
+ 0.018711551666259766,
84
+ 0.018770944595336913,
85
+ 0.018714624404907225,
86
+ 0.018761728286743166,
87
+ 0.018751487731933594,
88
+ 0.018746368408203123,
89
+ 0.018746368408203123,
90
+ 0.018765823364257812,
91
+ 0.018710527420043945,
92
+ 0.018751487731933594,
93
+ 0.018897920608520507,
94
+ 0.018748416900634765,
95
+ 0.01880473518371582,
96
+ 0.018760704040527345,
97
+ 0.018743295669555664,
98
+ 0.01877299118041992,
99
+ 0.018698335647583008,
100
+ 0.018693023681640625,
101
+ 0.018775039672851563,
102
+ 0.018761728286743166,
103
+ 0.01877299118041992,
104
+ 0.018780160903930664,
105
+ 0.018722816467285155,
106
+ 0.018774015426635742,
107
+ 0.018726911544799805,
108
+ 0.018718719482421875,
109
+ 0.018744319915771485,
110
+ 0.018722816467285155,
111
+ 0.018759679794311524,
112
+ 0.018722816467285155,
113
+ 0.018700288772583007,
114
+ 0.0188272647857666,
115
+ 0.018815999984741212,
116
+ 0.018691072463989256,
117
+ 0.018959360122680666,
118
+ 0.018712575912475587,
119
+ 0.018576383590698242,
120
+ 0.018727935791015626,
121
+ 0.018684928894042968,
122
+ 0.018683904647827147,
123
+ 0.018765823364257812,
124
+ 0.018766847610473633,
125
+ 0.018742271423339844,
126
+ 0.018718719482421875,
127
+ 0.018723840713500976,
128
+ 0.018736127853393555,
129
+ 0.01893891143798828,
130
+ 0.01893475151062012,
131
+ 0.019166208267211913,
132
+ 0.019319807052612305,
133
+ 0.018884607315063476,
134
+ 0.018907136917114258,
135
+ 0.018832384109497072,
136
+ 0.01883647918701172,
137
+ 0.018915327072143554,
138
+ 0.018894847869873048,
139
+ 0.019323904037475585,
140
+ 0.018940927505493164,
141
+ 0.018899967193603515,
142
+ 0.018865152359008788,
143
+ 0.01886412811279297,
144
+ 0.01886412811279297,
145
+ 0.018876415252685547,
146
+ 0.018881536483764647,
147
+ 0.018851839065551757,
148
+ 0.01882521629333496,
149
+ 0.018893823623657227,
150
+ 0.018815999984741212,
151
+ 0.018852863311767578,
152
+ 0.018865152359008788,
153
+ 0.018869247436523438,
154
+ 0.018884607315063476,
155
+ 0.018876415252685547,
156
+ 0.018890752792358398,
157
+ 0.01887027168273926,
158
+ 0.018832384109497072,
159
+ 0.01881395149230957,
160
+ 0.01884774398803711,
161
+ 0.01885491180419922,
162
+ 0.01882521629333496,
163
+ 0.018869247436523438,
164
+ 0.01880985641479492,
165
+ 0.0188590087890625,
166
+ 0.018930688858032226,
167
+ 0.01884979248046875,
168
+ 0.018865152359008788,
169
+ 0.018860031127929687,
170
+ 0.018856960296630858,
171
+ 0.01883852767944336,
172
+ 0.01887539291381836,
173
+ 0.018856960296630858,
174
+ 0.018968576431274413,
175
+ 0.01881907272338867,
176
+ 0.018851839065551757,
177
+ 0.01885798454284668,
178
+ 0.018890752792358398,
179
+ 0.01884979248046875,
180
+ 0.018898944854736328,
181
+ 0.01887948799133301,
182
+ 0.01884262466430664,
183
+ 0.018817024230957033,
184
+ 0.01883955192565918,
185
+ 0.01886412811279297,
186
+ 0.01879449653625488,
187
+ 0.01883545684814453,
188
+ 0.018851839065551757,
189
+ 0.01886720085144043,
190
+ 0.01886617660522461,
191
+ 0.01883852767944336,
192
+ 0.018865152359008788,
193
+ 0.019803136825561524,
194
+ 0.020065280914306642,
195
+ 0.01981644821166992,
196
+ 0.018902015686035157,
197
+ 0.01883033561706543,
198
+ 0.0189040641784668,
199
+ 0.018799615859985352,
200
+ 0.01881497573852539,
201
+ 0.01886310386657715,
202
+ 0.01887027168273926,
203
+ 0.03829043197631836,
204
+ 0.01860505676269531,
205
+ 0.01861324882507324,
206
+ 0.018685951232910156,
207
+ 0.01863987159729004,
208
+ 0.018695167541503906,
209
+ 0.018703359603881836,
210
+ 0.018679807662963867,
211
+ 0.0186746883392334,
212
+ 0.018716672897338867,
213
+ 0.018710527420043945,
214
+ 0.018726911544799805,
215
+ 0.018715648651123046,
216
+ 0.018689023971557618,
217
+ 0.018721792221069337,
218
+ 0.018732032775878905,
219
+ 0.018671615600585938,
220
+ 0.01865830421447754,
221
+ 0.018707487106323244,
222
+ 0.01871971130371094,
223
+ 0.018726911544799805,
224
+ 0.018714624404907225,
225
+ 0.01868185615539551,
226
+ 0.018712575912475587,
227
+ 0.018715648651123046,
228
+ 0.018677759170532226,
229
+ 0.018695167541503906,
230
+ 0.018704383850097657,
231
+ 0.018751487731933594,
232
+ 0.018733055114746093,
233
+ 0.018752511978149415,
234
+ 0.018757631301879883,
235
+ 0.018701311111450195,
236
+ 0.018718719482421875,
237
+ 0.018792448043823243,
238
+ 0.018689023971557618,
239
+ 0.01868083190917969,
240
+ 0.018726911544799805,
241
+ 0.0187064323425293,
242
+ 0.018708480834960937,
243
+ 0.01868083190917969,
244
+ 0.018684928894042968,
245
+ 0.018694143295288086,
246
+ 0.018664512634277344,
247
+ 0.018683839797973632,
248
+ 0.01864396858215332,
249
+ 0.018693119049072265,
250
+ 0.018716672897338867,
251
+ 0.0187064323425293,
252
+ 0.018759679794311524,
253
+ 0.018718719482421875,
254
+ 0.018726911544799805,
255
+ 0.018694143295288086,
256
+ 0.018689023971557618,
257
+ 0.018724863052368163,
258
+ 0.018700288772583007,
259
+ 0.018682880401611326,
260
+ 0.01887027168273926,
261
+ 0.018936832427978514,
262
+ 0.018700288772583007,
263
+ 0.018691072463989256,
264
+ 0.01884876823425293,
265
+ 0.018877439498901367,
266
+ 0.018926591873168946,
267
+ 0.018883583068847656,
268
+ 0.01889587211608887,
269
+ 0.0188723201751709,
270
+ 0.018885631561279297,
271
+ 0.01884160041809082,
272
+ 0.01884671974182129,
273
+ 0.018880512237548826,
274
+ 0.01884876823425293,
275
+ 0.018865152359008788,
276
+ 0.018881536483764647,
277
+ 0.018865152359008788,
278
+ 0.01884876823425293,
279
+ 0.018834495544433595,
280
+ 0.018893760681152345,
281
+ 0.01885491180419922,
282
+ 0.018886655807495118,
283
+ 0.01888768005371094,
284
+ 0.018815999984741212,
285
+ 0.018894847869873048,
286
+ 0.01884262466430664,
287
+ 0.018807807922363282,
288
+ 0.01883545684814453,
289
+ 0.018883583068847656,
290
+ 0.018906112670898437,
291
+ 0.01885798454284668,
292
+ 0.01883443260192871,
293
+ 0.018856960296630858,
294
+ 0.018844671249389648,
295
+ 0.01883955192565918,
296
+ 0.01882828712463379,
297
+ 0.01883647918701172,
298
+ 0.01886310386657715,
299
+ 0.018928640365600585,
300
+ 0.018861055374145508,
301
+ 0.018873344421386717,
302
+ 0.018832384109497072,
303
+ 0.01887948799133301,
304
+ 0.018851839065551757,
305
+ 0.018865152359008788,
306
+ 0.01887027168273926,
307
+ 0.01883443260192871,
308
+ 0.01887129592895508,
309
+ 0.018894847869873048,
310
+ 0.01882624053955078,
311
+ 0.018832384109497072,
312
+ 0.01886412811279297,
313
+ 0.01881907272338867,
314
+ 0.0188272647857666,
315
+ 0.018883583068847656,
316
+ 0.01878937530517578,
317
+ 0.018852863311767578,
318
+ 0.01883033561706543,
319
+ 0.018795520782470702,
320
+ 0.018770944595336913,
321
+ 0.018795520782470702,
322
+ 0.018817024230957033,
323
+ 0.01884671974182129,
324
+ 0.01885491180419922,
325
+ 0.018869247436523438,
326
+ 0.01879449653625488,
327
+ 0.0188221435546875,
328
+ 0.01887846374511719,
329
+ 0.019596288681030274
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 52.90147592102513
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "google/gemma-2b",
3
+ "commit": "b7672826cad31e30319487af876e608d8af7d37b",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.01970032024383545,
7
+ "prefill.throughput.value": 355.3241730773597,
8
+ "decode.latency.mean": 2.3911510009765626,
9
+ "decode.throughput.value": 53.11249684697132,
10
+ "per_token.latency.mean": 0.01890306428298649,
11
+ "per_token.throughput.value": 52.90147592102513
12
+ }
13
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: b7672826cad31e30319487af876e608d8af7d37b
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b
6
+ subdir: ${hydra.job.override_dirname}
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
+ root:
71
+ level: ERROR
72
+ disable_existing_loggers: true
73
+ job_logging:
74
+ version: 1
75
+ root:
76
+ level: ERROR
77
+ disable_existing_loggers: true
78
+ env: {}
79
+ mode: MULTIRUN
80
+ searchpath: []
81
+ callbacks: {}
82
+ output_subdir: .hydra
83
+ overrides:
84
+ hydra:
85
+ - hydra/job_logging=disabled
86
+ - hydra/hydra_logging=disabled
87
+ - hydra.sweep.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b
88
+ - hydra.run.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null
93
+ - backend.torch_compile=True
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True
98
+ id: '1'
99
+ num: 1
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: /transformers/_benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=True
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-14 02:35:15,257][process][ERROR] - + Sending traceback to main process
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "b7672826cad31e30319487af876e608d8af7d37b",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: b7672826cad31e30319487af876e608d8af7d37b
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b
6
+ subdir: ${hydra.job.override_dirname}
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
+ root:
71
+ level: ERROR
72
+ disable_existing_loggers: true
73
+ job_logging:
74
+ version: 1
75
+ root:
76
+ level: ERROR
77
+ disable_existing_loggers: true
78
+ env: {}
79
+ mode: MULTIRUN
80
+ searchpath: []
81
+ callbacks: {}
82
+ output_subdir: .hydra
83
+ overrides:
84
+ hydra:
85
+ - hydra/job_logging=disabled
86
+ - hydra/hydra_logging=disabled
87
+ - hydra.sweep.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b
88
+ - hydra.run.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=static
93
+ - backend.torch_compile=False
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False
98
+ id: '2'
99
+ num: 2
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: /transformers/_benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=False
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "b7672826cad31e30319487af876e608d8af7d37b",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1769.92256,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5036.936192
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04534239959716797,
118
+ "mean": 0.022671199798583987,
119
+ "stdev": 4.268836975097716e-05,
120
+ "p50": 0.022671199798583987,
121
+ "p90": 0.02270535049438477,
122
+ "p95": 0.022709619331359863,
123
+ "p99": 0.02271303440093994,
124
+ "values": [
125
+ 0.022628511428833008,
126
+ 0.022713888168334962
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 308.76177979946215
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1769.947136,
140
+ "max_global_vram": 6793.199616,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6146.752512,
143
+ "max_allocated": 5036.936704
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 5.27013916015625,
149
+ "mean": 2.635069580078125,
150
+ "stdev": 0.0036293945312499964,
151
+ "p50": 2.635069580078125,
152
+ "p90": 2.637973095703125,
153
+ "p95": 2.63833603515625,
154
+ "p99": 2.6386263867187503,
155
+ "values": [
156
+ 2.631440185546875,
157
+ 2.638698974609375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 48.19607078316113
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 5.271720960617061,
173
+ "mean": 0.02083684174156943,
174
+ "stdev": 0.0014756745103518068,
175
+ "p50": 0.020813823699951172,
176
+ "p90": 0.020935475540161133,
177
+ "p95": 0.02108149757385254,
178
+ "p99": 0.022195609741210934,
179
+ "values": [
180
+ 0.022304767608642577,
181
+ 0.022768640518188478,
182
+ 0.02065510368347168,
183
+ 0.020341760635375978,
184
+ 0.020304895401000975,
185
+ 0.02025164794921875,
186
+ 0.02030284881591797,
187
+ 0.020298751831054687,
188
+ 0.020296703338623046,
189
+ 0.02026700782775879,
190
+ 0.020299776077270508,
191
+ 0.020487167358398437,
192
+ 0.020591615676879883,
193
+ 0.02031001663208008,
194
+ 0.02042470359802246,
195
+ 0.02036735916137695,
196
+ 0.020342784881591795,
197
+ 0.020291584014892578,
198
+ 0.020342784881591795,
199
+ 0.020315135955810547,
200
+ 0.020299776077270508,
201
+ 0.020273151397705077,
202
+ 0.02040729522705078,
203
+ 0.020195327758789062,
204
+ 0.020588544845581053,
205
+ 0.021157888412475585,
206
+ 0.02091929626464844,
207
+ 0.020958208084106447,
208
+ 0.020883455276489257,
209
+ 0.020806655883789063,
210
+ 0.020246528625488282,
211
+ 0.020576255798339844,
212
+ 0.020924415588378906,
213
+ 0.020755456924438476,
214
+ 0.020192256927490236,
215
+ 0.02006118392944336,
216
+ 0.02007756805419922,
217
+ 0.020578304290771485,
218
+ 0.020880384445190428,
219
+ 0.020271104812622072,
220
+ 0.02030080032348633,
221
+ 0.020273151397705077,
222
+ 0.02027827262878418,
223
+ 0.02030080032348633,
224
+ 0.020303871154785155,
225
+ 0.02028339195251465,
226
+ 0.02061311912536621,
227
+ 0.020890623092651366,
228
+ 0.020593664169311524,
229
+ 0.02146816062927246,
230
+ 0.020969472885131835,
231
+ 0.02087424087524414,
232
+ 0.020855808258056642,
233
+ 0.020815872192382814,
234
+ 0.02085273551940918,
235
+ 0.02087321662902832,
236
+ 0.020783103942871094,
237
+ 0.020831232070922853,
238
+ 0.02082099151611328,
239
+ 0.02082815933227539,
240
+ 0.020785152435302736,
241
+ 0.020805631637573242,
242
+ 0.020570112228393556,
243
+ 0.02081996726989746,
244
+ 0.020769792556762694,
245
+ 0.020847616195678712,
246
+ 0.020726783752441406,
247
+ 0.020725759506225586,
248
+ 0.020624383926391602,
249
+ 0.020876287460327148,
250
+ 0.02079641532897949,
251
+ 0.02088755226135254,
252
+ 0.020752384185791017,
253
+ 0.02079539108276367,
254
+ 0.02085478401184082,
255
+ 0.020916223526000977,
256
+ 0.02088652801513672,
257
+ 0.020929536819458007,
258
+ 0.02086502456665039,
259
+ 0.020896768569946288,
260
+ 0.020888576507568358,
261
+ 0.020912128448486327,
262
+ 0.02087321662902832,
263
+ 0.020632575988769532,
264
+ 0.020973567962646485,
265
+ 0.021380096435546874,
266
+ 0.020876287460327148,
267
+ 0.020718591690063477,
268
+ 0.020840448379516603,
269
+ 0.020898815155029296,
270
+ 0.020813823699951172,
271
+ 0.02066739273071289,
272
+ 0.02084556770324707,
273
+ 0.02086297607421875,
274
+ 0.02084351921081543,
275
+ 0.02068889617919922,
276
+ 0.020896768569946288,
277
+ 0.020746240615844725,
278
+ 0.020641792297363282,
279
+ 0.020853759765625,
280
+ 0.02084454345703125,
281
+ 0.02082611274719238,
282
+ 0.020661247253417968,
283
+ 0.02082713508605957,
284
+ 0.02084454345703125,
285
+ 0.020723712921142577,
286
+ 0.02063974380493164,
287
+ 0.020797439575195312,
288
+ 0.02083020782470703,
289
+ 0.02069606399536133,
290
+ 0.02084966468811035,
291
+ 0.02082099151611328,
292
+ 0.02084147262573242,
293
+ 0.020813823699951172,
294
+ 0.020969472885131835,
295
+ 0.02084556770324707,
296
+ 0.02089369583129883,
297
+ 0.020815872192382814,
298
+ 0.020939775466918945,
299
+ 0.02066431999206543,
300
+ 0.020891647338867187,
301
+ 0.020876287460327148,
302
+ 0.020912128448486327,
303
+ 0.020634624481201173,
304
+ 0.020610048294067384,
305
+ 0.020791296005249024,
306
+ 0.0437125129699707,
307
+ 0.020891647338867187,
308
+ 0.020890623092651366,
309
+ 0.02086809539794922,
310
+ 0.02086809539794922,
311
+ 0.02084454345703125,
312
+ 0.021421056747436523,
313
+ 0.021015552520751952,
314
+ 0.020883455276489257,
315
+ 0.02081279945373535,
316
+ 0.02063564872741699,
317
+ 0.020876287460327148,
318
+ 0.020884479522705078,
319
+ 0.020935680389404295,
320
+ 0.020853759765625,
321
+ 0.020649984359741212,
322
+ 0.02083328056335449,
323
+ 0.020944896697998046,
324
+ 0.02066227149963379,
325
+ 0.02085171127319336,
326
+ 0.02110361671447754,
327
+ 0.0220948486328125,
328
+ 0.02106572723388672,
329
+ 0.021007360458374022,
330
+ 0.020961280822753905,
331
+ 0.020817920684814452,
332
+ 0.02090291213989258,
333
+ 0.02087833595275879,
334
+ 0.02089472007751465,
335
+ 0.02086502456665039,
336
+ 0.020853759765625,
337
+ 0.02086092758178711,
338
+ 0.02081996726989746,
339
+ 0.020822015762329102,
340
+ 0.020793344497680662,
341
+ 0.02088960075378418,
342
+ 0.0208035831451416,
343
+ 0.02088243293762207,
344
+ 0.020815872192382814,
345
+ 0.02089369583129883,
346
+ 0.02085785675048828,
347
+ 0.020814847946166993,
348
+ 0.020915199279785156,
349
+ 0.020799488067626954,
350
+ 0.020884479522705078,
351
+ 0.020761600494384767,
352
+ 0.020723712921142577,
353
+ 0.02083737564086914,
354
+ 0.021391359329223633,
355
+ 0.020934656143188478,
356
+ 0.02082918357849121,
357
+ 0.020888576507568358,
358
+ 0.020809728622436522,
359
+ 0.02083737564086914,
360
+ 0.02146406364440918,
361
+ 0.02084556770324707,
362
+ 0.02090598487854004,
363
+ 0.020839424133300782,
364
+ 0.020840448379516603,
365
+ 0.02084454345703125,
366
+ 0.02081279945373535,
367
+ 0.020891647338867187,
368
+ 0.020918272018432618,
369
+ 0.02085478401184082,
370
+ 0.020883455276489257,
371
+ 0.020748287200927733,
372
+ 0.020831232070922853,
373
+ 0.020864000320434572,
374
+ 0.020759552001953126,
375
+ 0.020583423614501953,
376
+ 0.020754432678222655,
377
+ 0.02091007995605469,
378
+ 0.02067353630065918,
379
+ 0.0208855037689209,
380
+ 0.02069606399536133,
381
+ 0.02043391990661621,
382
+ 0.020378623962402344,
383
+ 0.020402175903320312,
384
+ 0.02086911964416504,
385
+ 0.020566015243530272,
386
+ 0.02067046356201172,
387
+ 0.02045952033996582,
388
+ 0.020890623092651366,
389
+ 0.020822015762329102,
390
+ 0.020666368484497072,
391
+ 0.020763647079467772,
392
+ 0.02063667106628418,
393
+ 0.020749311447143554,
394
+ 0.02067865562438965,
395
+ 0.020739072799682616,
396
+ 0.020588544845581053,
397
+ 0.020774911880493165,
398
+ 0.02052403259277344,
399
+ 0.02065203285217285,
400
+ 0.020800512313842775,
401
+ 0.020556800842285155,
402
+ 0.020762624740600585,
403
+ 0.020784128189086915,
404
+ 0.020577280044555665,
405
+ 0.02063564872741699,
406
+ 0.020744192123413087,
407
+ 0.0208035831451416,
408
+ 0.020556800842285155,
409
+ 0.020864000320434572,
410
+ 0.020264959335327147,
411
+ 0.020346879959106445,
412
+ 0.02030080032348633,
413
+ 0.02030080032348633,
414
+ 0.02025881576538086,
415
+ 0.020313087463378905,
416
+ 0.02027519989013672,
417
+ 0.020315135955810547,
418
+ 0.02027724838256836,
419
+ 0.02027622413635254,
420
+ 0.02021171188354492,
421
+ 0.020312063217163084,
422
+ 0.020323328018188477,
423
+ 0.02047385597229004,
424
+ 0.020353023529052734,
425
+ 0.02029363250732422,
426
+ 0.021699583053588867,
427
+ 0.021465087890625,
428
+ 0.020989952087402345,
429
+ 0.02088140869140625,
430
+ 0.02089472007751465,
431
+ 0.020742143630981445,
432
+ 0.02106675148010254
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 47.99191798846383
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "b7672826cad31e30319487af876e608d8af7d37b",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1769.92256,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5036.936192
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04534239959716797,
15
+ "mean": 0.022671199798583987,
16
+ "stdev": 4.268836975097716e-05,
17
+ "p50": 0.022671199798583987,
18
+ "p90": 0.02270535049438477,
19
+ "p95": 0.022709619331359863,
20
+ "p99": 0.02271303440093994,
21
+ "values": [
22
+ 0.022628511428833008,
23
+ 0.022713888168334962
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 308.76177979946215
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1769.947136,
37
+ "max_global_vram": 6793.199616,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6146.752512,
40
+ "max_allocated": 5036.936704
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 5.27013916015625,
46
+ "mean": 2.635069580078125,
47
+ "stdev": 0.0036293945312499964,
48
+ "p50": 2.635069580078125,
49
+ "p90": 2.637973095703125,
50
+ "p95": 2.63833603515625,
51
+ "p99": 2.6386263867187503,
52
+ "values": [
53
+ 2.631440185546875,
54
+ 2.638698974609375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 48.19607078316113
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 5.271720960617061,
70
+ "mean": 0.02083684174156943,
71
+ "stdev": 0.0014756745103518068,
72
+ "p50": 0.020813823699951172,
73
+ "p90": 0.020935475540161133,
74
+ "p95": 0.02108149757385254,
75
+ "p99": 0.022195609741210934,
76
+ "values": [
77
+ 0.022304767608642577,
78
+ 0.022768640518188478,
79
+ 0.02065510368347168,
80
+ 0.020341760635375978,
81
+ 0.020304895401000975,
82
+ 0.02025164794921875,
83
+ 0.02030284881591797,
84
+ 0.020298751831054687,
85
+ 0.020296703338623046,
86
+ 0.02026700782775879,
87
+ 0.020299776077270508,
88
+ 0.020487167358398437,
89
+ 0.020591615676879883,
90
+ 0.02031001663208008,
91
+ 0.02042470359802246,
92
+ 0.02036735916137695,
93
+ 0.020342784881591795,
94
+ 0.020291584014892578,
95
+ 0.020342784881591795,
96
+ 0.020315135955810547,
97
+ 0.020299776077270508,
98
+ 0.020273151397705077,
99
+ 0.02040729522705078,
100
+ 0.020195327758789062,
101
+ 0.020588544845581053,
102
+ 0.021157888412475585,
103
+ 0.02091929626464844,
104
+ 0.020958208084106447,
105
+ 0.020883455276489257,
106
+ 0.020806655883789063,
107
+ 0.020246528625488282,
108
+ 0.020576255798339844,
109
+ 0.020924415588378906,
110
+ 0.020755456924438476,
111
+ 0.020192256927490236,
112
+ 0.02006118392944336,
113
+ 0.02007756805419922,
114
+ 0.020578304290771485,
115
+ 0.020880384445190428,
116
+ 0.020271104812622072,
117
+ 0.02030080032348633,
118
+ 0.020273151397705077,
119
+ 0.02027827262878418,
120
+ 0.02030080032348633,
121
+ 0.020303871154785155,
122
+ 0.02028339195251465,
123
+ 0.02061311912536621,
124
+ 0.020890623092651366,
125
+ 0.020593664169311524,
126
+ 0.02146816062927246,
127
+ 0.020969472885131835,
128
+ 0.02087424087524414,
129
+ 0.020855808258056642,
130
+ 0.020815872192382814,
131
+ 0.02085273551940918,
132
+ 0.02087321662902832,
133
+ 0.020783103942871094,
134
+ 0.020831232070922853,
135
+ 0.02082099151611328,
136
+ 0.02082815933227539,
137
+ 0.020785152435302736,
138
+ 0.020805631637573242,
139
+ 0.020570112228393556,
140
+ 0.02081996726989746,
141
+ 0.020769792556762694,
142
+ 0.020847616195678712,
143
+ 0.020726783752441406,
144
+ 0.020725759506225586,
145
+ 0.020624383926391602,
146
+ 0.020876287460327148,
147
+ 0.02079641532897949,
148
+ 0.02088755226135254,
149
+ 0.020752384185791017,
150
+ 0.02079539108276367,
151
+ 0.02085478401184082,
152
+ 0.020916223526000977,
153
+ 0.02088652801513672,
154
+ 0.020929536819458007,
155
+ 0.02086502456665039,
156
+ 0.020896768569946288,
157
+ 0.020888576507568358,
158
+ 0.020912128448486327,
159
+ 0.02087321662902832,
160
+ 0.020632575988769532,
161
+ 0.020973567962646485,
162
+ 0.021380096435546874,
163
+ 0.020876287460327148,
164
+ 0.020718591690063477,
165
+ 0.020840448379516603,
166
+ 0.020898815155029296,
167
+ 0.020813823699951172,
168
+ 0.02066739273071289,
169
+ 0.02084556770324707,
170
+ 0.02086297607421875,
171
+ 0.02084351921081543,
172
+ 0.02068889617919922,
173
+ 0.020896768569946288,
174
+ 0.020746240615844725,
175
+ 0.020641792297363282,
176
+ 0.020853759765625,
177
+ 0.02084454345703125,
178
+ 0.02082611274719238,
179
+ 0.020661247253417968,
180
+ 0.02082713508605957,
181
+ 0.02084454345703125,
182
+ 0.020723712921142577,
183
+ 0.02063974380493164,
184
+ 0.020797439575195312,
185
+ 0.02083020782470703,
186
+ 0.02069606399536133,
187
+ 0.02084966468811035,
188
+ 0.02082099151611328,
189
+ 0.02084147262573242,
190
+ 0.020813823699951172,
191
+ 0.020969472885131835,
192
+ 0.02084556770324707,
193
+ 0.02089369583129883,
194
+ 0.020815872192382814,
195
+ 0.020939775466918945,
196
+ 0.02066431999206543,
197
+ 0.020891647338867187,
198
+ 0.020876287460327148,
199
+ 0.020912128448486327,
200
+ 0.020634624481201173,
201
+ 0.020610048294067384,
202
+ 0.020791296005249024,
203
+ 0.0437125129699707,
204
+ 0.020891647338867187,
205
+ 0.020890623092651366,
206
+ 0.02086809539794922,
207
+ 0.02086809539794922,
208
+ 0.02084454345703125,
209
+ 0.021421056747436523,
210
+ 0.021015552520751952,
211
+ 0.020883455276489257,
212
+ 0.02081279945373535,
213
+ 0.02063564872741699,
214
+ 0.020876287460327148,
215
+ 0.020884479522705078,
216
+ 0.020935680389404295,
217
+ 0.020853759765625,
218
+ 0.020649984359741212,
219
+ 0.02083328056335449,
220
+ 0.020944896697998046,
221
+ 0.02066227149963379,
222
+ 0.02085171127319336,
223
+ 0.02110361671447754,
224
+ 0.0220948486328125,
225
+ 0.02106572723388672,
226
+ 0.021007360458374022,
227
+ 0.020961280822753905,
228
+ 0.020817920684814452,
229
+ 0.02090291213989258,
230
+ 0.02087833595275879,
231
+ 0.02089472007751465,
232
+ 0.02086502456665039,
233
+ 0.020853759765625,
234
+ 0.02086092758178711,
235
+ 0.02081996726989746,
236
+ 0.020822015762329102,
237
+ 0.020793344497680662,
238
+ 0.02088960075378418,
239
+ 0.0208035831451416,
240
+ 0.02088243293762207,
241
+ 0.020815872192382814,
242
+ 0.02089369583129883,
243
+ 0.02085785675048828,
244
+ 0.020814847946166993,
245
+ 0.020915199279785156,
246
+ 0.020799488067626954,
247
+ 0.020884479522705078,
248
+ 0.020761600494384767,
249
+ 0.020723712921142577,
250
+ 0.02083737564086914,
251
+ 0.021391359329223633,
252
+ 0.020934656143188478,
253
+ 0.02082918357849121,
254
+ 0.020888576507568358,
255
+ 0.020809728622436522,
256
+ 0.02083737564086914,
257
+ 0.02146406364440918,
258
+ 0.02084556770324707,
259
+ 0.02090598487854004,
260
+ 0.020839424133300782,
261
+ 0.020840448379516603,
262
+ 0.02084454345703125,
263
+ 0.02081279945373535,
264
+ 0.020891647338867187,
265
+ 0.020918272018432618,
266
+ 0.02085478401184082,
267
+ 0.020883455276489257,
268
+ 0.020748287200927733,
269
+ 0.020831232070922853,
270
+ 0.020864000320434572,
271
+ 0.020759552001953126,
272
+ 0.020583423614501953,
273
+ 0.020754432678222655,
274
+ 0.02091007995605469,
275
+ 0.02067353630065918,
276
+ 0.0208855037689209,
277
+ 0.02069606399536133,
278
+ 0.02043391990661621,
279
+ 0.020378623962402344,
280
+ 0.020402175903320312,
281
+ 0.02086911964416504,
282
+ 0.020566015243530272,
283
+ 0.02067046356201172,
284
+ 0.02045952033996582,
285
+ 0.020890623092651366,
286
+ 0.020822015762329102,
287
+ 0.020666368484497072,
288
+ 0.020763647079467772,
289
+ 0.02063667106628418,
290
+ 0.020749311447143554,
291
+ 0.02067865562438965,
292
+ 0.020739072799682616,
293
+ 0.020588544845581053,
294
+ 0.020774911880493165,
295
+ 0.02052403259277344,
296
+ 0.02065203285217285,
297
+ 0.020800512313842775,
298
+ 0.020556800842285155,
299
+ 0.020762624740600585,
300
+ 0.020784128189086915,
301
+ 0.020577280044555665,
302
+ 0.02063564872741699,
303
+ 0.020744192123413087,
304
+ 0.0208035831451416,
305
+ 0.020556800842285155,
306
+ 0.020864000320434572,
307
+ 0.020264959335327147,
308
+ 0.020346879959106445,
309
+ 0.02030080032348633,
310
+ 0.02030080032348633,
311
+ 0.02025881576538086,
312
+ 0.020313087463378905,
313
+ 0.02027519989013672,
314
+ 0.020315135955810547,
315
+ 0.02027724838256836,
316
+ 0.02027622413635254,
317
+ 0.02021171188354492,
318
+ 0.020312063217163084,
319
+ 0.020323328018188477,
320
+ 0.02047385597229004,
321
+ 0.020353023529052734,
322
+ 0.02029363250732422,
323
+ 0.021699583053588867,
324
+ 0.021465087890625,
325
+ 0.020989952087402345,
326
+ 0.02088140869140625,
327
+ 0.02089472007751465,
328
+ 0.020742143630981445,
329
+ 0.02106675148010254
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 47.99191798846383
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "google/gemma-2b",
3
+ "commit": "b7672826cad31e30319487af876e608d8af7d37b",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022671199798583987,
7
+ "prefill.throughput.value": 308.76177979946215,
8
+ "decode.latency.mean": 2.635069580078125,
9
+ "decode.throughput.value": 48.19607078316113,
10
+ "per_token.latency.mean": 0.02083684174156943,
11
+ "per_token.throughput.value": 47.99191798846383
12
+ }
13
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: b7672826cad31e30319487af876e608d8af7d37b
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b
6
+ subdir: ${hydra.job.override_dirname}
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
+ root:
71
+ level: ERROR
72
+ disable_existing_loggers: true
73
+ job_logging:
74
+ version: 1
75
+ root:
76
+ level: ERROR
77
+ disable_existing_loggers: true
78
+ env: {}
79
+ mode: MULTIRUN
80
+ searchpath: []
81
+ callbacks: {}
82
+ output_subdir: .hydra
83
+ overrides:
84
+ hydra:
85
+ - hydra/job_logging=disabled
86
+ - hydra/hydra_logging=disabled
87
+ - hydra.sweep.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b
88
+ - hydra.run.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=static
93
+ - backend.torch_compile=True
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True
98
+ id: '3'
99
+ num: 3
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: /transformers/_benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=True
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "b7672826cad31e30319487af876e608d8af7d37b",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1915.060224,
109
+ "max_global_vram": 6094.848,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 5379.19488,
112
+ "max_allocated": 5021.251584
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.02815776062011719,
118
+ "mean": 0.014078880310058595,
119
+ "stdev": 0.00010377597808837891,
120
+ "p50": 0.014078880310058595,
121
+ "p90": 0.014161901092529298,
122
+ "p95": 0.014172278690338136,
123
+ "p99": 0.014180580768585206,
124
+ "values": [
125
+ 0.014182656288146973,
126
+ 0.013975104331970216
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 497.19862985118783
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2258.866176,
140
+ "max_global_vram": 8907.128832,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 5379.19488,
143
+ "max_allocated": 5027.089408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 3.123634521484375,
149
+ "mean": 1.5618172607421874,
150
+ "stdev": 0.0033018798828124973,
151
+ "p50": 1.5618172607421874,
152
+ "p90": 1.5644587646484376,
153
+ "p95": 1.5647889526367187,
154
+ "p99": 1.5650531030273438,
155
+ "values": [
156
+ 1.565119140625,
157
+ 1.558515380859375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 81.31553107541444
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 3.1247042541503895,
173
+ "mean": 0.012350609700199173,
174
+ "stdev": 0.0008951450919219611,
175
+ "p50": 0.01227673625946045,
176
+ "p90": 0.012328960418701173,
177
+ "p95": 0.012428288078308104,
178
+ "p99": 0.012790169830322266,
179
+ "values": [
180
+ 0.012717056274414062,
181
+ 0.012782591819763184,
182
+ 0.012803071975708008,
183
+ 0.012792832374572754,
184
+ 0.012712960243225097,
185
+ 0.012784640312194824,
186
+ 0.01274060821533203,
187
+ 0.01278771209716797,
188
+ 0.012750847816467285,
189
+ 0.012326911926269531,
190
+ 0.012569600105285645,
191
+ 0.012455936431884765,
192
+ 0.012326911926269531,
193
+ 0.012305407524108887,
194
+ 0.01225113582611084,
195
+ 0.012298239707946777,
196
+ 0.012289024353027344,
197
+ 0.012300288200378418,
198
+ 0.012253184318542481,
199
+ 0.012357631683349609,
200
+ 0.012247039794921874,
201
+ 0.012288000106811523,
202
+ 0.012247039794921874,
203
+ 0.012297216415405274,
204
+ 0.012259327888488769,
205
+ 0.012308480262756348,
206
+ 0.012253184318542481,
207
+ 0.012297216415405274,
208
+ 0.01225011157989502,
209
+ 0.012314623832702636,
210
+ 0.012305407524108887,
211
+ 0.012312576293945313,
212
+ 0.012259327888488769,
213
+ 0.012314623832702636,
214
+ 0.012263423919677734,
215
+ 0.012285951614379884,
216
+ 0.01225216007232666,
217
+ 0.012298239707946777,
218
+ 0.012244992256164551,
219
+ 0.012297216415405274,
220
+ 0.012246015548706055,
221
+ 0.012294143676757812,
222
+ 0.01225113582611084,
223
+ 0.012286975860595703,
224
+ 0.012296192169189453,
225
+ 0.012339200019836426,
226
+ 0.012254207611083985,
227
+ 0.012297216415405274,
228
+ 0.012263423919677734,
229
+ 0.012291071891784668,
230
+ 0.012247039794921874,
231
+ 0.012290047645568849,
232
+ 0.012259327888488769,
233
+ 0.012292096138000488,
234
+ 0.012248064041137695,
235
+ 0.012292096138000488,
236
+ 0.012259327888488769,
237
+ 0.012298239707946777,
238
+ 0.012270591735839843,
239
+ 0.012317695617675782,
240
+ 0.012246015548706055,
241
+ 0.01229312038421631,
242
+ 0.012262399673461915,
243
+ 0.012288000106811523,
244
+ 0.01225011157989502,
245
+ 0.012297216415405274,
246
+ 0.012244992256164551,
247
+ 0.012355584144592285,
248
+ 0.012291071891784668,
249
+ 0.012307456016540527,
250
+ 0.012255231857299804,
251
+ 0.012328960418701173,
252
+ 0.012281855583190919,
253
+ 0.012324864387512208,
254
+ 0.012254207611083985,
255
+ 0.012289024353027344,
256
+ 0.012314623832702636,
257
+ 0.012308480262756348,
258
+ 0.01224294376373291,
259
+ 0.012327936172485352,
260
+ 0.012285951614379884,
261
+ 0.012326911926269531,
262
+ 0.012274687767028808,
263
+ 0.012318719863891601,
264
+ 0.012294143676757812,
265
+ 0.012311552047729492,
266
+ 0.012301312446594239,
267
+ 0.01232588768005371,
268
+ 0.012254207611083985,
269
+ 0.012298239707946777,
270
+ 0.012241920471191407,
271
+ 0.012278783798217773,
272
+ 0.012241920471191407,
273
+ 0.012294143676757812,
274
+ 0.012256256103515625,
275
+ 0.012285951614379884,
276
+ 0.012241920471191407,
277
+ 0.012286975860595703,
278
+ 0.01225011157989502,
279
+ 0.012289024353027344,
280
+ 0.012239871978759765,
281
+ 0.012310527801513671,
282
+ 0.012237824440002442,
283
+ 0.012277759552001954,
284
+ 0.012244992256164551,
285
+ 0.012295167922973632,
286
+ 0.012247039794921874,
287
+ 0.01228492832183838,
288
+ 0.01225011157989502,
289
+ 0.012292096138000488,
290
+ 0.01224396800994873,
291
+ 0.012279808044433594,
292
+ 0.012240896224975586,
293
+ 0.012289024353027344,
294
+ 0.01223475170135498,
295
+ 0.012299263954162597,
296
+ 0.012248064041137695,
297
+ 0.012291071891784668,
298
+ 0.01227673625946045,
299
+ 0.012295167922973632,
300
+ 0.0122357759475708,
301
+ 0.012278783798217773,
302
+ 0.012241920471191407,
303
+ 0.012274687767028808,
304
+ 0.012256256103515625,
305
+ 0.012296192169189453,
306
+ 0.026473472595214844,
307
+ 0.012231679916381836,
308
+ 0.012285951614379884,
309
+ 0.01224294376373291,
310
+ 0.012331007957458496,
311
+ 0.012308480262756348,
312
+ 0.01238425636291504,
313
+ 0.012328960418701173,
314
+ 0.012286975860595703,
315
+ 0.01225113582611084,
316
+ 0.01234227180480957,
317
+ 0.012278783798217773,
318
+ 0.012289024353027344,
319
+ 0.012249088287353516,
320
+ 0.012278783798217773,
321
+ 0.012241920471191407,
322
+ 0.012273664474487305,
323
+ 0.01223475170135498,
324
+ 0.012280832290649414,
325
+ 0.0122357759475708,
326
+ 0.012281855583190919,
327
+ 0.012247039794921874,
328
+ 0.012464127540588378,
329
+ 0.012274687767028808,
330
+ 0.012346367835998535,
331
+ 0.012310527801513671,
332
+ 0.012337151527404786,
333
+ 0.012271615982055664,
334
+ 0.012297216415405274,
335
+ 0.012239871978759765,
336
+ 0.012299263954162597,
337
+ 0.012262399673461915,
338
+ 0.012283904075622559,
339
+ 0.012221440315246582,
340
+ 0.01226956844329834,
341
+ 0.012238847732543945,
342
+ 0.012282879829406738,
343
+ 0.01223475170135498,
344
+ 0.01227673625946045,
345
+ 0.012253184318542481,
346
+ 0.012271615982055664,
347
+ 0.012236800193786621,
348
+ 0.012283904075622559,
349
+ 0.012246047973632813,
350
+ 0.012271583557128906,
351
+ 0.01224294376373291,
352
+ 0.012277759552001954,
353
+ 0.012228608131408691,
354
+ 0.012272640228271485,
355
+ 0.012236800193786621,
356
+ 0.012272640228271485,
357
+ 0.012226559638977052,
358
+ 0.012272640228271485,
359
+ 0.012249088287353516,
360
+ 0.012387328147888184,
361
+ 0.012272640228271485,
362
+ 0.012294143676757812,
363
+ 0.01225830364227295,
364
+ 0.012299263954162597,
365
+ 0.012244992256164551,
366
+ 0.012409855842590332,
367
+ 0.01226137638092041,
368
+ 0.01226854419708252,
369
+ 0.012254207611083985,
370
+ 0.012305407524108887,
371
+ 0.012248064041137695,
372
+ 0.012286975860595703,
373
+ 0.012247039794921874,
374
+ 0.012339200019836426,
375
+ 0.012232704162597656,
376
+ 0.012274687767028808,
377
+ 0.012231679916381836,
378
+ 0.012295167922973632,
379
+ 0.012236800193786621,
380
+ 0.012274687767028808,
381
+ 0.012233728408813477,
382
+ 0.012282879829406738,
383
+ 0.012225536346435547,
384
+ 0.012281855583190919,
385
+ 0.012229632377624512,
386
+ 0.012273664474487305,
387
+ 0.012249088287353516,
388
+ 0.012282879829406738,
389
+ 0.012256256103515625,
390
+ 0.01229312038421631,
391
+ 0.012230655670166016,
392
+ 0.012282879829406738,
393
+ 0.012241920471191407,
394
+ 0.012283904075622559,
395
+ 0.01223475170135498,
396
+ 0.012290047645568849,
397
+ 0.012236800193786621,
398
+ 0.012272640228271485,
399
+ 0.012231679916381836,
400
+ 0.012271615982055664,
401
+ 0.012220416069030762,
402
+ 0.012267519950866699,
403
+ 0.012215359687805176,
404
+ 0.012269503593444824,
405
+ 0.012244992256164551,
406
+ 0.012290047645568849,
407
+ 0.012226559638977052,
408
+ 0.01228492832183838,
409
+ 0.01226035213470459,
410
+ 0.012281855583190919,
411
+ 0.012244992256164551,
412
+ 0.012339200019836426,
413
+ 0.012241920471191407,
414
+ 0.012323840141296387,
415
+ 0.012228608131408691,
416
+ 0.012264448165893555,
417
+ 0.012231679916381836,
418
+ 0.01228492832183838,
419
+ 0.012216320037841797,
420
+ 0.012297216415405274,
421
+ 0.012246015548706055,
422
+ 0.012274687767028808,
423
+ 0.012230655670166016,
424
+ 0.01227673625946045,
425
+ 0.012226559638977052,
426
+ 0.012279808044433594,
427
+ 0.012226559638977052,
428
+ 0.012282879829406738,
429
+ 0.012229632377624512,
430
+ 0.012282879829406738,
431
+ 0.012233728408813477,
432
+ 0.012275712013244629
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 80.9676626720601
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "b7672826cad31e30319487af876e608d8af7d37b",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1915.060224,
6
+ "max_global_vram": 6094.848,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 5379.19488,
9
+ "max_allocated": 5021.251584
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.02815776062011719,
15
+ "mean": 0.014078880310058595,
16
+ "stdev": 0.00010377597808837891,
17
+ "p50": 0.014078880310058595,
18
+ "p90": 0.014161901092529298,
19
+ "p95": 0.014172278690338136,
20
+ "p99": 0.014180580768585206,
21
+ "values": [
22
+ 0.014182656288146973,
23
+ 0.013975104331970216
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 497.19862985118783
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2258.866176,
37
+ "max_global_vram": 8907.128832,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 5379.19488,
40
+ "max_allocated": 5027.089408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 3.123634521484375,
46
+ "mean": 1.5618172607421874,
47
+ "stdev": 0.0033018798828124973,
48
+ "p50": 1.5618172607421874,
49
+ "p90": 1.5644587646484376,
50
+ "p95": 1.5647889526367187,
51
+ "p99": 1.5650531030273438,
52
+ "values": [
53
+ 1.565119140625,
54
+ 1.558515380859375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 81.31553107541444
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 3.1247042541503895,
70
+ "mean": 0.012350609700199173,
71
+ "stdev": 0.0008951450919219611,
72
+ "p50": 0.01227673625946045,
73
+ "p90": 0.012328960418701173,
74
+ "p95": 0.012428288078308104,
75
+ "p99": 0.012790169830322266,
76
+ "values": [
77
+ 0.012717056274414062,
78
+ 0.012782591819763184,
79
+ 0.012803071975708008,
80
+ 0.012792832374572754,
81
+ 0.012712960243225097,
82
+ 0.012784640312194824,
83
+ 0.01274060821533203,
84
+ 0.01278771209716797,
85
+ 0.012750847816467285,
86
+ 0.012326911926269531,
87
+ 0.012569600105285645,
88
+ 0.012455936431884765,
89
+ 0.012326911926269531,
90
+ 0.012305407524108887,
91
+ 0.01225113582611084,
92
+ 0.012298239707946777,
93
+ 0.012289024353027344,
94
+ 0.012300288200378418,
95
+ 0.012253184318542481,
96
+ 0.012357631683349609,
97
+ 0.012247039794921874,
98
+ 0.012288000106811523,
99
+ 0.012247039794921874,
100
+ 0.012297216415405274,
101
+ 0.012259327888488769,
102
+ 0.012308480262756348,
103
+ 0.012253184318542481,
104
+ 0.012297216415405274,
105
+ 0.01225011157989502,
106
+ 0.012314623832702636,
107
+ 0.012305407524108887,
108
+ 0.012312576293945313,
109
+ 0.012259327888488769,
110
+ 0.012314623832702636,
111
+ 0.012263423919677734,
112
+ 0.012285951614379884,
113
+ 0.01225216007232666,
114
+ 0.012298239707946777,
115
+ 0.012244992256164551,
116
+ 0.012297216415405274,
117
+ 0.012246015548706055,
118
+ 0.012294143676757812,
119
+ 0.01225113582611084,
120
+ 0.012286975860595703,
121
+ 0.012296192169189453,
122
+ 0.012339200019836426,
123
+ 0.012254207611083985,
124
+ 0.012297216415405274,
125
+ 0.012263423919677734,
126
+ 0.012291071891784668,
127
+ 0.012247039794921874,
128
+ 0.012290047645568849,
129
+ 0.012259327888488769,
130
+ 0.012292096138000488,
131
+ 0.012248064041137695,
132
+ 0.012292096138000488,
133
+ 0.012259327888488769,
134
+ 0.012298239707946777,
135
+ 0.012270591735839843,
136
+ 0.012317695617675782,
137
+ 0.012246015548706055,
138
+ 0.01229312038421631,
139
+ 0.012262399673461915,
140
+ 0.012288000106811523,
141
+ 0.01225011157989502,
142
+ 0.012297216415405274,
143
+ 0.012244992256164551,
144
+ 0.012355584144592285,
145
+ 0.012291071891784668,
146
+ 0.012307456016540527,
147
+ 0.012255231857299804,
148
+ 0.012328960418701173,
149
+ 0.012281855583190919,
150
+ 0.012324864387512208,
151
+ 0.012254207611083985,
152
+ 0.012289024353027344,
153
+ 0.012314623832702636,
154
+ 0.012308480262756348,
155
+ 0.01224294376373291,
156
+ 0.012327936172485352,
157
+ 0.012285951614379884,
158
+ 0.012326911926269531,
159
+ 0.012274687767028808,
160
+ 0.012318719863891601,
161
+ 0.012294143676757812,
162
+ 0.012311552047729492,
163
+ 0.012301312446594239,
164
+ 0.01232588768005371,
165
+ 0.012254207611083985,
166
+ 0.012298239707946777,
167
+ 0.012241920471191407,
168
+ 0.012278783798217773,
169
+ 0.012241920471191407,
170
+ 0.012294143676757812,
171
+ 0.012256256103515625,
172
+ 0.012285951614379884,
173
+ 0.012241920471191407,
174
+ 0.012286975860595703,
175
+ 0.01225011157989502,
176
+ 0.012289024353027344,
177
+ 0.012239871978759765,
178
+ 0.012310527801513671,
179
+ 0.012237824440002442,
180
+ 0.012277759552001954,
181
+ 0.012244992256164551,
182
+ 0.012295167922973632,
183
+ 0.012247039794921874,
184
+ 0.01228492832183838,
185
+ 0.01225011157989502,
186
+ 0.012292096138000488,
187
+ 0.01224396800994873,
188
+ 0.012279808044433594,
189
+ 0.012240896224975586,
190
+ 0.012289024353027344,
191
+ 0.01223475170135498,
192
+ 0.012299263954162597,
193
+ 0.012248064041137695,
194
+ 0.012291071891784668,
195
+ 0.01227673625946045,
196
+ 0.012295167922973632,
197
+ 0.0122357759475708,
198
+ 0.012278783798217773,
199
+ 0.012241920471191407,
200
+ 0.012274687767028808,
201
+ 0.012256256103515625,
202
+ 0.012296192169189453,
203
+ 0.026473472595214844,
204
+ 0.012231679916381836,
205
+ 0.012285951614379884,
206
+ 0.01224294376373291,
207
+ 0.012331007957458496,
208
+ 0.012308480262756348,
209
+ 0.01238425636291504,
210
+ 0.012328960418701173,
211
+ 0.012286975860595703,
212
+ 0.01225113582611084,
213
+ 0.01234227180480957,
214
+ 0.012278783798217773,
215
+ 0.012289024353027344,
216
+ 0.012249088287353516,
217
+ 0.012278783798217773,
218
+ 0.012241920471191407,
219
+ 0.012273664474487305,
220
+ 0.01223475170135498,
221
+ 0.012280832290649414,
222
+ 0.0122357759475708,
223
+ 0.012281855583190919,
224
+ 0.012247039794921874,
225
+ 0.012464127540588378,
226
+ 0.012274687767028808,
227
+ 0.012346367835998535,
228
+ 0.012310527801513671,
229
+ 0.012337151527404786,
230
+ 0.012271615982055664,
231
+ 0.012297216415405274,
232
+ 0.012239871978759765,
233
+ 0.012299263954162597,
234
+ 0.012262399673461915,
235
+ 0.012283904075622559,
236
+ 0.012221440315246582,
237
+ 0.01226956844329834,
238
+ 0.012238847732543945,
239
+ 0.012282879829406738,
240
+ 0.01223475170135498,
241
+ 0.01227673625946045,
242
+ 0.012253184318542481,
243
+ 0.012271615982055664,
244
+ 0.012236800193786621,
245
+ 0.012283904075622559,
246
+ 0.012246047973632813,
247
+ 0.012271583557128906,
248
+ 0.01224294376373291,
249
+ 0.012277759552001954,
250
+ 0.012228608131408691,
251
+ 0.012272640228271485,
252
+ 0.012236800193786621,
253
+ 0.012272640228271485,
254
+ 0.012226559638977052,
255
+ 0.012272640228271485,
256
+ 0.012249088287353516,
257
+ 0.012387328147888184,
258
+ 0.012272640228271485,
259
+ 0.012294143676757812,
260
+ 0.01225830364227295,
261
+ 0.012299263954162597,
262
+ 0.012244992256164551,
263
+ 0.012409855842590332,
264
+ 0.01226137638092041,
265
+ 0.01226854419708252,
266
+ 0.012254207611083985,
267
+ 0.012305407524108887,
268
+ 0.012248064041137695,
269
+ 0.012286975860595703,
270
+ 0.012247039794921874,
271
+ 0.012339200019836426,
272
+ 0.012232704162597656,
273
+ 0.012274687767028808,
274
+ 0.012231679916381836,
275
+ 0.012295167922973632,
276
+ 0.012236800193786621,
277
+ 0.012274687767028808,
278
+ 0.012233728408813477,
279
+ 0.012282879829406738,
280
+ 0.012225536346435547,
281
+ 0.012281855583190919,
282
+ 0.012229632377624512,
283
+ 0.012273664474487305,
284
+ 0.012249088287353516,
285
+ 0.012282879829406738,
286
+ 0.012256256103515625,
287
+ 0.01229312038421631,
288
+ 0.012230655670166016,
289
+ 0.012282879829406738,
290
+ 0.012241920471191407,
291
+ 0.012283904075622559,
292
+ 0.01223475170135498,
293
+ 0.012290047645568849,
294
+ 0.012236800193786621,
295
+ 0.012272640228271485,
296
+ 0.012231679916381836,
297
+ 0.012271615982055664,
298
+ 0.012220416069030762,
299
+ 0.012267519950866699,
300
+ 0.012215359687805176,
301
+ 0.012269503593444824,
302
+ 0.012244992256164551,
303
+ 0.012290047645568849,
304
+ 0.012226559638977052,
305
+ 0.01228492832183838,
306
+ 0.01226035213470459,
307
+ 0.012281855583190919,
308
+ 0.012244992256164551,
309
+ 0.012339200019836426,
310
+ 0.012241920471191407,
311
+ 0.012323840141296387,
312
+ 0.012228608131408691,
313
+ 0.012264448165893555,
314
+ 0.012231679916381836,
315
+ 0.01228492832183838,
316
+ 0.012216320037841797,
317
+ 0.012297216415405274,
318
+ 0.012246015548706055,
319
+ 0.012274687767028808,
320
+ 0.012230655670166016,
321
+ 0.01227673625946045,
322
+ 0.012226559638977052,
323
+ 0.012279808044433594,
324
+ 0.012226559638977052,
325
+ 0.012282879829406738,
326
+ 0.012229632377624512,
327
+ 0.012282879829406738,
328
+ 0.012233728408813477,
329
+ 0.012275712013244629
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 80.9676626720601
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "google/gemma-2b",
3
+ "commit": "b7672826cad31e30319487af876e608d8af7d37b",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014078880310058595,
7
+ "prefill.throughput.value": 497.19862985118783,
8
+ "decode.latency.mean": 1.5618172607421874,
9
+ "decode.throughput.value": 81.31553107541444,
10
+ "per_token.latency.mean": 0.012350609700199173,
11
+ "per_token.throughput.value": 80.9676626720601
12
+ }
13
+ }
2024-06-14/commit=b7672826cad31e30319487af876e608d8af7d37b/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkd4hzdi_/commit=b7672826cad31e30319487af876e608d8af7d37b
6
+ subdir: ${hydra.job.override_dirname}
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
+ root:
71
+ level: ERROR
72
+ disable_existing_loggers: true
73
+ job_logging:
74
+ version: 1
75
+ root:
76
+ level: ERROR
77
+ disable_existing_loggers: true
78
+ env: {}
79
+ mode: MULTIRUN
80
+ searchpath: []
81
+ callbacks: {}
82
+ output_subdir: .hydra
83
+ overrides:
84
+ hydra:
85
+ - hydra/job_logging=disabled
86
+ - hydra/hydra_logging=disabled
87
+ - hydra.sweep.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b
88
+ - hydra.run.dir=_benchmark/tmpkd4hzdi_/commit\=b7672826cad31e30319487af876e608d8af7d37b/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.3.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model: google/gemma-2b
150
+ processor: null
151
+ device: cuda
152
+ device_ids: '0'
153
+ seed: 42
154
+ inter_op_num_threads: null
155
+ intra_op_num_threads: null
156
+ model_kwargs: {}
157
+ processor_kwargs: {}
158
+ hub_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ latency: true
192
+ memory: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ start_method: spawn
206
+ environment:
207
+ cpu: ' AMD EPYC 7R32'
208
+ cpu_count: 16
209
+ cpu_ram_mb: 66697.29792
210
+ system: Linux
211
+ machine: x86_64
212
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
213
+ processor: x86_64
214
+ python_version: 3.8.10
215
+ gpu:
216
+ - NVIDIA A10G
217
+ gpu_count: 1
218
+ gpu_vram_mb: 24146608128
219
+ optimum_benchmark_version: 0.2.1
220
+ optimum_benchmark_commit: null
221
+ transformers_version: 4.42.0.dev0
222
+ transformers_commit: b7672826cad31e30319487af876e608d8af7d37b
223
+ accelerate_version: 0.32.0.dev0
224
+ accelerate_commit: null
225
+ diffusers_version: null
226
+ diffusers_commit: null
227
+ optimum_version: 1.21.0.dev0
228
+ optimum_commit: null
229
+ timm_version: 0.9.16
230
+ timm_commit: null
231
+ peft_version: 0.11.2.dev0
232
+ peft_commit: null
2024-06-14/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "b7672826cad31e30319487af876e608d8af7d37b",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.01970032024383545,
8
+ "prefill.throughput.value": 355.3241730773597,
9
+ "decode.latency.mean": 2.3911510009765626,
10
+ "decode.throughput.value": 53.11249684697132,
11
+ "per_token.latency.mean": 0.01890306428298649,
12
+ "per_token.throughput.value": 52.90147592102513
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "b7672826cad31e30319487af876e608d8af7d37b",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022671199798583987,
21
+ "prefill.throughput.value": 308.76177979946215,
22
+ "decode.latency.mean": 2.635069580078125,
23
+ "decode.throughput.value": 48.19607078316113,
24
+ "per_token.latency.mean": 0.02083684174156943,
25
+ "per_token.throughput.value": 47.99191798846383
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "b7672826cad31e30319487af876e608d8af7d37b",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014078880310058595,
34
+ "prefill.throughput.value": 497.19862985118783,
35
+ "decode.latency.mean": 1.5618172607421874,
36
+ "decode.throughput.value": 81.31553107541444,
37
+ "per_token.latency.mean": 0.012350609700199173,
38
+ "per_token.throughput.value": 80.9676626720601
39
+ }
40
+ }
41
+ ]
2024-06-14/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "b7672826cad31e30319487af876e608d8af7d37b": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.01970032024383545,
7
+ "prefill.throughput.value": 355.3241730773597,
8
+ "decode.latency.mean": 2.3911510009765626,
9
+ "decode.throughput.value": 53.11249684697132,
10
+ "per_token.latency.mean": 0.01890306428298649,
11
+ "per_token.throughput.value": 52.90147592102513
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "b7672826cad31e30319487af876e608d8af7d37b": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022671199798583987,
19
+ "prefill.throughput.value": 308.76177979946215,
20
+ "decode.latency.mean": 2.635069580078125,
21
+ "decode.throughput.value": 48.19607078316113,
22
+ "per_token.latency.mean": 0.02083684174156943,
23
+ "per_token.throughput.value": 47.99191798846383
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "b7672826cad31e30319487af876e608d8af7d37b": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014078880310058595,
31
+ "prefill.throughput.value": 497.19862985118783,
32
+ "decode.latency.mean": 1.5618172607421874,
33
+ "decode.throughput.value": 81.31553107541444,
34
+ "per_token.latency.mean": 0.012350609700199173,
35
+ "per_token.throughput.value": 80.9676626720601
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }