hf-transformers-bot commited on
Commit
9bf5a6d
1 Parent(s): 8993785

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/multirun.yaml +234 -0
  31. 2024-08-24/summaries.json +41 -0
  32. 2024-08-24/summary.json +40 -0
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: 0a7af19f4dc868bafc82f35eb7e8d13bac87a594
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
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/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
88
+ - hydra.run.dir=_benchmark/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1319.40352,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.5728916015625,
120
+ "mean": 11.5728916015625,
121
+ "stdev": 0.0,
122
+ "p50": 11.5728916015625,
123
+ "p90": 11.5728916015625,
124
+ "p95": 11.5728916015625,
125
+ "p99": 11.5728916015625,
126
+ "values": [
127
+ 11.5728916015625
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1728.524288,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.431872
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.040394847869873046,
147
+ "mean": 0.020197423934936523,
148
+ "stdev": 8.094406127929707e-05,
149
+ "p50": 0.020197423934936523,
150
+ "p90": 0.02026217918395996,
151
+ "p95": 0.02027027359008789,
152
+ "p99": 0.020276749114990233,
153
+ "values": [
154
+ 0.020116479873657226,
155
+ 0.02027836799621582
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 346.57885196397444
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1782.74304,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.801344
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 4.8704921875,
178
+ "mean": 2.43524609375,
179
+ "stdev": 0.02477026367187518,
180
+ "p50": 2.43524609375,
181
+ "p90": 2.4550623046875,
182
+ "p95": 2.457539331054688,
183
+ "p99": 2.459520952148438,
184
+ "values": [
185
+ 2.460016357421875,
186
+ 2.410475830078125
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 52.15078686541882
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 4.870174730300905,
202
+ "mean": 0.019173916261027178,
203
+ "stdev": 0.0004666005679776078,
204
+ "p50": 0.018908160209655762,
205
+ "p90": 0.01982064628601074,
206
+ "p95": 0.01986667594909668,
207
+ "p99": 0.020099061374664304,
208
+ "values": [
209
+ 0.018741247177124023,
210
+ 0.018746368408203123,
211
+ 0.018759679794311524,
212
+ 0.01882009506225586,
213
+ 0.018799615859985352,
214
+ 0.018832384109497072,
215
+ 0.01880166435241699,
216
+ 0.01883545684814453,
217
+ 0.0188272647857666,
218
+ 0.01881395149230957,
219
+ 0.0188221435546875,
220
+ 0.018745344161987306,
221
+ 0.01884774398803711,
222
+ 0.01883545684814453,
223
+ 0.01879859161376953,
224
+ 0.020090879440307616,
225
+ 0.019714048385620117,
226
+ 0.019001344680786132,
227
+ 0.0188272647857666,
228
+ 0.018844671249389648,
229
+ 0.01880473518371582,
230
+ 0.01884569549560547,
231
+ 0.01883135986328125,
232
+ 0.01883340835571289,
233
+ 0.01882316780090332,
234
+ 0.01881292724609375,
235
+ 0.01884364891052246,
236
+ 0.018799615859985352,
237
+ 0.018856960296630858,
238
+ 0.01881395149230957,
239
+ 0.01880575942993164,
240
+ 0.01884364891052246,
241
+ 0.01883750343322754,
242
+ 0.01884876823425293,
243
+ 0.018874368667602538,
244
+ 0.018807807922363282,
245
+ 0.018792448043823243,
246
+ 0.018832384109497072,
247
+ 0.0191016960144043,
248
+ 0.019580928802490235,
249
+ 0.01963417625427246,
250
+ 0.019594240188598632,
251
+ 0.01968639945983887,
252
+ 0.020108287811279296,
253
+ 0.019725311279296876,
254
+ 0.019700735092163087,
255
+ 0.019698688507080078,
256
+ 0.01961369514465332,
257
+ 0.019586048126220702,
258
+ 0.019589120864868165,
259
+ 0.01882111930847168,
260
+ 0.01879347229003906,
261
+ 0.01879347229003906,
262
+ 0.018811904907226562,
263
+ 0.01879654312133789,
264
+ 0.01880268859863281,
265
+ 0.018811904907226562,
266
+ 0.018941951751708985,
267
+ 0.018910207748413087,
268
+ 0.019944448471069336,
269
+ 0.020533248901367186,
270
+ 0.019939327239990236,
271
+ 0.019562496185302734,
272
+ 0.019731456756591798,
273
+ 0.019698688507080078,
274
+ 0.018909183502197266,
275
+ 0.018954240798950195,
276
+ 0.019104768753051758,
277
+ 0.019937280654907227,
278
+ 0.01984000015258789,
279
+ 0.019802112579345704,
280
+ 0.019818496704101563,
281
+ 0.019747840881347657,
282
+ 0.019853311538696287,
283
+ 0.019766271591186522,
284
+ 0.019761152267456054,
285
+ 0.019739648818969727,
286
+ 0.01981439971923828,
287
+ 0.019548160552978516,
288
+ 0.019607551574707033,
289
+ 0.019537919998168944,
290
+ 0.02000383949279785,
291
+ 0.019721216201782226,
292
+ 0.019809280395507813,
293
+ 0.019764223098754884,
294
+ 0.019901439666748046,
295
+ 0.019817472457885742,
296
+ 0.01983078384399414,
297
+ 0.019751935958862304,
298
+ 0.01988198471069336,
299
+ 0.019769344329833984,
300
+ 0.019803136825561524,
301
+ 0.019705856323242187,
302
+ 0.01981439971923828,
303
+ 0.01979903984069824,
304
+ 0.019776512145996093,
305
+ 0.019741695404052736,
306
+ 0.019804159164428712,
307
+ 0.019760128021240234,
308
+ 0.019943424224853516,
309
+ 0.019766271591186522,
310
+ 0.01983897590637207,
311
+ 0.01982464027404785,
312
+ 0.019809280395507813,
313
+ 0.019786752700805665,
314
+ 0.01982156753540039,
315
+ 0.01982771110534668,
316
+ 0.019775487899780272,
317
+ 0.01985843276977539,
318
+ 0.01984819221496582,
319
+ 0.019791872024536132,
320
+ 0.01985536003112793,
321
+ 0.019768320083618163,
322
+ 0.019745792388916016,
323
+ 0.019726335525512697,
324
+ 0.019833856582641602,
325
+ 0.019777536392211914,
326
+ 0.020148223876953125,
327
+ 0.019787776947021486,
328
+ 0.018874368667602538,
329
+ 0.01885798454284668,
330
+ 0.018910207748413087,
331
+ 0.018946048736572265,
332
+ 0.018913280487060546,
333
+ 0.018899967193603515,
334
+ 0.01889587211608887,
335
+ 0.018894847869873048,
336
+ 0.018704383850097657,
337
+ 0.01868083190917969,
338
+ 0.018723840713500976,
339
+ 0.01879449653625488,
340
+ 0.018754560470581053,
341
+ 0.018776063919067384,
342
+ 0.018785280227661134,
343
+ 0.018755584716796874,
344
+ 0.018733055114746093,
345
+ 0.018720767974853517,
346
+ 0.018784255981445314,
347
+ 0.018749439239501953,
348
+ 0.01877299118041992,
349
+ 0.018792448043823243,
350
+ 0.018771968841552734,
351
+ 0.0188221435546875,
352
+ 0.018746368408203123,
353
+ 0.018770944595336913,
354
+ 0.018749439239501953,
355
+ 0.018770944595336913,
356
+ 0.018720767974853517,
357
+ 0.018761728286743166,
358
+ 0.01879449653625488,
359
+ 0.01876479911804199,
360
+ 0.018758655548095703,
361
+ 0.018765823364257812,
362
+ 0.018800640106201173,
363
+ 0.018708480834960937,
364
+ 0.018757631301879883,
365
+ 0.018790399551391602,
366
+ 0.018762752532958983,
367
+ 0.01875660705566406,
368
+ 0.018711551666259766,
369
+ 0.018733055114746093,
370
+ 0.018748416900634765,
371
+ 0.018762752532958983,
372
+ 0.018770944595336913,
373
+ 0.018712575912475587,
374
+ 0.0187064323425293,
375
+ 0.018767871856689454,
376
+ 0.018753536224365236,
377
+ 0.018744319915771485,
378
+ 0.018760704040527345,
379
+ 0.018771968841552734,
380
+ 0.018733055114746093,
381
+ 0.018749439239501953,
382
+ 0.018769920349121092,
383
+ 0.018760704040527345,
384
+ 0.018739200592041014,
385
+ 0.01885491180419922,
386
+ 0.018751487731933594,
387
+ 0.018742271423339844,
388
+ 0.018733055114746093,
389
+ 0.018739200592041014,
390
+ 0.01881088066101074,
391
+ 0.018766847610473633,
392
+ 0.018727935791015626,
393
+ 0.01886720085144043,
394
+ 0.01884364891052246,
395
+ 0.018885631561279297,
396
+ 0.018876415252685547,
397
+ 0.01882316780090332,
398
+ 0.018889728546142577,
399
+ 0.018893823623657227,
400
+ 0.018881536483764647,
401
+ 0.01887129592895508,
402
+ 0.018888704299926756,
403
+ 0.018894847869873048,
404
+ 0.018919424057006837,
405
+ 0.018945024490356444,
406
+ 0.018912256240844725,
407
+ 0.018925567626953126,
408
+ 0.01885798454284668,
409
+ 0.018972671508789063,
410
+ 0.019853311538696287,
411
+ 0.01983078384399414,
412
+ 0.01977446365356445,
413
+ 0.019714048385620117,
414
+ 0.019713024139404296,
415
+ 0.019901439666748046,
416
+ 0.01999564743041992,
417
+ 0.019776512145996093,
418
+ 0.019759103775024413,
419
+ 0.019773439407348634,
420
+ 0.019763200759887696,
421
+ 0.019757055282592775,
422
+ 0.01964339256286621,
423
+ 0.019729408264160156,
424
+ 0.019708927154541016,
425
+ 0.019746816635131836,
426
+ 0.01965363121032715,
427
+ 0.019755008697509766,
428
+ 0.019747840881347657,
429
+ 0.019759103775024413,
430
+ 0.018876415252685547,
431
+ 0.01904537582397461,
432
+ 0.018874368667602538,
433
+ 0.018927616119384767,
434
+ 0.018907136917114258,
435
+ 0.018949119567871094,
436
+ 0.018990079879760743,
437
+ 0.018914304733276367,
438
+ 0.018959360122680666,
439
+ 0.01900339126586914,
440
+ 0.018944000244140623,
441
+ 0.01901670455932617,
442
+ 0.018948095321655273,
443
+ 0.018921472549438476,
444
+ 0.018961408615112304,
445
+ 0.018893823623657227,
446
+ 0.018964479446411133,
447
+ 0.018936832427978514,
448
+ 0.018910207748413087,
449
+ 0.018916351318359375,
450
+ 0.018883583068847656,
451
+ 0.01883340835571289,
452
+ 0.0188590087890625,
453
+ 0.01887027168273926,
454
+ 0.01887948799133301,
455
+ 0.018914304733276367,
456
+ 0.019050495147705078,
457
+ 0.018976768493652343,
458
+ 0.018914304733276367,
459
+ 0.018919424057006837,
460
+ 0.018948095321655273,
461
+ 0.018902015686035157,
462
+ 0.01887948799133301
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 52.154186259413045
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1319.40352,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.5728916015625,
15
+ "mean": 11.5728916015625,
16
+ "stdev": 0.0,
17
+ "p50": 11.5728916015625,
18
+ "p90": 11.5728916015625,
19
+ "p95": 11.5728916015625,
20
+ "p99": 11.5728916015625,
21
+ "values": [
22
+ 11.5728916015625
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1728.524288,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.431872
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.040394847869873046,
42
+ "mean": 0.020197423934936523,
43
+ "stdev": 8.094406127929707e-05,
44
+ "p50": 0.020197423934936523,
45
+ "p90": 0.02026217918395996,
46
+ "p95": 0.02027027359008789,
47
+ "p99": 0.020276749114990233,
48
+ "values": [
49
+ 0.020116479873657226,
50
+ 0.02027836799621582
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 346.57885196397444
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1782.74304,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.801344
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 4.8704921875,
73
+ "mean": 2.43524609375,
74
+ "stdev": 0.02477026367187518,
75
+ "p50": 2.43524609375,
76
+ "p90": 2.4550623046875,
77
+ "p95": 2.457539331054688,
78
+ "p99": 2.459520952148438,
79
+ "values": [
80
+ 2.460016357421875,
81
+ 2.410475830078125
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 52.15078686541882
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 4.870174730300905,
97
+ "mean": 0.019173916261027178,
98
+ "stdev": 0.0004666005679776078,
99
+ "p50": 0.018908160209655762,
100
+ "p90": 0.01982064628601074,
101
+ "p95": 0.01986667594909668,
102
+ "p99": 0.020099061374664304,
103
+ "values": [
104
+ 0.018741247177124023,
105
+ 0.018746368408203123,
106
+ 0.018759679794311524,
107
+ 0.01882009506225586,
108
+ 0.018799615859985352,
109
+ 0.018832384109497072,
110
+ 0.01880166435241699,
111
+ 0.01883545684814453,
112
+ 0.0188272647857666,
113
+ 0.01881395149230957,
114
+ 0.0188221435546875,
115
+ 0.018745344161987306,
116
+ 0.01884774398803711,
117
+ 0.01883545684814453,
118
+ 0.01879859161376953,
119
+ 0.020090879440307616,
120
+ 0.019714048385620117,
121
+ 0.019001344680786132,
122
+ 0.0188272647857666,
123
+ 0.018844671249389648,
124
+ 0.01880473518371582,
125
+ 0.01884569549560547,
126
+ 0.01883135986328125,
127
+ 0.01883340835571289,
128
+ 0.01882316780090332,
129
+ 0.01881292724609375,
130
+ 0.01884364891052246,
131
+ 0.018799615859985352,
132
+ 0.018856960296630858,
133
+ 0.01881395149230957,
134
+ 0.01880575942993164,
135
+ 0.01884364891052246,
136
+ 0.01883750343322754,
137
+ 0.01884876823425293,
138
+ 0.018874368667602538,
139
+ 0.018807807922363282,
140
+ 0.018792448043823243,
141
+ 0.018832384109497072,
142
+ 0.0191016960144043,
143
+ 0.019580928802490235,
144
+ 0.01963417625427246,
145
+ 0.019594240188598632,
146
+ 0.01968639945983887,
147
+ 0.020108287811279296,
148
+ 0.019725311279296876,
149
+ 0.019700735092163087,
150
+ 0.019698688507080078,
151
+ 0.01961369514465332,
152
+ 0.019586048126220702,
153
+ 0.019589120864868165,
154
+ 0.01882111930847168,
155
+ 0.01879347229003906,
156
+ 0.01879347229003906,
157
+ 0.018811904907226562,
158
+ 0.01879654312133789,
159
+ 0.01880268859863281,
160
+ 0.018811904907226562,
161
+ 0.018941951751708985,
162
+ 0.018910207748413087,
163
+ 0.019944448471069336,
164
+ 0.020533248901367186,
165
+ 0.019939327239990236,
166
+ 0.019562496185302734,
167
+ 0.019731456756591798,
168
+ 0.019698688507080078,
169
+ 0.018909183502197266,
170
+ 0.018954240798950195,
171
+ 0.019104768753051758,
172
+ 0.019937280654907227,
173
+ 0.01984000015258789,
174
+ 0.019802112579345704,
175
+ 0.019818496704101563,
176
+ 0.019747840881347657,
177
+ 0.019853311538696287,
178
+ 0.019766271591186522,
179
+ 0.019761152267456054,
180
+ 0.019739648818969727,
181
+ 0.01981439971923828,
182
+ 0.019548160552978516,
183
+ 0.019607551574707033,
184
+ 0.019537919998168944,
185
+ 0.02000383949279785,
186
+ 0.019721216201782226,
187
+ 0.019809280395507813,
188
+ 0.019764223098754884,
189
+ 0.019901439666748046,
190
+ 0.019817472457885742,
191
+ 0.01983078384399414,
192
+ 0.019751935958862304,
193
+ 0.01988198471069336,
194
+ 0.019769344329833984,
195
+ 0.019803136825561524,
196
+ 0.019705856323242187,
197
+ 0.01981439971923828,
198
+ 0.01979903984069824,
199
+ 0.019776512145996093,
200
+ 0.019741695404052736,
201
+ 0.019804159164428712,
202
+ 0.019760128021240234,
203
+ 0.019943424224853516,
204
+ 0.019766271591186522,
205
+ 0.01983897590637207,
206
+ 0.01982464027404785,
207
+ 0.019809280395507813,
208
+ 0.019786752700805665,
209
+ 0.01982156753540039,
210
+ 0.01982771110534668,
211
+ 0.019775487899780272,
212
+ 0.01985843276977539,
213
+ 0.01984819221496582,
214
+ 0.019791872024536132,
215
+ 0.01985536003112793,
216
+ 0.019768320083618163,
217
+ 0.019745792388916016,
218
+ 0.019726335525512697,
219
+ 0.019833856582641602,
220
+ 0.019777536392211914,
221
+ 0.020148223876953125,
222
+ 0.019787776947021486,
223
+ 0.018874368667602538,
224
+ 0.01885798454284668,
225
+ 0.018910207748413087,
226
+ 0.018946048736572265,
227
+ 0.018913280487060546,
228
+ 0.018899967193603515,
229
+ 0.01889587211608887,
230
+ 0.018894847869873048,
231
+ 0.018704383850097657,
232
+ 0.01868083190917969,
233
+ 0.018723840713500976,
234
+ 0.01879449653625488,
235
+ 0.018754560470581053,
236
+ 0.018776063919067384,
237
+ 0.018785280227661134,
238
+ 0.018755584716796874,
239
+ 0.018733055114746093,
240
+ 0.018720767974853517,
241
+ 0.018784255981445314,
242
+ 0.018749439239501953,
243
+ 0.01877299118041992,
244
+ 0.018792448043823243,
245
+ 0.018771968841552734,
246
+ 0.0188221435546875,
247
+ 0.018746368408203123,
248
+ 0.018770944595336913,
249
+ 0.018749439239501953,
250
+ 0.018770944595336913,
251
+ 0.018720767974853517,
252
+ 0.018761728286743166,
253
+ 0.01879449653625488,
254
+ 0.01876479911804199,
255
+ 0.018758655548095703,
256
+ 0.018765823364257812,
257
+ 0.018800640106201173,
258
+ 0.018708480834960937,
259
+ 0.018757631301879883,
260
+ 0.018790399551391602,
261
+ 0.018762752532958983,
262
+ 0.01875660705566406,
263
+ 0.018711551666259766,
264
+ 0.018733055114746093,
265
+ 0.018748416900634765,
266
+ 0.018762752532958983,
267
+ 0.018770944595336913,
268
+ 0.018712575912475587,
269
+ 0.0187064323425293,
270
+ 0.018767871856689454,
271
+ 0.018753536224365236,
272
+ 0.018744319915771485,
273
+ 0.018760704040527345,
274
+ 0.018771968841552734,
275
+ 0.018733055114746093,
276
+ 0.018749439239501953,
277
+ 0.018769920349121092,
278
+ 0.018760704040527345,
279
+ 0.018739200592041014,
280
+ 0.01885491180419922,
281
+ 0.018751487731933594,
282
+ 0.018742271423339844,
283
+ 0.018733055114746093,
284
+ 0.018739200592041014,
285
+ 0.01881088066101074,
286
+ 0.018766847610473633,
287
+ 0.018727935791015626,
288
+ 0.01886720085144043,
289
+ 0.01884364891052246,
290
+ 0.018885631561279297,
291
+ 0.018876415252685547,
292
+ 0.01882316780090332,
293
+ 0.018889728546142577,
294
+ 0.018893823623657227,
295
+ 0.018881536483764647,
296
+ 0.01887129592895508,
297
+ 0.018888704299926756,
298
+ 0.018894847869873048,
299
+ 0.018919424057006837,
300
+ 0.018945024490356444,
301
+ 0.018912256240844725,
302
+ 0.018925567626953126,
303
+ 0.01885798454284668,
304
+ 0.018972671508789063,
305
+ 0.019853311538696287,
306
+ 0.01983078384399414,
307
+ 0.01977446365356445,
308
+ 0.019714048385620117,
309
+ 0.019713024139404296,
310
+ 0.019901439666748046,
311
+ 0.01999564743041992,
312
+ 0.019776512145996093,
313
+ 0.019759103775024413,
314
+ 0.019773439407348634,
315
+ 0.019763200759887696,
316
+ 0.019757055282592775,
317
+ 0.01964339256286621,
318
+ 0.019729408264160156,
319
+ 0.019708927154541016,
320
+ 0.019746816635131836,
321
+ 0.01965363121032715,
322
+ 0.019755008697509766,
323
+ 0.019747840881347657,
324
+ 0.019759103775024413,
325
+ 0.018876415252685547,
326
+ 0.01904537582397461,
327
+ 0.018874368667602538,
328
+ 0.018927616119384767,
329
+ 0.018907136917114258,
330
+ 0.018949119567871094,
331
+ 0.018990079879760743,
332
+ 0.018914304733276367,
333
+ 0.018959360122680666,
334
+ 0.01900339126586914,
335
+ 0.018944000244140623,
336
+ 0.01901670455932617,
337
+ 0.018948095321655273,
338
+ 0.018921472549438476,
339
+ 0.018961408615112304,
340
+ 0.018893823623657227,
341
+ 0.018964479446411133,
342
+ 0.018936832427978514,
343
+ 0.018910207748413087,
344
+ 0.018916351318359375,
345
+ 0.018883583068847656,
346
+ 0.01883340835571289,
347
+ 0.0188590087890625,
348
+ 0.01887027168273926,
349
+ 0.01887948799133301,
350
+ 0.018914304733276367,
351
+ 0.019050495147705078,
352
+ 0.018976768493652343,
353
+ 0.018914304733276367,
354
+ 0.018919424057006837,
355
+ 0.018948095321655273,
356
+ 0.018902015686035157,
357
+ 0.01887948799133301
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 52.154186259413045
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020197423934936523,
7
+ "prefill.throughput.value": 346.57885196397444,
8
+ "decode.latency.mean": 2.43524609375,
9
+ "decode.throughput.value": 52.15078686541882,
10
+ "per_token.latency.mean": 0.019173916261027178,
11
+ "per_token.throughput.value": 52.154186259413045
12
+ }
13
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: 0a7af19f4dc868bafc82f35eb7e8d13bac87a594
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
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/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
88
+ - hydra.run.dir=_benchmark/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [ISOLATED-PROCESS][2024-08-24 02:36:49,004][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-08-24 02:36:51,427][process][ERROR] - + Received traceback from isolated process
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: 0a7af19f4dc868bafc82f35eb7e8d13bac87a594
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
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/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
88
+ - hydra.run.dir=_benchmark/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1319.800832,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.7128583984375,
120
+ "mean": 11.7128583984375,
121
+ "stdev": 0.0,
122
+ "p50": 11.7128583984375,
123
+ "p90": 11.7128583984375,
124
+ "p95": 11.7128583984375,
125
+ "p99": 11.7128583984375,
126
+ "values": [
127
+ 11.7128583984375
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1775.181824,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.450816
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.04284735870361328,
147
+ "mean": 0.02142367935180664,
148
+ "stdev": 0.00012409591674804668,
149
+ "p50": 0.02142367935180664,
150
+ "p90": 0.02152295608520508,
151
+ "p95": 0.021535365676879883,
152
+ "p99": 0.021545293350219725,
153
+ "values": [
154
+ 0.021299583435058594,
155
+ 0.021547775268554687
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 326.7412606887106
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1799.63904,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.820288
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 5.143392578125,
178
+ "mean": 2.5716962890625,
179
+ "stdev": 0.015890869140624986,
180
+ "p50": 2.5716962890625,
181
+ "p90": 2.584408984375,
182
+ "p95": 2.5859980712890622,
183
+ "p99": 2.5872693408203125,
184
+ "values": [
185
+ 2.555805419921875,
186
+ 2.587587158203125
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 49.3837474277716
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 5.1431331844329815,
202
+ "mean": 0.020248555844224345,
203
+ "stdev": 0.00040859367375037484,
204
+ "p50": 0.020331520080566406,
205
+ "p90": 0.020648550987243653,
206
+ "p95": 0.020862720012664794,
207
+ "p99": 0.021247232265472413,
208
+ "values": [
209
+ 0.019732479095458985,
210
+ 0.019717119216918946,
211
+ 0.019677183151245118,
212
+ 0.019687423706054686,
213
+ 0.01965977668762207,
214
+ 0.01964646339416504,
215
+ 0.019693567276000978,
216
+ 0.01965670394897461,
217
+ 0.01963827133178711,
218
+ 0.01964339256286621,
219
+ 0.01967616081237793,
220
+ 0.01963929557800293,
221
+ 0.01968230438232422,
222
+ 0.01962188720703125,
223
+ 0.01963520050048828,
224
+ 0.01967411231994629,
225
+ 0.019708927154541016,
226
+ 0.020496383666992187,
227
+ 0.019717119216918946,
228
+ 0.02020351982116699,
229
+ 0.020763647079467772,
230
+ 0.02049945640563965,
231
+ 0.01979903984069824,
232
+ 0.019709951400756837,
233
+ 0.019785728454589844,
234
+ 0.01982975959777832,
235
+ 0.01966592025756836,
236
+ 0.01967001533508301,
237
+ 0.019681280136108398,
238
+ 0.019733503341674806,
239
+ 0.01965772819519043,
240
+ 0.01964134407043457,
241
+ 0.01966796875,
242
+ 0.019644416809082032,
243
+ 0.01964339256286621,
244
+ 0.019629056930541993,
245
+ 0.02086092758178711,
246
+ 0.020535295486450195,
247
+ 0.020900863647460938,
248
+ 0.020788223266601562,
249
+ 0.020516864776611327,
250
+ 0.02047488021850586,
251
+ 0.020535295486450195,
252
+ 0.020493312835693358,
253
+ 0.020544511795043945,
254
+ 0.020533248901367186,
255
+ 0.02049945640563965,
256
+ 0.01968332862854004,
257
+ 0.01966182327270508,
258
+ 0.01969049644470215,
259
+ 0.019725311279296876,
260
+ 0.01969049644470215,
261
+ 0.019742719650268553,
262
+ 0.01966080093383789,
263
+ 0.0196997127532959,
264
+ 0.01967411231994629,
265
+ 0.01966182327270508,
266
+ 0.01963724708557129,
267
+ 0.019693567276000978,
268
+ 0.01967820739746094,
269
+ 0.01967820739746094,
270
+ 0.01965363121032715,
271
+ 0.01965158462524414,
272
+ 0.019672063827514647,
273
+ 0.019672063827514647,
274
+ 0.019679231643676756,
275
+ 0.01966592025756836,
276
+ 0.01967103958129883,
277
+ 0.01966182327270508,
278
+ 0.01965875244140625,
279
+ 0.019709951400756837,
280
+ 0.019713024139404296,
281
+ 0.019886079788208007,
282
+ 0.020335615158081053,
283
+ 0.019826688766479493,
284
+ 0.02086604881286621,
285
+ 0.020586496353149415,
286
+ 0.01971609687805176,
287
+ 0.019679231643676756,
288
+ 0.021163007736206055,
289
+ 0.020996095657348633,
290
+ 0.020564992904663085,
291
+ 0.02050048065185547,
292
+ 0.020552703857421875,
293
+ 0.02071347236633301,
294
+ 0.020770816802978515,
295
+ 0.0204769287109375,
296
+ 0.020496383666992187,
297
+ 0.020642816543579103,
298
+ 0.02088960075378418,
299
+ 0.02082508850097656,
300
+ 0.020574207305908202,
301
+ 0.02045747184753418,
302
+ 0.020447231292724608,
303
+ 0.020806655883789063,
304
+ 0.020692991256713866,
305
+ 0.019755008697509766,
306
+ 0.01969049644470215,
307
+ 0.02030899238586426,
308
+ 0.020521984100341797,
309
+ 0.020566015243530272,
310
+ 0.020571136474609376,
311
+ 0.020541439056396483,
312
+ 0.020517887115478514,
313
+ 0.020530176162719727,
314
+ 0.020486143112182616,
315
+ 0.020544511795043945,
316
+ 0.019664896011352538,
317
+ 0.019747840881347657,
318
+ 0.020509695053100584,
319
+ 0.02031718444824219,
320
+ 0.02045952033996582,
321
+ 0.020478975296020507,
322
+ 0.020526079177856444,
323
+ 0.020529151916503906,
324
+ 0.020496383666992187,
325
+ 0.020528127670288086,
326
+ 0.02051584053039551,
327
+ 0.020398080825805662,
328
+ 0.020574207305908202,
329
+ 0.020553728103637696,
330
+ 0.020921344757080077,
331
+ 0.021551103591918946,
332
+ 0.021342208862304687,
333
+ 0.02010419273376465,
334
+ 0.019784704208374023,
335
+ 0.01967513656616211,
336
+ 0.019701759338378907,
337
+ 0.019947519302368166,
338
+ 0.02065100860595703,
339
+ 0.020609024047851563,
340
+ 0.01969254493713379,
341
+ 0.019681280136108398,
342
+ 0.01965260887145996,
343
+ 0.019748863220214845,
344
+ 0.019708927154541016,
345
+ 0.02091110420227051,
346
+ 0.02066329574584961,
347
+ 0.02039910316467285,
348
+ 0.020315135955810547,
349
+ 0.020295679092407228,
350
+ 0.020273151397705077,
351
+ 0.020395008087158203,
352
+ 0.02036735916137695,
353
+ 0.02025369644165039,
354
+ 0.0202926082611084,
355
+ 0.020297727584838866,
356
+ 0.020505599975585938,
357
+ 0.020379648208618165,
358
+ 0.020320255279541014,
359
+ 0.020402175903320312,
360
+ 0.020319232940673827,
361
+ 0.02026905632019043,
362
+ 0.020280319213867186,
363
+ 0.020287488937377928,
364
+ 0.02027008056640625,
365
+ 0.020287488937377928,
366
+ 0.020503551483154296,
367
+ 0.020412416458129884,
368
+ 0.020324352264404297,
369
+ 0.020322303771972656,
370
+ 0.020316160202026368,
371
+ 0.020319232940673827,
372
+ 0.020320255279541014,
373
+ 0.020304895401000975,
374
+ 0.020338687896728515,
375
+ 0.020289535522460937,
376
+ 0.020321279525756835,
377
+ 0.020311040878295897,
378
+ 0.020339712142944336,
379
+ 0.020369407653808593,
380
+ 0.020337663650512695,
381
+ 0.020445184707641603,
382
+ 0.021155839920043946,
383
+ 0.020722688674926756,
384
+ 0.02030284881591797,
385
+ 0.020298751831054687,
386
+ 0.020396032333374024,
387
+ 0.02045132827758789,
388
+ 0.020356096267700196,
389
+ 0.02028339195251465,
390
+ 0.02027724838256836,
391
+ 0.020314111709594726,
392
+ 0.020298751831054687,
393
+ 0.020307968139648438,
394
+ 0.020319232940673827,
395
+ 0.020327423095703127,
396
+ 0.02027622413635254,
397
+ 0.02028441619873047,
398
+ 0.02042572784423828,
399
+ 0.02031001663208008,
400
+ 0.02040934371948242,
401
+ 0.020412416458129884,
402
+ 0.020364288330078126,
403
+ 0.020320255279541014,
404
+ 0.02030284881591797,
405
+ 0.020587520599365236,
406
+ 0.02045132827758789,
407
+ 0.020427776336669923,
408
+ 0.020379648208618165,
409
+ 0.020332544326782227,
410
+ 0.020314111709594726,
411
+ 0.020355072021484375,
412
+ 0.020312063217163084,
413
+ 0.020306943893432617,
414
+ 0.02027622413635254,
415
+ 0.020550655364990233,
416
+ 0.02059878349304199,
417
+ 0.02187571144104004,
418
+ 0.02067046356201172,
419
+ 0.02047590446472168,
420
+ 0.02050048065185547,
421
+ 0.020331520080566406,
422
+ 0.020389888763427736,
423
+ 0.020348928451538087,
424
+ 0.02039193534851074,
425
+ 0.020349952697753908,
426
+ 0.020341760635375978,
427
+ 0.020361215591430663,
428
+ 0.020362239837646484,
429
+ 0.020338687896728515,
430
+ 0.020382720947265624,
431
+ 0.02045132827758789,
432
+ 0.020554752349853517,
433
+ 0.021128192901611328,
434
+ 0.02085068893432617,
435
+ 0.020324352264404297,
436
+ 0.020363264083862305,
437
+ 0.020329471588134765,
438
+ 0.020353023529052734,
439
+ 0.02030080032348633,
440
+ 0.02027212715148926,
441
+ 0.020361215591430663,
442
+ 0.020353023529052734,
443
+ 0.02089779281616211,
444
+ 0.020551679611206054,
445
+ 0.02046463966369629,
446
+ 0.020311040878295897,
447
+ 0.020331520080566406,
448
+ 0.020371456146240235,
449
+ 0.020282367706298828,
450
+ 0.020378623962402344,
451
+ 0.0204400634765625,
452
+ 0.020307968139648438,
453
+ 0.020410367965698242,
454
+ 0.02039910316467285,
455
+ 0.020356096267700196,
456
+ 0.020402175903320312,
457
+ 0.020347904205322266,
458
+ 0.020344831466674804,
459
+ 0.02046668815612793,
460
+ 0.020447231292724608,
461
+ 0.02028339195251465,
462
+ 0.020331520080566406
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 49.38623809486334
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1319.800832,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.7128583984375,
15
+ "mean": 11.7128583984375,
16
+ "stdev": 0.0,
17
+ "p50": 11.7128583984375,
18
+ "p90": 11.7128583984375,
19
+ "p95": 11.7128583984375,
20
+ "p99": 11.7128583984375,
21
+ "values": [
22
+ 11.7128583984375
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1775.181824,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.450816
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.04284735870361328,
42
+ "mean": 0.02142367935180664,
43
+ "stdev": 0.00012409591674804668,
44
+ "p50": 0.02142367935180664,
45
+ "p90": 0.02152295608520508,
46
+ "p95": 0.021535365676879883,
47
+ "p99": 0.021545293350219725,
48
+ "values": [
49
+ 0.021299583435058594,
50
+ 0.021547775268554687
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 326.7412606887106
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1799.63904,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.820288
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 5.143392578125,
73
+ "mean": 2.5716962890625,
74
+ "stdev": 0.015890869140624986,
75
+ "p50": 2.5716962890625,
76
+ "p90": 2.584408984375,
77
+ "p95": 2.5859980712890622,
78
+ "p99": 2.5872693408203125,
79
+ "values": [
80
+ 2.555805419921875,
81
+ 2.587587158203125
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 49.3837474277716
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 5.1431331844329815,
97
+ "mean": 0.020248555844224345,
98
+ "stdev": 0.00040859367375037484,
99
+ "p50": 0.020331520080566406,
100
+ "p90": 0.020648550987243653,
101
+ "p95": 0.020862720012664794,
102
+ "p99": 0.021247232265472413,
103
+ "values": [
104
+ 0.019732479095458985,
105
+ 0.019717119216918946,
106
+ 0.019677183151245118,
107
+ 0.019687423706054686,
108
+ 0.01965977668762207,
109
+ 0.01964646339416504,
110
+ 0.019693567276000978,
111
+ 0.01965670394897461,
112
+ 0.01963827133178711,
113
+ 0.01964339256286621,
114
+ 0.01967616081237793,
115
+ 0.01963929557800293,
116
+ 0.01968230438232422,
117
+ 0.01962188720703125,
118
+ 0.01963520050048828,
119
+ 0.01967411231994629,
120
+ 0.019708927154541016,
121
+ 0.020496383666992187,
122
+ 0.019717119216918946,
123
+ 0.02020351982116699,
124
+ 0.020763647079467772,
125
+ 0.02049945640563965,
126
+ 0.01979903984069824,
127
+ 0.019709951400756837,
128
+ 0.019785728454589844,
129
+ 0.01982975959777832,
130
+ 0.01966592025756836,
131
+ 0.01967001533508301,
132
+ 0.019681280136108398,
133
+ 0.019733503341674806,
134
+ 0.01965772819519043,
135
+ 0.01964134407043457,
136
+ 0.01966796875,
137
+ 0.019644416809082032,
138
+ 0.01964339256286621,
139
+ 0.019629056930541993,
140
+ 0.02086092758178711,
141
+ 0.020535295486450195,
142
+ 0.020900863647460938,
143
+ 0.020788223266601562,
144
+ 0.020516864776611327,
145
+ 0.02047488021850586,
146
+ 0.020535295486450195,
147
+ 0.020493312835693358,
148
+ 0.020544511795043945,
149
+ 0.020533248901367186,
150
+ 0.02049945640563965,
151
+ 0.01968332862854004,
152
+ 0.01966182327270508,
153
+ 0.01969049644470215,
154
+ 0.019725311279296876,
155
+ 0.01969049644470215,
156
+ 0.019742719650268553,
157
+ 0.01966080093383789,
158
+ 0.0196997127532959,
159
+ 0.01967411231994629,
160
+ 0.01966182327270508,
161
+ 0.01963724708557129,
162
+ 0.019693567276000978,
163
+ 0.01967820739746094,
164
+ 0.01967820739746094,
165
+ 0.01965363121032715,
166
+ 0.01965158462524414,
167
+ 0.019672063827514647,
168
+ 0.019672063827514647,
169
+ 0.019679231643676756,
170
+ 0.01966592025756836,
171
+ 0.01967103958129883,
172
+ 0.01966182327270508,
173
+ 0.01965875244140625,
174
+ 0.019709951400756837,
175
+ 0.019713024139404296,
176
+ 0.019886079788208007,
177
+ 0.020335615158081053,
178
+ 0.019826688766479493,
179
+ 0.02086604881286621,
180
+ 0.020586496353149415,
181
+ 0.01971609687805176,
182
+ 0.019679231643676756,
183
+ 0.021163007736206055,
184
+ 0.020996095657348633,
185
+ 0.020564992904663085,
186
+ 0.02050048065185547,
187
+ 0.020552703857421875,
188
+ 0.02071347236633301,
189
+ 0.020770816802978515,
190
+ 0.0204769287109375,
191
+ 0.020496383666992187,
192
+ 0.020642816543579103,
193
+ 0.02088960075378418,
194
+ 0.02082508850097656,
195
+ 0.020574207305908202,
196
+ 0.02045747184753418,
197
+ 0.020447231292724608,
198
+ 0.020806655883789063,
199
+ 0.020692991256713866,
200
+ 0.019755008697509766,
201
+ 0.01969049644470215,
202
+ 0.02030899238586426,
203
+ 0.020521984100341797,
204
+ 0.020566015243530272,
205
+ 0.020571136474609376,
206
+ 0.020541439056396483,
207
+ 0.020517887115478514,
208
+ 0.020530176162719727,
209
+ 0.020486143112182616,
210
+ 0.020544511795043945,
211
+ 0.019664896011352538,
212
+ 0.019747840881347657,
213
+ 0.020509695053100584,
214
+ 0.02031718444824219,
215
+ 0.02045952033996582,
216
+ 0.020478975296020507,
217
+ 0.020526079177856444,
218
+ 0.020529151916503906,
219
+ 0.020496383666992187,
220
+ 0.020528127670288086,
221
+ 0.02051584053039551,
222
+ 0.020398080825805662,
223
+ 0.020574207305908202,
224
+ 0.020553728103637696,
225
+ 0.020921344757080077,
226
+ 0.021551103591918946,
227
+ 0.021342208862304687,
228
+ 0.02010419273376465,
229
+ 0.019784704208374023,
230
+ 0.01967513656616211,
231
+ 0.019701759338378907,
232
+ 0.019947519302368166,
233
+ 0.02065100860595703,
234
+ 0.020609024047851563,
235
+ 0.01969254493713379,
236
+ 0.019681280136108398,
237
+ 0.01965260887145996,
238
+ 0.019748863220214845,
239
+ 0.019708927154541016,
240
+ 0.02091110420227051,
241
+ 0.02066329574584961,
242
+ 0.02039910316467285,
243
+ 0.020315135955810547,
244
+ 0.020295679092407228,
245
+ 0.020273151397705077,
246
+ 0.020395008087158203,
247
+ 0.02036735916137695,
248
+ 0.02025369644165039,
249
+ 0.0202926082611084,
250
+ 0.020297727584838866,
251
+ 0.020505599975585938,
252
+ 0.020379648208618165,
253
+ 0.020320255279541014,
254
+ 0.020402175903320312,
255
+ 0.020319232940673827,
256
+ 0.02026905632019043,
257
+ 0.020280319213867186,
258
+ 0.020287488937377928,
259
+ 0.02027008056640625,
260
+ 0.020287488937377928,
261
+ 0.020503551483154296,
262
+ 0.020412416458129884,
263
+ 0.020324352264404297,
264
+ 0.020322303771972656,
265
+ 0.020316160202026368,
266
+ 0.020319232940673827,
267
+ 0.020320255279541014,
268
+ 0.020304895401000975,
269
+ 0.020338687896728515,
270
+ 0.020289535522460937,
271
+ 0.020321279525756835,
272
+ 0.020311040878295897,
273
+ 0.020339712142944336,
274
+ 0.020369407653808593,
275
+ 0.020337663650512695,
276
+ 0.020445184707641603,
277
+ 0.021155839920043946,
278
+ 0.020722688674926756,
279
+ 0.02030284881591797,
280
+ 0.020298751831054687,
281
+ 0.020396032333374024,
282
+ 0.02045132827758789,
283
+ 0.020356096267700196,
284
+ 0.02028339195251465,
285
+ 0.02027724838256836,
286
+ 0.020314111709594726,
287
+ 0.020298751831054687,
288
+ 0.020307968139648438,
289
+ 0.020319232940673827,
290
+ 0.020327423095703127,
291
+ 0.02027622413635254,
292
+ 0.02028441619873047,
293
+ 0.02042572784423828,
294
+ 0.02031001663208008,
295
+ 0.02040934371948242,
296
+ 0.020412416458129884,
297
+ 0.020364288330078126,
298
+ 0.020320255279541014,
299
+ 0.02030284881591797,
300
+ 0.020587520599365236,
301
+ 0.02045132827758789,
302
+ 0.020427776336669923,
303
+ 0.020379648208618165,
304
+ 0.020332544326782227,
305
+ 0.020314111709594726,
306
+ 0.020355072021484375,
307
+ 0.020312063217163084,
308
+ 0.020306943893432617,
309
+ 0.02027622413635254,
310
+ 0.020550655364990233,
311
+ 0.02059878349304199,
312
+ 0.02187571144104004,
313
+ 0.02067046356201172,
314
+ 0.02047590446472168,
315
+ 0.02050048065185547,
316
+ 0.020331520080566406,
317
+ 0.020389888763427736,
318
+ 0.020348928451538087,
319
+ 0.02039193534851074,
320
+ 0.020349952697753908,
321
+ 0.020341760635375978,
322
+ 0.020361215591430663,
323
+ 0.020362239837646484,
324
+ 0.020338687896728515,
325
+ 0.020382720947265624,
326
+ 0.02045132827758789,
327
+ 0.020554752349853517,
328
+ 0.021128192901611328,
329
+ 0.02085068893432617,
330
+ 0.020324352264404297,
331
+ 0.020363264083862305,
332
+ 0.020329471588134765,
333
+ 0.020353023529052734,
334
+ 0.02030080032348633,
335
+ 0.02027212715148926,
336
+ 0.020361215591430663,
337
+ 0.020353023529052734,
338
+ 0.02089779281616211,
339
+ 0.020551679611206054,
340
+ 0.02046463966369629,
341
+ 0.020311040878295897,
342
+ 0.020331520080566406,
343
+ 0.020371456146240235,
344
+ 0.020282367706298828,
345
+ 0.020378623962402344,
346
+ 0.0204400634765625,
347
+ 0.020307968139648438,
348
+ 0.020410367965698242,
349
+ 0.02039910316467285,
350
+ 0.020356096267700196,
351
+ 0.020402175903320312,
352
+ 0.020347904205322266,
353
+ 0.020344831466674804,
354
+ 0.02046668815612793,
355
+ 0.020447231292724608,
356
+ 0.02028339195251465,
357
+ 0.020331520080566406
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 49.38623809486334
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02142367935180664,
7
+ "prefill.throughput.value": 326.7412606887106,
8
+ "decode.latency.mean": 2.5716962890625,
9
+ "decode.throughput.value": 49.3837474277716,
10
+ "per_token.latency.mean": 0.020248555844224345,
11
+ "per_token.throughput.value": 49.38623809486334
12
+ }
13
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: 0a7af19f4dc868bafc82f35eb7e8d13bac87a594
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
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/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
88
+ - hydra.run.dir=_benchmark/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${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/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1336.864768,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 12.598955078125,
120
+ "mean": 12.598955078125,
121
+ "stdev": 0.0,
122
+ "p50": 12.598955078125,
123
+ "p90": 12.598955078125,
124
+ "p95": 12.598955078125,
125
+ "p99": 12.598955078125,
126
+ "values": [
127
+ 12.598955078125
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1862.3488,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6138.363904,
141
+ "max_allocated": 5278.596608
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.028303680419921873,
147
+ "mean": 0.014151840209960936,
148
+ "stdev": 0.00015123176574707072,
149
+ "p50": 0.014151840209960936,
150
+ "p90": 0.014272825622558594,
151
+ "p95": 0.014287948799133301,
152
+ "p99": 0.014300047340393066,
153
+ "values": [
154
+ 0.014000608444213867,
155
+ 0.014303071975708008
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 494.6353192338173
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2032.152576,
169
+ "max_global_vram": 6071.779328,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 5381.292032,
172
+ "max_allocated": 5282.647552
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 3.12889306640625,
178
+ "mean": 1.564446533203125,
179
+ "stdev": 5.163574218758349e-05,
180
+ "p50": 1.564446533203125,
181
+ "p90": 1.564487841796875,
182
+ "p95": 1.5644930053710937,
183
+ "p99": 1.5644971362304687,
184
+ "values": [
185
+ 1.5644981689453126,
186
+ 1.5643948974609374
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.17886888724406
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 3.1286097879409818,
202
+ "mean": 0.012317361369846375,
203
+ "stdev": 2.0930882299379567e-05,
204
+ "p50": 0.012314127922058105,
205
+ "p90": 0.012331007957458496,
206
+ "p95": 0.012338175773620605,
207
+ "p99": 0.012359311056137084,
208
+ "values": [
209
+ 0.012338175773620605,
210
+ 0.012313599586486817,
211
+ 0.012312576293945313,
212
+ 0.012347392082214356,
213
+ 0.012327936172485352,
214
+ 0.012312576293945313,
215
+ 0.012318719863891601,
216
+ 0.012322815895080566,
217
+ 0.012317695617675782,
218
+ 0.012313599586486817,
219
+ 0.012333056449890138,
220
+ 0.012312576293945313,
221
+ 0.012321887969970703,
222
+ 0.012310432434082032,
223
+ 0.012304384231567383,
224
+ 0.012303359985351562,
225
+ 0.01234227180480957,
226
+ 0.012319744110107422,
227
+ 0.012311552047729492,
228
+ 0.012315648078918457,
229
+ 0.012312576293945313,
230
+ 0.012319744110107422,
231
+ 0.012309503555297852,
232
+ 0.012318719863891601,
233
+ 0.012303359985351562,
234
+ 0.012318719863891601,
235
+ 0.012313599586486817,
236
+ 0.012307456016540527,
237
+ 0.012295167922973632,
238
+ 0.01233510398864746,
239
+ 0.012309503555297852,
240
+ 0.012313599586486817,
241
+ 0.012319744110107422,
242
+ 0.012307456016540527,
243
+ 0.012310527801513671,
244
+ 0.012310527801513671,
245
+ 0.012312576293945313,
246
+ 0.012314623832702636,
247
+ 0.012323840141296387,
248
+ 0.012317695617675782,
249
+ 0.012299263954162597,
250
+ 0.012337151527404786,
251
+ 0.012337151527404786,
252
+ 0.012311552047729492,
253
+ 0.012310527801513671,
254
+ 0.012319744110107422,
255
+ 0.012306431770324706,
256
+ 0.012305407524108887,
257
+ 0.012312576293945313,
258
+ 0.012312576293945313,
259
+ 0.012309503555297852,
260
+ 0.012310527801513671,
261
+ 0.012306431770324706,
262
+ 0.012307456016540527,
263
+ 0.012340224266052247,
264
+ 0.012322815895080566,
265
+ 0.012320768356323243,
266
+ 0.012319744110107422,
267
+ 0.012314623832702636,
268
+ 0.012316672325134278,
269
+ 0.012313599586486817,
270
+ 0.012300288200378418,
271
+ 0.012308480262756348,
272
+ 0.012309503555297852,
273
+ 0.012302335739135742,
274
+ 0.012304384231567383,
275
+ 0.012314623832702636,
276
+ 0.012324864387512208,
277
+ 0.012315648078918457,
278
+ 0.012307456016540527,
279
+ 0.012315648078918457,
280
+ 0.012328960418701173,
281
+ 0.012304415702819824,
282
+ 0.012312543869018555,
283
+ 0.012308480262756348,
284
+ 0.012309503555297852,
285
+ 0.012303359985351562,
286
+ 0.012305407524108887,
287
+ 0.012300288200378418,
288
+ 0.012316672325134278,
289
+ 0.012322815895080566,
290
+ 0.012319744110107422,
291
+ 0.012577792167663575,
292
+ 0.012353535652160644,
293
+ 0.012332032203674317,
294
+ 0.012320768356323243,
295
+ 0.012329983711242675,
296
+ 0.012329983711242675,
297
+ 0.012329983711242675,
298
+ 0.012316672325134278,
299
+ 0.012307456016540527,
300
+ 0.01233619213104248,
301
+ 0.012336064338684082,
302
+ 0.012308480262756348,
303
+ 0.012317695617675782,
304
+ 0.012318719863891601,
305
+ 0.012324864387512208,
306
+ 0.012319744110107422,
307
+ 0.012309503555297852,
308
+ 0.012313599586486817,
309
+ 0.012319744110107422,
310
+ 0.012312576293945313,
311
+ 0.012307456016540527,
312
+ 0.012316672325134278,
313
+ 0.012328960418701173,
314
+ 0.012315648078918457,
315
+ 0.012303359985351562,
316
+ 0.012318719863891601,
317
+ 0.012319744110107422,
318
+ 0.012312576293945313,
319
+ 0.012308480262756348,
320
+ 0.012302335739135742,
321
+ 0.012306431770324706,
322
+ 0.012316672325134278,
323
+ 0.012306431770324706,
324
+ 0.012306431770324706,
325
+ 0.012304384231567383,
326
+ 0.012324864387512208,
327
+ 0.012299263954162597,
328
+ 0.012314623832702636,
329
+ 0.012313632011413575,
330
+ 0.012319711685180664,
331
+ 0.012313599586486817,
332
+ 0.012307456016540527,
333
+ 0.012308544158935546,
334
+ 0.012311488151550294,
335
+ 0.012314623832702636,
336
+ 0.0123504638671875,
337
+ 0.012318719863891601,
338
+ 0.012306431770324706,
339
+ 0.012319744110107422,
340
+ 0.012321791648864745,
341
+ 0.012316672325134278,
342
+ 0.012307456016540527,
343
+ 0.01232588768005371,
344
+ 0.012331007957458496,
345
+ 0.012312576293945313,
346
+ 0.012329983711242675,
347
+ 0.012311552047729492,
348
+ 0.012317695617675782,
349
+ 0.012310527801513671,
350
+ 0.012310527801513671,
351
+ 0.012306431770324706,
352
+ 0.012312576293945313,
353
+ 0.012298239707946777,
354
+ 0.012319744110107422,
355
+ 0.012304384231567383,
356
+ 0.01233407974243164,
357
+ 0.012314623832702636,
358
+ 0.012308480262756348,
359
+ 0.012320768356323243,
360
+ 0.012317695617675782,
361
+ 0.012312576293945313,
362
+ 0.012306431770324706,
363
+ 0.012316672325134278,
364
+ 0.012298239707946777,
365
+ 0.012315648078918457,
366
+ 0.012311552047729492,
367
+ 0.012297216415405274,
368
+ 0.012318719863891601,
369
+ 0.012319744110107422,
370
+ 0.012307456016540527,
371
+ 0.012302335739135742,
372
+ 0.012326911926269531,
373
+ 0.012310527801513671,
374
+ 0.012315648078918457,
375
+ 0.012306431770324706,
376
+ 0.012311552047729492,
377
+ 0.012308480262756348,
378
+ 0.012311552047729492,
379
+ 0.012303359985351562,
380
+ 0.012312576293945313,
381
+ 0.012323840141296387,
382
+ 0.012333056449890138,
383
+ 0.012301312446594239,
384
+ 0.012316672325134278,
385
+ 0.012311552047729492,
386
+ 0.012307456016540527,
387
+ 0.012307456016540527,
388
+ 0.012303359985351562,
389
+ 0.012305407524108887,
390
+ 0.012312576293945313,
391
+ 0.012303359985351562,
392
+ 0.012304384231567383,
393
+ 0.012312576293945313,
394
+ 0.012331007957458496,
395
+ 0.012317695617675782,
396
+ 0.012301312446594239,
397
+ 0.012308480262756348,
398
+ 0.012316672325134278,
399
+ 0.012304384231567383,
400
+ 0.012302335739135742,
401
+ 0.012309503555297852,
402
+ 0.012310527801513671,
403
+ 0.012320768356323243,
404
+ 0.012315648078918457,
405
+ 0.012309503555297852,
406
+ 0.012314623832702636,
407
+ 0.012320768356323243,
408
+ 0.012324864387512208,
409
+ 0.012314623832702636,
410
+ 0.012313599586486817,
411
+ 0.012313599586486817,
412
+ 0.012315648078918457,
413
+ 0.012305407524108887,
414
+ 0.012314623832702636,
415
+ 0.012309503555297852,
416
+ 0.012309503555297852,
417
+ 0.012308480262756348,
418
+ 0.012308480262756348,
419
+ 0.012316672325134278,
420
+ 0.012326911926269531,
421
+ 0.012307456016540527,
422
+ 0.012317695617675782,
423
+ 0.012322815895080566,
424
+ 0.012307456016540527,
425
+ 0.012307456016540527,
426
+ 0.012353535652160644,
427
+ 0.012365823745727538,
428
+ 0.01234329605102539,
429
+ 0.012321791648864745,
430
+ 0.012316672325134278,
431
+ 0.012311552047729492,
432
+ 0.012347392082214356,
433
+ 0.012327936172485352,
434
+ 0.012316672325134278,
435
+ 0.012318719863891601,
436
+ 0.012315648078918457,
437
+ 0.012303359985351562,
438
+ 0.012323840141296387,
439
+ 0.012308480262756348,
440
+ 0.012319744110107422,
441
+ 0.01232588768005371,
442
+ 0.012314623832702636,
443
+ 0.012324864387512208,
444
+ 0.012316672325134278,
445
+ 0.012338175773620605,
446
+ 0.012317695617675782,
447
+ 0.012312576293945313,
448
+ 0.012338175773620605,
449
+ 0.012322815895080566,
450
+ 0.012311552047729492,
451
+ 0.012298239707946777,
452
+ 0.012302335739135742,
453
+ 0.012430335998535156,
454
+ 0.01233407974243164,
455
+ 0.012313599586486817,
456
+ 0.012314623832702636,
457
+ 0.012336128234863282,
458
+ 0.012321791648864745,
459
+ 0.012316672325134278,
460
+ 0.012315648078918457,
461
+ 0.012324864387512208,
462
+ 0.012309503555297852
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.18621918879954
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1336.864768,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 12.598955078125,
15
+ "mean": 12.598955078125,
16
+ "stdev": 0.0,
17
+ "p50": 12.598955078125,
18
+ "p90": 12.598955078125,
19
+ "p95": 12.598955078125,
20
+ "p99": 12.598955078125,
21
+ "values": [
22
+ 12.598955078125
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1862.3488,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6138.363904,
36
+ "max_allocated": 5278.596608
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.028303680419921873,
42
+ "mean": 0.014151840209960936,
43
+ "stdev": 0.00015123176574707072,
44
+ "p50": 0.014151840209960936,
45
+ "p90": 0.014272825622558594,
46
+ "p95": 0.014287948799133301,
47
+ "p99": 0.014300047340393066,
48
+ "values": [
49
+ 0.014000608444213867,
50
+ 0.014303071975708008
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 494.6353192338173
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2032.152576,
64
+ "max_global_vram": 6071.779328,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 5381.292032,
67
+ "max_allocated": 5282.647552
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 3.12889306640625,
73
+ "mean": 1.564446533203125,
74
+ "stdev": 5.163574218758349e-05,
75
+ "p50": 1.564446533203125,
76
+ "p90": 1.564487841796875,
77
+ "p95": 1.5644930053710937,
78
+ "p99": 1.5644971362304687,
79
+ "values": [
80
+ 1.5644981689453126,
81
+ 1.5643948974609374
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.17886888724406
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 3.1286097879409818,
97
+ "mean": 0.012317361369846375,
98
+ "stdev": 2.0930882299379567e-05,
99
+ "p50": 0.012314127922058105,
100
+ "p90": 0.012331007957458496,
101
+ "p95": 0.012338175773620605,
102
+ "p99": 0.012359311056137084,
103
+ "values": [
104
+ 0.012338175773620605,
105
+ 0.012313599586486817,
106
+ 0.012312576293945313,
107
+ 0.012347392082214356,
108
+ 0.012327936172485352,
109
+ 0.012312576293945313,
110
+ 0.012318719863891601,
111
+ 0.012322815895080566,
112
+ 0.012317695617675782,
113
+ 0.012313599586486817,
114
+ 0.012333056449890138,
115
+ 0.012312576293945313,
116
+ 0.012321887969970703,
117
+ 0.012310432434082032,
118
+ 0.012304384231567383,
119
+ 0.012303359985351562,
120
+ 0.01234227180480957,
121
+ 0.012319744110107422,
122
+ 0.012311552047729492,
123
+ 0.012315648078918457,
124
+ 0.012312576293945313,
125
+ 0.012319744110107422,
126
+ 0.012309503555297852,
127
+ 0.012318719863891601,
128
+ 0.012303359985351562,
129
+ 0.012318719863891601,
130
+ 0.012313599586486817,
131
+ 0.012307456016540527,
132
+ 0.012295167922973632,
133
+ 0.01233510398864746,
134
+ 0.012309503555297852,
135
+ 0.012313599586486817,
136
+ 0.012319744110107422,
137
+ 0.012307456016540527,
138
+ 0.012310527801513671,
139
+ 0.012310527801513671,
140
+ 0.012312576293945313,
141
+ 0.012314623832702636,
142
+ 0.012323840141296387,
143
+ 0.012317695617675782,
144
+ 0.012299263954162597,
145
+ 0.012337151527404786,
146
+ 0.012337151527404786,
147
+ 0.012311552047729492,
148
+ 0.012310527801513671,
149
+ 0.012319744110107422,
150
+ 0.012306431770324706,
151
+ 0.012305407524108887,
152
+ 0.012312576293945313,
153
+ 0.012312576293945313,
154
+ 0.012309503555297852,
155
+ 0.012310527801513671,
156
+ 0.012306431770324706,
157
+ 0.012307456016540527,
158
+ 0.012340224266052247,
159
+ 0.012322815895080566,
160
+ 0.012320768356323243,
161
+ 0.012319744110107422,
162
+ 0.012314623832702636,
163
+ 0.012316672325134278,
164
+ 0.012313599586486817,
165
+ 0.012300288200378418,
166
+ 0.012308480262756348,
167
+ 0.012309503555297852,
168
+ 0.012302335739135742,
169
+ 0.012304384231567383,
170
+ 0.012314623832702636,
171
+ 0.012324864387512208,
172
+ 0.012315648078918457,
173
+ 0.012307456016540527,
174
+ 0.012315648078918457,
175
+ 0.012328960418701173,
176
+ 0.012304415702819824,
177
+ 0.012312543869018555,
178
+ 0.012308480262756348,
179
+ 0.012309503555297852,
180
+ 0.012303359985351562,
181
+ 0.012305407524108887,
182
+ 0.012300288200378418,
183
+ 0.012316672325134278,
184
+ 0.012322815895080566,
185
+ 0.012319744110107422,
186
+ 0.012577792167663575,
187
+ 0.012353535652160644,
188
+ 0.012332032203674317,
189
+ 0.012320768356323243,
190
+ 0.012329983711242675,
191
+ 0.012329983711242675,
192
+ 0.012329983711242675,
193
+ 0.012316672325134278,
194
+ 0.012307456016540527,
195
+ 0.01233619213104248,
196
+ 0.012336064338684082,
197
+ 0.012308480262756348,
198
+ 0.012317695617675782,
199
+ 0.012318719863891601,
200
+ 0.012324864387512208,
201
+ 0.012319744110107422,
202
+ 0.012309503555297852,
203
+ 0.012313599586486817,
204
+ 0.012319744110107422,
205
+ 0.012312576293945313,
206
+ 0.012307456016540527,
207
+ 0.012316672325134278,
208
+ 0.012328960418701173,
209
+ 0.012315648078918457,
210
+ 0.012303359985351562,
211
+ 0.012318719863891601,
212
+ 0.012319744110107422,
213
+ 0.012312576293945313,
214
+ 0.012308480262756348,
215
+ 0.012302335739135742,
216
+ 0.012306431770324706,
217
+ 0.012316672325134278,
218
+ 0.012306431770324706,
219
+ 0.012306431770324706,
220
+ 0.012304384231567383,
221
+ 0.012324864387512208,
222
+ 0.012299263954162597,
223
+ 0.012314623832702636,
224
+ 0.012313632011413575,
225
+ 0.012319711685180664,
226
+ 0.012313599586486817,
227
+ 0.012307456016540527,
228
+ 0.012308544158935546,
229
+ 0.012311488151550294,
230
+ 0.012314623832702636,
231
+ 0.0123504638671875,
232
+ 0.012318719863891601,
233
+ 0.012306431770324706,
234
+ 0.012319744110107422,
235
+ 0.012321791648864745,
236
+ 0.012316672325134278,
237
+ 0.012307456016540527,
238
+ 0.01232588768005371,
239
+ 0.012331007957458496,
240
+ 0.012312576293945313,
241
+ 0.012329983711242675,
242
+ 0.012311552047729492,
243
+ 0.012317695617675782,
244
+ 0.012310527801513671,
245
+ 0.012310527801513671,
246
+ 0.012306431770324706,
247
+ 0.012312576293945313,
248
+ 0.012298239707946777,
249
+ 0.012319744110107422,
250
+ 0.012304384231567383,
251
+ 0.01233407974243164,
252
+ 0.012314623832702636,
253
+ 0.012308480262756348,
254
+ 0.012320768356323243,
255
+ 0.012317695617675782,
256
+ 0.012312576293945313,
257
+ 0.012306431770324706,
258
+ 0.012316672325134278,
259
+ 0.012298239707946777,
260
+ 0.012315648078918457,
261
+ 0.012311552047729492,
262
+ 0.012297216415405274,
263
+ 0.012318719863891601,
264
+ 0.012319744110107422,
265
+ 0.012307456016540527,
266
+ 0.012302335739135742,
267
+ 0.012326911926269531,
268
+ 0.012310527801513671,
269
+ 0.012315648078918457,
270
+ 0.012306431770324706,
271
+ 0.012311552047729492,
272
+ 0.012308480262756348,
273
+ 0.012311552047729492,
274
+ 0.012303359985351562,
275
+ 0.012312576293945313,
276
+ 0.012323840141296387,
277
+ 0.012333056449890138,
278
+ 0.012301312446594239,
279
+ 0.012316672325134278,
280
+ 0.012311552047729492,
281
+ 0.012307456016540527,
282
+ 0.012307456016540527,
283
+ 0.012303359985351562,
284
+ 0.012305407524108887,
285
+ 0.012312576293945313,
286
+ 0.012303359985351562,
287
+ 0.012304384231567383,
288
+ 0.012312576293945313,
289
+ 0.012331007957458496,
290
+ 0.012317695617675782,
291
+ 0.012301312446594239,
292
+ 0.012308480262756348,
293
+ 0.012316672325134278,
294
+ 0.012304384231567383,
295
+ 0.012302335739135742,
296
+ 0.012309503555297852,
297
+ 0.012310527801513671,
298
+ 0.012320768356323243,
299
+ 0.012315648078918457,
300
+ 0.012309503555297852,
301
+ 0.012314623832702636,
302
+ 0.012320768356323243,
303
+ 0.012324864387512208,
304
+ 0.012314623832702636,
305
+ 0.012313599586486817,
306
+ 0.012313599586486817,
307
+ 0.012315648078918457,
308
+ 0.012305407524108887,
309
+ 0.012314623832702636,
310
+ 0.012309503555297852,
311
+ 0.012309503555297852,
312
+ 0.012308480262756348,
313
+ 0.012308480262756348,
314
+ 0.012316672325134278,
315
+ 0.012326911926269531,
316
+ 0.012307456016540527,
317
+ 0.012317695617675782,
318
+ 0.012322815895080566,
319
+ 0.012307456016540527,
320
+ 0.012307456016540527,
321
+ 0.012353535652160644,
322
+ 0.012365823745727538,
323
+ 0.01234329605102539,
324
+ 0.012321791648864745,
325
+ 0.012316672325134278,
326
+ 0.012311552047729492,
327
+ 0.012347392082214356,
328
+ 0.012327936172485352,
329
+ 0.012316672325134278,
330
+ 0.012318719863891601,
331
+ 0.012315648078918457,
332
+ 0.012303359985351562,
333
+ 0.012323840141296387,
334
+ 0.012308480262756348,
335
+ 0.012319744110107422,
336
+ 0.01232588768005371,
337
+ 0.012314623832702636,
338
+ 0.012324864387512208,
339
+ 0.012316672325134278,
340
+ 0.012338175773620605,
341
+ 0.012317695617675782,
342
+ 0.012312576293945313,
343
+ 0.012338175773620605,
344
+ 0.012322815895080566,
345
+ 0.012311552047729492,
346
+ 0.012298239707946777,
347
+ 0.012302335739135742,
348
+ 0.012430335998535156,
349
+ 0.01233407974243164,
350
+ 0.012313599586486817,
351
+ 0.012314623832702636,
352
+ 0.012336128234863282,
353
+ 0.012321791648864745,
354
+ 0.012316672325134278,
355
+ 0.012315648078918457,
356
+ 0.012324864387512208,
357
+ 0.012309503555297852
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.18621918879954
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/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": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014151840209960936,
7
+ "prefill.throughput.value": 494.6353192338173,
8
+ "decode.latency.mean": 1.564446533203125,
9
+ "decode.throughput.value": 81.17886888724406,
10
+ "per_token.latency.mean": 0.012317361369846375,
11
+ "per_token.throughput.value": 81.18621918879954
12
+ }
13
+ }
2024-08-24/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpyjp2x69x/commit=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
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/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594
88
+ - hydra.run.dir=_benchmark/tmpyjp2x69x/commit\=0a7af19f4dc868bafc82f35eb7e8d13bac87a594/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.4.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model_type: null
150
+ model: google/gemma-2b
151
+ processor: null
152
+ device: cuda
153
+ device_ids: '0'
154
+ seed: 42
155
+ inter_op_num_threads: null
156
+ intra_op_num_threads: null
157
+ model_kwargs: {}
158
+ processor_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ memory: true
192
+ latency: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ numactl: false
206
+ numactl_kwargs: {}
207
+ start_method: spawn
208
+ environment:
209
+ cpu: ' AMD EPYC 7R32'
210
+ cpu_count: 16
211
+ cpu_ram_mb: 66697.261056
212
+ system: Linux
213
+ machine: x86_64
214
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
215
+ processor: x86_64
216
+ python_version: 3.8.10
217
+ gpu:
218
+ - NVIDIA A10G
219
+ gpu_count: 1
220
+ gpu_vram_mb: 24146608128
221
+ optimum_benchmark_version: 0.4.0
222
+ optimum_benchmark_commit: null
223
+ transformers_version: 4.45.0.dev0
224
+ transformers_commit: 0a7af19f4dc868bafc82f35eb7e8d13bac87a594
225
+ accelerate_version: 0.34.0.dev0
226
+ accelerate_commit: null
227
+ diffusers_version: null
228
+ diffusers_commit: null
229
+ optimum_version: 1.22.0.dev0
230
+ optimum_commit: null
231
+ timm_version: 0.9.16
232
+ timm_commit: null
233
+ peft_version: 0.12.1.dev0
234
+ peft_commit: null
2024-08-24/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.020197423934936523,
8
+ "prefill.throughput.value": 346.57885196397444,
9
+ "decode.latency.mean": 2.43524609375,
10
+ "decode.throughput.value": 52.15078686541882,
11
+ "per_token.latency.mean": 0.019173916261027178,
12
+ "per_token.throughput.value": 52.154186259413045
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.02142367935180664,
21
+ "prefill.throughput.value": 326.7412606887106,
22
+ "decode.latency.mean": 2.5716962890625,
23
+ "decode.throughput.value": 49.3837474277716,
24
+ "per_token.latency.mean": 0.020248555844224345,
25
+ "per_token.throughput.value": 49.38623809486334
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014151840209960936,
34
+ "prefill.throughput.value": 494.6353192338173,
35
+ "decode.latency.mean": 1.564446533203125,
36
+ "decode.throughput.value": 81.17886888724406,
37
+ "per_token.latency.mean": 0.012317361369846375,
38
+ "per_token.throughput.value": 81.18621918879954
39
+ }
40
+ }
41
+ ]
2024-08-24/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "0a7af19f4dc868bafc82f35eb7e8d13bac87a594": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020197423934936523,
7
+ "prefill.throughput.value": 346.57885196397444,
8
+ "decode.latency.mean": 2.43524609375,
9
+ "decode.throughput.value": 52.15078686541882,
10
+ "per_token.latency.mean": 0.019173916261027178,
11
+ "per_token.throughput.value": 52.154186259413045
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "0a7af19f4dc868bafc82f35eb7e8d13bac87a594": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.02142367935180664,
19
+ "prefill.throughput.value": 326.7412606887106,
20
+ "decode.latency.mean": 2.5716962890625,
21
+ "decode.throughput.value": 49.3837474277716,
22
+ "per_token.latency.mean": 0.020248555844224345,
23
+ "per_token.throughput.value": 49.38623809486334
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "0a7af19f4dc868bafc82f35eb7e8d13bac87a594": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014151840209960936,
31
+ "prefill.throughput.value": 494.6353192338173,
32
+ "decode.latency.mean": 1.564446533203125,
33
+ "decode.throughput.value": 81.17886888724406,
34
+ "per_token.latency.mean": 0.012317361369846375,
35
+ "per_token.throughput.value": 81.18621918879954
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }