hf-transformers-bot commited on
Commit
a15f9b8
1 Parent(s): 850f4f8

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/multirun.yaml +234 -0
  31. 2024-09-01/summaries.json +41 -0
  32. 2024-09-01/summary.json +40 -0
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
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
+ 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
+ memory: true
51
+ latency: 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
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: eb5b968c5d80271ecb29917dffecc8f4c00247a8
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8
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/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8
88
+ - hydra.run.dir=_benchmark/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_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
+ "memory": true,
57
+ "latency": 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
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1320.1408,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.4521298828125,
120
+ "mean": 11.4521298828125,
121
+ "stdev": 0.0,
122
+ "p50": 11.4521298828125,
123
+ "p90": 11.4521298828125,
124
+ "p95": 11.4521298828125,
125
+ "p99": 11.4521298828125,
126
+ "values": [
127
+ 11.4521298828125
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1718.910976,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.431872
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.04139990425109863,
147
+ "mean": 0.020699952125549315,
148
+ "stdev": 0.0001786718368530279,
149
+ "p50": 0.020699952125549315,
150
+ "p90": 0.02084288959503174,
151
+ "p95": 0.02086075677871704,
152
+ "p99": 0.020875050525665285,
153
+ "values": [
154
+ 0.02052128028869629,
155
+ 0.020878623962402344
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 338.1650333074981
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1773.498368,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.801344
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 4.936837646484375,
178
+ "mean": 2.4684188232421875,
179
+ "stdev": 0.002885620117187404,
180
+ "p50": 2.4684188232421875,
181
+ "p90": 2.4707273193359374,
182
+ "p95": 2.471015881347656,
183
+ "p99": 2.471246730957031,
184
+ "values": [
185
+ 2.465533203125,
186
+ 2.471304443359375
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 51.44993985793288
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 4.93651968193054,
202
+ "mean": 0.019435116857994265,
203
+ "stdev": 0.0002755988659844469,
204
+ "p50": 0.019390463829040527,
205
+ "p90": 0.019699609184265138,
206
+ "p95": 0.020007782173156737,
207
+ "p99": 0.02035566619873047,
208
+ "values": [
209
+ 0.019180543899536134,
210
+ 0.01922662353515625,
211
+ 0.01925119972229004,
212
+ 0.01926655960083008,
213
+ 0.019357696533203125,
214
+ 0.019300352096557616,
215
+ 0.01927987289428711,
216
+ 0.019311616897583008,
217
+ 0.01929113578796387,
218
+ 0.019316736221313476,
219
+ 0.019316736221313476,
220
+ 0.01926655960083008,
221
+ 0.01925324821472168,
222
+ 0.019286016464233398,
223
+ 0.01928294372558594,
224
+ 0.01925529670715332,
225
+ 0.019092479705810548,
226
+ 0.019110912322998046,
227
+ 0.01909760093688965,
228
+ 0.019118080139160155,
229
+ 0.019327999114990235,
230
+ 0.01939558410644531,
231
+ 0.020543487548828124,
232
+ 0.020023296356201172,
233
+ 0.0198154239654541,
234
+ 0.019494911193847657,
235
+ 0.019284992218017577,
236
+ 0.019289087295532227,
237
+ 0.01945702362060547,
238
+ 0.01925632095336914,
239
+ 0.019183616638183593,
240
+ 0.019123199462890626,
241
+ 0.01908531188964844,
242
+ 0.0192542724609375,
243
+ 0.019329023361206055,
244
+ 0.019300352096557616,
245
+ 0.019276800155639647,
246
+ 0.01926655960083008,
247
+ 0.01928294372558594,
248
+ 0.01926348876953125,
249
+ 0.019301376342773437,
250
+ 0.019294208526611328,
251
+ 0.019301376342773437,
252
+ 0.01929113578796387,
253
+ 0.020196352005004883,
254
+ 0.019306495666503908,
255
+ 0.01928704071044922,
256
+ 0.019269632339477538,
257
+ 0.01925836753845215,
258
+ 0.019294208526611328,
259
+ 0.019293184280395507,
260
+ 0.01925529670715332,
261
+ 0.01927475166320801,
262
+ 0.019284992218017577,
263
+ 0.019269632339477538,
264
+ 0.01926144027709961,
265
+ 0.019283967971801756,
266
+ 0.019388416290283202,
267
+ 0.019385343551635743,
268
+ 0.019505151748657225,
269
+ 0.019393535614013673,
270
+ 0.019382272720336914,
271
+ 0.019418111801147463,
272
+ 0.01940377616882324,
273
+ 0.019398656845092774,
274
+ 0.019471359252929688,
275
+ 0.01946112060546875,
276
+ 0.019404800415039062,
277
+ 0.01943142318725586,
278
+ 0.019422208786010742,
279
+ 0.01942630386352539,
280
+ 0.019401727676391603,
281
+ 0.0194201602935791,
282
+ 0.01948057556152344,
283
+ 0.01944063949584961,
284
+ 0.019655679702758787,
285
+ 0.01965875244140625,
286
+ 0.019404800415039062,
287
+ 0.019422208786010742,
288
+ 0.01941094398498535,
289
+ 0.01943142318725586,
290
+ 0.021850112915039063,
291
+ 0.0202926082611084,
292
+ 0.02005504035949707,
293
+ 0.019372032165527343,
294
+ 0.019401727676391603,
295
+ 0.01941196823120117,
296
+ 0.01939455986022949,
297
+ 0.019346431732177736,
298
+ 0.019359743118286133,
299
+ 0.01942732810974121,
300
+ 0.019422208786010742,
301
+ 0.019358720779418945,
302
+ 0.01942425537109375,
303
+ 0.019368959426879884,
304
+ 0.019356672286987304,
305
+ 0.01940377616882324,
306
+ 0.01944166374206543,
307
+ 0.019406848907470704,
308
+ 0.019717119216918946,
309
+ 0.01943244743347168,
310
+ 0.019417087554931642,
311
+ 0.019408895492553712,
312
+ 0.019389440536499023,
313
+ 0.01943552017211914,
314
+ 0.01942425537109375,
315
+ 0.019389440536499023,
316
+ 0.019393535614013673,
317
+ 0.019451904296875,
318
+ 0.01944780731201172,
319
+ 0.019373056411743163,
320
+ 0.01943552017211914,
321
+ 0.0193832950592041,
322
+ 0.019417087554931642,
323
+ 0.019422208786010742,
324
+ 0.01942118453979492,
325
+ 0.01939967918395996,
326
+ 0.019382272720336914,
327
+ 0.01938739204406738,
328
+ 0.019378175735473634,
329
+ 0.01940275192260742,
330
+ 0.01943244743347168,
331
+ 0.019397632598876953,
332
+ 0.019350528717041016,
333
+ 0.019417087554931642,
334
+ 0.01947648048400879,
335
+ 0.0194334716796875,
336
+ 0.019497983932495116,
337
+ 0.019506175994873046,
338
+ 0.01929523277282715,
339
+ 0.019354623794555666,
340
+ 0.019293184280395507,
341
+ 0.019260416030883788,
342
+ 0.01925734329223633,
343
+ 0.019329023361206055,
344
+ 0.01929113578796387,
345
+ 0.01919795227050781,
346
+ 0.01925632095336914,
347
+ 0.01923993682861328,
348
+ 0.019290111541748048,
349
+ 0.019329023361206055,
350
+ 0.019313663482666017,
351
+ 0.0192993278503418,
352
+ 0.019260416030883788,
353
+ 0.019284992218017577,
354
+ 0.01927475166320801,
355
+ 0.019318784713745117,
356
+ 0.01922867202758789,
357
+ 0.01927987289428711,
358
+ 0.01929113578796387,
359
+ 0.01924505615234375,
360
+ 0.019276800155639647,
361
+ 0.019296255111694336,
362
+ 0.01927475166320801,
363
+ 0.01923686408996582,
364
+ 0.01923276710510254,
365
+ 0.019316736221313476,
366
+ 0.019286016464233398,
367
+ 0.01928704071044922,
368
+ 0.01922662353515625,
369
+ 0.01925324821472168,
370
+ 0.019311616897583008,
371
+ 0.01930342483520508,
372
+ 0.019307519912719725,
373
+ 0.019956735610961913,
374
+ 0.0198922233581543,
375
+ 0.019878911972045898,
376
+ 0.019894271850585937,
377
+ 0.01984819221496582,
378
+ 0.01964031982421875,
379
+ 0.019314687728881837,
380
+ 0.019280895233154297,
381
+ 0.019325952529907226,
382
+ 0.019276800155639647,
383
+ 0.01922662353515625,
384
+ 0.01923481559753418,
385
+ 0.019269632339477538,
386
+ 0.019260416030883788,
387
+ 0.019272703170776367,
388
+ 0.019340288162231444,
389
+ 0.019280895233154297,
390
+ 0.02000383949279785,
391
+ 0.019474431991577147,
392
+ 0.01925939178466797,
393
+ 0.01947648048400879,
394
+ 0.019417087554931642,
395
+ 0.019553279876708983,
396
+ 0.019487743377685548,
397
+ 0.01939148712158203,
398
+ 0.019392511367797852,
399
+ 0.01923891258239746,
400
+ 0.019281919479370118,
401
+ 0.01943654441833496,
402
+ 0.01945702362060547,
403
+ 0.01944780731201172,
404
+ 0.019479551315307618,
405
+ 0.019451904296875,
406
+ 0.01943142318725586,
407
+ 0.019412992477416992,
408
+ 0.01942323112487793,
409
+ 0.01941196823120117,
410
+ 0.019500032424926757,
411
+ 0.019544063568115236,
412
+ 0.019482624053955077,
413
+ 0.019372032165527343,
414
+ 0.019404800415039062,
415
+ 0.01942323112487793,
416
+ 0.01943449592590332,
417
+ 0.01939558410644531,
418
+ 0.01939558410644531,
419
+ 0.01938739204406738,
420
+ 0.01944166374206543,
421
+ 0.01942118453979492,
422
+ 0.019404800415039062,
423
+ 0.01945907211303711,
424
+ 0.01946009635925293,
425
+ 0.01941196823120117,
426
+ 0.019388416290283202,
427
+ 0.0194201602935791,
428
+ 0.019417087554931642,
429
+ 0.0194334716796875,
430
+ 0.01944371223449707,
431
+ 0.019356672286987304,
432
+ 0.019896320343017578,
433
+ 0.020363264083862305,
434
+ 0.02002227210998535,
435
+ 0.020114431381225584,
436
+ 0.02012774467468262,
437
+ 0.019975168228149414,
438
+ 0.019961856842041017,
439
+ 0.020015104293823242,
440
+ 0.019993600845336915,
441
+ 0.01998847961425781,
442
+ 0.020117504119873047,
443
+ 0.020348928451538087,
444
+ 0.019578880310058593,
445
+ 0.01941196823120117,
446
+ 0.01943756866455078,
447
+ 0.01942323112487793,
448
+ 0.01944166374206543,
449
+ 0.01944780731201172,
450
+ 0.01941196823120117,
451
+ 0.019373056411743163,
452
+ 0.019389440536499023,
453
+ 0.019364864349365234,
454
+ 0.01937919998168945,
455
+ 0.01943654441833496,
456
+ 0.01939148712158203,
457
+ 0.01943142318725586,
458
+ 0.019409919738769533,
459
+ 0.0194334716796875,
460
+ 0.019376127243041993,
461
+ 0.019372032165527343,
462
+ 0.019386367797851564
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 51.45325378317286
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
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
+ "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
+ "memory": true,
56
+ "latency": 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
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1320.1408,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.4521298828125,
15
+ "mean": 11.4521298828125,
16
+ "stdev": 0.0,
17
+ "p50": 11.4521298828125,
18
+ "p90": 11.4521298828125,
19
+ "p95": 11.4521298828125,
20
+ "p99": 11.4521298828125,
21
+ "values": [
22
+ 11.4521298828125
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1718.910976,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.431872
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.04139990425109863,
42
+ "mean": 0.020699952125549315,
43
+ "stdev": 0.0001786718368530279,
44
+ "p50": 0.020699952125549315,
45
+ "p90": 0.02084288959503174,
46
+ "p95": 0.02086075677871704,
47
+ "p99": 0.020875050525665285,
48
+ "values": [
49
+ 0.02052128028869629,
50
+ 0.020878623962402344
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 338.1650333074981
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1773.498368,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.801344
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 4.936837646484375,
73
+ "mean": 2.4684188232421875,
74
+ "stdev": 0.002885620117187404,
75
+ "p50": 2.4684188232421875,
76
+ "p90": 2.4707273193359374,
77
+ "p95": 2.471015881347656,
78
+ "p99": 2.471246730957031,
79
+ "values": [
80
+ 2.465533203125,
81
+ 2.471304443359375
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 51.44993985793288
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 4.93651968193054,
97
+ "mean": 0.019435116857994265,
98
+ "stdev": 0.0002755988659844469,
99
+ "p50": 0.019390463829040527,
100
+ "p90": 0.019699609184265138,
101
+ "p95": 0.020007782173156737,
102
+ "p99": 0.02035566619873047,
103
+ "values": [
104
+ 0.019180543899536134,
105
+ 0.01922662353515625,
106
+ 0.01925119972229004,
107
+ 0.01926655960083008,
108
+ 0.019357696533203125,
109
+ 0.019300352096557616,
110
+ 0.01927987289428711,
111
+ 0.019311616897583008,
112
+ 0.01929113578796387,
113
+ 0.019316736221313476,
114
+ 0.019316736221313476,
115
+ 0.01926655960083008,
116
+ 0.01925324821472168,
117
+ 0.019286016464233398,
118
+ 0.01928294372558594,
119
+ 0.01925529670715332,
120
+ 0.019092479705810548,
121
+ 0.019110912322998046,
122
+ 0.01909760093688965,
123
+ 0.019118080139160155,
124
+ 0.019327999114990235,
125
+ 0.01939558410644531,
126
+ 0.020543487548828124,
127
+ 0.020023296356201172,
128
+ 0.0198154239654541,
129
+ 0.019494911193847657,
130
+ 0.019284992218017577,
131
+ 0.019289087295532227,
132
+ 0.01945702362060547,
133
+ 0.01925632095336914,
134
+ 0.019183616638183593,
135
+ 0.019123199462890626,
136
+ 0.01908531188964844,
137
+ 0.0192542724609375,
138
+ 0.019329023361206055,
139
+ 0.019300352096557616,
140
+ 0.019276800155639647,
141
+ 0.01926655960083008,
142
+ 0.01928294372558594,
143
+ 0.01926348876953125,
144
+ 0.019301376342773437,
145
+ 0.019294208526611328,
146
+ 0.019301376342773437,
147
+ 0.01929113578796387,
148
+ 0.020196352005004883,
149
+ 0.019306495666503908,
150
+ 0.01928704071044922,
151
+ 0.019269632339477538,
152
+ 0.01925836753845215,
153
+ 0.019294208526611328,
154
+ 0.019293184280395507,
155
+ 0.01925529670715332,
156
+ 0.01927475166320801,
157
+ 0.019284992218017577,
158
+ 0.019269632339477538,
159
+ 0.01926144027709961,
160
+ 0.019283967971801756,
161
+ 0.019388416290283202,
162
+ 0.019385343551635743,
163
+ 0.019505151748657225,
164
+ 0.019393535614013673,
165
+ 0.019382272720336914,
166
+ 0.019418111801147463,
167
+ 0.01940377616882324,
168
+ 0.019398656845092774,
169
+ 0.019471359252929688,
170
+ 0.01946112060546875,
171
+ 0.019404800415039062,
172
+ 0.01943142318725586,
173
+ 0.019422208786010742,
174
+ 0.01942630386352539,
175
+ 0.019401727676391603,
176
+ 0.0194201602935791,
177
+ 0.01948057556152344,
178
+ 0.01944063949584961,
179
+ 0.019655679702758787,
180
+ 0.01965875244140625,
181
+ 0.019404800415039062,
182
+ 0.019422208786010742,
183
+ 0.01941094398498535,
184
+ 0.01943142318725586,
185
+ 0.021850112915039063,
186
+ 0.0202926082611084,
187
+ 0.02005504035949707,
188
+ 0.019372032165527343,
189
+ 0.019401727676391603,
190
+ 0.01941196823120117,
191
+ 0.01939455986022949,
192
+ 0.019346431732177736,
193
+ 0.019359743118286133,
194
+ 0.01942732810974121,
195
+ 0.019422208786010742,
196
+ 0.019358720779418945,
197
+ 0.01942425537109375,
198
+ 0.019368959426879884,
199
+ 0.019356672286987304,
200
+ 0.01940377616882324,
201
+ 0.01944166374206543,
202
+ 0.019406848907470704,
203
+ 0.019717119216918946,
204
+ 0.01943244743347168,
205
+ 0.019417087554931642,
206
+ 0.019408895492553712,
207
+ 0.019389440536499023,
208
+ 0.01943552017211914,
209
+ 0.01942425537109375,
210
+ 0.019389440536499023,
211
+ 0.019393535614013673,
212
+ 0.019451904296875,
213
+ 0.01944780731201172,
214
+ 0.019373056411743163,
215
+ 0.01943552017211914,
216
+ 0.0193832950592041,
217
+ 0.019417087554931642,
218
+ 0.019422208786010742,
219
+ 0.01942118453979492,
220
+ 0.01939967918395996,
221
+ 0.019382272720336914,
222
+ 0.01938739204406738,
223
+ 0.019378175735473634,
224
+ 0.01940275192260742,
225
+ 0.01943244743347168,
226
+ 0.019397632598876953,
227
+ 0.019350528717041016,
228
+ 0.019417087554931642,
229
+ 0.01947648048400879,
230
+ 0.0194334716796875,
231
+ 0.019497983932495116,
232
+ 0.019506175994873046,
233
+ 0.01929523277282715,
234
+ 0.019354623794555666,
235
+ 0.019293184280395507,
236
+ 0.019260416030883788,
237
+ 0.01925734329223633,
238
+ 0.019329023361206055,
239
+ 0.01929113578796387,
240
+ 0.01919795227050781,
241
+ 0.01925632095336914,
242
+ 0.01923993682861328,
243
+ 0.019290111541748048,
244
+ 0.019329023361206055,
245
+ 0.019313663482666017,
246
+ 0.0192993278503418,
247
+ 0.019260416030883788,
248
+ 0.019284992218017577,
249
+ 0.01927475166320801,
250
+ 0.019318784713745117,
251
+ 0.01922867202758789,
252
+ 0.01927987289428711,
253
+ 0.01929113578796387,
254
+ 0.01924505615234375,
255
+ 0.019276800155639647,
256
+ 0.019296255111694336,
257
+ 0.01927475166320801,
258
+ 0.01923686408996582,
259
+ 0.01923276710510254,
260
+ 0.019316736221313476,
261
+ 0.019286016464233398,
262
+ 0.01928704071044922,
263
+ 0.01922662353515625,
264
+ 0.01925324821472168,
265
+ 0.019311616897583008,
266
+ 0.01930342483520508,
267
+ 0.019307519912719725,
268
+ 0.019956735610961913,
269
+ 0.0198922233581543,
270
+ 0.019878911972045898,
271
+ 0.019894271850585937,
272
+ 0.01984819221496582,
273
+ 0.01964031982421875,
274
+ 0.019314687728881837,
275
+ 0.019280895233154297,
276
+ 0.019325952529907226,
277
+ 0.019276800155639647,
278
+ 0.01922662353515625,
279
+ 0.01923481559753418,
280
+ 0.019269632339477538,
281
+ 0.019260416030883788,
282
+ 0.019272703170776367,
283
+ 0.019340288162231444,
284
+ 0.019280895233154297,
285
+ 0.02000383949279785,
286
+ 0.019474431991577147,
287
+ 0.01925939178466797,
288
+ 0.01947648048400879,
289
+ 0.019417087554931642,
290
+ 0.019553279876708983,
291
+ 0.019487743377685548,
292
+ 0.01939148712158203,
293
+ 0.019392511367797852,
294
+ 0.01923891258239746,
295
+ 0.019281919479370118,
296
+ 0.01943654441833496,
297
+ 0.01945702362060547,
298
+ 0.01944780731201172,
299
+ 0.019479551315307618,
300
+ 0.019451904296875,
301
+ 0.01943142318725586,
302
+ 0.019412992477416992,
303
+ 0.01942323112487793,
304
+ 0.01941196823120117,
305
+ 0.019500032424926757,
306
+ 0.019544063568115236,
307
+ 0.019482624053955077,
308
+ 0.019372032165527343,
309
+ 0.019404800415039062,
310
+ 0.01942323112487793,
311
+ 0.01943449592590332,
312
+ 0.01939558410644531,
313
+ 0.01939558410644531,
314
+ 0.01938739204406738,
315
+ 0.01944166374206543,
316
+ 0.01942118453979492,
317
+ 0.019404800415039062,
318
+ 0.01945907211303711,
319
+ 0.01946009635925293,
320
+ 0.01941196823120117,
321
+ 0.019388416290283202,
322
+ 0.0194201602935791,
323
+ 0.019417087554931642,
324
+ 0.0194334716796875,
325
+ 0.01944371223449707,
326
+ 0.019356672286987304,
327
+ 0.019896320343017578,
328
+ 0.020363264083862305,
329
+ 0.02002227210998535,
330
+ 0.020114431381225584,
331
+ 0.02012774467468262,
332
+ 0.019975168228149414,
333
+ 0.019961856842041017,
334
+ 0.020015104293823242,
335
+ 0.019993600845336915,
336
+ 0.01998847961425781,
337
+ 0.020117504119873047,
338
+ 0.020348928451538087,
339
+ 0.019578880310058593,
340
+ 0.01941196823120117,
341
+ 0.01943756866455078,
342
+ 0.01942323112487793,
343
+ 0.01944166374206543,
344
+ 0.01944780731201172,
345
+ 0.01941196823120117,
346
+ 0.019373056411743163,
347
+ 0.019389440536499023,
348
+ 0.019364864349365234,
349
+ 0.01937919998168945,
350
+ 0.01943654441833496,
351
+ 0.01939148712158203,
352
+ 0.01943142318725586,
353
+ 0.019409919738769533,
354
+ 0.0194334716796875,
355
+ 0.019376127243041993,
356
+ 0.019372032165527343,
357
+ 0.019386367797851564
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 51.45325378317286
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020699952125549315,
7
+ "prefill.throughput.value": 338.1650333074981,
8
+ "decode.latency.mean": 2.4684188232421875,
9
+ "decode.throughput.value": 51.44993985793288,
10
+ "per_token.latency.mean": 0.019435116857994265,
11
+ "per_token.throughput.value": 51.45325378317286
12
+ }
13
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
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
+ 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
+ memory: true
51
+ latency: 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
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: eb5b968c5d80271ecb29917dffecc8f4c00247a8
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8
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/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8
88
+ - hydra.run.dir=_benchmark/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [ISOLATED-PROCESS][2024-09-01 02:50:20,439][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-09-01 02:50:22,824][process][ERROR] - + Received traceback from isolated process
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
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
+ "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
+ "memory": true,
56
+ "latency": 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
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
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
+ 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
+ memory: true
51
+ latency: 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
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: eb5b968c5d80271ecb29917dffecc8f4c00247a8
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8
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/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8
88
+ - hydra.run.dir=_benchmark/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_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
+ "memory": true,
57
+ "latency": 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
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1319.837696,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.447373046875,
120
+ "mean": 11.447373046875,
121
+ "stdev": 0.0,
122
+ "p50": 11.447373046875,
123
+ "p90": 11.447373046875,
124
+ "p95": 11.447373046875,
125
+ "p99": 11.447373046875,
126
+ "values": [
127
+ 11.447373046875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1749.938176,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.450816
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.04496422386169434,
147
+ "mean": 0.02248211193084717,
148
+ "stdev": 1.248073577880815e-05,
149
+ "p50": 0.02248211193084717,
150
+ "p90": 0.022492096519470216,
151
+ "p95": 0.022493344593048095,
152
+ "p99": 0.0224943430519104,
153
+ "values": [
154
+ 0.022494592666625977,
155
+ 0.02246963119506836
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 311.35864911318527
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1774.55104,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.820288
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 5.2905996093750005,
178
+ "mean": 2.6452998046875003,
179
+ "stdev": 0.0010036621093749698,
180
+ "p50": 2.6452998046875003,
181
+ "p90": 2.646102734375,
182
+ "p95": 2.6462031005859377,
183
+ "p99": 2.6462833935546874,
184
+ "values": [
185
+ 2.644296142578125,
186
+ 2.646303466796875
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 48.009681086035926
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 5.290343486785889,
202
+ "mean": 0.020828123963723973,
203
+ "stdev": 0.0003520312460539668,
204
+ "p50": 0.020713984489440916,
205
+ "p90": 0.021395660400390627,
206
+ "p95": 0.021631026935577394,
207
+ "p99": 0.022336256046295164,
208
+ "values": [
209
+ 0.020720703125,
210
+ 0.02070521545410156,
211
+ 0.020749311447143554,
212
+ 0.020711423873901368,
213
+ 0.02069708824157715,
214
+ 0.02067967987060547,
215
+ 0.020718591690063477,
216
+ 0.020720640182495118,
217
+ 0.020725759506225586,
218
+ 0.020743167877197266,
219
+ 0.020706304550170897,
220
+ 0.020722688674926756,
221
+ 0.020791296005249024,
222
+ 0.021140480041503908,
223
+ 0.02107084846496582,
224
+ 0.02067558479309082,
225
+ 0.020709375381469726,
226
+ 0.02071347236633301,
227
+ 0.020720640182495118,
228
+ 0.020734975814819336,
229
+ 0.020717567443847656,
230
+ 0.020682752609252928,
231
+ 0.020764671325683593,
232
+ 0.020750335693359375,
233
+ 0.020776960372924806,
234
+ 0.020707328796386718,
235
+ 0.020562944412231447,
236
+ 0.02049228858947754,
237
+ 0.020575231552124023,
238
+ 0.020692991256713866,
239
+ 0.020771839141845702,
240
+ 0.020717567443847656,
241
+ 0.020753408432006838,
242
+ 0.020750335693359375,
243
+ 0.020766719818115235,
244
+ 0.020766719818115235,
245
+ 0.020730880737304686,
246
+ 0.020686847686767578,
247
+ 0.020711423873901368,
248
+ 0.020676607131958007,
249
+ 0.020748287200927733,
250
+ 0.020757503509521484,
251
+ 0.020756479263305663,
252
+ 0.020701183319091796,
253
+ 0.020751359939575196,
254
+ 0.020744192123413087,
255
+ 0.020920320510864256,
256
+ 0.020752384185791017,
257
+ 0.020699136734008788,
258
+ 0.020744192123413087,
259
+ 0.020791296005249024,
260
+ 0.020700159072875975,
261
+ 0.020742143630981445,
262
+ 0.02065407943725586,
263
+ 0.02072166442871094,
264
+ 0.020633600234985353,
265
+ 0.020544511795043945,
266
+ 0.020523008346557618,
267
+ 0.020558847427368163,
268
+ 0.020562944412231447,
269
+ 0.020550655364990233,
270
+ 0.020641792297363282,
271
+ 0.020930559158325195,
272
+ 0.021146623611450196,
273
+ 0.02106470489501953,
274
+ 0.020702207565307617,
275
+ 0.021629951477050782,
276
+ 0.022179840087890625,
277
+ 0.021622783660888673,
278
+ 0.021543935775756837,
279
+ 0.020748287200927733,
280
+ 0.021736448287963867,
281
+ 0.02272153663635254,
282
+ 0.021841920852661133,
283
+ 0.02165760040283203,
284
+ 0.02083635139465332,
285
+ 0.021577728271484374,
286
+ 0.02152448081970215,
287
+ 0.020741119384765624,
288
+ 0.020743167877197266,
289
+ 0.020737024307250978,
290
+ 0.020738048553466795,
291
+ 0.02066227149963379,
292
+ 0.020709375381469726,
293
+ 0.02069708824157715,
294
+ 0.020760576248168947,
295
+ 0.020779008865356444,
296
+ 0.020699136734008788,
297
+ 0.02067251205444336,
298
+ 0.020642816543579103,
299
+ 0.02066534423828125,
300
+ 0.020707328796386718,
301
+ 0.020706304550170897,
302
+ 0.020669439315795898,
303
+ 0.02072166442871094,
304
+ 0.02072166442871094,
305
+ 0.020722688674926756,
306
+ 0.02066431999206543,
307
+ 0.020754432678222655,
308
+ 0.02065715217590332,
309
+ 0.020682752609252928,
310
+ 0.02066534423828125,
311
+ 0.020710399627685547,
312
+ 0.020669439315795898,
313
+ 0.020744192123413087,
314
+ 0.020686847686767578,
315
+ 0.02069606399536133,
316
+ 0.020694015502929687,
317
+ 0.020714496612548827,
318
+ 0.020775936126708985,
319
+ 0.020744224548339844,
320
+ 0.020833248138427733,
321
+ 0.020980735778808594,
322
+ 0.021222400665283202,
323
+ 0.020959232330322267,
324
+ 0.021175296783447265,
325
+ 0.02084147262573242,
326
+ 0.020710399627685547,
327
+ 0.020774911880493165,
328
+ 0.020699136734008788,
329
+ 0.020724735260009765,
330
+ 0.02067251205444336,
331
+ 0.02065920066833496,
332
+ 0.02067967987060547,
333
+ 0.02066022491455078,
334
+ 0.02065407943725586,
335
+ 0.020685888290405272,
336
+ 0.020710399627685547,
337
+ 0.020771839141845702,
338
+ 0.02066431999206543,
339
+ 0.020736000061035157,
340
+ 0.020754432678222655,
341
+ 0.021741567611694337,
342
+ 0.021549055099487305,
343
+ 0.021489664077758788,
344
+ 0.020739072799682616,
345
+ 0.020853759765625,
346
+ 0.02149580764770508,
347
+ 0.021767168045043944,
348
+ 0.021559295654296876,
349
+ 0.021518335342407227,
350
+ 0.020788223266601562,
351
+ 0.020701183319091796,
352
+ 0.020674560546875,
353
+ 0.02062950325012207,
354
+ 0.02067967987060547,
355
+ 0.020612096786499022,
356
+ 0.02063052749633789,
357
+ 0.0206561279296875,
358
+ 0.02066227149963379,
359
+ 0.020751359939575196,
360
+ 0.0206561279296875,
361
+ 0.02061311912536621,
362
+ 0.020669439315795898,
363
+ 0.020676607131958007,
364
+ 0.020760576248168947,
365
+ 0.020710399627685547,
366
+ 0.020750335693359375,
367
+ 0.02068889617919922,
368
+ 0.0206561279296875,
369
+ 0.020832256317138673,
370
+ 0.02147737693786621,
371
+ 0.021020671844482423,
372
+ 0.020685823440551757,
373
+ 0.020618240356445314,
374
+ 0.02069606399536133,
375
+ 0.02067558479309082,
376
+ 0.02069606399536133,
377
+ 0.020744192123413087,
378
+ 0.020676607131958007,
379
+ 0.02067865562438965,
380
+ 0.020717567443847656,
381
+ 0.020677631378173827,
382
+ 0.02065203285217285,
383
+ 0.020684799194335936,
384
+ 0.02064588737487793,
385
+ 0.020641792297363282,
386
+ 0.02072985649108887,
387
+ 0.020550655364990233,
388
+ 0.02048307228088379,
389
+ 0.020495359420776366,
390
+ 0.020521984100341797,
391
+ 0.02068070411682129,
392
+ 0.020644863128662108,
393
+ 0.020508672714233397,
394
+ 0.02051584053039551,
395
+ 0.020746240615844725,
396
+ 0.02067046356201172,
397
+ 0.020674560546875,
398
+ 0.020730880737304686,
399
+ 0.02066431999206543,
400
+ 0.020726783752441406,
401
+ 0.020710399627685547,
402
+ 0.02066329574584961,
403
+ 0.02066329574584961,
404
+ 0.02064793586730957,
405
+ 0.02069811248779297,
406
+ 0.020746240615844725,
407
+ 0.020940799713134766,
408
+ 0.02069708824157715,
409
+ 0.020668447494506834,
410
+ 0.02067555236816406,
411
+ 0.02071347236633301,
412
+ 0.020743167877197266,
413
+ 0.02068377685546875,
414
+ 0.020700159072875975,
415
+ 0.020700159072875975,
416
+ 0.020714496612548827,
417
+ 0.020749311447143554,
418
+ 0.020787200927734374,
419
+ 0.022708223342895507,
420
+ 0.02251263999938965,
421
+ 0.02191360092163086,
422
+ 0.02166169548034668,
423
+ 0.020694015502929687,
424
+ 0.020741119384765624,
425
+ 0.020711423873901368,
426
+ 0.020737024307250978,
427
+ 0.02068377685546875,
428
+ 0.020677631378173827,
429
+ 0.020710399627685547,
430
+ 0.020767744064331056,
431
+ 0.02071347236633301,
432
+ 0.020723712921142577,
433
+ 0.02070528030395508,
434
+ 0.02067558479309082,
435
+ 0.020710399627685547,
436
+ 0.02068377685546875,
437
+ 0.020719615936279297,
438
+ 0.020736000061035157,
439
+ 0.02068377685546875,
440
+ 0.020730880737304686,
441
+ 0.020725759506225586,
442
+ 0.021384191513061524,
443
+ 0.021841920852661133,
444
+ 0.02163302421569824,
445
+ 0.021531648635864258,
446
+ 0.02071347236633301,
447
+ 0.02072985649108887,
448
+ 0.020707328796386718,
449
+ 0.020727807998657227,
450
+ 0.020750335693359375,
451
+ 0.020676607131958007,
452
+ 0.020716543197631835,
453
+ 0.02069606399536133,
454
+ 0.020725759506225586,
455
+ 0.020742143630981445,
456
+ 0.020694015502929687,
457
+ 0.020682752609252928,
458
+ 0.02069196891784668,
459
+ 0.020711423873901368,
460
+ 0.020734975814819336,
461
+ 0.020970495223999023,
462
+ 0.021400575637817384
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 48.01200538952451
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
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
+ "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
+ "memory": true,
56
+ "latency": 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
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1319.837696,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.447373046875,
15
+ "mean": 11.447373046875,
16
+ "stdev": 0.0,
17
+ "p50": 11.447373046875,
18
+ "p90": 11.447373046875,
19
+ "p95": 11.447373046875,
20
+ "p99": 11.447373046875,
21
+ "values": [
22
+ 11.447373046875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1749.938176,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.450816
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.04496422386169434,
42
+ "mean": 0.02248211193084717,
43
+ "stdev": 1.248073577880815e-05,
44
+ "p50": 0.02248211193084717,
45
+ "p90": 0.022492096519470216,
46
+ "p95": 0.022493344593048095,
47
+ "p99": 0.0224943430519104,
48
+ "values": [
49
+ 0.022494592666625977,
50
+ 0.02246963119506836
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 311.35864911318527
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1774.55104,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.820288
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 5.2905996093750005,
73
+ "mean": 2.6452998046875003,
74
+ "stdev": 0.0010036621093749698,
75
+ "p50": 2.6452998046875003,
76
+ "p90": 2.646102734375,
77
+ "p95": 2.6462031005859377,
78
+ "p99": 2.6462833935546874,
79
+ "values": [
80
+ 2.644296142578125,
81
+ 2.646303466796875
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 48.009681086035926
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 5.290343486785889,
97
+ "mean": 0.020828123963723973,
98
+ "stdev": 0.0003520312460539668,
99
+ "p50": 0.020713984489440916,
100
+ "p90": 0.021395660400390627,
101
+ "p95": 0.021631026935577394,
102
+ "p99": 0.022336256046295164,
103
+ "values": [
104
+ 0.020720703125,
105
+ 0.02070521545410156,
106
+ 0.020749311447143554,
107
+ 0.020711423873901368,
108
+ 0.02069708824157715,
109
+ 0.02067967987060547,
110
+ 0.020718591690063477,
111
+ 0.020720640182495118,
112
+ 0.020725759506225586,
113
+ 0.020743167877197266,
114
+ 0.020706304550170897,
115
+ 0.020722688674926756,
116
+ 0.020791296005249024,
117
+ 0.021140480041503908,
118
+ 0.02107084846496582,
119
+ 0.02067558479309082,
120
+ 0.020709375381469726,
121
+ 0.02071347236633301,
122
+ 0.020720640182495118,
123
+ 0.020734975814819336,
124
+ 0.020717567443847656,
125
+ 0.020682752609252928,
126
+ 0.020764671325683593,
127
+ 0.020750335693359375,
128
+ 0.020776960372924806,
129
+ 0.020707328796386718,
130
+ 0.020562944412231447,
131
+ 0.02049228858947754,
132
+ 0.020575231552124023,
133
+ 0.020692991256713866,
134
+ 0.020771839141845702,
135
+ 0.020717567443847656,
136
+ 0.020753408432006838,
137
+ 0.020750335693359375,
138
+ 0.020766719818115235,
139
+ 0.020766719818115235,
140
+ 0.020730880737304686,
141
+ 0.020686847686767578,
142
+ 0.020711423873901368,
143
+ 0.020676607131958007,
144
+ 0.020748287200927733,
145
+ 0.020757503509521484,
146
+ 0.020756479263305663,
147
+ 0.020701183319091796,
148
+ 0.020751359939575196,
149
+ 0.020744192123413087,
150
+ 0.020920320510864256,
151
+ 0.020752384185791017,
152
+ 0.020699136734008788,
153
+ 0.020744192123413087,
154
+ 0.020791296005249024,
155
+ 0.020700159072875975,
156
+ 0.020742143630981445,
157
+ 0.02065407943725586,
158
+ 0.02072166442871094,
159
+ 0.020633600234985353,
160
+ 0.020544511795043945,
161
+ 0.020523008346557618,
162
+ 0.020558847427368163,
163
+ 0.020562944412231447,
164
+ 0.020550655364990233,
165
+ 0.020641792297363282,
166
+ 0.020930559158325195,
167
+ 0.021146623611450196,
168
+ 0.02106470489501953,
169
+ 0.020702207565307617,
170
+ 0.021629951477050782,
171
+ 0.022179840087890625,
172
+ 0.021622783660888673,
173
+ 0.021543935775756837,
174
+ 0.020748287200927733,
175
+ 0.021736448287963867,
176
+ 0.02272153663635254,
177
+ 0.021841920852661133,
178
+ 0.02165760040283203,
179
+ 0.02083635139465332,
180
+ 0.021577728271484374,
181
+ 0.02152448081970215,
182
+ 0.020741119384765624,
183
+ 0.020743167877197266,
184
+ 0.020737024307250978,
185
+ 0.020738048553466795,
186
+ 0.02066227149963379,
187
+ 0.020709375381469726,
188
+ 0.02069708824157715,
189
+ 0.020760576248168947,
190
+ 0.020779008865356444,
191
+ 0.020699136734008788,
192
+ 0.02067251205444336,
193
+ 0.020642816543579103,
194
+ 0.02066534423828125,
195
+ 0.020707328796386718,
196
+ 0.020706304550170897,
197
+ 0.020669439315795898,
198
+ 0.02072166442871094,
199
+ 0.02072166442871094,
200
+ 0.020722688674926756,
201
+ 0.02066431999206543,
202
+ 0.020754432678222655,
203
+ 0.02065715217590332,
204
+ 0.020682752609252928,
205
+ 0.02066534423828125,
206
+ 0.020710399627685547,
207
+ 0.020669439315795898,
208
+ 0.020744192123413087,
209
+ 0.020686847686767578,
210
+ 0.02069606399536133,
211
+ 0.020694015502929687,
212
+ 0.020714496612548827,
213
+ 0.020775936126708985,
214
+ 0.020744224548339844,
215
+ 0.020833248138427733,
216
+ 0.020980735778808594,
217
+ 0.021222400665283202,
218
+ 0.020959232330322267,
219
+ 0.021175296783447265,
220
+ 0.02084147262573242,
221
+ 0.020710399627685547,
222
+ 0.020774911880493165,
223
+ 0.020699136734008788,
224
+ 0.020724735260009765,
225
+ 0.02067251205444336,
226
+ 0.02065920066833496,
227
+ 0.02067967987060547,
228
+ 0.02066022491455078,
229
+ 0.02065407943725586,
230
+ 0.020685888290405272,
231
+ 0.020710399627685547,
232
+ 0.020771839141845702,
233
+ 0.02066431999206543,
234
+ 0.020736000061035157,
235
+ 0.020754432678222655,
236
+ 0.021741567611694337,
237
+ 0.021549055099487305,
238
+ 0.021489664077758788,
239
+ 0.020739072799682616,
240
+ 0.020853759765625,
241
+ 0.02149580764770508,
242
+ 0.021767168045043944,
243
+ 0.021559295654296876,
244
+ 0.021518335342407227,
245
+ 0.020788223266601562,
246
+ 0.020701183319091796,
247
+ 0.020674560546875,
248
+ 0.02062950325012207,
249
+ 0.02067967987060547,
250
+ 0.020612096786499022,
251
+ 0.02063052749633789,
252
+ 0.0206561279296875,
253
+ 0.02066227149963379,
254
+ 0.020751359939575196,
255
+ 0.0206561279296875,
256
+ 0.02061311912536621,
257
+ 0.020669439315795898,
258
+ 0.020676607131958007,
259
+ 0.020760576248168947,
260
+ 0.020710399627685547,
261
+ 0.020750335693359375,
262
+ 0.02068889617919922,
263
+ 0.0206561279296875,
264
+ 0.020832256317138673,
265
+ 0.02147737693786621,
266
+ 0.021020671844482423,
267
+ 0.020685823440551757,
268
+ 0.020618240356445314,
269
+ 0.02069606399536133,
270
+ 0.02067558479309082,
271
+ 0.02069606399536133,
272
+ 0.020744192123413087,
273
+ 0.020676607131958007,
274
+ 0.02067865562438965,
275
+ 0.020717567443847656,
276
+ 0.020677631378173827,
277
+ 0.02065203285217285,
278
+ 0.020684799194335936,
279
+ 0.02064588737487793,
280
+ 0.020641792297363282,
281
+ 0.02072985649108887,
282
+ 0.020550655364990233,
283
+ 0.02048307228088379,
284
+ 0.020495359420776366,
285
+ 0.020521984100341797,
286
+ 0.02068070411682129,
287
+ 0.020644863128662108,
288
+ 0.020508672714233397,
289
+ 0.02051584053039551,
290
+ 0.020746240615844725,
291
+ 0.02067046356201172,
292
+ 0.020674560546875,
293
+ 0.020730880737304686,
294
+ 0.02066431999206543,
295
+ 0.020726783752441406,
296
+ 0.020710399627685547,
297
+ 0.02066329574584961,
298
+ 0.02066329574584961,
299
+ 0.02064793586730957,
300
+ 0.02069811248779297,
301
+ 0.020746240615844725,
302
+ 0.020940799713134766,
303
+ 0.02069708824157715,
304
+ 0.020668447494506834,
305
+ 0.02067555236816406,
306
+ 0.02071347236633301,
307
+ 0.020743167877197266,
308
+ 0.02068377685546875,
309
+ 0.020700159072875975,
310
+ 0.020700159072875975,
311
+ 0.020714496612548827,
312
+ 0.020749311447143554,
313
+ 0.020787200927734374,
314
+ 0.022708223342895507,
315
+ 0.02251263999938965,
316
+ 0.02191360092163086,
317
+ 0.02166169548034668,
318
+ 0.020694015502929687,
319
+ 0.020741119384765624,
320
+ 0.020711423873901368,
321
+ 0.020737024307250978,
322
+ 0.02068377685546875,
323
+ 0.020677631378173827,
324
+ 0.020710399627685547,
325
+ 0.020767744064331056,
326
+ 0.02071347236633301,
327
+ 0.020723712921142577,
328
+ 0.02070528030395508,
329
+ 0.02067558479309082,
330
+ 0.020710399627685547,
331
+ 0.02068377685546875,
332
+ 0.020719615936279297,
333
+ 0.020736000061035157,
334
+ 0.02068377685546875,
335
+ 0.020730880737304686,
336
+ 0.020725759506225586,
337
+ 0.021384191513061524,
338
+ 0.021841920852661133,
339
+ 0.02163302421569824,
340
+ 0.021531648635864258,
341
+ 0.02071347236633301,
342
+ 0.02072985649108887,
343
+ 0.020707328796386718,
344
+ 0.020727807998657227,
345
+ 0.020750335693359375,
346
+ 0.020676607131958007,
347
+ 0.020716543197631835,
348
+ 0.02069606399536133,
349
+ 0.020725759506225586,
350
+ 0.020742143630981445,
351
+ 0.020694015502929687,
352
+ 0.020682752609252928,
353
+ 0.02069196891784668,
354
+ 0.020711423873901368,
355
+ 0.020734975814819336,
356
+ 0.020970495223999023,
357
+ 0.021400575637817384
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 48.01200538952451
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02248211193084717,
7
+ "prefill.throughput.value": 311.35864911318527,
8
+ "decode.latency.mean": 2.6452998046875003,
9
+ "decode.throughput.value": 48.009681086035926,
10
+ "per_token.latency.mean": 0.020828123963723973,
11
+ "per_token.throughput.value": 48.01200538952451
12
+ }
13
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
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
+ 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
+ memory: true
51
+ latency: 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
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: eb5b968c5d80271ecb29917dffecc8f4c00247a8
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8
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/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8
88
+ - hydra.run.dir=_benchmark/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${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/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_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
+ "memory": true,
57
+ "latency": 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
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1338.4704,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 12.5200380859375,
120
+ "mean": 12.5200380859375,
121
+ "stdev": 0.0,
122
+ "p50": 12.5200380859375,
123
+ "p90": 12.5200380859375,
124
+ "p95": 12.5200380859375,
125
+ "p99": 12.5200380859375,
126
+ "values": [
127
+ 12.5200380859375
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1854.21824,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6138.363904,
141
+ "max_allocated": 5278.596608
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.02832083225250244,
147
+ "mean": 0.01416041612625122,
148
+ "stdev": 0.0001365122795104973,
149
+ "p50": 0.01416041612625122,
150
+ "p90": 0.014269625949859619,
151
+ "p95": 0.014283277177810668,
152
+ "p99": 0.014294198160171507,
153
+ "values": [
154
+ 0.014023903846740723,
155
+ 0.014296928405761718
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 494.3357552200096
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2023.97696,
169
+ "max_global_vram": 6071.779328,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 5381.292032,
172
+ "max_allocated": 5282.647552
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 3.1289705810546877,
178
+ "mean": 1.5644852905273439,
179
+ "stdev": 0.00026617431640618694,
180
+ "p50": 1.5644852905273439,
181
+ "p90": 1.5646982299804688,
182
+ "p95": 1.5647248474121094,
183
+ "p99": 1.5647461413574217,
184
+ "values": [
185
+ 1.56475146484375,
186
+ 1.5642191162109376
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.17685782599585
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 3.128690649986268,
202
+ "mean": 0.012317679724355383,
203
+ "stdev": 3.933431897749229e-05,
204
+ "p50": 0.012309503555297852,
205
+ "p90": 0.012340224266052247,
206
+ "p95": 0.012355276870727539,
207
+ "p99": 0.012428922882080078,
208
+ "values": [
209
+ 0.0123504638671875,
210
+ 0.012314623832702636,
211
+ 0.012299263954162597,
212
+ 0.012310527801513671,
213
+ 0.012322815895080566,
214
+ 0.012298239707946777,
215
+ 0.012344320297241211,
216
+ 0.012338175773620605,
217
+ 0.012332032203674317,
218
+ 0.012300288200378418,
219
+ 0.012297216415405274,
220
+ 0.01229312038421631,
221
+ 0.012299263954162597,
222
+ 0.012308480262756348,
223
+ 0.012322815895080566,
224
+ 0.012322815895080566,
225
+ 0.012321791648864745,
226
+ 0.012307456016540527,
227
+ 0.012298239707946777,
228
+ 0.012318719863891601,
229
+ 0.01234124755859375,
230
+ 0.012305407524108887,
231
+ 0.012317695617675782,
232
+ 0.012307456016540527,
233
+ 0.012295167922973632,
234
+ 0.012309503555297852,
235
+ 0.012292096138000488,
236
+ 0.012322815895080566,
237
+ 0.012306431770324706,
238
+ 0.012309503555297852,
239
+ 0.012299263954162597,
240
+ 0.012295167922973632,
241
+ 0.012332032203674317,
242
+ 0.012303359985351562,
243
+ 0.012302335739135742,
244
+ 0.012321791648864745,
245
+ 0.012319744110107422,
246
+ 0.012346367835998535,
247
+ 0.01234124755859375,
248
+ 0.012344320297241211,
249
+ 0.012361727714538574,
250
+ 0.012322815895080566,
251
+ 0.012292096138000488,
252
+ 0.012298239707946777,
253
+ 0.012313695907592773,
254
+ 0.01233193588256836,
255
+ 0.012299263954162597,
256
+ 0.012322815895080566,
257
+ 0.012301312446594239,
258
+ 0.012302335739135742,
259
+ 0.012321791648864745,
260
+ 0.012304384231567383,
261
+ 0.012303359985351562,
262
+ 0.012302335739135742,
263
+ 0.012298239707946777,
264
+ 0.012406784057617188,
265
+ 0.012547072410583495,
266
+ 0.012800000190734863,
267
+ 0.012356608390808106,
268
+ 0.012315648078918457,
269
+ 0.012309503555297852,
270
+ 0.012333056449890138,
271
+ 0.012310527801513671,
272
+ 0.012322815895080566,
273
+ 0.012310527801513671,
274
+ 0.012307456016540527,
275
+ 0.012298239707946777,
276
+ 0.012322815895080566,
277
+ 0.012323840141296387,
278
+ 0.012311552047729492,
279
+ 0.012304384231567383,
280
+ 0.012301312446594239,
281
+ 0.012307456016540527,
282
+ 0.012317695617675782,
283
+ 0.012317695617675782,
284
+ 0.012295167922973632,
285
+ 0.012321791648864745,
286
+ 0.012302335739135742,
287
+ 0.012296192169189453,
288
+ 0.012301312446594239,
289
+ 0.012321791648864745,
290
+ 0.012323840141296387,
291
+ 0.012301312446594239,
292
+ 0.012288000106811523,
293
+ 0.012323840141296387,
294
+ 0.012308480262756348,
295
+ 0.012307456016540527,
296
+ 0.012312576293945313,
297
+ 0.012317695617675782,
298
+ 0.012318719863891601,
299
+ 0.012321791648864745,
300
+ 0.012291071891784668,
301
+ 0.012297216415405274,
302
+ 0.012327936172485352,
303
+ 0.012316672325134278,
304
+ 0.012295167922973632,
305
+ 0.012307456016540527,
306
+ 0.012337151527404786,
307
+ 0.012306431770324706,
308
+ 0.012291135787963868,
309
+ 0.012299200057983399,
310
+ 0.012301312446594239,
311
+ 0.012305407524108887,
312
+ 0.012307456016540527,
313
+ 0.012300288200378418,
314
+ 0.012299263954162597,
315
+ 0.012332032203674317,
316
+ 0.012313599586486817,
317
+ 0.012302335739135742,
318
+ 0.012295167922973632,
319
+ 0.012301312446594239,
320
+ 0.012297216415405274,
321
+ 0.012301312446594239,
322
+ 0.012300288200378418,
323
+ 0.012302335739135742,
324
+ 0.012303359985351562,
325
+ 0.012354559898376465,
326
+ 0.012317695617675782,
327
+ 0.01235148811340332,
328
+ 0.012396544456481933,
329
+ 0.012321791648864745,
330
+ 0.012323840141296387,
331
+ 0.012327936172485352,
332
+ 0.012307456016540527,
333
+ 0.012298239707946777,
334
+ 0.012300288200378418,
335
+ 0.012303359985351562,
336
+ 0.012358624458312989,
337
+ 0.012315648078918457,
338
+ 0.012321791648864745,
339
+ 0.012308480262756348,
340
+ 0.012317695617675782,
341
+ 0.012321791648864745,
342
+ 0.012304384231567383,
343
+ 0.012311552047729492,
344
+ 0.012305407524108887,
345
+ 0.012320768356323243,
346
+ 0.012311552047729492,
347
+ 0.012290047645568849,
348
+ 0.012288000106811523,
349
+ 0.01232588768005371,
350
+ 0.012318719863891601,
351
+ 0.012302335739135742,
352
+ 0.012308480262756348,
353
+ 0.012323840141296387,
354
+ 0.012291071891784668,
355
+ 0.012299263954162597,
356
+ 0.012381183624267577,
357
+ 0.012310527801513671,
358
+ 0.012323840141296387,
359
+ 0.012304384231567383,
360
+ 0.012300288200378418,
361
+ 0.012317695617675782,
362
+ 0.012328960418701173,
363
+ 0.012307456016540527,
364
+ 0.012321791648864745,
365
+ 0.012324864387512208,
366
+ 0.012320768356323243,
367
+ 0.012354559898376465,
368
+ 0.012323840141296387,
369
+ 0.012311552047729492,
370
+ 0.012327936172485352,
371
+ 0.012309503555297852,
372
+ 0.012318719863891601,
373
+ 0.012299263954162597,
374
+ 0.012316672325134278,
375
+ 0.012315648078918457,
376
+ 0.012314623832702636,
377
+ 0.012302335739135742,
378
+ 0.012301312446594239,
379
+ 0.012291071891784668,
380
+ 0.012299263954162597,
381
+ 0.012329983711242675,
382
+ 0.012313599586486817,
383
+ 0.012328960418701173,
384
+ 0.01234329605102539,
385
+ 0.012309503555297852,
386
+ 0.012318719863891601,
387
+ 0.012318719863891601,
388
+ 0.012305407524108887,
389
+ 0.012305407524108887,
390
+ 0.012300288200378418,
391
+ 0.012300288200378418,
392
+ 0.012297216415405274,
393
+ 0.012309503555297852,
394
+ 0.012308480262756348,
395
+ 0.012320768356323243,
396
+ 0.012321791648864745,
397
+ 0.012306431770324706,
398
+ 0.012299263954162597,
399
+ 0.012362751960754394,
400
+ 0.012297216415405274,
401
+ 0.012306431770324706,
402
+ 0.012302335739135742,
403
+ 0.012305407524108887,
404
+ 0.012295167922973632,
405
+ 0.012322815895080566,
406
+ 0.012310527801513671,
407
+ 0.012315648078918457,
408
+ 0.012453887939453125,
409
+ 0.0123504638671875,
410
+ 0.012306431770324706,
411
+ 0.012320768356323243,
412
+ 0.012294143676757812,
413
+ 0.012301312446594239,
414
+ 0.01233510398864746,
415
+ 0.01233407974243164,
416
+ 0.012308480262756348,
417
+ 0.012329983711242675,
418
+ 0.012340224266052247,
419
+ 0.012315648078918457,
420
+ 0.012326911926269531,
421
+ 0.012329983711242675,
422
+ 0.012299263954162597,
423
+ 0.012328960418701173,
424
+ 0.012305407524108887,
425
+ 0.012304384231567383,
426
+ 0.012296192169189453,
427
+ 0.012302335739135742,
428
+ 0.012312576293945313,
429
+ 0.012299263954162597,
430
+ 0.012316672325134278,
431
+ 0.012301312446594239,
432
+ 0.012303359985351562,
433
+ 0.012312576293945313,
434
+ 0.01234329605102539,
435
+ 0.012299263954162597,
436
+ 0.012311552047729492,
437
+ 0.012302335739135742,
438
+ 0.012309503555297852,
439
+ 0.012299263954162597,
440
+ 0.012303359985351562,
441
+ 0.012316672325134278,
442
+ 0.012311552047729492,
443
+ 0.012312576293945313,
444
+ 0.012298239707946777,
445
+ 0.012294176101684571,
446
+ 0.012373984336853027,
447
+ 0.01237299156188965,
448
+ 0.012311552047729492,
449
+ 0.012300288200378418,
450
+ 0.012294143676757812,
451
+ 0.012301312446594239,
452
+ 0.012298239707946777,
453
+ 0.01232588768005371,
454
+ 0.012305407524108887,
455
+ 0.012308480262756348,
456
+ 0.012299263954162597,
457
+ 0.012309503555297852,
458
+ 0.012307456016540527,
459
+ 0.012340224266052247,
460
+ 0.012369919776916503,
461
+ 0.012297216415405274,
462
+ 0.012301312446594239
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.18412090409606
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
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
+ "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
+ "memory": true,
56
+ "latency": 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
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1338.4704,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 12.5200380859375,
15
+ "mean": 12.5200380859375,
16
+ "stdev": 0.0,
17
+ "p50": 12.5200380859375,
18
+ "p90": 12.5200380859375,
19
+ "p95": 12.5200380859375,
20
+ "p99": 12.5200380859375,
21
+ "values": [
22
+ 12.5200380859375
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1854.21824,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6138.363904,
36
+ "max_allocated": 5278.596608
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.02832083225250244,
42
+ "mean": 0.01416041612625122,
43
+ "stdev": 0.0001365122795104973,
44
+ "p50": 0.01416041612625122,
45
+ "p90": 0.014269625949859619,
46
+ "p95": 0.014283277177810668,
47
+ "p99": 0.014294198160171507,
48
+ "values": [
49
+ 0.014023903846740723,
50
+ 0.014296928405761718
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 494.3357552200096
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2023.97696,
64
+ "max_global_vram": 6071.779328,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 5381.292032,
67
+ "max_allocated": 5282.647552
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 3.1289705810546877,
73
+ "mean": 1.5644852905273439,
74
+ "stdev": 0.00026617431640618694,
75
+ "p50": 1.5644852905273439,
76
+ "p90": 1.5646982299804688,
77
+ "p95": 1.5647248474121094,
78
+ "p99": 1.5647461413574217,
79
+ "values": [
80
+ 1.56475146484375,
81
+ 1.5642191162109376
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.17685782599585
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 3.128690649986268,
97
+ "mean": 0.012317679724355383,
98
+ "stdev": 3.933431897749229e-05,
99
+ "p50": 0.012309503555297852,
100
+ "p90": 0.012340224266052247,
101
+ "p95": 0.012355276870727539,
102
+ "p99": 0.012428922882080078,
103
+ "values": [
104
+ 0.0123504638671875,
105
+ 0.012314623832702636,
106
+ 0.012299263954162597,
107
+ 0.012310527801513671,
108
+ 0.012322815895080566,
109
+ 0.012298239707946777,
110
+ 0.012344320297241211,
111
+ 0.012338175773620605,
112
+ 0.012332032203674317,
113
+ 0.012300288200378418,
114
+ 0.012297216415405274,
115
+ 0.01229312038421631,
116
+ 0.012299263954162597,
117
+ 0.012308480262756348,
118
+ 0.012322815895080566,
119
+ 0.012322815895080566,
120
+ 0.012321791648864745,
121
+ 0.012307456016540527,
122
+ 0.012298239707946777,
123
+ 0.012318719863891601,
124
+ 0.01234124755859375,
125
+ 0.012305407524108887,
126
+ 0.012317695617675782,
127
+ 0.012307456016540527,
128
+ 0.012295167922973632,
129
+ 0.012309503555297852,
130
+ 0.012292096138000488,
131
+ 0.012322815895080566,
132
+ 0.012306431770324706,
133
+ 0.012309503555297852,
134
+ 0.012299263954162597,
135
+ 0.012295167922973632,
136
+ 0.012332032203674317,
137
+ 0.012303359985351562,
138
+ 0.012302335739135742,
139
+ 0.012321791648864745,
140
+ 0.012319744110107422,
141
+ 0.012346367835998535,
142
+ 0.01234124755859375,
143
+ 0.012344320297241211,
144
+ 0.012361727714538574,
145
+ 0.012322815895080566,
146
+ 0.012292096138000488,
147
+ 0.012298239707946777,
148
+ 0.012313695907592773,
149
+ 0.01233193588256836,
150
+ 0.012299263954162597,
151
+ 0.012322815895080566,
152
+ 0.012301312446594239,
153
+ 0.012302335739135742,
154
+ 0.012321791648864745,
155
+ 0.012304384231567383,
156
+ 0.012303359985351562,
157
+ 0.012302335739135742,
158
+ 0.012298239707946777,
159
+ 0.012406784057617188,
160
+ 0.012547072410583495,
161
+ 0.012800000190734863,
162
+ 0.012356608390808106,
163
+ 0.012315648078918457,
164
+ 0.012309503555297852,
165
+ 0.012333056449890138,
166
+ 0.012310527801513671,
167
+ 0.012322815895080566,
168
+ 0.012310527801513671,
169
+ 0.012307456016540527,
170
+ 0.012298239707946777,
171
+ 0.012322815895080566,
172
+ 0.012323840141296387,
173
+ 0.012311552047729492,
174
+ 0.012304384231567383,
175
+ 0.012301312446594239,
176
+ 0.012307456016540527,
177
+ 0.012317695617675782,
178
+ 0.012317695617675782,
179
+ 0.012295167922973632,
180
+ 0.012321791648864745,
181
+ 0.012302335739135742,
182
+ 0.012296192169189453,
183
+ 0.012301312446594239,
184
+ 0.012321791648864745,
185
+ 0.012323840141296387,
186
+ 0.012301312446594239,
187
+ 0.012288000106811523,
188
+ 0.012323840141296387,
189
+ 0.012308480262756348,
190
+ 0.012307456016540527,
191
+ 0.012312576293945313,
192
+ 0.012317695617675782,
193
+ 0.012318719863891601,
194
+ 0.012321791648864745,
195
+ 0.012291071891784668,
196
+ 0.012297216415405274,
197
+ 0.012327936172485352,
198
+ 0.012316672325134278,
199
+ 0.012295167922973632,
200
+ 0.012307456016540527,
201
+ 0.012337151527404786,
202
+ 0.012306431770324706,
203
+ 0.012291135787963868,
204
+ 0.012299200057983399,
205
+ 0.012301312446594239,
206
+ 0.012305407524108887,
207
+ 0.012307456016540527,
208
+ 0.012300288200378418,
209
+ 0.012299263954162597,
210
+ 0.012332032203674317,
211
+ 0.012313599586486817,
212
+ 0.012302335739135742,
213
+ 0.012295167922973632,
214
+ 0.012301312446594239,
215
+ 0.012297216415405274,
216
+ 0.012301312446594239,
217
+ 0.012300288200378418,
218
+ 0.012302335739135742,
219
+ 0.012303359985351562,
220
+ 0.012354559898376465,
221
+ 0.012317695617675782,
222
+ 0.01235148811340332,
223
+ 0.012396544456481933,
224
+ 0.012321791648864745,
225
+ 0.012323840141296387,
226
+ 0.012327936172485352,
227
+ 0.012307456016540527,
228
+ 0.012298239707946777,
229
+ 0.012300288200378418,
230
+ 0.012303359985351562,
231
+ 0.012358624458312989,
232
+ 0.012315648078918457,
233
+ 0.012321791648864745,
234
+ 0.012308480262756348,
235
+ 0.012317695617675782,
236
+ 0.012321791648864745,
237
+ 0.012304384231567383,
238
+ 0.012311552047729492,
239
+ 0.012305407524108887,
240
+ 0.012320768356323243,
241
+ 0.012311552047729492,
242
+ 0.012290047645568849,
243
+ 0.012288000106811523,
244
+ 0.01232588768005371,
245
+ 0.012318719863891601,
246
+ 0.012302335739135742,
247
+ 0.012308480262756348,
248
+ 0.012323840141296387,
249
+ 0.012291071891784668,
250
+ 0.012299263954162597,
251
+ 0.012381183624267577,
252
+ 0.012310527801513671,
253
+ 0.012323840141296387,
254
+ 0.012304384231567383,
255
+ 0.012300288200378418,
256
+ 0.012317695617675782,
257
+ 0.012328960418701173,
258
+ 0.012307456016540527,
259
+ 0.012321791648864745,
260
+ 0.012324864387512208,
261
+ 0.012320768356323243,
262
+ 0.012354559898376465,
263
+ 0.012323840141296387,
264
+ 0.012311552047729492,
265
+ 0.012327936172485352,
266
+ 0.012309503555297852,
267
+ 0.012318719863891601,
268
+ 0.012299263954162597,
269
+ 0.012316672325134278,
270
+ 0.012315648078918457,
271
+ 0.012314623832702636,
272
+ 0.012302335739135742,
273
+ 0.012301312446594239,
274
+ 0.012291071891784668,
275
+ 0.012299263954162597,
276
+ 0.012329983711242675,
277
+ 0.012313599586486817,
278
+ 0.012328960418701173,
279
+ 0.01234329605102539,
280
+ 0.012309503555297852,
281
+ 0.012318719863891601,
282
+ 0.012318719863891601,
283
+ 0.012305407524108887,
284
+ 0.012305407524108887,
285
+ 0.012300288200378418,
286
+ 0.012300288200378418,
287
+ 0.012297216415405274,
288
+ 0.012309503555297852,
289
+ 0.012308480262756348,
290
+ 0.012320768356323243,
291
+ 0.012321791648864745,
292
+ 0.012306431770324706,
293
+ 0.012299263954162597,
294
+ 0.012362751960754394,
295
+ 0.012297216415405274,
296
+ 0.012306431770324706,
297
+ 0.012302335739135742,
298
+ 0.012305407524108887,
299
+ 0.012295167922973632,
300
+ 0.012322815895080566,
301
+ 0.012310527801513671,
302
+ 0.012315648078918457,
303
+ 0.012453887939453125,
304
+ 0.0123504638671875,
305
+ 0.012306431770324706,
306
+ 0.012320768356323243,
307
+ 0.012294143676757812,
308
+ 0.012301312446594239,
309
+ 0.01233510398864746,
310
+ 0.01233407974243164,
311
+ 0.012308480262756348,
312
+ 0.012329983711242675,
313
+ 0.012340224266052247,
314
+ 0.012315648078918457,
315
+ 0.012326911926269531,
316
+ 0.012329983711242675,
317
+ 0.012299263954162597,
318
+ 0.012328960418701173,
319
+ 0.012305407524108887,
320
+ 0.012304384231567383,
321
+ 0.012296192169189453,
322
+ 0.012302335739135742,
323
+ 0.012312576293945313,
324
+ 0.012299263954162597,
325
+ 0.012316672325134278,
326
+ 0.012301312446594239,
327
+ 0.012303359985351562,
328
+ 0.012312576293945313,
329
+ 0.01234329605102539,
330
+ 0.012299263954162597,
331
+ 0.012311552047729492,
332
+ 0.012302335739135742,
333
+ 0.012309503555297852,
334
+ 0.012299263954162597,
335
+ 0.012303359985351562,
336
+ 0.012316672325134278,
337
+ 0.012311552047729492,
338
+ 0.012312576293945313,
339
+ 0.012298239707946777,
340
+ 0.012294176101684571,
341
+ 0.012373984336853027,
342
+ 0.01237299156188965,
343
+ 0.012311552047729492,
344
+ 0.012300288200378418,
345
+ 0.012294143676757812,
346
+ 0.012301312446594239,
347
+ 0.012298239707946777,
348
+ 0.01232588768005371,
349
+ 0.012305407524108887,
350
+ 0.012308480262756348,
351
+ 0.012299263954162597,
352
+ 0.012309503555297852,
353
+ 0.012307456016540527,
354
+ 0.012340224266052247,
355
+ 0.012369919776916503,
356
+ 0.012297216415405274,
357
+ 0.012301312446594239
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.18412090409606
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/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": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.01416041612625122,
7
+ "prefill.throughput.value": 494.3357552200096,
8
+ "decode.latency.mean": 1.5644852905273439,
9
+ "decode.throughput.value": 81.17685782599585,
10
+ "per_token.latency.mean": 0.012317679724355383,
11
+ "per_token.throughput.value": 81.18412090409606
12
+ }
13
+ }
2024-09-01/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpkjnm4e2m/commit=eb5b968c5d80271ecb29917dffecc8f4c00247a8
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/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8
88
+ - hydra.run.dir=_benchmark/tmpkjnm4e2m/commit\=eb5b968c5d80271ecb29917dffecc8f4c00247a8/${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.4.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model_type: null
150
+ model: google/gemma-2b
151
+ processor: null
152
+ device: cuda
153
+ device_ids: '0'
154
+ seed: 42
155
+ inter_op_num_threads: null
156
+ intra_op_num_threads: null
157
+ model_kwargs: {}
158
+ processor_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
+ memory: true
192
+ latency: 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
+ numactl: false
206
+ numactl_kwargs: {}
207
+ start_method: spawn
208
+ environment:
209
+ cpu: ' AMD EPYC 7R32'
210
+ cpu_count: 16
211
+ cpu_ram_mb: 66697.261056
212
+ system: Linux
213
+ machine: x86_64
214
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
215
+ processor: x86_64
216
+ python_version: 3.8.10
217
+ gpu:
218
+ - NVIDIA A10G
219
+ gpu_count: 1
220
+ gpu_vram_mb: 24146608128
221
+ optimum_benchmark_version: 0.4.0
222
+ optimum_benchmark_commit: null
223
+ transformers_version: 4.45.0.dev0
224
+ transformers_commit: eb5b968c5d80271ecb29917dffecc8f4c00247a8
225
+ accelerate_version: 0.34.0.dev0
226
+ accelerate_commit: null
227
+ diffusers_version: null
228
+ diffusers_commit: null
229
+ optimum_version: 1.22.0.dev0
230
+ optimum_commit: null
231
+ timm_version: 0.9.16
232
+ timm_commit: null
233
+ peft_version: 0.12.1.dev0
234
+ peft_commit: null
2024-09-01/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.020699952125549315,
8
+ "prefill.throughput.value": 338.1650333074981,
9
+ "decode.latency.mean": 2.4684188232421875,
10
+ "decode.throughput.value": 51.44993985793288,
11
+ "per_token.latency.mean": 0.019435116857994265,
12
+ "per_token.throughput.value": 51.45325378317286
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.02248211193084717,
21
+ "prefill.throughput.value": 311.35864911318527,
22
+ "decode.latency.mean": 2.6452998046875003,
23
+ "decode.throughput.value": 48.009681086035926,
24
+ "per_token.latency.mean": 0.020828123963723973,
25
+ "per_token.throughput.value": 48.01200538952451
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "eb5b968c5d80271ecb29917dffecc8f4c00247a8",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.01416041612625122,
34
+ "prefill.throughput.value": 494.3357552200096,
35
+ "decode.latency.mean": 1.5644852905273439,
36
+ "decode.throughput.value": 81.17685782599585,
37
+ "per_token.latency.mean": 0.012317679724355383,
38
+ "per_token.throughput.value": 81.18412090409606
39
+ }
40
+ }
41
+ ]
2024-09-01/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "eb5b968c5d80271ecb29917dffecc8f4c00247a8": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020699952125549315,
7
+ "prefill.throughput.value": 338.1650333074981,
8
+ "decode.latency.mean": 2.4684188232421875,
9
+ "decode.throughput.value": 51.44993985793288,
10
+ "per_token.latency.mean": 0.019435116857994265,
11
+ "per_token.throughput.value": 51.45325378317286
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "eb5b968c5d80271ecb29917dffecc8f4c00247a8": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.02248211193084717,
19
+ "prefill.throughput.value": 311.35864911318527,
20
+ "decode.latency.mean": 2.6452998046875003,
21
+ "decode.throughput.value": 48.009681086035926,
22
+ "per_token.latency.mean": 0.020828123963723973,
23
+ "per_token.throughput.value": 48.01200538952451
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "eb5b968c5d80271ecb29917dffecc8f4c00247a8": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.01416041612625122,
31
+ "prefill.throughput.value": 494.3357552200096,
32
+ "decode.latency.mean": 1.5644852905273439,
33
+ "decode.throughput.value": 81.17685782599585,
34
+ "per_token.latency.mean": 0.012317679724355383,
35
+ "per_token.throughput.value": 81.18412090409606
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }