hf-transformers-bot commited on
Commit
68163e0
·
verified ·
1 Parent(s): f23d28c

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/multirun.yaml +232 -0
  31. 2024-06-08/summaries.json +41 -0
  32. 2024-06-08/summary.json +40 -0
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
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/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
88
+ - hydra.run.dir=_benchmark/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=False
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1705.631744,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5034.576896
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.03931136131286621,
118
+ "mean": 0.019655680656433104,
119
+ "stdev": 0.00022412776947021602,
120
+ "p50": 0.019655680656433104,
121
+ "p90": 0.01983498287200928,
122
+ "p95": 0.019857395648956302,
123
+ "p99": 0.019875325870513917,
124
+ "values": [
125
+ 0.019879808425903322,
126
+ 0.01943155288696289
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 356.1311420527669
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1705.713664,
140
+ "max_global_vram": 6795.296768,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6148.849664,
143
+ "max_allocated": 5034.577408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 4.798585205078125,
149
+ "mean": 2.3992926025390626,
150
+ "stdev": 0.004729858398437425,
151
+ "p50": 2.3992926025390626,
152
+ "p90": 2.4030764892578125,
153
+ "p95": 2.4035494750976563,
154
+ "p99": 2.4039278637695314,
155
+ "values": [
156
+ 2.4040224609375,
157
+ 2.394562744140625
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 52.9322683967773
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 4.798804992675779,
173
+ "mean": 0.018967608666702693,
174
+ "stdev": 0.0012461562570100625,
175
+ "p50": 0.018808832168579103,
176
+ "p90": 0.01935871925354004,
177
+ "p95": 0.019563109970092772,
178
+ "p99": 0.019934822845458982,
179
+ "values": [
180
+ 0.019701759338378907,
181
+ 0.018742271423339844,
182
+ 0.01863884735107422,
183
+ 0.01863270378112793,
184
+ 0.01863577651977539,
185
+ 0.018675712585449217,
186
+ 0.01864908790588379,
187
+ 0.01881292724609375,
188
+ 0.018747392654418944,
189
+ 0.018654207229614257,
190
+ 0.019252223968505858,
191
+ 0.01949388885498047,
192
+ 0.018675712585449217,
193
+ 0.018683904647827147,
194
+ 0.018663423538208008,
195
+ 0.01868083190917969,
196
+ 0.01881292724609375,
197
+ 0.018721792221069337,
198
+ 0.018755584716796874,
199
+ 0.018703359603881836,
200
+ 0.018691072463989256,
201
+ 0.01869824028015137,
202
+ 0.018693119049072265,
203
+ 0.01865830421447754,
204
+ 0.01864192008972168,
205
+ 0.018662399291992187,
206
+ 0.0186429443359375,
207
+ 0.018659328460693358,
208
+ 0.018659328460693358,
209
+ 0.019580928802490235,
210
+ 0.019568639755249022,
211
+ 0.018685951232910156,
212
+ 0.01868185615539551,
213
+ 0.01864499282836914,
214
+ 0.01865216064453125,
215
+ 0.018720767974853517,
216
+ 0.019276800155639647,
217
+ 0.01863680076599121,
218
+ 0.018661376953125,
219
+ 0.01862041664123535,
220
+ 0.018696191787719727,
221
+ 0.0186746883392334,
222
+ 0.018661376953125,
223
+ 0.018704383850097657,
224
+ 0.019273727416992188,
225
+ 0.019422208786010742,
226
+ 0.019376127243041993,
227
+ 0.019339263916015623,
228
+ 0.019384319305419923,
229
+ 0.019333120346069335,
230
+ 0.018722816467285155,
231
+ 0.01923276710510254,
232
+ 0.02007859230041504,
233
+ 0.019802112579345704,
234
+ 0.019631103515625,
235
+ 0.018713600158691408,
236
+ 0.018852863311767578,
237
+ 0.018803712844848632,
238
+ 0.018799615859985352,
239
+ 0.01880473518371582,
240
+ 0.01880678367614746,
241
+ 0.0188590087890625,
242
+ 0.01884262466430664,
243
+ 0.01884569549560547,
244
+ 0.01882828712463379,
245
+ 0.01882624053955078,
246
+ 0.018790399551391602,
247
+ 0.018795520782470702,
248
+ 0.018763776779174804,
249
+ 0.01880575942993164,
250
+ 0.01883443260192871,
251
+ 0.01884160041809082,
252
+ 0.018779136657714843,
253
+ 0.018817024230957033,
254
+ 0.01879654312133789,
255
+ 0.018808832168579103,
256
+ 0.018824192047119142,
257
+ 0.018882560729980468,
258
+ 0.01880268859863281,
259
+ 0.01878118324279785,
260
+ 0.018770944595336913,
261
+ 0.018807807922363282,
262
+ 0.018710527420043945,
263
+ 0.018776063919067384,
264
+ 0.018807807922363282,
265
+ 0.018776063919067384,
266
+ 0.018795520782470702,
267
+ 0.01881497573852539,
268
+ 0.018808832168579103,
269
+ 0.018800640106201173,
270
+ 0.018969600677490234,
271
+ 0.018913280487060546,
272
+ 0.01882111930847168,
273
+ 0.019522560119628905,
274
+ 0.018971647262573242,
275
+ 0.01882624053955078,
276
+ 0.01883750343322754,
277
+ 0.018856960296630858,
278
+ 0.019345407485961915,
279
+ 0.02047488021850586,
280
+ 0.019610624313354492,
281
+ 0.019481599807739256,
282
+ 0.019115007400512696,
283
+ 0.01883033561706543,
284
+ 0.01884876823425293,
285
+ 0.01882009506225586,
286
+ 0.01882828712463379,
287
+ 0.018852863311767578,
288
+ 0.018933759689331055,
289
+ 0.01883750343322754,
290
+ 0.019120128631591796,
291
+ 0.019336191177368164,
292
+ 0.019354623794555666,
293
+ 0.019155967712402345,
294
+ 0.01887948799133301,
295
+ 0.018881536483764647,
296
+ 0.019612672805786133,
297
+ 0.018832384109497072,
298
+ 0.01884569549560547,
299
+ 0.018786304473876952,
300
+ 0.018971647262573242,
301
+ 0.019405824661254883,
302
+ 0.018832384109497072,
303
+ 0.01882624053955078,
304
+ 0.01881395149230957,
305
+ 0.01885593605041504,
306
+ 0.03823308944702149,
307
+ 0.018687999725341797,
308
+ 0.01861631965637207,
309
+ 0.018718719482421875,
310
+ 0.0186746883392334,
311
+ 0.018722816467285155,
312
+ 0.018699264526367186,
313
+ 0.018757631301879883,
314
+ 0.018747392654418944,
315
+ 0.018704383850097657,
316
+ 0.018694143295288086,
317
+ 0.018696191787719727,
318
+ 0.018743295669555664,
319
+ 0.018689023971557618,
320
+ 0.018761728286743166,
321
+ 0.018700288772583007,
322
+ 0.018699264526367186,
323
+ 0.018702335357666015,
324
+ 0.018707456588745116,
325
+ 0.018676736831665038,
326
+ 0.018704383850097657,
327
+ 0.01862144088745117,
328
+ 0.018663423538208008,
329
+ 0.018740224838256835,
330
+ 0.018678783416748047,
331
+ 0.018655231475830078,
332
+ 0.018669567108154296,
333
+ 0.018725887298583984,
334
+ 0.018757631301879883,
335
+ 0.018754560470581053,
336
+ 0.01876479911804199,
337
+ 0.018944000244140623,
338
+ 0.018800640106201173,
339
+ 0.019078144073486326,
340
+ 0.018976768493652343,
341
+ 0.018861055374145508,
342
+ 0.01884160041809082,
343
+ 0.01901670455932617,
344
+ 0.018712575912475587,
345
+ 0.018679807662963867,
346
+ 0.018869247436523438,
347
+ 0.018985984802246093,
348
+ 0.018718719482421875,
349
+ 0.018745344161987306,
350
+ 0.01864089584350586,
351
+ 0.01868185615539551,
352
+ 0.018722816467285155,
353
+ 0.018682880401611326,
354
+ 0.01883647918701172,
355
+ 0.018755584716796874,
356
+ 0.018745344161987306,
357
+ 0.018721792221069337,
358
+ 0.018703359603881836,
359
+ 0.018749439239501953,
360
+ 0.018717695236206054,
361
+ 0.018737152099609376,
362
+ 0.018686975479125977,
363
+ 0.018861055374145508,
364
+ 0.018917375564575196,
365
+ 0.01887948799133301,
366
+ 0.01889587211608887,
367
+ 0.018892799377441406,
368
+ 0.018923519134521484,
369
+ 0.018817024230957033,
370
+ 0.018856960296630858,
371
+ 0.01882009506225586,
372
+ 0.01881292724609375,
373
+ 0.018860031127929687,
374
+ 0.018910207748413087,
375
+ 0.018909183502197266,
376
+ 0.01883750343322754,
377
+ 0.018824192047119142,
378
+ 0.01880575942993164,
379
+ 0.0188590087890625,
380
+ 0.01875660705566406,
381
+ 0.01880268859863281,
382
+ 0.01878835105895996,
383
+ 0.018865152359008788,
384
+ 0.018780160903930664,
385
+ 0.018860031127929687,
386
+ 0.018792448043823243,
387
+ 0.0188272647857666,
388
+ 0.019559423446655275,
389
+ 0.019405824661254883,
390
+ 0.018985984802246093,
391
+ 0.018967552185058592,
392
+ 0.018928640365600585,
393
+ 0.01885593605041504,
394
+ 0.01885491180419922,
395
+ 0.018767871856689454,
396
+ 0.018799615859985352,
397
+ 0.01881497573852539,
398
+ 0.01881292724609375,
399
+ 0.018782207489013672,
400
+ 0.01884160041809082,
401
+ 0.019499008178710937,
402
+ 0.01944473648071289,
403
+ 0.01925324821472168,
404
+ 0.01886310386657715,
405
+ 0.01884262466430664,
406
+ 0.01887539291381836,
407
+ 0.018767871856689454,
408
+ 0.01886412811279297,
409
+ 0.01887846374511719,
410
+ 0.018779136657714843,
411
+ 0.01883852767944336,
412
+ 0.01880678367614746,
413
+ 0.01881907272338867,
414
+ 0.018766847610473633,
415
+ 0.018775039672851563,
416
+ 0.018727935791015626,
417
+ 0.018765823364257812,
418
+ 0.018800640106201173,
419
+ 0.01880268859863281,
420
+ 0.019769344329833984,
421
+ 0.019359743118286133,
422
+ 0.01885081672668457,
423
+ 0.018779136657714843,
424
+ 0.01926655960083008,
425
+ 0.019591167449951173,
426
+ 0.019731456756591798,
427
+ 0.01944473648071289,
428
+ 0.01924300765991211,
429
+ 0.018784255981445314,
430
+ 0.01881088066101074,
431
+ 0.01882521629333496,
432
+ 0.018873344421386717
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 52.72145886030866
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1705.631744,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5034.576896
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.03931136131286621,
15
+ "mean": 0.019655680656433104,
16
+ "stdev": 0.00022412776947021602,
17
+ "p50": 0.019655680656433104,
18
+ "p90": 0.01983498287200928,
19
+ "p95": 0.019857395648956302,
20
+ "p99": 0.019875325870513917,
21
+ "values": [
22
+ 0.019879808425903322,
23
+ 0.01943155288696289
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 356.1311420527669
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1705.713664,
37
+ "max_global_vram": 6795.296768,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6148.849664,
40
+ "max_allocated": 5034.577408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 4.798585205078125,
46
+ "mean": 2.3992926025390626,
47
+ "stdev": 0.004729858398437425,
48
+ "p50": 2.3992926025390626,
49
+ "p90": 2.4030764892578125,
50
+ "p95": 2.4035494750976563,
51
+ "p99": 2.4039278637695314,
52
+ "values": [
53
+ 2.4040224609375,
54
+ 2.394562744140625
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 52.9322683967773
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 4.798804992675779,
70
+ "mean": 0.018967608666702693,
71
+ "stdev": 0.0012461562570100625,
72
+ "p50": 0.018808832168579103,
73
+ "p90": 0.01935871925354004,
74
+ "p95": 0.019563109970092772,
75
+ "p99": 0.019934822845458982,
76
+ "values": [
77
+ 0.019701759338378907,
78
+ 0.018742271423339844,
79
+ 0.01863884735107422,
80
+ 0.01863270378112793,
81
+ 0.01863577651977539,
82
+ 0.018675712585449217,
83
+ 0.01864908790588379,
84
+ 0.01881292724609375,
85
+ 0.018747392654418944,
86
+ 0.018654207229614257,
87
+ 0.019252223968505858,
88
+ 0.01949388885498047,
89
+ 0.018675712585449217,
90
+ 0.018683904647827147,
91
+ 0.018663423538208008,
92
+ 0.01868083190917969,
93
+ 0.01881292724609375,
94
+ 0.018721792221069337,
95
+ 0.018755584716796874,
96
+ 0.018703359603881836,
97
+ 0.018691072463989256,
98
+ 0.01869824028015137,
99
+ 0.018693119049072265,
100
+ 0.01865830421447754,
101
+ 0.01864192008972168,
102
+ 0.018662399291992187,
103
+ 0.0186429443359375,
104
+ 0.018659328460693358,
105
+ 0.018659328460693358,
106
+ 0.019580928802490235,
107
+ 0.019568639755249022,
108
+ 0.018685951232910156,
109
+ 0.01868185615539551,
110
+ 0.01864499282836914,
111
+ 0.01865216064453125,
112
+ 0.018720767974853517,
113
+ 0.019276800155639647,
114
+ 0.01863680076599121,
115
+ 0.018661376953125,
116
+ 0.01862041664123535,
117
+ 0.018696191787719727,
118
+ 0.0186746883392334,
119
+ 0.018661376953125,
120
+ 0.018704383850097657,
121
+ 0.019273727416992188,
122
+ 0.019422208786010742,
123
+ 0.019376127243041993,
124
+ 0.019339263916015623,
125
+ 0.019384319305419923,
126
+ 0.019333120346069335,
127
+ 0.018722816467285155,
128
+ 0.01923276710510254,
129
+ 0.02007859230041504,
130
+ 0.019802112579345704,
131
+ 0.019631103515625,
132
+ 0.018713600158691408,
133
+ 0.018852863311767578,
134
+ 0.018803712844848632,
135
+ 0.018799615859985352,
136
+ 0.01880473518371582,
137
+ 0.01880678367614746,
138
+ 0.0188590087890625,
139
+ 0.01884262466430664,
140
+ 0.01884569549560547,
141
+ 0.01882828712463379,
142
+ 0.01882624053955078,
143
+ 0.018790399551391602,
144
+ 0.018795520782470702,
145
+ 0.018763776779174804,
146
+ 0.01880575942993164,
147
+ 0.01883443260192871,
148
+ 0.01884160041809082,
149
+ 0.018779136657714843,
150
+ 0.018817024230957033,
151
+ 0.01879654312133789,
152
+ 0.018808832168579103,
153
+ 0.018824192047119142,
154
+ 0.018882560729980468,
155
+ 0.01880268859863281,
156
+ 0.01878118324279785,
157
+ 0.018770944595336913,
158
+ 0.018807807922363282,
159
+ 0.018710527420043945,
160
+ 0.018776063919067384,
161
+ 0.018807807922363282,
162
+ 0.018776063919067384,
163
+ 0.018795520782470702,
164
+ 0.01881497573852539,
165
+ 0.018808832168579103,
166
+ 0.018800640106201173,
167
+ 0.018969600677490234,
168
+ 0.018913280487060546,
169
+ 0.01882111930847168,
170
+ 0.019522560119628905,
171
+ 0.018971647262573242,
172
+ 0.01882624053955078,
173
+ 0.01883750343322754,
174
+ 0.018856960296630858,
175
+ 0.019345407485961915,
176
+ 0.02047488021850586,
177
+ 0.019610624313354492,
178
+ 0.019481599807739256,
179
+ 0.019115007400512696,
180
+ 0.01883033561706543,
181
+ 0.01884876823425293,
182
+ 0.01882009506225586,
183
+ 0.01882828712463379,
184
+ 0.018852863311767578,
185
+ 0.018933759689331055,
186
+ 0.01883750343322754,
187
+ 0.019120128631591796,
188
+ 0.019336191177368164,
189
+ 0.019354623794555666,
190
+ 0.019155967712402345,
191
+ 0.01887948799133301,
192
+ 0.018881536483764647,
193
+ 0.019612672805786133,
194
+ 0.018832384109497072,
195
+ 0.01884569549560547,
196
+ 0.018786304473876952,
197
+ 0.018971647262573242,
198
+ 0.019405824661254883,
199
+ 0.018832384109497072,
200
+ 0.01882624053955078,
201
+ 0.01881395149230957,
202
+ 0.01885593605041504,
203
+ 0.03823308944702149,
204
+ 0.018687999725341797,
205
+ 0.01861631965637207,
206
+ 0.018718719482421875,
207
+ 0.0186746883392334,
208
+ 0.018722816467285155,
209
+ 0.018699264526367186,
210
+ 0.018757631301879883,
211
+ 0.018747392654418944,
212
+ 0.018704383850097657,
213
+ 0.018694143295288086,
214
+ 0.018696191787719727,
215
+ 0.018743295669555664,
216
+ 0.018689023971557618,
217
+ 0.018761728286743166,
218
+ 0.018700288772583007,
219
+ 0.018699264526367186,
220
+ 0.018702335357666015,
221
+ 0.018707456588745116,
222
+ 0.018676736831665038,
223
+ 0.018704383850097657,
224
+ 0.01862144088745117,
225
+ 0.018663423538208008,
226
+ 0.018740224838256835,
227
+ 0.018678783416748047,
228
+ 0.018655231475830078,
229
+ 0.018669567108154296,
230
+ 0.018725887298583984,
231
+ 0.018757631301879883,
232
+ 0.018754560470581053,
233
+ 0.01876479911804199,
234
+ 0.018944000244140623,
235
+ 0.018800640106201173,
236
+ 0.019078144073486326,
237
+ 0.018976768493652343,
238
+ 0.018861055374145508,
239
+ 0.01884160041809082,
240
+ 0.01901670455932617,
241
+ 0.018712575912475587,
242
+ 0.018679807662963867,
243
+ 0.018869247436523438,
244
+ 0.018985984802246093,
245
+ 0.018718719482421875,
246
+ 0.018745344161987306,
247
+ 0.01864089584350586,
248
+ 0.01868185615539551,
249
+ 0.018722816467285155,
250
+ 0.018682880401611326,
251
+ 0.01883647918701172,
252
+ 0.018755584716796874,
253
+ 0.018745344161987306,
254
+ 0.018721792221069337,
255
+ 0.018703359603881836,
256
+ 0.018749439239501953,
257
+ 0.018717695236206054,
258
+ 0.018737152099609376,
259
+ 0.018686975479125977,
260
+ 0.018861055374145508,
261
+ 0.018917375564575196,
262
+ 0.01887948799133301,
263
+ 0.01889587211608887,
264
+ 0.018892799377441406,
265
+ 0.018923519134521484,
266
+ 0.018817024230957033,
267
+ 0.018856960296630858,
268
+ 0.01882009506225586,
269
+ 0.01881292724609375,
270
+ 0.018860031127929687,
271
+ 0.018910207748413087,
272
+ 0.018909183502197266,
273
+ 0.01883750343322754,
274
+ 0.018824192047119142,
275
+ 0.01880575942993164,
276
+ 0.0188590087890625,
277
+ 0.01875660705566406,
278
+ 0.01880268859863281,
279
+ 0.01878835105895996,
280
+ 0.018865152359008788,
281
+ 0.018780160903930664,
282
+ 0.018860031127929687,
283
+ 0.018792448043823243,
284
+ 0.0188272647857666,
285
+ 0.019559423446655275,
286
+ 0.019405824661254883,
287
+ 0.018985984802246093,
288
+ 0.018967552185058592,
289
+ 0.018928640365600585,
290
+ 0.01885593605041504,
291
+ 0.01885491180419922,
292
+ 0.018767871856689454,
293
+ 0.018799615859985352,
294
+ 0.01881497573852539,
295
+ 0.01881292724609375,
296
+ 0.018782207489013672,
297
+ 0.01884160041809082,
298
+ 0.019499008178710937,
299
+ 0.01944473648071289,
300
+ 0.01925324821472168,
301
+ 0.01886310386657715,
302
+ 0.01884262466430664,
303
+ 0.01887539291381836,
304
+ 0.018767871856689454,
305
+ 0.01886412811279297,
306
+ 0.01887846374511719,
307
+ 0.018779136657714843,
308
+ 0.01883852767944336,
309
+ 0.01880678367614746,
310
+ 0.01881907272338867,
311
+ 0.018766847610473633,
312
+ 0.018775039672851563,
313
+ 0.018727935791015626,
314
+ 0.018765823364257812,
315
+ 0.018800640106201173,
316
+ 0.01880268859863281,
317
+ 0.019769344329833984,
318
+ 0.019359743118286133,
319
+ 0.01885081672668457,
320
+ 0.018779136657714843,
321
+ 0.01926655960083008,
322
+ 0.019591167449951173,
323
+ 0.019731456756591798,
324
+ 0.01944473648071289,
325
+ 0.01924300765991211,
326
+ 0.018784255981445314,
327
+ 0.01881088066101074,
328
+ 0.01882521629333496,
329
+ 0.018873344421386717
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 52.72145886030866
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/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": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019655680656433104,
7
+ "prefill.throughput.value": 356.1311420527669,
8
+ "decode.latency.mean": 2.3992926025390626,
9
+ "decode.throughput.value": 52.9322683967773,
10
+ "per_token.latency.mean": 0.018967608666702693,
11
+ "per_token.throughput.value": 52.72145886030866
12
+ }
13
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
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/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
88
+ - hydra.run.dir=_benchmark/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=True
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-08 02:35:12,759][process][ERROR] - + Sending traceback to main process
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
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/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
88
+ - hydra.run.dir=_benchmark/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=False
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1762.97984,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5036.936192
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04496758270263672,
118
+ "mean": 0.02248379135131836,
119
+ "stdev": 0.0006636962890625014,
120
+ "p50": 0.02248379135131836,
121
+ "p90": 0.02301474838256836,
122
+ "p95": 0.02308111801147461,
123
+ "p99": 0.02313421371459961,
124
+ "values": [
125
+ 0.02314748764038086,
126
+ 0.021820095062255858
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 311.3353922664626
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1762.992128,
140
+ "max_global_vram": 6793.199616,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6146.752512,
143
+ "max_allocated": 5036.936704
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 5.2117238769531244,
149
+ "mean": 2.6058619384765622,
150
+ "stdev": 0.01131042480468758,
151
+ "p50": 2.6058619384765622,
152
+ "p90": 2.6149102783203126,
153
+ "p95": 2.616041320800781,
154
+ "p99": 2.6169461547851562,
155
+ "values": [
156
+ 2.61717236328125,
157
+ 2.594551513671875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 48.736273447489964
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 5.212047351837159,
173
+ "mean": 0.020600977675245685,
174
+ "stdev": 0.0014345971755824,
175
+ "p50": 0.020485120773315428,
176
+ "p90": 0.02124193229675293,
177
+ "p95": 0.021464269256591794,
178
+ "p99": 0.02180165618896484,
179
+ "values": [
180
+ 0.021926912307739257,
181
+ 0.021544960021972655,
182
+ 0.021582847595214845,
183
+ 0.020802560806274413,
184
+ 0.020731903076171874,
185
+ 0.021089279174804687,
186
+ 0.02145075225830078,
187
+ 0.021140480041503908,
188
+ 0.020599807739257812,
189
+ 0.020847616195678712,
190
+ 0.02086297607421875,
191
+ 0.0204769287109375,
192
+ 0.021151744842529296,
193
+ 0.02168934440612793,
194
+ 0.021916671752929686,
195
+ 0.021340160369873046,
196
+ 0.021380096435546874,
197
+ 0.021355520248413085,
198
+ 0.021372928619384765,
199
+ 0.021283840179443358,
200
+ 0.021235712051391603,
201
+ 0.02057318305969238,
202
+ 0.020582399368286132,
203
+ 0.02105855941772461,
204
+ 0.02128895950317383,
205
+ 0.020757503509521484,
206
+ 0.021695487976074217,
207
+ 0.021544960021972655,
208
+ 0.02148454475402832,
209
+ 0.021400575637817384,
210
+ 0.021150720596313476,
211
+ 0.02123776054382324,
212
+ 0.021621759414672852,
213
+ 0.021539840698242187,
214
+ 0.021128192901611328,
215
+ 0.02123776054382324,
216
+ 0.02124297523498535,
217
+ 0.021157791137695312,
218
+ 0.02042470359802246,
219
+ 0.020890623092651366,
220
+ 0.021218303680419923,
221
+ 0.020961280822753905,
222
+ 0.020468736648559572,
223
+ 0.020485120773315428,
224
+ 0.020307968139648438,
225
+ 0.020323328018188477,
226
+ 0.020351999282836913,
227
+ 0.020166656494140626,
228
+ 0.020017152786254884,
229
+ 0.019954687118530275,
230
+ 0.02002739143371582,
231
+ 0.019962879180908204,
232
+ 0.019981311798095702,
233
+ 0.019975168228149414,
234
+ 0.020091903686523437,
235
+ 0.019998720169067383,
236
+ 0.0202106876373291,
237
+ 0.020359199523925783,
238
+ 0.020381664276123045,
239
+ 0.020357120513916017,
240
+ 0.020358144760131838,
241
+ 0.020373504638671876,
242
+ 0.020331520080566406,
243
+ 0.020360191345214843,
244
+ 0.020364288330078126,
245
+ 0.020330495834350586,
246
+ 0.020389888763427736,
247
+ 0.020382720947265624,
248
+ 0.020379648208618165,
249
+ 0.02032640075683594,
250
+ 0.020511743545532226,
251
+ 0.0204083194732666,
252
+ 0.02048204803466797,
253
+ 0.020348928451538087,
254
+ 0.020380672454833985,
255
+ 0.020347904205322266,
256
+ 0.020971519470214844,
257
+ 0.021403648376464843,
258
+ 0.021136383056640624,
259
+ 0.021340160369873046,
260
+ 0.021204992294311522,
261
+ 0.020798463821411133,
262
+ 0.020057088851928712,
263
+ 0.020149248123168945,
264
+ 0.020682752609252928,
265
+ 0.020727807998657227,
266
+ 0.020677631378173827,
267
+ 0.020669439315795898,
268
+ 0.02065407943725586,
269
+ 0.02066022491455078,
270
+ 0.020711423873901368,
271
+ 0.020722688674926756,
272
+ 0.020684799194335936,
273
+ 0.02064793586730957,
274
+ 0.02063155174255371,
275
+ 0.02004991912841797,
276
+ 0.020075519561767577,
277
+ 0.020082687377929686,
278
+ 0.02002943992614746,
279
+ 0.019979263305664064,
280
+ 0.020032512664794923,
281
+ 0.020016128540039063,
282
+ 0.02001817512512207,
283
+ 0.02003455924987793,
284
+ 0.02004684829711914,
285
+ 0.020180992126464844,
286
+ 0.020603904724121092,
287
+ 0.02050662422180176,
288
+ 0.02043187141418457,
289
+ 0.020447231292724608,
290
+ 0.01970790481567383,
291
+ 0.01978982353210449,
292
+ 0.019778560638427735,
293
+ 0.01963007926940918,
294
+ 0.019979263305664064,
295
+ 0.020118528366088868,
296
+ 0.020023296356201172,
297
+ 0.01999564743041992,
298
+ 0.020001792907714845,
299
+ 0.020001792907714845,
300
+ 0.020040704727172853,
301
+ 0.019962879180908204,
302
+ 0.020051967620849608,
303
+ 0.019983360290527344,
304
+ 0.02001203155517578,
305
+ 0.02002739143371582,
306
+ 0.04199423980712891,
307
+ 0.02002739143371582,
308
+ 0.02001817512512207,
309
+ 0.020116479873657226,
310
+ 0.020024320602416993,
311
+ 0.019943424224853516,
312
+ 0.019963903427124022,
313
+ 0.019952640533447266,
314
+ 0.019956735610961913,
315
+ 0.02002739143371582,
316
+ 0.019917823791503905,
317
+ 0.019963903427124022,
318
+ 0.019998720169067383,
319
+ 0.019959808349609375,
320
+ 0.020098047256469728,
321
+ 0.02051584053039551,
322
+ 0.020371456146240235,
323
+ 0.02045952033996582,
324
+ 0.020406272888183592,
325
+ 0.020568063735961914,
326
+ 0.020371456146240235,
327
+ 0.02046976089477539,
328
+ 0.020316160202026368,
329
+ 0.02060697555541992,
330
+ 0.020513792037963868,
331
+ 0.02027008056640625,
332
+ 0.0200898551940918,
333
+ 0.020068351745605468,
334
+ 0.019976192474365235,
335
+ 0.020813823699951172,
336
+ 0.020706304550170897,
337
+ 0.02065407943725586,
338
+ 0.02000383949279785,
339
+ 0.01998847961425781,
340
+ 0.020575231552124023,
341
+ 0.020695039749145508,
342
+ 0.021556224822998047,
343
+ 0.021409791946411134,
344
+ 0.020806655883789063,
345
+ 0.02084454345703125,
346
+ 0.02067148780822754,
347
+ 0.02066431999206543,
348
+ 0.020708351135253905,
349
+ 0.020552703857421875,
350
+ 0.020714496612548827,
351
+ 0.020710399627685547,
352
+ 0.020661247253417968,
353
+ 0.020792320251464845,
354
+ 0.021137407302856445,
355
+ 0.020737024307250978,
356
+ 0.02069811248779297,
357
+ 0.02067251205444336,
358
+ 0.02067046356201172,
359
+ 0.02067865562438965,
360
+ 0.02063155174255371,
361
+ 0.020722688674926756,
362
+ 0.02067865562438965,
363
+ 0.020726783752441406,
364
+ 0.020740095138549804,
365
+ 0.020824064254760744,
366
+ 0.020695039749145508,
367
+ 0.020952064514160155,
368
+ 0.020718591690063477,
369
+ 0.020916223526000977,
370
+ 0.020900863647460938,
371
+ 0.021222400665283202,
372
+ 0.02026188850402832,
373
+ 0.020100095748901366,
374
+ 0.020818944931030273,
375
+ 0.020938751220703124,
376
+ 0.021527551651000978,
377
+ 0.02019327926635742,
378
+ 0.02003558349609375,
379
+ 0.02007961654663086,
380
+ 0.020170751571655272,
381
+ 0.020763647079467772,
382
+ 0.02065510368347168,
383
+ 0.020587520599365236,
384
+ 0.01998847961425781,
385
+ 0.019983360290527344,
386
+ 0.019966976165771484,
387
+ 0.020025344848632814,
388
+ 0.020676607131958007,
389
+ 0.02065100860595703,
390
+ 0.020546560287475587,
391
+ 0.020618240356445314,
392
+ 0.020794368743896483,
393
+ 0.020716543197631835,
394
+ 0.020016128540039063,
395
+ 0.020048896789550782,
396
+ 0.02008883285522461,
397
+ 0.02007142448425293,
398
+ 0.01998028755187988,
399
+ 0.02004172706604004,
400
+ 0.019978239059448243,
401
+ 0.020025344848632814,
402
+ 0.019954687118530275,
403
+ 0.02001919937133789,
404
+ 0.019946495056152345,
405
+ 0.019997695922851562,
406
+ 0.019970048904418947,
407
+ 0.02000383949279785,
408
+ 0.019933183670043944,
409
+ 0.019957759857177734,
410
+ 0.019947519302368166,
411
+ 0.019973119735717772,
412
+ 0.019957759857177734,
413
+ 0.02065407943725586,
414
+ 0.021352447509765626,
415
+ 0.020956159591674805,
416
+ 0.020968448638916014,
417
+ 0.02069606399536133,
418
+ 0.020633600234985353,
419
+ 0.020740095138549804,
420
+ 0.02070425605773926,
421
+ 0.02083737564086914,
422
+ 0.020716543197631835,
423
+ 0.02103091239929199,
424
+ 0.01983590316772461,
425
+ 0.019803136825561524,
426
+ 0.01999564743041992,
427
+ 0.020025344848632814,
428
+ 0.019977216720581056,
429
+ 0.02011955261230469,
430
+ 0.021001216888427734,
431
+ 0.020711423873901368,
432
+ 0.02080460739135742
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 48.54138554800769
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1762.97984,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5036.936192
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04496758270263672,
15
+ "mean": 0.02248379135131836,
16
+ "stdev": 0.0006636962890625014,
17
+ "p50": 0.02248379135131836,
18
+ "p90": 0.02301474838256836,
19
+ "p95": 0.02308111801147461,
20
+ "p99": 0.02313421371459961,
21
+ "values": [
22
+ 0.02314748764038086,
23
+ 0.021820095062255858
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 311.3353922664626
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1762.992128,
37
+ "max_global_vram": 6793.199616,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6146.752512,
40
+ "max_allocated": 5036.936704
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 5.2117238769531244,
46
+ "mean": 2.6058619384765622,
47
+ "stdev": 0.01131042480468758,
48
+ "p50": 2.6058619384765622,
49
+ "p90": 2.6149102783203126,
50
+ "p95": 2.616041320800781,
51
+ "p99": 2.6169461547851562,
52
+ "values": [
53
+ 2.61717236328125,
54
+ 2.594551513671875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 48.736273447489964
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 5.212047351837159,
70
+ "mean": 0.020600977675245685,
71
+ "stdev": 0.0014345971755824,
72
+ "p50": 0.020485120773315428,
73
+ "p90": 0.02124193229675293,
74
+ "p95": 0.021464269256591794,
75
+ "p99": 0.02180165618896484,
76
+ "values": [
77
+ 0.021926912307739257,
78
+ 0.021544960021972655,
79
+ 0.021582847595214845,
80
+ 0.020802560806274413,
81
+ 0.020731903076171874,
82
+ 0.021089279174804687,
83
+ 0.02145075225830078,
84
+ 0.021140480041503908,
85
+ 0.020599807739257812,
86
+ 0.020847616195678712,
87
+ 0.02086297607421875,
88
+ 0.0204769287109375,
89
+ 0.021151744842529296,
90
+ 0.02168934440612793,
91
+ 0.021916671752929686,
92
+ 0.021340160369873046,
93
+ 0.021380096435546874,
94
+ 0.021355520248413085,
95
+ 0.021372928619384765,
96
+ 0.021283840179443358,
97
+ 0.021235712051391603,
98
+ 0.02057318305969238,
99
+ 0.020582399368286132,
100
+ 0.02105855941772461,
101
+ 0.02128895950317383,
102
+ 0.020757503509521484,
103
+ 0.021695487976074217,
104
+ 0.021544960021972655,
105
+ 0.02148454475402832,
106
+ 0.021400575637817384,
107
+ 0.021150720596313476,
108
+ 0.02123776054382324,
109
+ 0.021621759414672852,
110
+ 0.021539840698242187,
111
+ 0.021128192901611328,
112
+ 0.02123776054382324,
113
+ 0.02124297523498535,
114
+ 0.021157791137695312,
115
+ 0.02042470359802246,
116
+ 0.020890623092651366,
117
+ 0.021218303680419923,
118
+ 0.020961280822753905,
119
+ 0.020468736648559572,
120
+ 0.020485120773315428,
121
+ 0.020307968139648438,
122
+ 0.020323328018188477,
123
+ 0.020351999282836913,
124
+ 0.020166656494140626,
125
+ 0.020017152786254884,
126
+ 0.019954687118530275,
127
+ 0.02002739143371582,
128
+ 0.019962879180908204,
129
+ 0.019981311798095702,
130
+ 0.019975168228149414,
131
+ 0.020091903686523437,
132
+ 0.019998720169067383,
133
+ 0.0202106876373291,
134
+ 0.020359199523925783,
135
+ 0.020381664276123045,
136
+ 0.020357120513916017,
137
+ 0.020358144760131838,
138
+ 0.020373504638671876,
139
+ 0.020331520080566406,
140
+ 0.020360191345214843,
141
+ 0.020364288330078126,
142
+ 0.020330495834350586,
143
+ 0.020389888763427736,
144
+ 0.020382720947265624,
145
+ 0.020379648208618165,
146
+ 0.02032640075683594,
147
+ 0.020511743545532226,
148
+ 0.0204083194732666,
149
+ 0.02048204803466797,
150
+ 0.020348928451538087,
151
+ 0.020380672454833985,
152
+ 0.020347904205322266,
153
+ 0.020971519470214844,
154
+ 0.021403648376464843,
155
+ 0.021136383056640624,
156
+ 0.021340160369873046,
157
+ 0.021204992294311522,
158
+ 0.020798463821411133,
159
+ 0.020057088851928712,
160
+ 0.020149248123168945,
161
+ 0.020682752609252928,
162
+ 0.020727807998657227,
163
+ 0.020677631378173827,
164
+ 0.020669439315795898,
165
+ 0.02065407943725586,
166
+ 0.02066022491455078,
167
+ 0.020711423873901368,
168
+ 0.020722688674926756,
169
+ 0.020684799194335936,
170
+ 0.02064793586730957,
171
+ 0.02063155174255371,
172
+ 0.02004991912841797,
173
+ 0.020075519561767577,
174
+ 0.020082687377929686,
175
+ 0.02002943992614746,
176
+ 0.019979263305664064,
177
+ 0.020032512664794923,
178
+ 0.020016128540039063,
179
+ 0.02001817512512207,
180
+ 0.02003455924987793,
181
+ 0.02004684829711914,
182
+ 0.020180992126464844,
183
+ 0.020603904724121092,
184
+ 0.02050662422180176,
185
+ 0.02043187141418457,
186
+ 0.020447231292724608,
187
+ 0.01970790481567383,
188
+ 0.01978982353210449,
189
+ 0.019778560638427735,
190
+ 0.01963007926940918,
191
+ 0.019979263305664064,
192
+ 0.020118528366088868,
193
+ 0.020023296356201172,
194
+ 0.01999564743041992,
195
+ 0.020001792907714845,
196
+ 0.020001792907714845,
197
+ 0.020040704727172853,
198
+ 0.019962879180908204,
199
+ 0.020051967620849608,
200
+ 0.019983360290527344,
201
+ 0.02001203155517578,
202
+ 0.02002739143371582,
203
+ 0.04199423980712891,
204
+ 0.02002739143371582,
205
+ 0.02001817512512207,
206
+ 0.020116479873657226,
207
+ 0.020024320602416993,
208
+ 0.019943424224853516,
209
+ 0.019963903427124022,
210
+ 0.019952640533447266,
211
+ 0.019956735610961913,
212
+ 0.02002739143371582,
213
+ 0.019917823791503905,
214
+ 0.019963903427124022,
215
+ 0.019998720169067383,
216
+ 0.019959808349609375,
217
+ 0.020098047256469728,
218
+ 0.02051584053039551,
219
+ 0.020371456146240235,
220
+ 0.02045952033996582,
221
+ 0.020406272888183592,
222
+ 0.020568063735961914,
223
+ 0.020371456146240235,
224
+ 0.02046976089477539,
225
+ 0.020316160202026368,
226
+ 0.02060697555541992,
227
+ 0.020513792037963868,
228
+ 0.02027008056640625,
229
+ 0.0200898551940918,
230
+ 0.020068351745605468,
231
+ 0.019976192474365235,
232
+ 0.020813823699951172,
233
+ 0.020706304550170897,
234
+ 0.02065407943725586,
235
+ 0.02000383949279785,
236
+ 0.01998847961425781,
237
+ 0.020575231552124023,
238
+ 0.020695039749145508,
239
+ 0.021556224822998047,
240
+ 0.021409791946411134,
241
+ 0.020806655883789063,
242
+ 0.02084454345703125,
243
+ 0.02067148780822754,
244
+ 0.02066431999206543,
245
+ 0.020708351135253905,
246
+ 0.020552703857421875,
247
+ 0.020714496612548827,
248
+ 0.020710399627685547,
249
+ 0.020661247253417968,
250
+ 0.020792320251464845,
251
+ 0.021137407302856445,
252
+ 0.020737024307250978,
253
+ 0.02069811248779297,
254
+ 0.02067251205444336,
255
+ 0.02067046356201172,
256
+ 0.02067865562438965,
257
+ 0.02063155174255371,
258
+ 0.020722688674926756,
259
+ 0.02067865562438965,
260
+ 0.020726783752441406,
261
+ 0.020740095138549804,
262
+ 0.020824064254760744,
263
+ 0.020695039749145508,
264
+ 0.020952064514160155,
265
+ 0.020718591690063477,
266
+ 0.020916223526000977,
267
+ 0.020900863647460938,
268
+ 0.021222400665283202,
269
+ 0.02026188850402832,
270
+ 0.020100095748901366,
271
+ 0.020818944931030273,
272
+ 0.020938751220703124,
273
+ 0.021527551651000978,
274
+ 0.02019327926635742,
275
+ 0.02003558349609375,
276
+ 0.02007961654663086,
277
+ 0.020170751571655272,
278
+ 0.020763647079467772,
279
+ 0.02065510368347168,
280
+ 0.020587520599365236,
281
+ 0.01998847961425781,
282
+ 0.019983360290527344,
283
+ 0.019966976165771484,
284
+ 0.020025344848632814,
285
+ 0.020676607131958007,
286
+ 0.02065100860595703,
287
+ 0.020546560287475587,
288
+ 0.020618240356445314,
289
+ 0.020794368743896483,
290
+ 0.020716543197631835,
291
+ 0.020016128540039063,
292
+ 0.020048896789550782,
293
+ 0.02008883285522461,
294
+ 0.02007142448425293,
295
+ 0.01998028755187988,
296
+ 0.02004172706604004,
297
+ 0.019978239059448243,
298
+ 0.020025344848632814,
299
+ 0.019954687118530275,
300
+ 0.02001919937133789,
301
+ 0.019946495056152345,
302
+ 0.019997695922851562,
303
+ 0.019970048904418947,
304
+ 0.02000383949279785,
305
+ 0.019933183670043944,
306
+ 0.019957759857177734,
307
+ 0.019947519302368166,
308
+ 0.019973119735717772,
309
+ 0.019957759857177734,
310
+ 0.02065407943725586,
311
+ 0.021352447509765626,
312
+ 0.020956159591674805,
313
+ 0.020968448638916014,
314
+ 0.02069606399536133,
315
+ 0.020633600234985353,
316
+ 0.020740095138549804,
317
+ 0.02070425605773926,
318
+ 0.02083737564086914,
319
+ 0.020716543197631835,
320
+ 0.02103091239929199,
321
+ 0.01983590316772461,
322
+ 0.019803136825561524,
323
+ 0.01999564743041992,
324
+ 0.020025344848632814,
325
+ 0.019977216720581056,
326
+ 0.02011955261230469,
327
+ 0.021001216888427734,
328
+ 0.020711423873901368,
329
+ 0.02080460739135742
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 48.54138554800769
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/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": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02248379135131836,
7
+ "prefill.throughput.value": 311.3353922664626,
8
+ "decode.latency.mean": 2.6058619384765622,
9
+ "decode.throughput.value": 48.736273447489964,
10
+ "per_token.latency.mean": 0.020600977675245685,
11
+ "per_token.throughput.value": 48.54138554800769
12
+ }
13
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
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/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
88
+ - hydra.run.dir=_benchmark/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${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/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=True
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1924.46464,
109
+ "max_global_vram": 6094.848,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 5379.19488,
112
+ "max_allocated": 5021.251584
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.02810979175567627,
118
+ "mean": 0.014054895877838135,
119
+ "stdev": 9.863996505737362e-05,
120
+ "p50": 0.014054895877838135,
121
+ "p90": 0.014133807849884035,
122
+ "p95": 0.01414367184638977,
123
+ "p99": 0.014151563043594361,
124
+ "values": [
125
+ 0.014153535842895509,
126
+ 0.013956255912780761
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 498.0470905542354
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2268.237824,
140
+ "max_global_vram": 8907.128832,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 5379.19488,
143
+ "max_allocated": 5027.089408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 3.1195333251953126,
149
+ "mean": 1.5597666625976563,
150
+ "stdev": 0.0010714721679687678,
151
+ "p50": 1.5597666625976563,
152
+ "p90": 1.5606238403320314,
153
+ "p95": 1.5607309875488282,
154
+ "p99": 1.5608167053222657,
155
+ "values": [
156
+ 1.560838134765625,
157
+ 1.5586951904296875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 81.42243519200012
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 3.120560194969178,
173
+ "mean": 0.012334230019641018,
174
+ "stdev": 0.0008905963455101684,
175
+ "p50": 0.012271615982055664,
176
+ "p90": 0.012311347198486328,
177
+ "p95": 0.012389990615844726,
178
+ "p99": 0.012729630737304688,
179
+ "values": [
180
+ 0.012724224090576173,
181
+ 0.012735487937927246,
182
+ 0.012741632461547851,
183
+ 0.012326911926269531,
184
+ 0.012291071891784668,
185
+ 0.012333056449890138,
186
+ 0.012270591735839843,
187
+ 0.012300288200378418,
188
+ 0.01226035213470459,
189
+ 0.012302335739135742,
190
+ 0.012247039794921874,
191
+ 0.012280832290649414,
192
+ 0.012248064041137695,
193
+ 0.012279808044433594,
194
+ 0.012236800193786621,
195
+ 0.012286975860595703,
196
+ 0.012240896224975586,
197
+ 0.012283904075622559,
198
+ 0.0122357759475708,
199
+ 0.012275712013244629,
200
+ 0.012263423919677734,
201
+ 0.012311552047729492,
202
+ 0.01224294376373291,
203
+ 0.012283904075622559,
204
+ 0.012253184318542481,
205
+ 0.012281855583190919,
206
+ 0.0122357759475708,
207
+ 0.012283904075622559,
208
+ 0.012238847732543945,
209
+ 0.012286975860595703,
210
+ 0.012236800193786621,
211
+ 0.012274687767028808,
212
+ 0.012272640228271485,
213
+ 0.01227673625946045,
214
+ 0.012239871978759765,
215
+ 0.012317695617675782,
216
+ 0.012256256103515625,
217
+ 0.01228492832183838,
218
+ 0.012241920471191407,
219
+ 0.012280832290649414,
220
+ 0.012239871978759765,
221
+ 0.012277759552001954,
222
+ 0.012231679916381836,
223
+ 0.012278783798217773,
224
+ 0.012241920471191407,
225
+ 0.012278783798217773,
226
+ 0.012418047904968262,
227
+ 0.012497920036315918,
228
+ 0.01237606430053711,
229
+ 0.01234329605102539,
230
+ 0.012240896224975586,
231
+ 0.012296192169189453,
232
+ 0.012247039794921874,
233
+ 0.012278783798217773,
234
+ 0.012237824440002442,
235
+ 0.012271615982055664,
236
+ 0.01224396800994873,
237
+ 0.012271679878234864,
238
+ 0.012240832328796386,
239
+ 0.012281855583190919,
240
+ 0.0122357759475708,
241
+ 0.012278783798217773,
242
+ 0.012229632377624512,
243
+ 0.012464127540588378,
244
+ 0.01225216007232666,
245
+ 0.01227673625946045,
246
+ 0.012255231857299804,
247
+ 0.012313599586486817,
248
+ 0.012236800193786621,
249
+ 0.012279808044433594,
250
+ 0.0122357759475708,
251
+ 0.012279808044433594,
252
+ 0.012232704162597656,
253
+ 0.01228492832183838,
254
+ 0.01222758388519287,
255
+ 0.0123505277633667,
256
+ 0.012234687805175781,
257
+ 0.012281855583190919,
258
+ 0.012271615982055664,
259
+ 0.012273664474487305,
260
+ 0.012445695877075195,
261
+ 0.012305407524108887,
262
+ 0.012259327888488769,
263
+ 0.01227673625946045,
264
+ 0.01224294376373291,
265
+ 0.012349439620971679,
266
+ 0.01226956844329834,
267
+ 0.012298239707946777,
268
+ 0.012249088287353516,
269
+ 0.012296192169189453,
270
+ 0.012232704162597656,
271
+ 0.012310527801513671,
272
+ 0.012253184318542481,
273
+ 0.012271615982055664,
274
+ 0.0122357759475708,
275
+ 0.012300288200378418,
276
+ 0.012218367576599122,
277
+ 0.012272640228271485,
278
+ 0.012223487854003906,
279
+ 0.012280832290649414,
280
+ 0.012237824440002442,
281
+ 0.012275712013244629,
282
+ 0.012236800193786621,
283
+ 0.012283904075622559,
284
+ 0.012231679916381836,
285
+ 0.012281855583190919,
286
+ 0.012239871978759765,
287
+ 0.012288000106811523,
288
+ 0.012240896224975586,
289
+ 0.012274687767028808,
290
+ 0.01225011157989502,
291
+ 0.01228492832183838,
292
+ 0.012233728408813477,
293
+ 0.012271615982055664,
294
+ 0.012220416069030762,
295
+ 0.012280832290649414,
296
+ 0.012226559638977052,
297
+ 0.012268608093261718,
298
+ 0.012228544235229493,
299
+ 0.012279808044433594,
300
+ 0.0122357759475708,
301
+ 0.012283904075622559,
302
+ 0.012253184318542481,
303
+ 0.012299263954162597,
304
+ 0.012247039794921874,
305
+ 0.012278783798217773,
306
+ 0.026428415298461915,
307
+ 0.012241920471191407,
308
+ 0.012318719863891601,
309
+ 0.01226137638092041,
310
+ 0.01229312038421631,
311
+ 0.012236800193786621,
312
+ 0.012291071891784668,
313
+ 0.012248064041137695,
314
+ 0.012266495704650878,
315
+ 0.012244992256164551,
316
+ 0.012296192169189453,
317
+ 0.012233728408813477,
318
+ 0.012277791976928711,
319
+ 0.012254176139831542,
320
+ 0.01227673625946045,
321
+ 0.012232704162597656,
322
+ 0.012275712013244629,
323
+ 0.012232704162597656,
324
+ 0.012412927627563476,
325
+ 0.012530688285827637,
326
+ 0.012357631683349609,
327
+ 0.01226854419708252,
328
+ 0.012285951614379884,
329
+ 0.012247039794921874,
330
+ 0.012277759552001954,
331
+ 0.012226559638977052,
332
+ 0.012280832290649414,
333
+ 0.012228608131408691,
334
+ 0.012272640228271485,
335
+ 0.012246015548706055,
336
+ 0.012281855583190919,
337
+ 0.012232704162597656,
338
+ 0.012301312446594239,
339
+ 0.012240896224975586,
340
+ 0.012276800155639648,
341
+ 0.012242879867553711,
342
+ 0.012273664474487305,
343
+ 0.01223475170135498,
344
+ 0.012272704124450683,
345
+ 0.012242879867553711,
346
+ 0.012572671890258789,
347
+ 0.01224294376373291,
348
+ 0.012290047645568849,
349
+ 0.012246015548706055,
350
+ 0.012264448165893555,
351
+ 0.012228608131408691,
352
+ 0.012299296379089355,
353
+ 0.012253151893615723,
354
+ 0.012275744438171386,
355
+ 0.012276703834533692,
356
+ 0.012292096138000488,
357
+ 0.012226559638977052,
358
+ 0.012280832290649414,
359
+ 0.0122357759475708,
360
+ 0.012280832290649414,
361
+ 0.012224512100219726,
362
+ 0.012278783798217773,
363
+ 0.012239871978759765,
364
+ 0.012275712013244629,
365
+ 0.012236800193786621,
366
+ 0.012274687767028808,
367
+ 0.012265472412109376,
368
+ 0.012299263954162597,
369
+ 0.012410880088806153,
370
+ 0.012280832290649414,
371
+ 0.012244992256164551,
372
+ 0.012285951614379884,
373
+ 0.012297216415405274,
374
+ 0.012282879829406738,
375
+ 0.012229632377624512,
376
+ 0.012274687767028808,
377
+ 0.012230655670166016,
378
+ 0.01226956844329834,
379
+ 0.01224294376373291,
380
+ 0.012329983711242675,
381
+ 0.012247039794921874,
382
+ 0.012511232376098632,
383
+ 0.01227673625946045,
384
+ 0.012296192169189453,
385
+ 0.012256256103515625,
386
+ 0.012299263954162597,
387
+ 0.012248064041137695,
388
+ 0.012291071891784668,
389
+ 0.012267519950866699,
390
+ 0.012277759552001954,
391
+ 0.012225536346435547,
392
+ 0.012265472412109376,
393
+ 0.01224294376373291,
394
+ 0.012274687767028808,
395
+ 0.012223487854003906,
396
+ 0.012305407524108887,
397
+ 0.012222463607788087,
398
+ 0.012262399673461915,
399
+ 0.012237824440002442,
400
+ 0.012272640228271485,
401
+ 0.012236800193786621,
402
+ 0.012267519950866699,
403
+ 0.012221440315246582,
404
+ 0.012280832290649414,
405
+ 0.012229632377624512,
406
+ 0.012280832290649414,
407
+ 0.012239871978759765,
408
+ 0.012286975860595703,
409
+ 0.012223487854003906,
410
+ 0.012257280349731446,
411
+ 0.01225113582611084,
412
+ 0.012288031578063964,
413
+ 0.012255200386047363,
414
+ 0.012274687767028808,
415
+ 0.012239871978759765,
416
+ 0.012267519950866699,
417
+ 0.012226559638977052,
418
+ 0.012271615982055664,
419
+ 0.012226559638977052,
420
+ 0.01226137638092041,
421
+ 0.012226559638977052,
422
+ 0.012267519950866699,
423
+ 0.012225567817687988,
424
+ 0.012273695945739746,
425
+ 0.012234687805175781,
426
+ 0.012262399673461915,
427
+ 0.012254207611083985,
428
+ 0.01237606430053711,
429
+ 0.012244992256164551,
430
+ 0.012296223640441894,
431
+ 0.012262368202209472,
432
+ 0.012273728370666504
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 81.07518656678211
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1924.46464,
6
+ "max_global_vram": 6094.848,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 5379.19488,
9
+ "max_allocated": 5021.251584
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.02810979175567627,
15
+ "mean": 0.014054895877838135,
16
+ "stdev": 9.863996505737362e-05,
17
+ "p50": 0.014054895877838135,
18
+ "p90": 0.014133807849884035,
19
+ "p95": 0.01414367184638977,
20
+ "p99": 0.014151563043594361,
21
+ "values": [
22
+ 0.014153535842895509,
23
+ 0.013956255912780761
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 498.0470905542354
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2268.237824,
37
+ "max_global_vram": 8907.128832,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 5379.19488,
40
+ "max_allocated": 5027.089408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 3.1195333251953126,
46
+ "mean": 1.5597666625976563,
47
+ "stdev": 0.0010714721679687678,
48
+ "p50": 1.5597666625976563,
49
+ "p90": 1.5606238403320314,
50
+ "p95": 1.5607309875488282,
51
+ "p99": 1.5608167053222657,
52
+ "values": [
53
+ 1.560838134765625,
54
+ 1.5586951904296875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 81.42243519200012
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 3.120560194969178,
70
+ "mean": 0.012334230019641018,
71
+ "stdev": 0.0008905963455101684,
72
+ "p50": 0.012271615982055664,
73
+ "p90": 0.012311347198486328,
74
+ "p95": 0.012389990615844726,
75
+ "p99": 0.012729630737304688,
76
+ "values": [
77
+ 0.012724224090576173,
78
+ 0.012735487937927246,
79
+ 0.012741632461547851,
80
+ 0.012326911926269531,
81
+ 0.012291071891784668,
82
+ 0.012333056449890138,
83
+ 0.012270591735839843,
84
+ 0.012300288200378418,
85
+ 0.01226035213470459,
86
+ 0.012302335739135742,
87
+ 0.012247039794921874,
88
+ 0.012280832290649414,
89
+ 0.012248064041137695,
90
+ 0.012279808044433594,
91
+ 0.012236800193786621,
92
+ 0.012286975860595703,
93
+ 0.012240896224975586,
94
+ 0.012283904075622559,
95
+ 0.0122357759475708,
96
+ 0.012275712013244629,
97
+ 0.012263423919677734,
98
+ 0.012311552047729492,
99
+ 0.01224294376373291,
100
+ 0.012283904075622559,
101
+ 0.012253184318542481,
102
+ 0.012281855583190919,
103
+ 0.0122357759475708,
104
+ 0.012283904075622559,
105
+ 0.012238847732543945,
106
+ 0.012286975860595703,
107
+ 0.012236800193786621,
108
+ 0.012274687767028808,
109
+ 0.012272640228271485,
110
+ 0.01227673625946045,
111
+ 0.012239871978759765,
112
+ 0.012317695617675782,
113
+ 0.012256256103515625,
114
+ 0.01228492832183838,
115
+ 0.012241920471191407,
116
+ 0.012280832290649414,
117
+ 0.012239871978759765,
118
+ 0.012277759552001954,
119
+ 0.012231679916381836,
120
+ 0.012278783798217773,
121
+ 0.012241920471191407,
122
+ 0.012278783798217773,
123
+ 0.012418047904968262,
124
+ 0.012497920036315918,
125
+ 0.01237606430053711,
126
+ 0.01234329605102539,
127
+ 0.012240896224975586,
128
+ 0.012296192169189453,
129
+ 0.012247039794921874,
130
+ 0.012278783798217773,
131
+ 0.012237824440002442,
132
+ 0.012271615982055664,
133
+ 0.01224396800994873,
134
+ 0.012271679878234864,
135
+ 0.012240832328796386,
136
+ 0.012281855583190919,
137
+ 0.0122357759475708,
138
+ 0.012278783798217773,
139
+ 0.012229632377624512,
140
+ 0.012464127540588378,
141
+ 0.01225216007232666,
142
+ 0.01227673625946045,
143
+ 0.012255231857299804,
144
+ 0.012313599586486817,
145
+ 0.012236800193786621,
146
+ 0.012279808044433594,
147
+ 0.0122357759475708,
148
+ 0.012279808044433594,
149
+ 0.012232704162597656,
150
+ 0.01228492832183838,
151
+ 0.01222758388519287,
152
+ 0.0123505277633667,
153
+ 0.012234687805175781,
154
+ 0.012281855583190919,
155
+ 0.012271615982055664,
156
+ 0.012273664474487305,
157
+ 0.012445695877075195,
158
+ 0.012305407524108887,
159
+ 0.012259327888488769,
160
+ 0.01227673625946045,
161
+ 0.01224294376373291,
162
+ 0.012349439620971679,
163
+ 0.01226956844329834,
164
+ 0.012298239707946777,
165
+ 0.012249088287353516,
166
+ 0.012296192169189453,
167
+ 0.012232704162597656,
168
+ 0.012310527801513671,
169
+ 0.012253184318542481,
170
+ 0.012271615982055664,
171
+ 0.0122357759475708,
172
+ 0.012300288200378418,
173
+ 0.012218367576599122,
174
+ 0.012272640228271485,
175
+ 0.012223487854003906,
176
+ 0.012280832290649414,
177
+ 0.012237824440002442,
178
+ 0.012275712013244629,
179
+ 0.012236800193786621,
180
+ 0.012283904075622559,
181
+ 0.012231679916381836,
182
+ 0.012281855583190919,
183
+ 0.012239871978759765,
184
+ 0.012288000106811523,
185
+ 0.012240896224975586,
186
+ 0.012274687767028808,
187
+ 0.01225011157989502,
188
+ 0.01228492832183838,
189
+ 0.012233728408813477,
190
+ 0.012271615982055664,
191
+ 0.012220416069030762,
192
+ 0.012280832290649414,
193
+ 0.012226559638977052,
194
+ 0.012268608093261718,
195
+ 0.012228544235229493,
196
+ 0.012279808044433594,
197
+ 0.0122357759475708,
198
+ 0.012283904075622559,
199
+ 0.012253184318542481,
200
+ 0.012299263954162597,
201
+ 0.012247039794921874,
202
+ 0.012278783798217773,
203
+ 0.026428415298461915,
204
+ 0.012241920471191407,
205
+ 0.012318719863891601,
206
+ 0.01226137638092041,
207
+ 0.01229312038421631,
208
+ 0.012236800193786621,
209
+ 0.012291071891784668,
210
+ 0.012248064041137695,
211
+ 0.012266495704650878,
212
+ 0.012244992256164551,
213
+ 0.012296192169189453,
214
+ 0.012233728408813477,
215
+ 0.012277791976928711,
216
+ 0.012254176139831542,
217
+ 0.01227673625946045,
218
+ 0.012232704162597656,
219
+ 0.012275712013244629,
220
+ 0.012232704162597656,
221
+ 0.012412927627563476,
222
+ 0.012530688285827637,
223
+ 0.012357631683349609,
224
+ 0.01226854419708252,
225
+ 0.012285951614379884,
226
+ 0.012247039794921874,
227
+ 0.012277759552001954,
228
+ 0.012226559638977052,
229
+ 0.012280832290649414,
230
+ 0.012228608131408691,
231
+ 0.012272640228271485,
232
+ 0.012246015548706055,
233
+ 0.012281855583190919,
234
+ 0.012232704162597656,
235
+ 0.012301312446594239,
236
+ 0.012240896224975586,
237
+ 0.012276800155639648,
238
+ 0.012242879867553711,
239
+ 0.012273664474487305,
240
+ 0.01223475170135498,
241
+ 0.012272704124450683,
242
+ 0.012242879867553711,
243
+ 0.012572671890258789,
244
+ 0.01224294376373291,
245
+ 0.012290047645568849,
246
+ 0.012246015548706055,
247
+ 0.012264448165893555,
248
+ 0.012228608131408691,
249
+ 0.012299296379089355,
250
+ 0.012253151893615723,
251
+ 0.012275744438171386,
252
+ 0.012276703834533692,
253
+ 0.012292096138000488,
254
+ 0.012226559638977052,
255
+ 0.012280832290649414,
256
+ 0.0122357759475708,
257
+ 0.012280832290649414,
258
+ 0.012224512100219726,
259
+ 0.012278783798217773,
260
+ 0.012239871978759765,
261
+ 0.012275712013244629,
262
+ 0.012236800193786621,
263
+ 0.012274687767028808,
264
+ 0.012265472412109376,
265
+ 0.012299263954162597,
266
+ 0.012410880088806153,
267
+ 0.012280832290649414,
268
+ 0.012244992256164551,
269
+ 0.012285951614379884,
270
+ 0.012297216415405274,
271
+ 0.012282879829406738,
272
+ 0.012229632377624512,
273
+ 0.012274687767028808,
274
+ 0.012230655670166016,
275
+ 0.01226956844329834,
276
+ 0.01224294376373291,
277
+ 0.012329983711242675,
278
+ 0.012247039794921874,
279
+ 0.012511232376098632,
280
+ 0.01227673625946045,
281
+ 0.012296192169189453,
282
+ 0.012256256103515625,
283
+ 0.012299263954162597,
284
+ 0.012248064041137695,
285
+ 0.012291071891784668,
286
+ 0.012267519950866699,
287
+ 0.012277759552001954,
288
+ 0.012225536346435547,
289
+ 0.012265472412109376,
290
+ 0.01224294376373291,
291
+ 0.012274687767028808,
292
+ 0.012223487854003906,
293
+ 0.012305407524108887,
294
+ 0.012222463607788087,
295
+ 0.012262399673461915,
296
+ 0.012237824440002442,
297
+ 0.012272640228271485,
298
+ 0.012236800193786621,
299
+ 0.012267519950866699,
300
+ 0.012221440315246582,
301
+ 0.012280832290649414,
302
+ 0.012229632377624512,
303
+ 0.012280832290649414,
304
+ 0.012239871978759765,
305
+ 0.012286975860595703,
306
+ 0.012223487854003906,
307
+ 0.012257280349731446,
308
+ 0.01225113582611084,
309
+ 0.012288031578063964,
310
+ 0.012255200386047363,
311
+ 0.012274687767028808,
312
+ 0.012239871978759765,
313
+ 0.012267519950866699,
314
+ 0.012226559638977052,
315
+ 0.012271615982055664,
316
+ 0.012226559638977052,
317
+ 0.01226137638092041,
318
+ 0.012226559638977052,
319
+ 0.012267519950866699,
320
+ 0.012225567817687988,
321
+ 0.012273695945739746,
322
+ 0.012234687805175781,
323
+ 0.012262399673461915,
324
+ 0.012254207611083985,
325
+ 0.01237606430053711,
326
+ 0.012244992256164551,
327
+ 0.012296223640441894,
328
+ 0.012262368202209472,
329
+ 0.012273728370666504
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 81.07518656678211
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/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": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014054895877838135,
7
+ "prefill.throughput.value": 498.0470905542354,
8
+ "decode.latency.mean": 1.5597666625976563,
9
+ "decode.throughput.value": 81.42243519200012,
10
+ "per_token.latency.mean": 0.012334230019641018,
11
+ "per_token.throughput.value": 81.07518656678211
12
+ }
13
+ }
2024-06-08/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmplzthziyz/commit=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
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/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
88
+ - hydra.run.dir=_benchmark/tmplzthziyz/commit\=25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.3.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model: google/gemma-2b
150
+ processor: null
151
+ device: cuda
152
+ device_ids: '0'
153
+ seed: 42
154
+ inter_op_num_threads: null
155
+ intra_op_num_threads: null
156
+ model_kwargs: {}
157
+ processor_kwargs: {}
158
+ hub_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ latency: true
192
+ memory: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ start_method: spawn
206
+ environment:
207
+ cpu: ' AMD EPYC 7R32'
208
+ cpu_count: 16
209
+ cpu_ram_mb: 66697.29792
210
+ system: Linux
211
+ machine: x86_64
212
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
213
+ processor: x86_64
214
+ python_version: 3.8.10
215
+ gpu:
216
+ - NVIDIA A10G
217
+ gpu_count: 1
218
+ gpu_vram_mb: 24146608128
219
+ optimum_benchmark_version: 0.2.1
220
+ optimum_benchmark_commit: null
221
+ transformers_version: 4.42.0.dev0
222
+ transformers_commit: 25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5
223
+ accelerate_version: 0.31.0.dev0
224
+ accelerate_commit: null
225
+ diffusers_version: null
226
+ diffusers_commit: null
227
+ optimum_version: 1.21.0.dev0
228
+ optimum_commit: null
229
+ timm_version: 0.9.16
230
+ timm_commit: null
231
+ peft_version: 0.11.2.dev0
232
+ peft_commit: null
2024-06-08/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.019655680656433104,
8
+ "prefill.throughput.value": 356.1311420527669,
9
+ "decode.latency.mean": 2.3992926025390626,
10
+ "decode.throughput.value": 52.9322683967773,
11
+ "per_token.latency.mean": 0.018967608666702693,
12
+ "per_token.throughput.value": 52.72145886030866
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.02248379135131836,
21
+ "prefill.throughput.value": 311.3353922664626,
22
+ "decode.latency.mean": 2.6058619384765622,
23
+ "decode.throughput.value": 48.736273447489964,
24
+ "per_token.latency.mean": 0.020600977675245685,
25
+ "per_token.throughput.value": 48.54138554800769
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014054895877838135,
34
+ "prefill.throughput.value": 498.0470905542354,
35
+ "decode.latency.mean": 1.5597666625976563,
36
+ "decode.throughput.value": 81.42243519200012,
37
+ "per_token.latency.mean": 0.012334230019641018,
38
+ "per_token.throughput.value": 81.07518656678211
39
+ }
40
+ }
41
+ ]
2024-06-08/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019655680656433104,
7
+ "prefill.throughput.value": 356.1311420527669,
8
+ "decode.latency.mean": 2.3992926025390626,
9
+ "decode.throughput.value": 52.9322683967773,
10
+ "per_token.latency.mean": 0.018967608666702693,
11
+ "per_token.throughput.value": 52.72145886030866
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.02248379135131836,
19
+ "prefill.throughput.value": 311.3353922664626,
20
+ "decode.latency.mean": 2.6058619384765622,
21
+ "decode.throughput.value": 48.736273447489964,
22
+ "per_token.latency.mean": 0.020600977675245685,
23
+ "per_token.throughput.value": 48.54138554800769
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014054895877838135,
31
+ "prefill.throughput.value": 498.0470905542354,
32
+ "decode.latency.mean": 1.5597666625976563,
33
+ "decode.throughput.value": 81.42243519200012,
34
+ "per_token.latency.mean": 0.012334230019641018,
35
+ "per_token.throughput.value": 81.07518656678211
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }