hf-transformers-bot commited on
Commit
464c60c
1 Parent(s): b0afb70

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/multirun.yaml +232 -0
  31. 2024-06-18/summaries.json +21 -21
  32. 2024-06-18/summary.json +21 -21
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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: 2505357e4fdea82d1586b8c0862b4eeb46fac457
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457
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/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457
88
+ - hydra.run.dir=_benchmark/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457/${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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1702.486016,
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.04065414237976074,
118
+ "mean": 0.02032707118988037,
119
+ "stdev": 0.00024927997589111253,
120
+ "p50": 0.02032707118988037,
121
+ "p90": 0.02052649517059326,
122
+ "p95": 0.02055142316818237,
123
+ "p99": 0.02057136556625366,
124
+ "values": [
125
+ 0.020576351165771483,
126
+ 0.020077791213989258
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 344.36835167305753
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1702.510592,
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.806510498046874,
149
+ "mean": 2.403255249023437,
150
+ "stdev": 0.015981079101562434,
151
+ "p50": 2.403255249023437,
152
+ "p90": 2.4160401123046875,
153
+ "p95": 2.4176382202148434,
154
+ "p99": 2.4189167065429684,
155
+ "values": [
156
+ 2.419236328125,
157
+ 2.387274169921875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 52.84499016557083
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.8066375732421855,
173
+ "mean": 0.0189985674831707,
174
+ "stdev": 0.0013428319345480447,
175
+ "p50": 0.01886310386657715,
176
+ "p90": 0.01943352394104004,
177
+ "p95": 0.01953361930847168,
178
+ "p99": 0.020189470443725585,
179
+ "values": [
180
+ 0.02063871955871582,
181
+ 0.02023526382446289,
182
+ 0.018774015426635742,
183
+ 0.018572288513183592,
184
+ 0.018594816207885743,
185
+ 0.018584575653076172,
186
+ 0.018667520523071288,
187
+ 0.018655231475830078,
188
+ 0.018584575653076172,
189
+ 0.01864192008972168,
190
+ 0.018651136398315428,
191
+ 0.01879859161376953,
192
+ 0.01864806365966797,
193
+ 0.01860915184020996,
194
+ 0.01867263984680176,
195
+ 0.01862246322631836,
196
+ 0.018748416900634765,
197
+ 0.018556928634643553,
198
+ 0.01862144088745117,
199
+ 0.0186296329498291,
200
+ 0.01859891128540039,
201
+ 0.018577407836914063,
202
+ 0.018504703521728515,
203
+ 0.018573312759399413,
204
+ 0.018597888946533202,
205
+ 0.01862041664123535,
206
+ 0.01861324882507324,
207
+ 0.018537471771240235,
208
+ 0.018358272552490236,
209
+ 0.01841868782043457,
210
+ 0.01839206314086914,
211
+ 0.01838591957092285,
212
+ 0.019491840362548828,
213
+ 0.01939148712158203,
214
+ 0.01864192008972168,
215
+ 0.018654207229614257,
216
+ 0.0186060791015625,
217
+ 0.01943961524963379,
218
+ 0.01842585563659668,
219
+ 0.01836851119995117,
220
+ 0.01839206314086914,
221
+ 0.01836851119995117,
222
+ 0.01841663932800293,
223
+ 0.01927577590942383,
224
+ 0.019701759338378907,
225
+ 0.019478527069091797,
226
+ 0.019358720779418945,
227
+ 0.01940787124633789,
228
+ 0.018669567108154296,
229
+ 0.019290111541748048,
230
+ 0.019495935440063478,
231
+ 0.0196628475189209,
232
+ 0.019813375473022463,
233
+ 0.020147199630737304,
234
+ 0.019532800674438477,
235
+ 0.01902284812927246,
236
+ 0.019478591918945312,
237
+ 0.01952249526977539,
238
+ 0.019434560775756837,
239
+ 0.01970787239074707,
240
+ 0.01949795150756836,
241
+ 0.01939455986022949,
242
+ 0.019418111801147463,
243
+ 0.019414016723632813,
244
+ 0.019687423706054686,
245
+ 0.019534847259521485,
246
+ 0.019562496185302734,
247
+ 0.019578943252563475,
248
+ 0.019489728927612304,
249
+ 0.019449855804443358,
250
+ 0.019169279098510742,
251
+ 0.01907711982727051,
252
+ 0.019100671768188478,
253
+ 0.019151872634887695,
254
+ 0.019412992477416992,
255
+ 0.01946112060546875,
256
+ 0.0194467830657959,
257
+ 0.01942937660217285,
258
+ 0.01939455986022949,
259
+ 0.01942118453979492,
260
+ 0.019110912322998046,
261
+ 0.018840576171875,
262
+ 0.019108863830566408,
263
+ 0.019176448822021484,
264
+ 0.019148799896240236,
265
+ 0.019088384628295898,
266
+ 0.018970624923706055,
267
+ 0.018538496017456055,
268
+ 0.019092479705810548,
269
+ 0.019083263397216797,
270
+ 0.01904742431640625,
271
+ 0.019104768753051758,
272
+ 0.01906380844116211,
273
+ 0.019098623275756836,
274
+ 0.01903001594543457,
275
+ 0.018844671249389648,
276
+ 0.019174400329589843,
277
+ 0.019091455459594727,
278
+ 0.019058687210083008,
279
+ 0.018920448303222655,
280
+ 0.019164159774780275,
281
+ 0.019106815338134766,
282
+ 0.018702335357666015,
283
+ 0.018578432083129884,
284
+ 0.01900441551208496,
285
+ 0.01903411293029785,
286
+ 0.019371007919311522,
287
+ 0.018881536483764647,
288
+ 0.01858252716064453,
289
+ 0.0188723201751709,
290
+ 0.019132415771484376,
291
+ 0.018931711196899414,
292
+ 0.018921472549438476,
293
+ 0.018669567108154296,
294
+ 0.01906790351867676,
295
+ 0.019575807571411134,
296
+ 0.019409919738769533,
297
+ 0.019355648040771483,
298
+ 0.01941913604736328,
299
+ 0.019358720779418945,
300
+ 0.018890752792358398,
301
+ 0.0186060791015625,
302
+ 0.01909350395202637,
303
+ 0.0191016960144043,
304
+ 0.018684928894042968,
305
+ 0.019168256759643554,
306
+ 0.039444480895996094,
307
+ 0.01862041664123535,
308
+ 0.018589696884155273,
309
+ 0.019264511108398438,
310
+ 0.01926655960083008,
311
+ 0.0192675838470459,
312
+ 0.01843097686767578,
313
+ 0.018375680923461913,
314
+ 0.018618368148803712,
315
+ 0.018998271942138673,
316
+ 0.018955263137817382,
317
+ 0.018988031387329102,
318
+ 0.018480127334594726,
319
+ 0.018508800506591795,
320
+ 0.01900339126586914,
321
+ 0.018542591094970702,
322
+ 0.018953216552734374,
323
+ 0.018958335876464845,
324
+ 0.019009536743164062,
325
+ 0.018907136917114258,
326
+ 0.018908159255981445,
327
+ 0.01885081672668457,
328
+ 0.018942975997924806,
329
+ 0.01844223976135254,
330
+ 0.018651136398315428,
331
+ 0.018911231994628908,
332
+ 0.018959360122680666,
333
+ 0.018998271942138673,
334
+ 0.01899212837219238,
335
+ 0.018530303955078126,
336
+ 0.019035200119018554,
337
+ 0.01869817543029785,
338
+ 0.018955263137817382,
339
+ 0.01844633674621582,
340
+ 0.01848320007324219,
341
+ 0.01886310386657715,
342
+ 0.01887539291381836,
343
+ 0.018803712844848632,
344
+ 0.018913280487060546,
345
+ 0.018936832427978514,
346
+ 0.01888768005371094,
347
+ 0.01924710464477539,
348
+ 0.01925017547607422,
349
+ 0.018939903259277344,
350
+ 0.01862041664123535,
351
+ 0.018737152099609376,
352
+ 0.01926348876953125,
353
+ 0.018732032775878905,
354
+ 0.019298303604125978,
355
+ 0.019294208526611328,
356
+ 0.019298303604125978,
357
+ 0.019111936569213867,
358
+ 0.018971647262573242,
359
+ 0.019343360900878907,
360
+ 0.019286016464233398,
361
+ 0.019299392700195313,
362
+ 0.01920915222167969,
363
+ 0.01882521629333496,
364
+ 0.0188272647857666,
365
+ 0.01879449653625488,
366
+ 0.01869824028015137,
367
+ 0.018585599899291993,
368
+ 0.018581504821777343,
369
+ 0.01861734390258789,
370
+ 0.018865152359008788,
371
+ 0.0188221435546875,
372
+ 0.01861427116394043,
373
+ 0.018579456329345705,
374
+ 0.018581504821777343,
375
+ 0.018569215774536133,
376
+ 0.018536447525024414,
377
+ 0.01879654312133789,
378
+ 0.019397632598876953,
379
+ 0.019118080139160155,
380
+ 0.019357696533203125,
381
+ 0.018990079879760743,
382
+ 0.01862553596496582,
383
+ 0.01866035270690918,
384
+ 0.01858252716064453,
385
+ 0.018545663833618165,
386
+ 0.018520063400268554,
387
+ 0.018506752014160157,
388
+ 0.018572288513183592,
389
+ 0.018533376693725585,
390
+ 0.018518016815185546,
391
+ 0.018504703521728515,
392
+ 0.018555904388427736,
393
+ 0.01865318489074707,
394
+ 0.018566144943237304,
395
+ 0.018545663833618165,
396
+ 0.018514944076538087,
397
+ 0.019123199462890626,
398
+ 0.019084287643432618,
399
+ 0.019120128631591796,
400
+ 0.01942732810974121,
401
+ 0.018754560470581053,
402
+ 0.01864396858215332,
403
+ 0.018579456329345705,
404
+ 0.0185743350982666,
405
+ 0.018550783157348632,
406
+ 0.018593791961669923,
407
+ 0.018702335357666015,
408
+ 0.019120128631591796,
409
+ 0.018911231994628908,
410
+ 0.018509824752807616,
411
+ 0.018557952880859374,
412
+ 0.018555904388427736,
413
+ 0.018536447525024414,
414
+ 0.018752511978149415,
415
+ 0.018695167541503906,
416
+ 0.018719743728637696,
417
+ 0.01861529541015625,
418
+ 0.018545663833618165,
419
+ 0.018538496017456055,
420
+ 0.018540544509887694,
421
+ 0.018509824752807616,
422
+ 0.01843609619140625,
423
+ 0.018541568756103514,
424
+ 0.018594816207885743,
425
+ 0.018547712326049806,
426
+ 0.01878835105895996,
427
+ 0.018747392654418944,
428
+ 0.018754560470581053,
429
+ 0.018718719482421875,
430
+ 0.018753536224365236,
431
+ 0.018770944595336913,
432
+ 0.018733055114746093
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 52.63554743723807
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": 1702.486016,
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.04065414237976074,
15
+ "mean": 0.02032707118988037,
16
+ "stdev": 0.00024927997589111253,
17
+ "p50": 0.02032707118988037,
18
+ "p90": 0.02052649517059326,
19
+ "p95": 0.02055142316818237,
20
+ "p99": 0.02057136556625366,
21
+ "values": [
22
+ 0.020576351165771483,
23
+ 0.020077791213989258
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 344.36835167305753
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1702.510592,
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.806510498046874,
46
+ "mean": 2.403255249023437,
47
+ "stdev": 0.015981079101562434,
48
+ "p50": 2.403255249023437,
49
+ "p90": 2.4160401123046875,
50
+ "p95": 2.4176382202148434,
51
+ "p99": 2.4189167065429684,
52
+ "values": [
53
+ 2.419236328125,
54
+ 2.387274169921875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 52.84499016557083
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.8066375732421855,
70
+ "mean": 0.0189985674831707,
71
+ "stdev": 0.0013428319345480447,
72
+ "p50": 0.01886310386657715,
73
+ "p90": 0.01943352394104004,
74
+ "p95": 0.01953361930847168,
75
+ "p99": 0.020189470443725585,
76
+ "values": [
77
+ 0.02063871955871582,
78
+ 0.02023526382446289,
79
+ 0.018774015426635742,
80
+ 0.018572288513183592,
81
+ 0.018594816207885743,
82
+ 0.018584575653076172,
83
+ 0.018667520523071288,
84
+ 0.018655231475830078,
85
+ 0.018584575653076172,
86
+ 0.01864192008972168,
87
+ 0.018651136398315428,
88
+ 0.01879859161376953,
89
+ 0.01864806365966797,
90
+ 0.01860915184020996,
91
+ 0.01867263984680176,
92
+ 0.01862246322631836,
93
+ 0.018748416900634765,
94
+ 0.018556928634643553,
95
+ 0.01862144088745117,
96
+ 0.0186296329498291,
97
+ 0.01859891128540039,
98
+ 0.018577407836914063,
99
+ 0.018504703521728515,
100
+ 0.018573312759399413,
101
+ 0.018597888946533202,
102
+ 0.01862041664123535,
103
+ 0.01861324882507324,
104
+ 0.018537471771240235,
105
+ 0.018358272552490236,
106
+ 0.01841868782043457,
107
+ 0.01839206314086914,
108
+ 0.01838591957092285,
109
+ 0.019491840362548828,
110
+ 0.01939148712158203,
111
+ 0.01864192008972168,
112
+ 0.018654207229614257,
113
+ 0.0186060791015625,
114
+ 0.01943961524963379,
115
+ 0.01842585563659668,
116
+ 0.01836851119995117,
117
+ 0.01839206314086914,
118
+ 0.01836851119995117,
119
+ 0.01841663932800293,
120
+ 0.01927577590942383,
121
+ 0.019701759338378907,
122
+ 0.019478527069091797,
123
+ 0.019358720779418945,
124
+ 0.01940787124633789,
125
+ 0.018669567108154296,
126
+ 0.019290111541748048,
127
+ 0.019495935440063478,
128
+ 0.0196628475189209,
129
+ 0.019813375473022463,
130
+ 0.020147199630737304,
131
+ 0.019532800674438477,
132
+ 0.01902284812927246,
133
+ 0.019478591918945312,
134
+ 0.01952249526977539,
135
+ 0.019434560775756837,
136
+ 0.01970787239074707,
137
+ 0.01949795150756836,
138
+ 0.01939455986022949,
139
+ 0.019418111801147463,
140
+ 0.019414016723632813,
141
+ 0.019687423706054686,
142
+ 0.019534847259521485,
143
+ 0.019562496185302734,
144
+ 0.019578943252563475,
145
+ 0.019489728927612304,
146
+ 0.019449855804443358,
147
+ 0.019169279098510742,
148
+ 0.01907711982727051,
149
+ 0.019100671768188478,
150
+ 0.019151872634887695,
151
+ 0.019412992477416992,
152
+ 0.01946112060546875,
153
+ 0.0194467830657959,
154
+ 0.01942937660217285,
155
+ 0.01939455986022949,
156
+ 0.01942118453979492,
157
+ 0.019110912322998046,
158
+ 0.018840576171875,
159
+ 0.019108863830566408,
160
+ 0.019176448822021484,
161
+ 0.019148799896240236,
162
+ 0.019088384628295898,
163
+ 0.018970624923706055,
164
+ 0.018538496017456055,
165
+ 0.019092479705810548,
166
+ 0.019083263397216797,
167
+ 0.01904742431640625,
168
+ 0.019104768753051758,
169
+ 0.01906380844116211,
170
+ 0.019098623275756836,
171
+ 0.01903001594543457,
172
+ 0.018844671249389648,
173
+ 0.019174400329589843,
174
+ 0.019091455459594727,
175
+ 0.019058687210083008,
176
+ 0.018920448303222655,
177
+ 0.019164159774780275,
178
+ 0.019106815338134766,
179
+ 0.018702335357666015,
180
+ 0.018578432083129884,
181
+ 0.01900441551208496,
182
+ 0.01903411293029785,
183
+ 0.019371007919311522,
184
+ 0.018881536483764647,
185
+ 0.01858252716064453,
186
+ 0.0188723201751709,
187
+ 0.019132415771484376,
188
+ 0.018931711196899414,
189
+ 0.018921472549438476,
190
+ 0.018669567108154296,
191
+ 0.01906790351867676,
192
+ 0.019575807571411134,
193
+ 0.019409919738769533,
194
+ 0.019355648040771483,
195
+ 0.01941913604736328,
196
+ 0.019358720779418945,
197
+ 0.018890752792358398,
198
+ 0.0186060791015625,
199
+ 0.01909350395202637,
200
+ 0.0191016960144043,
201
+ 0.018684928894042968,
202
+ 0.019168256759643554,
203
+ 0.039444480895996094,
204
+ 0.01862041664123535,
205
+ 0.018589696884155273,
206
+ 0.019264511108398438,
207
+ 0.01926655960083008,
208
+ 0.0192675838470459,
209
+ 0.01843097686767578,
210
+ 0.018375680923461913,
211
+ 0.018618368148803712,
212
+ 0.018998271942138673,
213
+ 0.018955263137817382,
214
+ 0.018988031387329102,
215
+ 0.018480127334594726,
216
+ 0.018508800506591795,
217
+ 0.01900339126586914,
218
+ 0.018542591094970702,
219
+ 0.018953216552734374,
220
+ 0.018958335876464845,
221
+ 0.019009536743164062,
222
+ 0.018907136917114258,
223
+ 0.018908159255981445,
224
+ 0.01885081672668457,
225
+ 0.018942975997924806,
226
+ 0.01844223976135254,
227
+ 0.018651136398315428,
228
+ 0.018911231994628908,
229
+ 0.018959360122680666,
230
+ 0.018998271942138673,
231
+ 0.01899212837219238,
232
+ 0.018530303955078126,
233
+ 0.019035200119018554,
234
+ 0.01869817543029785,
235
+ 0.018955263137817382,
236
+ 0.01844633674621582,
237
+ 0.01848320007324219,
238
+ 0.01886310386657715,
239
+ 0.01887539291381836,
240
+ 0.018803712844848632,
241
+ 0.018913280487060546,
242
+ 0.018936832427978514,
243
+ 0.01888768005371094,
244
+ 0.01924710464477539,
245
+ 0.01925017547607422,
246
+ 0.018939903259277344,
247
+ 0.01862041664123535,
248
+ 0.018737152099609376,
249
+ 0.01926348876953125,
250
+ 0.018732032775878905,
251
+ 0.019298303604125978,
252
+ 0.019294208526611328,
253
+ 0.019298303604125978,
254
+ 0.019111936569213867,
255
+ 0.018971647262573242,
256
+ 0.019343360900878907,
257
+ 0.019286016464233398,
258
+ 0.019299392700195313,
259
+ 0.01920915222167969,
260
+ 0.01882521629333496,
261
+ 0.0188272647857666,
262
+ 0.01879449653625488,
263
+ 0.01869824028015137,
264
+ 0.018585599899291993,
265
+ 0.018581504821777343,
266
+ 0.01861734390258789,
267
+ 0.018865152359008788,
268
+ 0.0188221435546875,
269
+ 0.01861427116394043,
270
+ 0.018579456329345705,
271
+ 0.018581504821777343,
272
+ 0.018569215774536133,
273
+ 0.018536447525024414,
274
+ 0.01879654312133789,
275
+ 0.019397632598876953,
276
+ 0.019118080139160155,
277
+ 0.019357696533203125,
278
+ 0.018990079879760743,
279
+ 0.01862553596496582,
280
+ 0.01866035270690918,
281
+ 0.01858252716064453,
282
+ 0.018545663833618165,
283
+ 0.018520063400268554,
284
+ 0.018506752014160157,
285
+ 0.018572288513183592,
286
+ 0.018533376693725585,
287
+ 0.018518016815185546,
288
+ 0.018504703521728515,
289
+ 0.018555904388427736,
290
+ 0.01865318489074707,
291
+ 0.018566144943237304,
292
+ 0.018545663833618165,
293
+ 0.018514944076538087,
294
+ 0.019123199462890626,
295
+ 0.019084287643432618,
296
+ 0.019120128631591796,
297
+ 0.01942732810974121,
298
+ 0.018754560470581053,
299
+ 0.01864396858215332,
300
+ 0.018579456329345705,
301
+ 0.0185743350982666,
302
+ 0.018550783157348632,
303
+ 0.018593791961669923,
304
+ 0.018702335357666015,
305
+ 0.019120128631591796,
306
+ 0.018911231994628908,
307
+ 0.018509824752807616,
308
+ 0.018557952880859374,
309
+ 0.018555904388427736,
310
+ 0.018536447525024414,
311
+ 0.018752511978149415,
312
+ 0.018695167541503906,
313
+ 0.018719743728637696,
314
+ 0.01861529541015625,
315
+ 0.018545663833618165,
316
+ 0.018538496017456055,
317
+ 0.018540544509887694,
318
+ 0.018509824752807616,
319
+ 0.01843609619140625,
320
+ 0.018541568756103514,
321
+ 0.018594816207885743,
322
+ 0.018547712326049806,
323
+ 0.01878835105895996,
324
+ 0.018747392654418944,
325
+ 0.018754560470581053,
326
+ 0.018718719482421875,
327
+ 0.018753536224365236,
328
+ 0.018770944595336913,
329
+ 0.018733055114746093
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 52.63554743723807
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02032707118988037,
7
+ "prefill.throughput.value": 344.36835167305753,
8
+ "decode.latency.mean": 2.403255249023437,
9
+ "decode.throughput.value": 52.84499016557083,
10
+ "per_token.latency.mean": 0.0189985674831707,
11
+ "per_token.throughput.value": 52.63554743723807
12
+ }
13
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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: 2505357e4fdea82d1586b8c0862b4eeb46fac457
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457
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/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457
88
+ - hydra.run.dir=_benchmark/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457/${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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-18 15:19:03,443][process][ERROR] - + Sending traceback to main process
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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: 2505357e4fdea82d1586b8c0862b4eeb46fac457
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457
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/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457
88
+ - hydra.run.dir=_benchmark/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457/${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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1750.478848,
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.04512502479553222,
118
+ "mean": 0.02256251239776611,
119
+ "stdev": 5.4608345031738684e-05,
120
+ "p50": 0.02256251239776611,
121
+ "p90": 0.022606199073791505,
122
+ "p95": 0.02261165990829468,
123
+ "p99": 0.02261602857589722,
124
+ "values": [
125
+ 0.022617120742797852,
126
+ 0.022507904052734375
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 310.24913700182884
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1750.532096,
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.162512939453125,
149
+ "mean": 2.5812564697265623,
150
+ "stdev": 0.03181506347656238,
151
+ "p50": 2.5812564697265623,
152
+ "p90": 2.6067085205078127,
153
+ "p95": 2.6098900268554686,
154
+ "p99": 2.6124352319335937,
155
+ "values": [
156
+ 2.613071533203125,
157
+ 2.54944140625
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 49.20084520444935
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.164655601501464,
173
+ "mean": 0.020413658503958362,
174
+ "stdev": 0.0015503588996863377,
175
+ "p50": 0.020134912490844727,
176
+ "p90": 0.020815667343139648,
177
+ "p95": 0.021077402114868162,
178
+ "p99": 0.022465617446899396,
179
+ "values": [
180
+ 0.020351999282836913,
181
+ 0.0206561279296875,
182
+ 0.020726783752441406,
183
+ 0.02050764846801758,
184
+ 0.020553728103637696,
185
+ 0.02041651153564453,
186
+ 0.020486143112182616,
187
+ 0.020149248123168945,
188
+ 0.02036735916137695,
189
+ 0.02041753578186035,
190
+ 0.020526079177856444,
191
+ 0.020570112228393556,
192
+ 0.02052403259277344,
193
+ 0.02068992042541504,
194
+ 0.02064691162109375,
195
+ 0.020619264602661135,
196
+ 0.020571136474609376,
197
+ 0.020398080825805662,
198
+ 0.020584447860717774,
199
+ 0.020460544586181642,
200
+ 0.02025574493408203,
201
+ 0.021137407302856445,
202
+ 0.02110873603820801,
203
+ 0.02103398323059082,
204
+ 0.021523456573486328,
205
+ 0.02166886329650879,
206
+ 0.02166579246520996,
207
+ 0.02148659133911133,
208
+ 0.021259263992309572,
209
+ 0.02122854423522949,
210
+ 0.02043084716796875,
211
+ 0.020196352005004883,
212
+ 0.020428800582885744,
213
+ 0.020470783233642577,
214
+ 0.02062335968017578,
215
+ 0.02021785545349121,
216
+ 0.020322303771972656,
217
+ 0.020277311325073242,
218
+ 0.02037241554260254,
219
+ 0.020196352005004883,
220
+ 0.020134912490844727,
221
+ 0.02085171127319336,
222
+ 0.02050662422180176,
223
+ 0.020743167877197266,
224
+ 0.020992000579833983,
225
+ 0.02332876777648926,
226
+ 0.024542207717895507,
227
+ 0.021200895309448242,
228
+ 0.0210565128326416,
229
+ 0.02047385597229004,
230
+ 0.02065100860595703,
231
+ 0.020609024047851563,
232
+ 0.020719615936279297,
233
+ 0.020624383926391602,
234
+ 0.019886079788208007,
235
+ 0.020229120254516602,
236
+ 0.0198922233581543,
237
+ 0.019907583236694337,
238
+ 0.019903488159179687,
239
+ 0.01987481689453125,
240
+ 0.020544511795043945,
241
+ 0.019862527847290038,
242
+ 0.019887104034423828,
243
+ 0.0206376953125,
244
+ 0.020633600234985353,
245
+ 0.019891199111938478,
246
+ 0.020797439575195312,
247
+ 0.020737024307250978,
248
+ 0.02082508850097656,
249
+ 0.020813823699951172,
250
+ 0.02069811248779297,
251
+ 0.020815872192382814,
252
+ 0.020798463821411133,
253
+ 0.020734975814819336,
254
+ 0.020784128189086915,
255
+ 0.019900415420532228,
256
+ 0.019934207916259765,
257
+ 0.0198922233581543,
258
+ 0.02059878349304199,
259
+ 0.020782079696655274,
260
+ 0.020750335693359375,
261
+ 0.02081177520751953,
262
+ 0.020814847946166993,
263
+ 0.02069606399536133,
264
+ 0.019869695663452147,
265
+ 0.020011007308959963,
266
+ 0.020731903076171874,
267
+ 0.01983897590637207,
268
+ 0.01985024070739746,
269
+ 0.019842048645019532,
270
+ 0.019877887725830077,
271
+ 0.01986457633972168,
272
+ 0.02066534423828125,
273
+ 0.02081996726989746,
274
+ 0.020709375381469726,
275
+ 0.020765695571899414,
276
+ 0.020722719192504884,
277
+ 0.0206909122467041,
278
+ 0.019891199111938478,
279
+ 0.021005311965942384,
280
+ 0.020724735260009765,
281
+ 0.020809728622436522,
282
+ 0.020701183319091796,
283
+ 0.019896320343017578,
284
+ 0.01990656089782715,
285
+ 0.019943424224853516,
286
+ 0.019951616287231445,
287
+ 0.02002739143371582,
288
+ 0.02066739273071289,
289
+ 0.0204769287109375,
290
+ 0.020747264862060546,
291
+ 0.020444160461425782,
292
+ 0.020601856231689454,
293
+ 0.02067865562438965,
294
+ 0.020702207565307617,
295
+ 0.020987903594970703,
296
+ 0.020960256576538085,
297
+ 0.020711423873901368,
298
+ 0.020708351135253905,
299
+ 0.02073299217224121,
300
+ 0.020704191207885744,
301
+ 0.019932159423828123,
302
+ 0.019945472717285157,
303
+ 0.02023423957824707,
304
+ 0.020737024307250978,
305
+ 0.02068377685546875,
306
+ 0.04345753479003906,
307
+ 0.020805631637573242,
308
+ 0.02079539108276367,
309
+ 0.020787200927734374,
310
+ 0.019926015853881835,
311
+ 0.020024320602416993,
312
+ 0.019922943115234376,
313
+ 0.019911680221557617,
314
+ 0.019901439666748046,
315
+ 0.019933183670043944,
316
+ 0.01993011283874512,
317
+ 0.020126720428466797,
318
+ 0.01993011283874512,
319
+ 0.019926015853881835,
320
+ 0.020777984619140624,
321
+ 0.019916799545288084,
322
+ 0.01989017677307129,
323
+ 0.01987993621826172,
324
+ 0.0198973445892334,
325
+ 0.019907583236694337,
326
+ 0.01985740852355957,
327
+ 0.019920896530151368,
328
+ 0.019786752700805665,
329
+ 0.01988812828063965,
330
+ 0.019915775299072267,
331
+ 0.019893247604370116,
332
+ 0.01991372871398926,
333
+ 0.019958784103393554,
334
+ 0.01988403129577637,
335
+ 0.019918848037719726,
336
+ 0.019912704467773438,
337
+ 0.019883007049560548,
338
+ 0.019912704467773438,
339
+ 0.019935232162475586,
340
+ 0.01990656089782715,
341
+ 0.019914751052856446,
342
+ 0.019899391174316407,
343
+ 0.019960832595825196,
344
+ 0.02004684829711914,
345
+ 0.019931135177612306,
346
+ 0.01986867141723633,
347
+ 0.019893247604370116,
348
+ 0.020198400497436524,
349
+ 0.02069196891784668,
350
+ 0.020711423873901368,
351
+ 0.020720640182495118,
352
+ 0.02064076805114746,
353
+ 0.019914751052856446,
354
+ 0.019919872283935547,
355
+ 0.019929088592529298,
356
+ 0.020555776596069338,
357
+ 0.019919872283935547,
358
+ 0.01987993621826172,
359
+ 0.019917823791503905,
360
+ 0.0198922233581543,
361
+ 0.0198922233581543,
362
+ 0.019904512405395508,
363
+ 0.01993011283874512,
364
+ 0.01992192077636719,
365
+ 0.019870719909667968,
366
+ 0.019893247604370116,
367
+ 0.019926015853881835,
368
+ 0.019945472717285157,
369
+ 0.019944448471069336,
370
+ 0.020172800064086914,
371
+ 0.019942399978637695,
372
+ 0.01992192077636719,
373
+ 0.019917823791503905,
374
+ 0.019937280654907227,
375
+ 0.01997209548950195,
376
+ 0.019938304901123048,
377
+ 0.020280319213867186,
378
+ 0.019916799545288084,
379
+ 0.019961856842041017,
380
+ 0.019917823791503905,
381
+ 0.020011007308959963,
382
+ 0.019914751052856446,
383
+ 0.019909631729125975,
384
+ 0.019932159423828123,
385
+ 0.019908607482910155,
386
+ 0.019949567794799804,
387
+ 0.019961856842041017,
388
+ 0.019963903427124022,
389
+ 0.019914751052856446,
390
+ 0.020142080307006836,
391
+ 0.02127769660949707,
392
+ 0.02066431999206543,
393
+ 0.020695039749145508,
394
+ 0.020736000061035157,
395
+ 0.020726783752441406,
396
+ 0.02067046356201172,
397
+ 0.020727807998657227,
398
+ 0.019877887725830077,
399
+ 0.019909631729125975,
400
+ 0.01985740852355957,
401
+ 0.019894271850585937,
402
+ 0.019876863479614256,
403
+ 0.0198656005859375,
404
+ 0.019853311538696287,
405
+ 0.019896320343017578,
406
+ 0.020092927932739257,
407
+ 0.020890623092651366,
408
+ 0.020880384445190428,
409
+ 0.02088243293762207,
410
+ 0.020719615936279297,
411
+ 0.020783103942871094,
412
+ 0.01989017677307129,
413
+ 0.019940351486206053,
414
+ 0.01984716796875,
415
+ 0.019883007049560548,
416
+ 0.019914751052856446,
417
+ 0.019914751052856446,
418
+ 0.01987583923339844,
419
+ 0.01987583923339844,
420
+ 0.019977216720581056,
421
+ 0.019917823791503905,
422
+ 0.01986764717102051,
423
+ 0.019926015853881835,
424
+ 0.019907583236694337,
425
+ 0.01988096046447754,
426
+ 0.019876863479614256,
427
+ 0.01984511947631836,
428
+ 0.01965875244140625,
429
+ 0.019739648818969727,
430
+ 0.019947519302368166,
431
+ 0.019962879180908204,
432
+ 0.02029465675354004
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 48.98680948376267
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": 1750.478848,
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.04512502479553222,
15
+ "mean": 0.02256251239776611,
16
+ "stdev": 5.4608345031738684e-05,
17
+ "p50": 0.02256251239776611,
18
+ "p90": 0.022606199073791505,
19
+ "p95": 0.02261165990829468,
20
+ "p99": 0.02261602857589722,
21
+ "values": [
22
+ 0.022617120742797852,
23
+ 0.022507904052734375
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 310.24913700182884
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1750.532096,
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.162512939453125,
46
+ "mean": 2.5812564697265623,
47
+ "stdev": 0.03181506347656238,
48
+ "p50": 2.5812564697265623,
49
+ "p90": 2.6067085205078127,
50
+ "p95": 2.6098900268554686,
51
+ "p99": 2.6124352319335937,
52
+ "values": [
53
+ 2.613071533203125,
54
+ 2.54944140625
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 49.20084520444935
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.164655601501464,
70
+ "mean": 0.020413658503958362,
71
+ "stdev": 0.0015503588996863377,
72
+ "p50": 0.020134912490844727,
73
+ "p90": 0.020815667343139648,
74
+ "p95": 0.021077402114868162,
75
+ "p99": 0.022465617446899396,
76
+ "values": [
77
+ 0.020351999282836913,
78
+ 0.0206561279296875,
79
+ 0.020726783752441406,
80
+ 0.02050764846801758,
81
+ 0.020553728103637696,
82
+ 0.02041651153564453,
83
+ 0.020486143112182616,
84
+ 0.020149248123168945,
85
+ 0.02036735916137695,
86
+ 0.02041753578186035,
87
+ 0.020526079177856444,
88
+ 0.020570112228393556,
89
+ 0.02052403259277344,
90
+ 0.02068992042541504,
91
+ 0.02064691162109375,
92
+ 0.020619264602661135,
93
+ 0.020571136474609376,
94
+ 0.020398080825805662,
95
+ 0.020584447860717774,
96
+ 0.020460544586181642,
97
+ 0.02025574493408203,
98
+ 0.021137407302856445,
99
+ 0.02110873603820801,
100
+ 0.02103398323059082,
101
+ 0.021523456573486328,
102
+ 0.02166886329650879,
103
+ 0.02166579246520996,
104
+ 0.02148659133911133,
105
+ 0.021259263992309572,
106
+ 0.02122854423522949,
107
+ 0.02043084716796875,
108
+ 0.020196352005004883,
109
+ 0.020428800582885744,
110
+ 0.020470783233642577,
111
+ 0.02062335968017578,
112
+ 0.02021785545349121,
113
+ 0.020322303771972656,
114
+ 0.020277311325073242,
115
+ 0.02037241554260254,
116
+ 0.020196352005004883,
117
+ 0.020134912490844727,
118
+ 0.02085171127319336,
119
+ 0.02050662422180176,
120
+ 0.020743167877197266,
121
+ 0.020992000579833983,
122
+ 0.02332876777648926,
123
+ 0.024542207717895507,
124
+ 0.021200895309448242,
125
+ 0.0210565128326416,
126
+ 0.02047385597229004,
127
+ 0.02065100860595703,
128
+ 0.020609024047851563,
129
+ 0.020719615936279297,
130
+ 0.020624383926391602,
131
+ 0.019886079788208007,
132
+ 0.020229120254516602,
133
+ 0.0198922233581543,
134
+ 0.019907583236694337,
135
+ 0.019903488159179687,
136
+ 0.01987481689453125,
137
+ 0.020544511795043945,
138
+ 0.019862527847290038,
139
+ 0.019887104034423828,
140
+ 0.0206376953125,
141
+ 0.020633600234985353,
142
+ 0.019891199111938478,
143
+ 0.020797439575195312,
144
+ 0.020737024307250978,
145
+ 0.02082508850097656,
146
+ 0.020813823699951172,
147
+ 0.02069811248779297,
148
+ 0.020815872192382814,
149
+ 0.020798463821411133,
150
+ 0.020734975814819336,
151
+ 0.020784128189086915,
152
+ 0.019900415420532228,
153
+ 0.019934207916259765,
154
+ 0.0198922233581543,
155
+ 0.02059878349304199,
156
+ 0.020782079696655274,
157
+ 0.020750335693359375,
158
+ 0.02081177520751953,
159
+ 0.020814847946166993,
160
+ 0.02069606399536133,
161
+ 0.019869695663452147,
162
+ 0.020011007308959963,
163
+ 0.020731903076171874,
164
+ 0.01983897590637207,
165
+ 0.01985024070739746,
166
+ 0.019842048645019532,
167
+ 0.019877887725830077,
168
+ 0.01986457633972168,
169
+ 0.02066534423828125,
170
+ 0.02081996726989746,
171
+ 0.020709375381469726,
172
+ 0.020765695571899414,
173
+ 0.020722719192504884,
174
+ 0.0206909122467041,
175
+ 0.019891199111938478,
176
+ 0.021005311965942384,
177
+ 0.020724735260009765,
178
+ 0.020809728622436522,
179
+ 0.020701183319091796,
180
+ 0.019896320343017578,
181
+ 0.01990656089782715,
182
+ 0.019943424224853516,
183
+ 0.019951616287231445,
184
+ 0.02002739143371582,
185
+ 0.02066739273071289,
186
+ 0.0204769287109375,
187
+ 0.020747264862060546,
188
+ 0.020444160461425782,
189
+ 0.020601856231689454,
190
+ 0.02067865562438965,
191
+ 0.020702207565307617,
192
+ 0.020987903594970703,
193
+ 0.020960256576538085,
194
+ 0.020711423873901368,
195
+ 0.020708351135253905,
196
+ 0.02073299217224121,
197
+ 0.020704191207885744,
198
+ 0.019932159423828123,
199
+ 0.019945472717285157,
200
+ 0.02023423957824707,
201
+ 0.020737024307250978,
202
+ 0.02068377685546875,
203
+ 0.04345753479003906,
204
+ 0.020805631637573242,
205
+ 0.02079539108276367,
206
+ 0.020787200927734374,
207
+ 0.019926015853881835,
208
+ 0.020024320602416993,
209
+ 0.019922943115234376,
210
+ 0.019911680221557617,
211
+ 0.019901439666748046,
212
+ 0.019933183670043944,
213
+ 0.01993011283874512,
214
+ 0.020126720428466797,
215
+ 0.01993011283874512,
216
+ 0.019926015853881835,
217
+ 0.020777984619140624,
218
+ 0.019916799545288084,
219
+ 0.01989017677307129,
220
+ 0.01987993621826172,
221
+ 0.0198973445892334,
222
+ 0.019907583236694337,
223
+ 0.01985740852355957,
224
+ 0.019920896530151368,
225
+ 0.019786752700805665,
226
+ 0.01988812828063965,
227
+ 0.019915775299072267,
228
+ 0.019893247604370116,
229
+ 0.01991372871398926,
230
+ 0.019958784103393554,
231
+ 0.01988403129577637,
232
+ 0.019918848037719726,
233
+ 0.019912704467773438,
234
+ 0.019883007049560548,
235
+ 0.019912704467773438,
236
+ 0.019935232162475586,
237
+ 0.01990656089782715,
238
+ 0.019914751052856446,
239
+ 0.019899391174316407,
240
+ 0.019960832595825196,
241
+ 0.02004684829711914,
242
+ 0.019931135177612306,
243
+ 0.01986867141723633,
244
+ 0.019893247604370116,
245
+ 0.020198400497436524,
246
+ 0.02069196891784668,
247
+ 0.020711423873901368,
248
+ 0.020720640182495118,
249
+ 0.02064076805114746,
250
+ 0.019914751052856446,
251
+ 0.019919872283935547,
252
+ 0.019929088592529298,
253
+ 0.020555776596069338,
254
+ 0.019919872283935547,
255
+ 0.01987993621826172,
256
+ 0.019917823791503905,
257
+ 0.0198922233581543,
258
+ 0.0198922233581543,
259
+ 0.019904512405395508,
260
+ 0.01993011283874512,
261
+ 0.01992192077636719,
262
+ 0.019870719909667968,
263
+ 0.019893247604370116,
264
+ 0.019926015853881835,
265
+ 0.019945472717285157,
266
+ 0.019944448471069336,
267
+ 0.020172800064086914,
268
+ 0.019942399978637695,
269
+ 0.01992192077636719,
270
+ 0.019917823791503905,
271
+ 0.019937280654907227,
272
+ 0.01997209548950195,
273
+ 0.019938304901123048,
274
+ 0.020280319213867186,
275
+ 0.019916799545288084,
276
+ 0.019961856842041017,
277
+ 0.019917823791503905,
278
+ 0.020011007308959963,
279
+ 0.019914751052856446,
280
+ 0.019909631729125975,
281
+ 0.019932159423828123,
282
+ 0.019908607482910155,
283
+ 0.019949567794799804,
284
+ 0.019961856842041017,
285
+ 0.019963903427124022,
286
+ 0.019914751052856446,
287
+ 0.020142080307006836,
288
+ 0.02127769660949707,
289
+ 0.02066431999206543,
290
+ 0.020695039749145508,
291
+ 0.020736000061035157,
292
+ 0.020726783752441406,
293
+ 0.02067046356201172,
294
+ 0.020727807998657227,
295
+ 0.019877887725830077,
296
+ 0.019909631729125975,
297
+ 0.01985740852355957,
298
+ 0.019894271850585937,
299
+ 0.019876863479614256,
300
+ 0.0198656005859375,
301
+ 0.019853311538696287,
302
+ 0.019896320343017578,
303
+ 0.020092927932739257,
304
+ 0.020890623092651366,
305
+ 0.020880384445190428,
306
+ 0.02088243293762207,
307
+ 0.020719615936279297,
308
+ 0.020783103942871094,
309
+ 0.01989017677307129,
310
+ 0.019940351486206053,
311
+ 0.01984716796875,
312
+ 0.019883007049560548,
313
+ 0.019914751052856446,
314
+ 0.019914751052856446,
315
+ 0.01987583923339844,
316
+ 0.01987583923339844,
317
+ 0.019977216720581056,
318
+ 0.019917823791503905,
319
+ 0.01986764717102051,
320
+ 0.019926015853881835,
321
+ 0.019907583236694337,
322
+ 0.01988096046447754,
323
+ 0.019876863479614256,
324
+ 0.01984511947631836,
325
+ 0.01965875244140625,
326
+ 0.019739648818969727,
327
+ 0.019947519302368166,
328
+ 0.019962879180908204,
329
+ 0.02029465675354004
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 48.98680948376267
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02256251239776611,
7
+ "prefill.throughput.value": 310.24913700182884,
8
+ "decode.latency.mean": 2.5812564697265623,
9
+ "decode.throughput.value": 49.20084520444935,
10
+ "per_token.latency.mean": 0.020413658503958362,
11
+ "per_token.throughput.value": 48.98680948376267
12
+ }
13
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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: 2505357e4fdea82d1586b8c0862b4eeb46fac457
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457
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/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457
88
+ - hydra.run.dir=_benchmark/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457/${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/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1938.583552,
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.02814950466156006,
118
+ "mean": 0.01407475233078003,
119
+ "stdev": 4.089593887329074e-05,
120
+ "p50": 0.01407475233078003,
121
+ "p90": 0.014107469081878663,
122
+ "p95": 0.014111558675765992,
123
+ "p99": 0.014114830350875854,
124
+ "values": [
125
+ 0.01411564826965332,
126
+ 0.014033856391906739
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 497.3444530666251
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2282.364928,
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.118211303710938,
149
+ "mean": 1.559105651855469,
150
+ "stdev": 0.001427551269531313,
151
+ "p50": 1.559105651855469,
152
+ "p90": 1.5602476928710938,
153
+ "p95": 1.560390447998047,
154
+ "p99": 1.5605046520996095,
155
+ "values": [
156
+ 1.560533203125,
157
+ 1.5576781005859375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 81.4569556905006
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.119401980400085,
173
+ "mean": 0.012329652096443025,
174
+ "stdev": 0.0008967912993660214,
175
+ "p50": 0.01226854419708252,
176
+ "p90": 0.012301926231384278,
177
+ "p95": 0.012319129562377929,
178
+ "p99": 0.012702146606445313,
179
+ "values": [
180
+ 0.012700672149658204,
181
+ 0.012703743934631348,
182
+ 0.012698623657226562,
183
+ 0.012768256187438964,
184
+ 0.012238847732543945,
185
+ 0.01226854419708252,
186
+ 0.012241920471191407,
187
+ 0.012275712013244629,
188
+ 0.01223475170135498,
189
+ 0.012278783798217773,
190
+ 0.012233728408813477,
191
+ 0.012273695945739746,
192
+ 0.012232671737670899,
193
+ 0.012281855583190919,
194
+ 0.012228608131408691,
195
+ 0.012265631675720215,
196
+ 0.012227423667907715,
197
+ 0.012277759552001954,
198
+ 0.012233728408813477,
199
+ 0.012277759552001954,
200
+ 0.01223475170135498,
201
+ 0.012278783798217773,
202
+ 0.012241920471191407,
203
+ 0.01227673625946045,
204
+ 0.012231679916381836,
205
+ 0.012297216415405274,
206
+ 0.012240896224975586,
207
+ 0.012280832290649414,
208
+ 0.01223475170135498,
209
+ 0.012289024353027344,
210
+ 0.01224396800994873,
211
+ 0.012265472412109376,
212
+ 0.012232704162597656,
213
+ 0.012273664474487305,
214
+ 0.01225113582611084,
215
+ 0.012273664474487305,
216
+ 0.012241920471191407,
217
+ 0.012296192169189453,
218
+ 0.012244992256164551,
219
+ 0.012275712013244629,
220
+ 0.01225011157989502,
221
+ 0.012297247886657715,
222
+ 0.012240863800048829,
223
+ 0.012294143676757812,
224
+ 0.012231679916381836,
225
+ 0.012266495704650878,
226
+ 0.0122357759475708,
227
+ 0.012273664474487305,
228
+ 0.0122357759475708,
229
+ 0.012270591735839843,
230
+ 0.01224294376373291,
231
+ 0.01226956844329834,
232
+ 0.012232704162597656,
233
+ 0.012295167922973632,
234
+ 0.0122357759475708,
235
+ 0.01230953598022461,
236
+ 0.012260319709777832,
237
+ 0.012283904075622559,
238
+ 0.012228608131408691,
239
+ 0.012274687767028808,
240
+ 0.012223487854003906,
241
+ 0.01229312038421631,
242
+ 0.012231679916381836,
243
+ 0.012278783798217773,
244
+ 0.012230655670166016,
245
+ 0.012388352394104005,
246
+ 0.012283904075622559,
247
+ 0.012318719863891601,
248
+ 0.01225830364227295,
249
+ 0.012300288200378418,
250
+ 0.012297216415405274,
251
+ 0.012304384231567383,
252
+ 0.012231679916381836,
253
+ 0.012275712013244629,
254
+ 0.012230655670166016,
255
+ 0.012291071891784668,
256
+ 0.0122357759475708,
257
+ 0.012283904075622559,
258
+ 0.012225536346435547,
259
+ 0.012278783798217773,
260
+ 0.012263423919677734,
261
+ 0.012316672325134278,
262
+ 0.012354559898376465,
263
+ 0.012438528060913086,
264
+ 0.012492799758911132,
265
+ 0.012320768356323243,
266
+ 0.012253184318542481,
267
+ 0.012306431770324706,
268
+ 0.012231679916381836,
269
+ 0.012271615982055664,
270
+ 0.0122357759475708,
271
+ 0.012292096138000488,
272
+ 0.012240896224975586,
273
+ 0.012267519950866699,
274
+ 0.012226559638977052,
275
+ 0.01229312038421631,
276
+ 0.012247039794921874,
277
+ 0.012266559600830078,
278
+ 0.012251071929931641,
279
+ 0.012315648078918457,
280
+ 0.012222463607788087,
281
+ 0.012262399673461915,
282
+ 0.012231679916381836,
283
+ 0.012263423919677734,
284
+ 0.012249088287353516,
285
+ 0.012271615982055664,
286
+ 0.012220416069030762,
287
+ 0.012281855583190919,
288
+ 0.01222758388519287,
289
+ 0.012279808044433594,
290
+ 0.012222463607788087,
291
+ 0.012278783798217773,
292
+ 0.012262399673461915,
293
+ 0.012278783798217773,
294
+ 0.012244992256164551,
295
+ 0.012277759552001954,
296
+ 0.01222758388519287,
297
+ 0.012291071891784668,
298
+ 0.012236800193786621,
299
+ 0.01226137638092041,
300
+ 0.012262399673461915,
301
+ 0.012282879829406738,
302
+ 0.012236800193786621,
303
+ 0.012294143676757812,
304
+ 0.012240896224975586,
305
+ 0.012508159637451171,
306
+ 0.02652569580078125,
307
+ 0.012246015548706055,
308
+ 0.012282879829406738,
309
+ 0.012237824440002442,
310
+ 0.012314623832702636,
311
+ 0.012232704162597656,
312
+ 0.012289024353027344,
313
+ 0.012233728408813477,
314
+ 0.012297216415405274,
315
+ 0.012264448165893555,
316
+ 0.012285951614379884,
317
+ 0.012233728408813477,
318
+ 0.012278783798217773,
319
+ 0.012254207611083985,
320
+ 0.012275712013244629,
321
+ 0.01225011157989502,
322
+ 0.012278783798217773,
323
+ 0.012240896224975586,
324
+ 0.012274687767028808,
325
+ 0.012277759552001954,
326
+ 0.012273664474487305,
327
+ 0.012256256103515625,
328
+ 0.012316672325134278,
329
+ 0.012281855583190919,
330
+ 0.012294143676757812,
331
+ 0.012230655670166016,
332
+ 0.01228492832183838,
333
+ 0.012223487854003906,
334
+ 0.012299263954162597,
335
+ 0.01225011157989502,
336
+ 0.012280832290649414,
337
+ 0.012237824440002442,
338
+ 0.012270591735839843,
339
+ 0.012224512100219726,
340
+ 0.012283904075622559,
341
+ 0.012231679916381836,
342
+ 0.012286975860595703,
343
+ 0.012244992256164551,
344
+ 0.012273664474487305,
345
+ 0.012246015548706055,
346
+ 0.012277759552001954,
347
+ 0.012228608131408691,
348
+ 0.012286975860595703,
349
+ 0.012225536346435547,
350
+ 0.012274687767028808,
351
+ 0.01223475170135498,
352
+ 0.01226956844329834,
353
+ 0.012246015548706055,
354
+ 0.01226956844329834,
355
+ 0.012241920471191407,
356
+ 0.012286975860595703,
357
+ 0.01224396800994873,
358
+ 0.012271615982055664,
359
+ 0.012229632377624512,
360
+ 0.012319744110107422,
361
+ 0.012240896224975586,
362
+ 0.01226854419708252,
363
+ 0.012223487854003906,
364
+ 0.012298239707946777,
365
+ 0.0122357759475708,
366
+ 0.012270591735839843,
367
+ 0.01222758388519287,
368
+ 0.01227673625946045,
369
+ 0.012229632377624512,
370
+ 0.012275712013244629,
371
+ 0.012257280349731446,
372
+ 0.012306431770324706,
373
+ 0.012266495704650878,
374
+ 0.012282879829406738,
375
+ 0.012240896224975586,
376
+ 0.012304384231567383,
377
+ 0.012246015548706055,
378
+ 0.012265472412109376,
379
+ 0.01225216007232666,
380
+ 0.012281855583190919,
381
+ 0.012239871978759765,
382
+ 0.01226854419708252,
383
+ 0.012223487854003906,
384
+ 0.012281855583190919,
385
+ 0.012231679916381836,
386
+ 0.012281855583190919,
387
+ 0.012224512100219726,
388
+ 0.012304384231567383,
389
+ 0.012239871978759765,
390
+ 0.012281855583190919,
391
+ 0.01224396800994873,
392
+ 0.012306431770324706,
393
+ 0.012253184318542481,
394
+ 0.01228492832183838,
395
+ 0.012223487854003906,
396
+ 0.01226956844329834,
397
+ 0.01225216007232666,
398
+ 0.012302335739135742,
399
+ 0.012246015548706055,
400
+ 0.012273664474487305,
401
+ 0.012236800193786621,
402
+ 0.012274720191955567,
403
+ 0.012243935585021973,
404
+ 0.012294143676757812,
405
+ 0.012248064041137695,
406
+ 0.012294143676757812,
407
+ 0.012279808044433594,
408
+ 0.01229312038421631,
409
+ 0.012255231857299804,
410
+ 0.012281855583190919,
411
+ 0.012247039794921874,
412
+ 0.012262399673461915,
413
+ 0.012231679916381836,
414
+ 0.01227673625946045,
415
+ 0.012231679916381836,
416
+ 0.012278783798217773,
417
+ 0.012230655670166016,
418
+ 0.01228492832183838,
419
+ 0.012226559638977052,
420
+ 0.012273664474487305,
421
+ 0.01224396800994873,
422
+ 0.012285951614379884,
423
+ 0.012241920471191407,
424
+ 0.012282879829406738,
425
+ 0.012378111839294433,
426
+ 0.012289024353027344,
427
+ 0.012228608131408691,
428
+ 0.012275712013244629,
429
+ 0.012238847732543945,
430
+ 0.012288000106811523,
431
+ 0.012229632377624512,
432
+ 0.012270591735839843
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 81.10528927969423
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": 1938.583552,
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.02814950466156006,
15
+ "mean": 0.01407475233078003,
16
+ "stdev": 4.089593887329074e-05,
17
+ "p50": 0.01407475233078003,
18
+ "p90": 0.014107469081878663,
19
+ "p95": 0.014111558675765992,
20
+ "p99": 0.014114830350875854,
21
+ "values": [
22
+ 0.01411564826965332,
23
+ 0.014033856391906739
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 497.3444530666251
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2282.364928,
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.118211303710938,
46
+ "mean": 1.559105651855469,
47
+ "stdev": 0.001427551269531313,
48
+ "p50": 1.559105651855469,
49
+ "p90": 1.5602476928710938,
50
+ "p95": 1.560390447998047,
51
+ "p99": 1.5605046520996095,
52
+ "values": [
53
+ 1.560533203125,
54
+ 1.5576781005859375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 81.4569556905006
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.119401980400085,
70
+ "mean": 0.012329652096443025,
71
+ "stdev": 0.0008967912993660214,
72
+ "p50": 0.01226854419708252,
73
+ "p90": 0.012301926231384278,
74
+ "p95": 0.012319129562377929,
75
+ "p99": 0.012702146606445313,
76
+ "values": [
77
+ 0.012700672149658204,
78
+ 0.012703743934631348,
79
+ 0.012698623657226562,
80
+ 0.012768256187438964,
81
+ 0.012238847732543945,
82
+ 0.01226854419708252,
83
+ 0.012241920471191407,
84
+ 0.012275712013244629,
85
+ 0.01223475170135498,
86
+ 0.012278783798217773,
87
+ 0.012233728408813477,
88
+ 0.012273695945739746,
89
+ 0.012232671737670899,
90
+ 0.012281855583190919,
91
+ 0.012228608131408691,
92
+ 0.012265631675720215,
93
+ 0.012227423667907715,
94
+ 0.012277759552001954,
95
+ 0.012233728408813477,
96
+ 0.012277759552001954,
97
+ 0.01223475170135498,
98
+ 0.012278783798217773,
99
+ 0.012241920471191407,
100
+ 0.01227673625946045,
101
+ 0.012231679916381836,
102
+ 0.012297216415405274,
103
+ 0.012240896224975586,
104
+ 0.012280832290649414,
105
+ 0.01223475170135498,
106
+ 0.012289024353027344,
107
+ 0.01224396800994873,
108
+ 0.012265472412109376,
109
+ 0.012232704162597656,
110
+ 0.012273664474487305,
111
+ 0.01225113582611084,
112
+ 0.012273664474487305,
113
+ 0.012241920471191407,
114
+ 0.012296192169189453,
115
+ 0.012244992256164551,
116
+ 0.012275712013244629,
117
+ 0.01225011157989502,
118
+ 0.012297247886657715,
119
+ 0.012240863800048829,
120
+ 0.012294143676757812,
121
+ 0.012231679916381836,
122
+ 0.012266495704650878,
123
+ 0.0122357759475708,
124
+ 0.012273664474487305,
125
+ 0.0122357759475708,
126
+ 0.012270591735839843,
127
+ 0.01224294376373291,
128
+ 0.01226956844329834,
129
+ 0.012232704162597656,
130
+ 0.012295167922973632,
131
+ 0.0122357759475708,
132
+ 0.01230953598022461,
133
+ 0.012260319709777832,
134
+ 0.012283904075622559,
135
+ 0.012228608131408691,
136
+ 0.012274687767028808,
137
+ 0.012223487854003906,
138
+ 0.01229312038421631,
139
+ 0.012231679916381836,
140
+ 0.012278783798217773,
141
+ 0.012230655670166016,
142
+ 0.012388352394104005,
143
+ 0.012283904075622559,
144
+ 0.012318719863891601,
145
+ 0.01225830364227295,
146
+ 0.012300288200378418,
147
+ 0.012297216415405274,
148
+ 0.012304384231567383,
149
+ 0.012231679916381836,
150
+ 0.012275712013244629,
151
+ 0.012230655670166016,
152
+ 0.012291071891784668,
153
+ 0.0122357759475708,
154
+ 0.012283904075622559,
155
+ 0.012225536346435547,
156
+ 0.012278783798217773,
157
+ 0.012263423919677734,
158
+ 0.012316672325134278,
159
+ 0.012354559898376465,
160
+ 0.012438528060913086,
161
+ 0.012492799758911132,
162
+ 0.012320768356323243,
163
+ 0.012253184318542481,
164
+ 0.012306431770324706,
165
+ 0.012231679916381836,
166
+ 0.012271615982055664,
167
+ 0.0122357759475708,
168
+ 0.012292096138000488,
169
+ 0.012240896224975586,
170
+ 0.012267519950866699,
171
+ 0.012226559638977052,
172
+ 0.01229312038421631,
173
+ 0.012247039794921874,
174
+ 0.012266559600830078,
175
+ 0.012251071929931641,
176
+ 0.012315648078918457,
177
+ 0.012222463607788087,
178
+ 0.012262399673461915,
179
+ 0.012231679916381836,
180
+ 0.012263423919677734,
181
+ 0.012249088287353516,
182
+ 0.012271615982055664,
183
+ 0.012220416069030762,
184
+ 0.012281855583190919,
185
+ 0.01222758388519287,
186
+ 0.012279808044433594,
187
+ 0.012222463607788087,
188
+ 0.012278783798217773,
189
+ 0.012262399673461915,
190
+ 0.012278783798217773,
191
+ 0.012244992256164551,
192
+ 0.012277759552001954,
193
+ 0.01222758388519287,
194
+ 0.012291071891784668,
195
+ 0.012236800193786621,
196
+ 0.01226137638092041,
197
+ 0.012262399673461915,
198
+ 0.012282879829406738,
199
+ 0.012236800193786621,
200
+ 0.012294143676757812,
201
+ 0.012240896224975586,
202
+ 0.012508159637451171,
203
+ 0.02652569580078125,
204
+ 0.012246015548706055,
205
+ 0.012282879829406738,
206
+ 0.012237824440002442,
207
+ 0.012314623832702636,
208
+ 0.012232704162597656,
209
+ 0.012289024353027344,
210
+ 0.012233728408813477,
211
+ 0.012297216415405274,
212
+ 0.012264448165893555,
213
+ 0.012285951614379884,
214
+ 0.012233728408813477,
215
+ 0.012278783798217773,
216
+ 0.012254207611083985,
217
+ 0.012275712013244629,
218
+ 0.01225011157989502,
219
+ 0.012278783798217773,
220
+ 0.012240896224975586,
221
+ 0.012274687767028808,
222
+ 0.012277759552001954,
223
+ 0.012273664474487305,
224
+ 0.012256256103515625,
225
+ 0.012316672325134278,
226
+ 0.012281855583190919,
227
+ 0.012294143676757812,
228
+ 0.012230655670166016,
229
+ 0.01228492832183838,
230
+ 0.012223487854003906,
231
+ 0.012299263954162597,
232
+ 0.01225011157989502,
233
+ 0.012280832290649414,
234
+ 0.012237824440002442,
235
+ 0.012270591735839843,
236
+ 0.012224512100219726,
237
+ 0.012283904075622559,
238
+ 0.012231679916381836,
239
+ 0.012286975860595703,
240
+ 0.012244992256164551,
241
+ 0.012273664474487305,
242
+ 0.012246015548706055,
243
+ 0.012277759552001954,
244
+ 0.012228608131408691,
245
+ 0.012286975860595703,
246
+ 0.012225536346435547,
247
+ 0.012274687767028808,
248
+ 0.01223475170135498,
249
+ 0.01226956844329834,
250
+ 0.012246015548706055,
251
+ 0.01226956844329834,
252
+ 0.012241920471191407,
253
+ 0.012286975860595703,
254
+ 0.01224396800994873,
255
+ 0.012271615982055664,
256
+ 0.012229632377624512,
257
+ 0.012319744110107422,
258
+ 0.012240896224975586,
259
+ 0.01226854419708252,
260
+ 0.012223487854003906,
261
+ 0.012298239707946777,
262
+ 0.0122357759475708,
263
+ 0.012270591735839843,
264
+ 0.01222758388519287,
265
+ 0.01227673625946045,
266
+ 0.012229632377624512,
267
+ 0.012275712013244629,
268
+ 0.012257280349731446,
269
+ 0.012306431770324706,
270
+ 0.012266495704650878,
271
+ 0.012282879829406738,
272
+ 0.012240896224975586,
273
+ 0.012304384231567383,
274
+ 0.012246015548706055,
275
+ 0.012265472412109376,
276
+ 0.01225216007232666,
277
+ 0.012281855583190919,
278
+ 0.012239871978759765,
279
+ 0.01226854419708252,
280
+ 0.012223487854003906,
281
+ 0.012281855583190919,
282
+ 0.012231679916381836,
283
+ 0.012281855583190919,
284
+ 0.012224512100219726,
285
+ 0.012304384231567383,
286
+ 0.012239871978759765,
287
+ 0.012281855583190919,
288
+ 0.01224396800994873,
289
+ 0.012306431770324706,
290
+ 0.012253184318542481,
291
+ 0.01228492832183838,
292
+ 0.012223487854003906,
293
+ 0.01226956844329834,
294
+ 0.01225216007232666,
295
+ 0.012302335739135742,
296
+ 0.012246015548706055,
297
+ 0.012273664474487305,
298
+ 0.012236800193786621,
299
+ 0.012274720191955567,
300
+ 0.012243935585021973,
301
+ 0.012294143676757812,
302
+ 0.012248064041137695,
303
+ 0.012294143676757812,
304
+ 0.012279808044433594,
305
+ 0.01229312038421631,
306
+ 0.012255231857299804,
307
+ 0.012281855583190919,
308
+ 0.012247039794921874,
309
+ 0.012262399673461915,
310
+ 0.012231679916381836,
311
+ 0.01227673625946045,
312
+ 0.012231679916381836,
313
+ 0.012278783798217773,
314
+ 0.012230655670166016,
315
+ 0.01228492832183838,
316
+ 0.012226559638977052,
317
+ 0.012273664474487305,
318
+ 0.01224396800994873,
319
+ 0.012285951614379884,
320
+ 0.012241920471191407,
321
+ 0.012282879829406738,
322
+ 0.012378111839294433,
323
+ 0.012289024353027344,
324
+ 0.012228608131408691,
325
+ 0.012275712013244629,
326
+ 0.012238847732543945,
327
+ 0.012288000106811523,
328
+ 0.012229632377624512,
329
+ 0.012270591735839843
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 81.10528927969423
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/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": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.01407475233078003,
7
+ "prefill.throughput.value": 497.3444530666251,
8
+ "decode.latency.mean": 1.559105651855469,
9
+ "decode.throughput.value": 81.4569556905006,
10
+ "per_token.latency.mean": 0.012329652096443025,
11
+ "per_token.throughput.value": 81.10528927969423
12
+ }
13
+ }
2024-06-18/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp3bebznu8/commit=2505357e4fdea82d1586b8c0862b4eeb46fac457
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/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457
88
+ - hydra.run.dir=_benchmark/tmp3bebznu8/commit\=2505357e4fdea82d1586b8c0862b4eeb46fac457/${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: 2505357e4fdea82d1586b8c0862b4eeb46fac457
223
+ accelerate_version: 0.32.0.dev0
224
+ accelerate_commit: null
225
+ diffusers_version: null
226
+ diffusers_commit: null
227
+ optimum_version: 1.21.0.dev0
228
+ optimum_commit: null
229
+ timm_version: 0.9.16
230
+ timm_commit: null
231
+ peft_version: 0.11.2.dev0
232
+ peft_commit: null
2024-06-18/summaries.json CHANGED
@@ -1,41 +1,41 @@
1
  [
2
  {
3
  "model": "google/gemma-2b",
4
- "commit": "1f9387d33d40562add4be03176e22ddf9ed0d4ab",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
- "prefill.latency.mean": 0.020195904731750487,
8
- "prefill.throughput.value": 346.6049227789793,
9
- "decode.latency.mean": 2.4827767333984374,
10
- "decode.throughput.value": 51.15240460069954,
11
- "per_token.latency.mean": 0.01962751399104303,
12
- "per_token.throughput.value": 50.948887386163506
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
- "commit": "1f9387d33d40562add4be03176e22ddf9ed0d4ab",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
- "prefill.latency.mean": 0.022427599906921385,
21
- "prefill.throughput.value": 312.11543049863883,
22
- "decode.latency.mean": 2.6374805908203127,
23
- "decode.throughput.value": 48.15201311509947,
24
- "per_token.latency.mean": 0.02085368712052055,
25
- "per_token.throughput.value": 47.95315064528684
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
- "commit": "1f9387d33d40562add4be03176e22ddf9ed0d4ab",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
- "prefill.latency.mean": 0.014046095848083496,
34
- "prefill.throughput.value": 498.35912240020116,
35
- "decode.latency.mean": 1.5763082275390625,
36
- "decode.throughput.value": 80.5679991902807,
37
- "per_token.latency.mean": 0.012464994140293287,
38
- "per_token.throughput.value": 80.22466667412898
39
  }
40
  }
41
  ]
 
1
  [
2
  {
3
  "model": "google/gemma-2b",
4
+ "commit": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
+ "prefill.latency.mean": 0.02032707118988037,
8
+ "prefill.throughput.value": 344.36835167305753,
9
+ "decode.latency.mean": 2.403255249023437,
10
+ "decode.throughput.value": 52.84499016557083,
11
+ "per_token.latency.mean": 0.0189985674831707,
12
+ "per_token.throughput.value": 52.63554743723807
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
+ "commit": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
+ "prefill.latency.mean": 0.02256251239776611,
21
+ "prefill.throughput.value": 310.24913700182884,
22
+ "decode.latency.mean": 2.5812564697265623,
23
+ "decode.throughput.value": 49.20084520444935,
24
+ "per_token.latency.mean": 0.020413658503958362,
25
+ "per_token.throughput.value": 48.98680948376267
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
+ "commit": "2505357e4fdea82d1586b8c0862b4eeb46fac457",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
+ "prefill.latency.mean": 0.01407475233078003,
34
+ "prefill.throughput.value": 497.3444530666251,
35
+ "decode.latency.mean": 1.559105651855469,
36
+ "decode.throughput.value": 81.4569556905006,
37
+ "per_token.latency.mean": 0.012329652096443025,
38
+ "per_token.throughput.value": 81.10528927969423
39
  }
40
  }
41
  ]
2024-06-18/summary.json CHANGED
@@ -1,38 +1,38 @@
1
  {
2
  "google/gemma-2b": {
3
  "backend.cache_implementation=null,backend.torch_compile=False": {
4
- "1f9387d33d40562add4be03176e22ddf9ed0d4ab": {
5
  "metrics": {
6
- "prefill.latency.mean": 0.020195904731750487,
7
- "prefill.throughput.value": 346.6049227789793,
8
- "decode.latency.mean": 2.4827767333984374,
9
- "decode.throughput.value": 51.15240460069954,
10
- "per_token.latency.mean": 0.01962751399104303,
11
- "per_token.throughput.value": 50.948887386163506
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
- "1f9387d33d40562add4be03176e22ddf9ed0d4ab": {
17
  "metrics": {
18
- "prefill.latency.mean": 0.022427599906921385,
19
- "prefill.throughput.value": 312.11543049863883,
20
- "decode.latency.mean": 2.6374805908203127,
21
- "decode.throughput.value": 48.15201311509947,
22
- "per_token.latency.mean": 0.02085368712052055,
23
- "per_token.throughput.value": 47.95315064528684
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
- "1f9387d33d40562add4be03176e22ddf9ed0d4ab": {
29
  "metrics": {
30
- "prefill.latency.mean": 0.014046095848083496,
31
- "prefill.throughput.value": 498.35912240020116,
32
- "decode.latency.mean": 1.5763082275390625,
33
- "decode.throughput.value": 80.5679991902807,
34
- "per_token.latency.mean": 0.012464994140293287,
35
- "per_token.throughput.value": 80.22466667412898
36
  }
37
  }
38
  }
 
1
  {
2
  "google/gemma-2b": {
3
  "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "2505357e4fdea82d1586b8c0862b4eeb46fac457": {
5
  "metrics": {
6
+ "prefill.latency.mean": 0.02032707118988037,
7
+ "prefill.throughput.value": 344.36835167305753,
8
+ "decode.latency.mean": 2.403255249023437,
9
+ "decode.throughput.value": 52.84499016557083,
10
+ "per_token.latency.mean": 0.0189985674831707,
11
+ "per_token.throughput.value": 52.63554743723807
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "2505357e4fdea82d1586b8c0862b4eeb46fac457": {
17
  "metrics": {
18
+ "prefill.latency.mean": 0.02256251239776611,
19
+ "prefill.throughput.value": 310.24913700182884,
20
+ "decode.latency.mean": 2.5812564697265623,
21
+ "decode.throughput.value": 49.20084520444935,
22
+ "per_token.latency.mean": 0.020413658503958362,
23
+ "per_token.throughput.value": 48.98680948376267
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "2505357e4fdea82d1586b8c0862b4eeb46fac457": {
29
  "metrics": {
30
+ "prefill.latency.mean": 0.01407475233078003,
31
+ "prefill.throughput.value": 497.3444530666251,
32
+ "decode.latency.mean": 1.559105651855469,
33
+ "decode.throughput.value": 81.4569556905006,
34
+ "per_token.latency.mean": 0.012329652096443025,
35
+ "per_token.throughput.value": 81.10528927969423
36
  }
37
  }
38
  }