hf-transformers-bot commited on
Commit
f140a71
1 Parent(s): b8c577a

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/multirun.yaml +234 -0
  31. 2024-08-23/summaries.json +41 -0
  32. 2024-08-23/summary.json +40 -0
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864
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: 22e6f145259c4e9e156a3f846fad14b1cddfae4f
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f
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/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f
88
+ - hydra.run.dir=_benchmark/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864,
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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
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": 1317.933056,
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.403734375,
120
+ "mean": 12.403734375,
121
+ "stdev": 0.0,
122
+ "p50": 12.403734375,
123
+ "p90": 12.403734375,
124
+ "p95": 12.403734375,
125
+ "p99": 12.403734375,
126
+ "values": [
127
+ 12.403734375
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1757.687808,
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.039689697265625,
147
+ "mean": 0.0198448486328125,
148
+ "stdev": 1.7744064331054465e-05,
149
+ "p50": 0.0198448486328125,
150
+ "p90": 0.019859043884277342,
151
+ "p95": 0.019860818290710448,
152
+ "p99": 0.019862237815856932,
153
+ "values": [
154
+ 0.019827104568481444,
155
+ 0.019862592697143553
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 352.73637655395555
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1811.935232,
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": 5.000026611328125,
178
+ "mean": 2.5000133056640625,
179
+ "stdev": 0.030035766601562486,
180
+ "p50": 2.5000133056640625,
181
+ "p90": 2.5240419189453127,
182
+ "p95": 2.527045495605469,
183
+ "p99": 2.5294483569335937,
184
+ "values": [
185
+ 2.4699775390625,
186
+ 2.530049072265625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 50.799729630345226
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.999704586029055,
202
+ "mean": 0.019683876322949025,
203
+ "stdev": 0.0006076941995607198,
204
+ "p50": 0.019528192520141603,
205
+ "p90": 0.020528537368774413,
206
+ "p95": 0.02058480634689331,
207
+ "p99": 0.020735830039978028,
208
+ "values": [
209
+ 0.019166208267211913,
210
+ 0.018974720001220705,
211
+ 0.019112960815429687,
212
+ 0.019164159774780275,
213
+ 0.01944576072692871,
214
+ 0.01969254493713379,
215
+ 0.01964851188659668,
216
+ 0.019777536392211914,
217
+ 0.019734527587890623,
218
+ 0.01967513656616211,
219
+ 0.01985945510864258,
220
+ 0.01902899169921875,
221
+ 0.01904537582397461,
222
+ 0.019208192825317383,
223
+ 0.01921331214904785,
224
+ 0.019610624313354492,
225
+ 0.01984716796875,
226
+ 0.019106815338134766,
227
+ 0.01928704071044922,
228
+ 0.019614719390869142,
229
+ 0.01969152069091797,
230
+ 0.01985024070739746,
231
+ 0.01965772819519043,
232
+ 0.01965260887145996,
233
+ 0.01965158462524414,
234
+ 0.01909350395202637,
235
+ 0.01922047996520996,
236
+ 0.019062784194946288,
237
+ 0.018994176864624023,
238
+ 0.01904947280883789,
239
+ 0.01906073570251465,
240
+ 0.019091455459594727,
241
+ 0.01906790351867676,
242
+ 0.01906892776489258,
243
+ 0.019307519912719725,
244
+ 0.020107263565063475,
245
+ 0.019791872024536132,
246
+ 0.019176448822021484,
247
+ 0.019353599548339845,
248
+ 0.01908121681213379,
249
+ 0.01902592086791992,
250
+ 0.019005439758300782,
251
+ 0.01907302474975586,
252
+ 0.019180543899536134,
253
+ 0.019091455459594727,
254
+ 0.01907711982727051,
255
+ 0.01906790351867676,
256
+ 0.01906790351867676,
257
+ 0.019100671768188478,
258
+ 0.01929113578796387,
259
+ 0.019132415771484376,
260
+ 0.019143680572509765,
261
+ 0.0196997127532959,
262
+ 0.01970790481567383,
263
+ 0.01964851188659668,
264
+ 0.019517440795898438,
265
+ 0.01965465545654297,
266
+ 0.020132863998413086,
267
+ 0.01984819221496582,
268
+ 0.01985945510864258,
269
+ 0.01927475166320801,
270
+ 0.019354623794555666,
271
+ 0.019184640884399414,
272
+ 0.019164159774780275,
273
+ 0.019165184020996092,
274
+ 0.019312639236450196,
275
+ 0.019312639236450196,
276
+ 0.01939148712158203,
277
+ 0.019726335525512697,
278
+ 0.020220928192138672,
279
+ 0.020108287811279296,
280
+ 0.019931135177612306,
281
+ 0.019923967361450197,
282
+ 0.019955711364746095,
283
+ 0.019378175735473634,
284
+ 0.019564544677734375,
285
+ 0.01977446365356445,
286
+ 0.019817472457885742,
287
+ 0.019733503341674806,
288
+ 0.01977446365356445,
289
+ 0.019974143981933593,
290
+ 0.019762176513671875,
291
+ 0.019732479095458985,
292
+ 0.01920102310180664,
293
+ 0.01920921516418457,
294
+ 0.02003046417236328,
295
+ 0.019813375473022463,
296
+ 0.020160512924194338,
297
+ 0.02049126434326172,
298
+ 0.020093952178955078,
299
+ 0.019956735610961913,
300
+ 0.01988915252685547,
301
+ 0.019761184692382812,
302
+ 0.019250143051147462,
303
+ 0.019161088943481445,
304
+ 0.019152896881103516,
305
+ 0.01920512008666992,
306
+ 0.019212287902832033,
307
+ 0.01924403190612793,
308
+ 0.019212287902832033,
309
+ 0.01920614433288574,
310
+ 0.019135488510131835,
311
+ 0.019161088943481445,
312
+ 0.019160064697265625,
313
+ 0.01918976020812988,
314
+ 0.019141632080078123,
315
+ 0.019191808700561523,
316
+ 0.019138559341430664,
317
+ 0.01922662353515625,
318
+ 0.01925017547607422,
319
+ 0.019331071853637697,
320
+ 0.01921023941040039,
321
+ 0.019174400329589843,
322
+ 0.019184640884399414,
323
+ 0.019260416030883788,
324
+ 0.01966182327270508,
325
+ 0.01943756866455078,
326
+ 0.01923174476623535,
327
+ 0.019315711975097655,
328
+ 0.019126272201538085,
329
+ 0.01985638427734375,
330
+ 0.020242431640625,
331
+ 0.020159488677978517,
332
+ 0.020050943374633787,
333
+ 0.01919385528564453,
334
+ 0.019191808700561523,
335
+ 0.01923276710510254,
336
+ 0.01902592086791992,
337
+ 0.019017728805541992,
338
+ 0.01899519920349121,
339
+ 0.01903001594543457,
340
+ 0.019021823883056642,
341
+ 0.01903104019165039,
342
+ 0.01904128074645996,
343
+ 0.01929523277282715,
344
+ 0.01903104019165039,
345
+ 0.01899622344970703,
346
+ 0.01904128074645996,
347
+ 0.019276800155639647,
348
+ 0.020291584014892578,
349
+ 0.019854335784912108,
350
+ 0.01982259178161621,
351
+ 0.019538944244384765,
352
+ 0.01903615951538086,
353
+ 0.01906483268737793,
354
+ 0.01906585693359375,
355
+ 0.01903308868408203,
356
+ 0.01902387237548828,
357
+ 0.019066879272460938,
358
+ 0.01903206443786621,
359
+ 0.018925567626953126,
360
+ 0.018956287384033203,
361
+ 0.019105791091918945,
362
+ 0.019212287902832033,
363
+ 0.018964479446411133,
364
+ 0.018983936309814452,
365
+ 0.019072000503540038,
366
+ 0.01902694320678711,
367
+ 0.019108863830566408,
368
+ 0.01903206443786621,
369
+ 0.01904537582397461,
370
+ 0.01902796745300293,
371
+ 0.01902694320678711,
372
+ 0.01904332733154297,
373
+ 0.019062784194946288,
374
+ 0.019072000503540038,
375
+ 0.019117055892944337,
376
+ 0.01905254364013672,
377
+ 0.019078144073486326,
378
+ 0.019056640625,
379
+ 0.01922355270385742,
380
+ 0.018932735443115235,
381
+ 0.019123199462890626,
382
+ 0.02069606399536133,
383
+ 0.020093952178955078,
384
+ 0.019474431991577147,
385
+ 0.019014656066894533,
386
+ 0.01919385528564453,
387
+ 0.01908940887451172,
388
+ 0.019006464004516603,
389
+ 0.0190515193939209,
390
+ 0.019042303085327148,
391
+ 0.019474431991577147,
392
+ 0.01970790481567383,
393
+ 0.020382720947265624,
394
+ 0.020478975296020507,
395
+ 0.02051584053039551,
396
+ 0.020527103424072265,
397
+ 0.02050048065185547,
398
+ 0.02047488021850586,
399
+ 0.020533248901367186,
400
+ 0.020504575729370117,
401
+ 0.020551679611206054,
402
+ 0.020568063735961914,
403
+ 0.020603904724121092,
404
+ 0.020674560546875,
405
+ 0.02064588737487793,
406
+ 0.02048409652709961,
407
+ 0.02047590446472168,
408
+ 0.020493312835693358,
409
+ 0.020505599975585938,
410
+ 0.02066534423828125,
411
+ 0.020525056838989256,
412
+ 0.020539392471313478,
413
+ 0.0204769287109375,
414
+ 0.0204769287109375,
415
+ 0.020520959854125977,
416
+ 0.02051584053039551,
417
+ 0.020576255798339844,
418
+ 0.020405248641967775,
419
+ 0.02048204803466797,
420
+ 0.02048409652709961,
421
+ 0.02053222465515137,
422
+ 0.020537343978881836,
423
+ 0.020479999542236327,
424
+ 0.020479999542236327,
425
+ 0.020711423873901368,
426
+ 0.02045132827758789,
427
+ 0.020477951049804686,
428
+ 0.02047283172607422,
429
+ 0.02047488021850586,
430
+ 0.020732927322387695,
431
+ 0.020495359420776366,
432
+ 0.02045952033996582,
433
+ 0.020585472106933594,
434
+ 0.02082099151611328,
435
+ 0.02090291213989258,
436
+ 0.020552703857421875,
437
+ 0.02066329574584961,
438
+ 0.020525056838989256,
439
+ 0.020539392471313478,
440
+ 0.020503551483154296,
441
+ 0.02045952033996582,
442
+ 0.02045747184753418,
443
+ 0.02025881576538086,
444
+ 0.02018611145019531,
445
+ 0.02018611145019531,
446
+ 0.020190208435058594,
447
+ 0.020454399108886717,
448
+ 0.020505599975585938,
449
+ 0.020739103317260744,
450
+ 0.02051068878173828,
451
+ 0.020463615417480468,
452
+ 0.020529151916503906,
453
+ 0.020685823440551757,
454
+ 0.02048409652709961,
455
+ 0.02044927978515625,
456
+ 0.02053222465515137,
457
+ 0.020584447860717774,
458
+ 0.02052403259277344,
459
+ 0.02045849609375,
460
+ 0.020534271240234374,
461
+ 0.02052403259277344,
462
+ 0.02045337677001953
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 50.80300158328676
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864,
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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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": 1317.933056,
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.403734375,
15
+ "mean": 12.403734375,
16
+ "stdev": 0.0,
17
+ "p50": 12.403734375,
18
+ "p90": 12.403734375,
19
+ "p95": 12.403734375,
20
+ "p99": 12.403734375,
21
+ "values": [
22
+ 12.403734375
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1757.687808,
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.039689697265625,
42
+ "mean": 0.0198448486328125,
43
+ "stdev": 1.7744064331054465e-05,
44
+ "p50": 0.0198448486328125,
45
+ "p90": 0.019859043884277342,
46
+ "p95": 0.019860818290710448,
47
+ "p99": 0.019862237815856932,
48
+ "values": [
49
+ 0.019827104568481444,
50
+ 0.019862592697143553
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 352.73637655395555
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1811.935232,
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": 5.000026611328125,
73
+ "mean": 2.5000133056640625,
74
+ "stdev": 0.030035766601562486,
75
+ "p50": 2.5000133056640625,
76
+ "p90": 2.5240419189453127,
77
+ "p95": 2.527045495605469,
78
+ "p99": 2.5294483569335937,
79
+ "values": [
80
+ 2.4699775390625,
81
+ 2.530049072265625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 50.799729630345226
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.999704586029055,
97
+ "mean": 0.019683876322949025,
98
+ "stdev": 0.0006076941995607198,
99
+ "p50": 0.019528192520141603,
100
+ "p90": 0.020528537368774413,
101
+ "p95": 0.02058480634689331,
102
+ "p99": 0.020735830039978028,
103
+ "values": [
104
+ 0.019166208267211913,
105
+ 0.018974720001220705,
106
+ 0.019112960815429687,
107
+ 0.019164159774780275,
108
+ 0.01944576072692871,
109
+ 0.01969254493713379,
110
+ 0.01964851188659668,
111
+ 0.019777536392211914,
112
+ 0.019734527587890623,
113
+ 0.01967513656616211,
114
+ 0.01985945510864258,
115
+ 0.01902899169921875,
116
+ 0.01904537582397461,
117
+ 0.019208192825317383,
118
+ 0.01921331214904785,
119
+ 0.019610624313354492,
120
+ 0.01984716796875,
121
+ 0.019106815338134766,
122
+ 0.01928704071044922,
123
+ 0.019614719390869142,
124
+ 0.01969152069091797,
125
+ 0.01985024070739746,
126
+ 0.01965772819519043,
127
+ 0.01965260887145996,
128
+ 0.01965158462524414,
129
+ 0.01909350395202637,
130
+ 0.01922047996520996,
131
+ 0.019062784194946288,
132
+ 0.018994176864624023,
133
+ 0.01904947280883789,
134
+ 0.01906073570251465,
135
+ 0.019091455459594727,
136
+ 0.01906790351867676,
137
+ 0.01906892776489258,
138
+ 0.019307519912719725,
139
+ 0.020107263565063475,
140
+ 0.019791872024536132,
141
+ 0.019176448822021484,
142
+ 0.019353599548339845,
143
+ 0.01908121681213379,
144
+ 0.01902592086791992,
145
+ 0.019005439758300782,
146
+ 0.01907302474975586,
147
+ 0.019180543899536134,
148
+ 0.019091455459594727,
149
+ 0.01907711982727051,
150
+ 0.01906790351867676,
151
+ 0.01906790351867676,
152
+ 0.019100671768188478,
153
+ 0.01929113578796387,
154
+ 0.019132415771484376,
155
+ 0.019143680572509765,
156
+ 0.0196997127532959,
157
+ 0.01970790481567383,
158
+ 0.01964851188659668,
159
+ 0.019517440795898438,
160
+ 0.01965465545654297,
161
+ 0.020132863998413086,
162
+ 0.01984819221496582,
163
+ 0.01985945510864258,
164
+ 0.01927475166320801,
165
+ 0.019354623794555666,
166
+ 0.019184640884399414,
167
+ 0.019164159774780275,
168
+ 0.019165184020996092,
169
+ 0.019312639236450196,
170
+ 0.019312639236450196,
171
+ 0.01939148712158203,
172
+ 0.019726335525512697,
173
+ 0.020220928192138672,
174
+ 0.020108287811279296,
175
+ 0.019931135177612306,
176
+ 0.019923967361450197,
177
+ 0.019955711364746095,
178
+ 0.019378175735473634,
179
+ 0.019564544677734375,
180
+ 0.01977446365356445,
181
+ 0.019817472457885742,
182
+ 0.019733503341674806,
183
+ 0.01977446365356445,
184
+ 0.019974143981933593,
185
+ 0.019762176513671875,
186
+ 0.019732479095458985,
187
+ 0.01920102310180664,
188
+ 0.01920921516418457,
189
+ 0.02003046417236328,
190
+ 0.019813375473022463,
191
+ 0.020160512924194338,
192
+ 0.02049126434326172,
193
+ 0.020093952178955078,
194
+ 0.019956735610961913,
195
+ 0.01988915252685547,
196
+ 0.019761184692382812,
197
+ 0.019250143051147462,
198
+ 0.019161088943481445,
199
+ 0.019152896881103516,
200
+ 0.01920512008666992,
201
+ 0.019212287902832033,
202
+ 0.01924403190612793,
203
+ 0.019212287902832033,
204
+ 0.01920614433288574,
205
+ 0.019135488510131835,
206
+ 0.019161088943481445,
207
+ 0.019160064697265625,
208
+ 0.01918976020812988,
209
+ 0.019141632080078123,
210
+ 0.019191808700561523,
211
+ 0.019138559341430664,
212
+ 0.01922662353515625,
213
+ 0.01925017547607422,
214
+ 0.019331071853637697,
215
+ 0.01921023941040039,
216
+ 0.019174400329589843,
217
+ 0.019184640884399414,
218
+ 0.019260416030883788,
219
+ 0.01966182327270508,
220
+ 0.01943756866455078,
221
+ 0.01923174476623535,
222
+ 0.019315711975097655,
223
+ 0.019126272201538085,
224
+ 0.01985638427734375,
225
+ 0.020242431640625,
226
+ 0.020159488677978517,
227
+ 0.020050943374633787,
228
+ 0.01919385528564453,
229
+ 0.019191808700561523,
230
+ 0.01923276710510254,
231
+ 0.01902592086791992,
232
+ 0.019017728805541992,
233
+ 0.01899519920349121,
234
+ 0.01903001594543457,
235
+ 0.019021823883056642,
236
+ 0.01903104019165039,
237
+ 0.01904128074645996,
238
+ 0.01929523277282715,
239
+ 0.01903104019165039,
240
+ 0.01899622344970703,
241
+ 0.01904128074645996,
242
+ 0.019276800155639647,
243
+ 0.020291584014892578,
244
+ 0.019854335784912108,
245
+ 0.01982259178161621,
246
+ 0.019538944244384765,
247
+ 0.01903615951538086,
248
+ 0.01906483268737793,
249
+ 0.01906585693359375,
250
+ 0.01903308868408203,
251
+ 0.01902387237548828,
252
+ 0.019066879272460938,
253
+ 0.01903206443786621,
254
+ 0.018925567626953126,
255
+ 0.018956287384033203,
256
+ 0.019105791091918945,
257
+ 0.019212287902832033,
258
+ 0.018964479446411133,
259
+ 0.018983936309814452,
260
+ 0.019072000503540038,
261
+ 0.01902694320678711,
262
+ 0.019108863830566408,
263
+ 0.01903206443786621,
264
+ 0.01904537582397461,
265
+ 0.01902796745300293,
266
+ 0.01902694320678711,
267
+ 0.01904332733154297,
268
+ 0.019062784194946288,
269
+ 0.019072000503540038,
270
+ 0.019117055892944337,
271
+ 0.01905254364013672,
272
+ 0.019078144073486326,
273
+ 0.019056640625,
274
+ 0.01922355270385742,
275
+ 0.018932735443115235,
276
+ 0.019123199462890626,
277
+ 0.02069606399536133,
278
+ 0.020093952178955078,
279
+ 0.019474431991577147,
280
+ 0.019014656066894533,
281
+ 0.01919385528564453,
282
+ 0.01908940887451172,
283
+ 0.019006464004516603,
284
+ 0.0190515193939209,
285
+ 0.019042303085327148,
286
+ 0.019474431991577147,
287
+ 0.01970790481567383,
288
+ 0.020382720947265624,
289
+ 0.020478975296020507,
290
+ 0.02051584053039551,
291
+ 0.020527103424072265,
292
+ 0.02050048065185547,
293
+ 0.02047488021850586,
294
+ 0.020533248901367186,
295
+ 0.020504575729370117,
296
+ 0.020551679611206054,
297
+ 0.020568063735961914,
298
+ 0.020603904724121092,
299
+ 0.020674560546875,
300
+ 0.02064588737487793,
301
+ 0.02048409652709961,
302
+ 0.02047590446472168,
303
+ 0.020493312835693358,
304
+ 0.020505599975585938,
305
+ 0.02066534423828125,
306
+ 0.020525056838989256,
307
+ 0.020539392471313478,
308
+ 0.0204769287109375,
309
+ 0.0204769287109375,
310
+ 0.020520959854125977,
311
+ 0.02051584053039551,
312
+ 0.020576255798339844,
313
+ 0.020405248641967775,
314
+ 0.02048204803466797,
315
+ 0.02048409652709961,
316
+ 0.02053222465515137,
317
+ 0.020537343978881836,
318
+ 0.020479999542236327,
319
+ 0.020479999542236327,
320
+ 0.020711423873901368,
321
+ 0.02045132827758789,
322
+ 0.020477951049804686,
323
+ 0.02047283172607422,
324
+ 0.02047488021850586,
325
+ 0.020732927322387695,
326
+ 0.020495359420776366,
327
+ 0.02045952033996582,
328
+ 0.020585472106933594,
329
+ 0.02082099151611328,
330
+ 0.02090291213989258,
331
+ 0.020552703857421875,
332
+ 0.02066329574584961,
333
+ 0.020525056838989256,
334
+ 0.020539392471313478,
335
+ 0.020503551483154296,
336
+ 0.02045952033996582,
337
+ 0.02045747184753418,
338
+ 0.02025881576538086,
339
+ 0.02018611145019531,
340
+ 0.02018611145019531,
341
+ 0.020190208435058594,
342
+ 0.020454399108886717,
343
+ 0.020505599975585938,
344
+ 0.020739103317260744,
345
+ 0.02051068878173828,
346
+ 0.020463615417480468,
347
+ 0.020529151916503906,
348
+ 0.020685823440551757,
349
+ 0.02048409652709961,
350
+ 0.02044927978515625,
351
+ 0.02053222465515137,
352
+ 0.020584447860717774,
353
+ 0.02052403259277344,
354
+ 0.02045849609375,
355
+ 0.020534271240234374,
356
+ 0.02052403259277344,
357
+ 0.02045337677001953
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 50.80300158328676
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.0198448486328125,
7
+ "prefill.throughput.value": 352.73637655395555,
8
+ "decode.latency.mean": 2.5000133056640625,
9
+ "decode.throughput.value": 50.799729630345226,
10
+ "per_token.latency.mean": 0.019683876322949025,
11
+ "per_token.throughput.value": 50.80300158328676
12
+ }
13
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864
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: 22e6f145259c4e9e156a3f846fad14b1cddfae4f
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f
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/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f
88
+ - hydra.run.dir=_benchmark/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23 10:18:32,968][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-08-23 10:18:35,372][process][ERROR] - + Received traceback from isolated process
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864,
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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864
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: 22e6f145259c4e9e156a3f846fad14b1cddfae4f
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f
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/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f
88
+ - hydra.run.dir=_benchmark/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864,
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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
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": 1318.62528,
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": 13.0165390625,
120
+ "mean": 13.0165390625,
121
+ "stdev": 0.0,
122
+ "p50": 13.0165390625,
123
+ "p90": 13.0165390625,
124
+ "p95": 13.0165390625,
125
+ "p99": 13.0165390625,
126
+ "values": [
127
+ 13.0165390625
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1751.052288,
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.04422764778137207,
147
+ "mean": 0.022113823890686037,
148
+ "stdev": 1.07831954956044e-05,
149
+ "p50": 0.022113823890686037,
150
+ "p90": 0.02212245044708252,
151
+ "p95": 0.022123528766632077,
152
+ "p99": 0.022124391422271728,
153
+ "values": [
154
+ 0.02210304069519043,
155
+ 0.02212460708618164
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 316.544078247285
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1775.37024,
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.192081298828125,
178
+ "mean": 2.5960406494140624,
179
+ "stdev": 0.005279174804687425,
180
+ "p50": 2.5960406494140624,
181
+ "p90": 2.6002639892578125,
182
+ "p95": 2.600791906738281,
183
+ "p99": 2.601214240722656,
184
+ "values": [
185
+ 2.60131982421875,
186
+ 2.590761474609375
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 48.92065154244193
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.19181927680969,
202
+ "mean": 0.020440233373266507,
203
+ "stdev": 0.00020355355835377745,
204
+ "p50": 0.020366336822509764,
205
+ "p90": 0.020584141159057618,
206
+ "p95": 0.020906189060211182,
207
+ "p99": 0.021230644054412842,
208
+ "values": [
209
+ 0.020349952697753908,
210
+ 0.020392959594726562,
211
+ 0.020365312576293947,
212
+ 0.02083635139465332,
213
+ 0.021424127578735352,
214
+ 0.021046272277832033,
215
+ 0.021238784790039062,
216
+ 0.021146623611450196,
217
+ 0.020392959594726562,
218
+ 0.02023628807067871,
219
+ 0.020342784881591795,
220
+ 0.020446207046508787,
221
+ 0.020370431900024414,
222
+ 0.020279296875,
223
+ 0.020344831466674804,
224
+ 0.020313087463378905,
225
+ 0.020342784881591795,
226
+ 0.020311040878295897,
227
+ 0.02045952033996582,
228
+ 0.020335615158081053,
229
+ 0.020336639404296874,
230
+ 0.020447231292724608,
231
+ 0.020914176940917968,
232
+ 0.021201919555664063,
233
+ 0.02090188789367676,
234
+ 0.020978687286376953,
235
+ 0.020353023529052734,
236
+ 0.020345855712890625,
237
+ 0.020560895919799805,
238
+ 0.020368383407592772,
239
+ 0.020343807220458983,
240
+ 0.02086092758178711,
241
+ 0.020576255798339844,
242
+ 0.020452352523803712,
243
+ 0.020379648208618165,
244
+ 0.020355072021484375,
245
+ 0.020363264083862305,
246
+ 0.0216944637298584,
247
+ 0.021223424911499023,
248
+ 0.021167104721069335,
249
+ 0.020989952087402345,
250
+ 0.020971519470214844,
251
+ 0.02065715217590332,
252
+ 0.020291584014892578,
253
+ 0.020353023529052734,
254
+ 0.02033459281921387,
255
+ 0.020371456146240235,
256
+ 0.020338687896728515,
257
+ 0.020370431900024414,
258
+ 0.020342784881591795,
259
+ 0.020377599716186523,
260
+ 0.020496383666992187,
261
+ 0.02039097595214844,
262
+ 0.020493247985839843,
263
+ 0.020547584533691408,
264
+ 0.020793344497680662,
265
+ 0.02046566390991211,
266
+ 0.020587520599365236,
267
+ 0.020418560028076172,
268
+ 0.020230144500732423,
269
+ 0.020333568572998048,
270
+ 0.020350976943969725,
271
+ 0.020488191604614257,
272
+ 0.02026188850402832,
273
+ 0.020312063217163084,
274
+ 0.020355072021484375,
275
+ 0.020346879959106445,
276
+ 0.020345855712890625,
277
+ 0.020332544326782227,
278
+ 0.020360191345214843,
279
+ 0.020361215591430663,
280
+ 0.02022502326965332,
281
+ 0.020353023529052734,
282
+ 0.020373504638671876,
283
+ 0.020345855712890625,
284
+ 0.02046463966369629,
285
+ 0.020335615158081053,
286
+ 0.020345855712890625,
287
+ 0.020362239837646484,
288
+ 0.020369407653808593,
289
+ 0.020536319732666015,
290
+ 0.020516864776611327,
291
+ 0.020341760635375978,
292
+ 0.02025984001159668,
293
+ 0.020237312316894532,
294
+ 0.020929536819458007,
295
+ 0.020714496612548827,
296
+ 0.020365312576293947,
297
+ 0.020378623962402344,
298
+ 0.020369407653808593,
299
+ 0.020365312576293947,
300
+ 0.020350976943969725,
301
+ 0.02047385597229004,
302
+ 0.020322303771972656,
303
+ 0.020332544326782227,
304
+ 0.020356096267700196,
305
+ 0.02022707176208496,
306
+ 0.020501504898071288,
307
+ 0.020572160720825194,
308
+ 0.020386816024780274,
309
+ 0.020377599716186523,
310
+ 0.020406272888183592,
311
+ 0.02039193534851074,
312
+ 0.020535295486450195,
313
+ 0.020470783233642577,
314
+ 0.02068889617919922,
315
+ 0.02066329574584961,
316
+ 0.02043187141418457,
317
+ 0.02030182456970215,
318
+ 0.020353023529052734,
319
+ 0.020353023529052734,
320
+ 0.020487167358398437,
321
+ 0.020331520080566406,
322
+ 0.02049945640563965,
323
+ 0.02032649612426758,
324
+ 0.020346784591674806,
325
+ 0.020356096267700196,
326
+ 0.020350976943969725,
327
+ 0.020575231552124023,
328
+ 0.020387840270996094,
329
+ 0.02035923194885254,
330
+ 0.020257728576660156,
331
+ 0.020330495834350586,
332
+ 0.020463615417480468,
333
+ 0.0202926082611084,
334
+ 0.020347904205322266,
335
+ 0.020315135955810547,
336
+ 0.020569087982177735,
337
+ 0.020365312576293947,
338
+ 0.02027724838256836,
339
+ 0.020368383407592772,
340
+ 0.020332544326782227,
341
+ 0.020366336822509764,
342
+ 0.020338687896728515,
343
+ 0.020374528884887694,
344
+ 0.020340736389160157,
345
+ 0.020339712142944336,
346
+ 0.02047385597229004,
347
+ 0.020307968139648438,
348
+ 0.02030899238586426,
349
+ 0.020345855712890625,
350
+ 0.020321279525756835,
351
+ 0.020322303771972656,
352
+ 0.020330495834350586,
353
+ 0.02024038314819336,
354
+ 0.020360191345214843,
355
+ 0.02041753578186035,
356
+ 0.020307968139648438,
357
+ 0.020362239837646484,
358
+ 0.02047385597229004,
359
+ 0.02039910316467285,
360
+ 0.020322303771972656,
361
+ 0.020357120513916017,
362
+ 0.020337663650512695,
363
+ 0.020521984100341797,
364
+ 0.020728832244873048,
365
+ 0.020770816802978515,
366
+ 0.02038374328613281,
367
+ 0.020321279525756835,
368
+ 0.020802560806274413,
369
+ 0.020358144760131838,
370
+ 0.020493312835693358,
371
+ 0.020392959594726562,
372
+ 0.020395008087158203,
373
+ 0.02036735916137695,
374
+ 0.020360191345214843,
375
+ 0.02030899238586426,
376
+ 0.020330495834350586,
377
+ 0.020350976943969725,
378
+ 0.020410367965698242,
379
+ 0.020372480392456056,
380
+ 0.020360191345214843,
381
+ 0.020363264083862305,
382
+ 0.020360191345214843,
383
+ 0.020471807479858398,
384
+ 0.020357120513916017,
385
+ 0.020531200408935548,
386
+ 0.020333568572998048,
387
+ 0.020347904205322266,
388
+ 0.020338687896728515,
389
+ 0.020332544326782227,
390
+ 0.020392959594726562,
391
+ 0.020315135955810547,
392
+ 0.020341760635375978,
393
+ 0.020377599716186523,
394
+ 0.020361215591430663,
395
+ 0.020349952697753908,
396
+ 0.020389888763427736,
397
+ 0.020357120513916017,
398
+ 0.02050048065185547,
399
+ 0.020369407653808593,
400
+ 0.02040012741088867,
401
+ 0.020386816024780274,
402
+ 0.020356096267700196,
403
+ 0.02042265510559082,
404
+ 0.020414464950561522,
405
+ 0.020568063735961914,
406
+ 0.020412416458129884,
407
+ 0.020355072021484375,
408
+ 0.020340736389160157,
409
+ 0.02035916709899902,
410
+ 0.02050764846801758,
411
+ 0.02042367935180664,
412
+ 0.02039091110229492,
413
+ 0.02045952033996582,
414
+ 0.02051584053039551,
415
+ 0.020847616195678712,
416
+ 0.020502527236938475,
417
+ 0.020331520080566406,
418
+ 0.020345855712890625,
419
+ 0.02048307228088379,
420
+ 0.02049945640563965,
421
+ 0.020388864517211915,
422
+ 0.020366336822509764,
423
+ 0.02032537651062012,
424
+ 0.020354047775268554,
425
+ 0.020344831466674804,
426
+ 0.020364288330078126,
427
+ 0.02049228858947754,
428
+ 0.02029465675354004,
429
+ 0.020346879959106445,
430
+ 0.020386816024780274,
431
+ 0.020351999282836913,
432
+ 0.020508672714233397,
433
+ 0.020363264083862305,
434
+ 0.020382816314697266,
435
+ 0.02041436767578125,
436
+ 0.020354047775268554,
437
+ 0.020494335174560546,
438
+ 0.020364288330078126,
439
+ 0.020342784881591795,
440
+ 0.020215808868408205,
441
+ 0.020349952697753908,
442
+ 0.02049126434326172,
443
+ 0.02039193534851074,
444
+ 0.020341760635375978,
445
+ 0.020368383407592772,
446
+ 0.020364288330078126,
447
+ 0.020373504638671876,
448
+ 0.020527103424072265,
449
+ 0.020378623962402344,
450
+ 0.020344831466674804,
451
+ 0.020336639404296874,
452
+ 0.020306943893432617,
453
+ 0.02048409652709961,
454
+ 0.020436992645263673,
455
+ 0.020512800216674804,
456
+ 0.020400096893310547,
457
+ 0.02035916709899902,
458
+ 0.020346879959106445,
459
+ 0.020372480392456056,
460
+ 0.020533248901367186,
461
+ 0.020528127670288086,
462
+ 0.020420608520507814
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 48.92312048197483
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864,
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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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": 1318.62528,
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": 13.0165390625,
15
+ "mean": 13.0165390625,
16
+ "stdev": 0.0,
17
+ "p50": 13.0165390625,
18
+ "p90": 13.0165390625,
19
+ "p95": 13.0165390625,
20
+ "p99": 13.0165390625,
21
+ "values": [
22
+ 13.0165390625
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1751.052288,
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.04422764778137207,
42
+ "mean": 0.022113823890686037,
43
+ "stdev": 1.07831954956044e-05,
44
+ "p50": 0.022113823890686037,
45
+ "p90": 0.02212245044708252,
46
+ "p95": 0.022123528766632077,
47
+ "p99": 0.022124391422271728,
48
+ "values": [
49
+ 0.02210304069519043,
50
+ 0.02212460708618164
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 316.544078247285
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1775.37024,
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.192081298828125,
73
+ "mean": 2.5960406494140624,
74
+ "stdev": 0.005279174804687425,
75
+ "p50": 2.5960406494140624,
76
+ "p90": 2.6002639892578125,
77
+ "p95": 2.600791906738281,
78
+ "p99": 2.601214240722656,
79
+ "values": [
80
+ 2.60131982421875,
81
+ 2.590761474609375
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 48.92065154244193
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.19181927680969,
97
+ "mean": 0.020440233373266507,
98
+ "stdev": 0.00020355355835377745,
99
+ "p50": 0.020366336822509764,
100
+ "p90": 0.020584141159057618,
101
+ "p95": 0.020906189060211182,
102
+ "p99": 0.021230644054412842,
103
+ "values": [
104
+ 0.020349952697753908,
105
+ 0.020392959594726562,
106
+ 0.020365312576293947,
107
+ 0.02083635139465332,
108
+ 0.021424127578735352,
109
+ 0.021046272277832033,
110
+ 0.021238784790039062,
111
+ 0.021146623611450196,
112
+ 0.020392959594726562,
113
+ 0.02023628807067871,
114
+ 0.020342784881591795,
115
+ 0.020446207046508787,
116
+ 0.020370431900024414,
117
+ 0.020279296875,
118
+ 0.020344831466674804,
119
+ 0.020313087463378905,
120
+ 0.020342784881591795,
121
+ 0.020311040878295897,
122
+ 0.02045952033996582,
123
+ 0.020335615158081053,
124
+ 0.020336639404296874,
125
+ 0.020447231292724608,
126
+ 0.020914176940917968,
127
+ 0.021201919555664063,
128
+ 0.02090188789367676,
129
+ 0.020978687286376953,
130
+ 0.020353023529052734,
131
+ 0.020345855712890625,
132
+ 0.020560895919799805,
133
+ 0.020368383407592772,
134
+ 0.020343807220458983,
135
+ 0.02086092758178711,
136
+ 0.020576255798339844,
137
+ 0.020452352523803712,
138
+ 0.020379648208618165,
139
+ 0.020355072021484375,
140
+ 0.020363264083862305,
141
+ 0.0216944637298584,
142
+ 0.021223424911499023,
143
+ 0.021167104721069335,
144
+ 0.020989952087402345,
145
+ 0.020971519470214844,
146
+ 0.02065715217590332,
147
+ 0.020291584014892578,
148
+ 0.020353023529052734,
149
+ 0.02033459281921387,
150
+ 0.020371456146240235,
151
+ 0.020338687896728515,
152
+ 0.020370431900024414,
153
+ 0.020342784881591795,
154
+ 0.020377599716186523,
155
+ 0.020496383666992187,
156
+ 0.02039097595214844,
157
+ 0.020493247985839843,
158
+ 0.020547584533691408,
159
+ 0.020793344497680662,
160
+ 0.02046566390991211,
161
+ 0.020587520599365236,
162
+ 0.020418560028076172,
163
+ 0.020230144500732423,
164
+ 0.020333568572998048,
165
+ 0.020350976943969725,
166
+ 0.020488191604614257,
167
+ 0.02026188850402832,
168
+ 0.020312063217163084,
169
+ 0.020355072021484375,
170
+ 0.020346879959106445,
171
+ 0.020345855712890625,
172
+ 0.020332544326782227,
173
+ 0.020360191345214843,
174
+ 0.020361215591430663,
175
+ 0.02022502326965332,
176
+ 0.020353023529052734,
177
+ 0.020373504638671876,
178
+ 0.020345855712890625,
179
+ 0.02046463966369629,
180
+ 0.020335615158081053,
181
+ 0.020345855712890625,
182
+ 0.020362239837646484,
183
+ 0.020369407653808593,
184
+ 0.020536319732666015,
185
+ 0.020516864776611327,
186
+ 0.020341760635375978,
187
+ 0.02025984001159668,
188
+ 0.020237312316894532,
189
+ 0.020929536819458007,
190
+ 0.020714496612548827,
191
+ 0.020365312576293947,
192
+ 0.020378623962402344,
193
+ 0.020369407653808593,
194
+ 0.020365312576293947,
195
+ 0.020350976943969725,
196
+ 0.02047385597229004,
197
+ 0.020322303771972656,
198
+ 0.020332544326782227,
199
+ 0.020356096267700196,
200
+ 0.02022707176208496,
201
+ 0.020501504898071288,
202
+ 0.020572160720825194,
203
+ 0.020386816024780274,
204
+ 0.020377599716186523,
205
+ 0.020406272888183592,
206
+ 0.02039193534851074,
207
+ 0.020535295486450195,
208
+ 0.020470783233642577,
209
+ 0.02068889617919922,
210
+ 0.02066329574584961,
211
+ 0.02043187141418457,
212
+ 0.02030182456970215,
213
+ 0.020353023529052734,
214
+ 0.020353023529052734,
215
+ 0.020487167358398437,
216
+ 0.020331520080566406,
217
+ 0.02049945640563965,
218
+ 0.02032649612426758,
219
+ 0.020346784591674806,
220
+ 0.020356096267700196,
221
+ 0.020350976943969725,
222
+ 0.020575231552124023,
223
+ 0.020387840270996094,
224
+ 0.02035923194885254,
225
+ 0.020257728576660156,
226
+ 0.020330495834350586,
227
+ 0.020463615417480468,
228
+ 0.0202926082611084,
229
+ 0.020347904205322266,
230
+ 0.020315135955810547,
231
+ 0.020569087982177735,
232
+ 0.020365312576293947,
233
+ 0.02027724838256836,
234
+ 0.020368383407592772,
235
+ 0.020332544326782227,
236
+ 0.020366336822509764,
237
+ 0.020338687896728515,
238
+ 0.020374528884887694,
239
+ 0.020340736389160157,
240
+ 0.020339712142944336,
241
+ 0.02047385597229004,
242
+ 0.020307968139648438,
243
+ 0.02030899238586426,
244
+ 0.020345855712890625,
245
+ 0.020321279525756835,
246
+ 0.020322303771972656,
247
+ 0.020330495834350586,
248
+ 0.02024038314819336,
249
+ 0.020360191345214843,
250
+ 0.02041753578186035,
251
+ 0.020307968139648438,
252
+ 0.020362239837646484,
253
+ 0.02047385597229004,
254
+ 0.02039910316467285,
255
+ 0.020322303771972656,
256
+ 0.020357120513916017,
257
+ 0.020337663650512695,
258
+ 0.020521984100341797,
259
+ 0.020728832244873048,
260
+ 0.020770816802978515,
261
+ 0.02038374328613281,
262
+ 0.020321279525756835,
263
+ 0.020802560806274413,
264
+ 0.020358144760131838,
265
+ 0.020493312835693358,
266
+ 0.020392959594726562,
267
+ 0.020395008087158203,
268
+ 0.02036735916137695,
269
+ 0.020360191345214843,
270
+ 0.02030899238586426,
271
+ 0.020330495834350586,
272
+ 0.020350976943969725,
273
+ 0.020410367965698242,
274
+ 0.020372480392456056,
275
+ 0.020360191345214843,
276
+ 0.020363264083862305,
277
+ 0.020360191345214843,
278
+ 0.020471807479858398,
279
+ 0.020357120513916017,
280
+ 0.020531200408935548,
281
+ 0.020333568572998048,
282
+ 0.020347904205322266,
283
+ 0.020338687896728515,
284
+ 0.020332544326782227,
285
+ 0.020392959594726562,
286
+ 0.020315135955810547,
287
+ 0.020341760635375978,
288
+ 0.020377599716186523,
289
+ 0.020361215591430663,
290
+ 0.020349952697753908,
291
+ 0.020389888763427736,
292
+ 0.020357120513916017,
293
+ 0.02050048065185547,
294
+ 0.020369407653808593,
295
+ 0.02040012741088867,
296
+ 0.020386816024780274,
297
+ 0.020356096267700196,
298
+ 0.02042265510559082,
299
+ 0.020414464950561522,
300
+ 0.020568063735961914,
301
+ 0.020412416458129884,
302
+ 0.020355072021484375,
303
+ 0.020340736389160157,
304
+ 0.02035916709899902,
305
+ 0.02050764846801758,
306
+ 0.02042367935180664,
307
+ 0.02039091110229492,
308
+ 0.02045952033996582,
309
+ 0.02051584053039551,
310
+ 0.020847616195678712,
311
+ 0.020502527236938475,
312
+ 0.020331520080566406,
313
+ 0.020345855712890625,
314
+ 0.02048307228088379,
315
+ 0.02049945640563965,
316
+ 0.020388864517211915,
317
+ 0.020366336822509764,
318
+ 0.02032537651062012,
319
+ 0.020354047775268554,
320
+ 0.020344831466674804,
321
+ 0.020364288330078126,
322
+ 0.02049228858947754,
323
+ 0.02029465675354004,
324
+ 0.020346879959106445,
325
+ 0.020386816024780274,
326
+ 0.020351999282836913,
327
+ 0.020508672714233397,
328
+ 0.020363264083862305,
329
+ 0.020382816314697266,
330
+ 0.02041436767578125,
331
+ 0.020354047775268554,
332
+ 0.020494335174560546,
333
+ 0.020364288330078126,
334
+ 0.020342784881591795,
335
+ 0.020215808868408205,
336
+ 0.020349952697753908,
337
+ 0.02049126434326172,
338
+ 0.02039193534851074,
339
+ 0.020341760635375978,
340
+ 0.020368383407592772,
341
+ 0.020364288330078126,
342
+ 0.020373504638671876,
343
+ 0.020527103424072265,
344
+ 0.020378623962402344,
345
+ 0.020344831466674804,
346
+ 0.020336639404296874,
347
+ 0.020306943893432617,
348
+ 0.02048409652709961,
349
+ 0.020436992645263673,
350
+ 0.020512800216674804,
351
+ 0.020400096893310547,
352
+ 0.02035916709899902,
353
+ 0.020346879959106445,
354
+ 0.020372480392456056,
355
+ 0.020533248901367186,
356
+ 0.020528127670288086,
357
+ 0.020420608520507814
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 48.92312048197483
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022113823890686037,
7
+ "prefill.throughput.value": 316.544078247285,
8
+ "decode.latency.mean": 2.5960406494140624,
9
+ "decode.throughput.value": 48.92065154244193,
10
+ "per_token.latency.mean": 0.020440233373266507,
11
+ "per_token.throughput.value": 48.92312048197483
12
+ }
13
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864
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: 22e6f145259c4e9e156a3f846fad14b1cddfae4f
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f
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/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f
88
+ - hydra.run.dir=_benchmark/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${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/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864,
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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
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": 1337.790464,
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": 14.566982421875,
120
+ "mean": 14.566982421875,
121
+ "stdev": 0.0,
122
+ "p50": 14.566982421875,
123
+ "p90": 14.566982421875,
124
+ "p95": 14.566982421875,
125
+ "p99": 14.566982421875,
126
+ "values": [
127
+ 14.566982421875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1881.268224,
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.028342944145202636,
147
+ "mean": 0.014171472072601318,
148
+ "stdev": 0.00016865587234497076,
149
+ "p50": 0.014171472072601318,
150
+ "p90": 0.014306396770477296,
151
+ "p95": 0.014323262357711792,
152
+ "p99": 0.01433675482749939,
153
+ "values": [
154
+ 0.014002816200256347,
155
+ 0.014340127944946289
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 493.95009665464335
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2050.977792,
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.1339351806640625,
178
+ "mean": 1.5669675903320313,
179
+ "stdev": 0.0006007690429687962,
180
+ "p50": 1.5669675903320313,
181
+ "p90": 1.5674482055664063,
182
+ "p95": 1.5675082824707032,
183
+ "p99": 1.5675563439941407,
184
+ "values": [
185
+ 1.5663668212890625,
186
+ 1.567568359375
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.04826212333431
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.133635577201846,
202
+ "mean": 0.012337147941739542,
203
+ "stdev": 8.349739559579007e-05,
204
+ "p50": 0.012313599586486817,
205
+ "p90": 0.012371046447753907,
206
+ "p95": 0.012460799980163573,
207
+ "p99": 0.01278398497581482,
208
+ "values": [
209
+ 0.012340224266052247,
210
+ 0.012322815895080566,
211
+ 0.012314623832702636,
212
+ 0.012331007957458496,
213
+ 0.012315648078918457,
214
+ 0.012322815895080566,
215
+ 0.012327936172485352,
216
+ 0.012323840141296387,
217
+ 0.012304384231567383,
218
+ 0.012297216415405274,
219
+ 0.012312576293945313,
220
+ 0.012306431770324706,
221
+ 0.012387328147888184,
222
+ 0.012309503555297852,
223
+ 0.012307488441467285,
224
+ 0.01231663990020752,
225
+ 0.012300288200378418,
226
+ 0.012296192169189453,
227
+ 0.012288000106811523,
228
+ 0.012316672325134278,
229
+ 0.012319744110107422,
230
+ 0.012400639533996583,
231
+ 0.012313599586486817,
232
+ 0.012310527801513671,
233
+ 0.012307456016540527,
234
+ 0.012306431770324706,
235
+ 0.012317695617675782,
236
+ 0.01231056022644043,
237
+ 0.012321760177612304,
238
+ 0.012313599586486817,
239
+ 0.012316672325134278,
240
+ 0.012327936172485352,
241
+ 0.012314623832702636,
242
+ 0.012308480262756348,
243
+ 0.012308480262756348,
244
+ 0.012307456016540527,
245
+ 0.012308480262756348,
246
+ 0.012360704421997071,
247
+ 0.012598272323608398,
248
+ 0.012464127540588378,
249
+ 0.012311552047729492,
250
+ 0.012316672325134278,
251
+ 0.012321791648864745,
252
+ 0.012337151527404786,
253
+ 0.012302399635314942,
254
+ 0.012313535690307617,
255
+ 0.012312576293945313,
256
+ 0.012294143676757812,
257
+ 0.012300288200378418,
258
+ 0.012316672325134278,
259
+ 0.012317695617675782,
260
+ 0.012866559982299805,
261
+ 0.012371968269348145,
262
+ 0.012306431770324706,
263
+ 0.012333056449890138,
264
+ 0.012306431770324706,
265
+ 0.012309503555297852,
266
+ 0.012311552047729492,
267
+ 0.012300288200378418,
268
+ 0.012307456016540527,
269
+ 0.012299263954162597,
270
+ 0.012301312446594239,
271
+ 0.012301312446594239,
272
+ 0.012368895530700684,
273
+ 0.012338175773620605,
274
+ 0.012332032203674317,
275
+ 0.01232588768005371,
276
+ 0.012319744110107422,
277
+ 0.012308480262756348,
278
+ 0.012299263954162597,
279
+ 0.012324864387512208,
280
+ 0.012321791648864745,
281
+ 0.012309503555297852,
282
+ 0.012305407524108887,
283
+ 0.012304384231567383,
284
+ 0.012313599586486817,
285
+ 0.012304384231567383,
286
+ 0.012318719863891601,
287
+ 0.012302335739135742,
288
+ 0.012320768356323243,
289
+ 0.012311552047729492,
290
+ 0.012306431770324706,
291
+ 0.012375040054321289,
292
+ 0.012304384231567383,
293
+ 0.012324864387512208,
294
+ 0.012298239707946777,
295
+ 0.012302335739135742,
296
+ 0.012309503555297852,
297
+ 0.012309503555297852,
298
+ 0.012300288200378418,
299
+ 0.012314623832702636,
300
+ 0.01232588768005371,
301
+ 0.012329983711242675,
302
+ 0.012400639533996583,
303
+ 0.012310527801513671,
304
+ 0.012300288200378418,
305
+ 0.012304384231567383,
306
+ 0.01232588768005371,
307
+ 0.012313599586486817,
308
+ 0.012311552047729492,
309
+ 0.012332032203674317,
310
+ 0.012305407524108887,
311
+ 0.012309503555297852,
312
+ 0.012318719863891601,
313
+ 0.012321791648864745,
314
+ 0.01234227180480957,
315
+ 0.012307456016540527,
316
+ 0.012312576293945313,
317
+ 0.012298239707946777,
318
+ 0.012305407524108887,
319
+ 0.012315648078918457,
320
+ 0.012307456016540527,
321
+ 0.012301312446594239,
322
+ 0.012309503555297852,
323
+ 0.012308480262756348,
324
+ 0.012315648078918457,
325
+ 0.012301312446594239,
326
+ 0.012395520210266114,
327
+ 0.012308480262756348,
328
+ 0.012306431770324706,
329
+ 0.012324864387512208,
330
+ 0.012709888458251953,
331
+ 0.012357631683349609,
332
+ 0.012603391647338867,
333
+ 0.012352512359619141,
334
+ 0.01247436809539795,
335
+ 0.01234227180480957,
336
+ 0.012345343589782716,
337
+ 0.012311552047729492,
338
+ 0.012328960418701173,
339
+ 0.012332032203674317,
340
+ 0.012321791648864745,
341
+ 0.012337151527404786,
342
+ 0.012305407524108887,
343
+ 0.012831744194030761,
344
+ 0.012348416328430176,
345
+ 0.012306431770324706,
346
+ 0.012307456016540527,
347
+ 0.012299263954162597,
348
+ 0.012295167922973632,
349
+ 0.012306431770324706,
350
+ 0.012301312446594239,
351
+ 0.012324864387512208,
352
+ 0.01238425636291504,
353
+ 0.012320768356323243,
354
+ 0.012307456016540527,
355
+ 0.012303359985351562,
356
+ 0.012289024353027344,
357
+ 0.012314623832702636,
358
+ 0.012319744110107422,
359
+ 0.012298239707946777,
360
+ 0.012294143676757812,
361
+ 0.012294143676757812,
362
+ 0.012313599586486817,
363
+ 0.012304384231567383,
364
+ 0.012331007957458496,
365
+ 0.012306431770324706,
366
+ 0.012536831855773926,
367
+ 0.012317695617675782,
368
+ 0.012305407524108887,
369
+ 0.012305407524108887,
370
+ 0.012344320297241211,
371
+ 0.012365823745727538,
372
+ 0.012306431770324706,
373
+ 0.012340224266052247,
374
+ 0.012446720123291016,
375
+ 0.012344320297241211,
376
+ 0.012328960418701173,
377
+ 0.012313599586486817,
378
+ 0.012316672325134278,
379
+ 0.012304384231567383,
380
+ 0.01233510398864746,
381
+ 0.01229312038421631,
382
+ 0.012469247817993164,
383
+ 0.012323840141296387,
384
+ 0.012305407524108887,
385
+ 0.012328960418701173,
386
+ 0.012310527801513671,
387
+ 0.012332032203674317,
388
+ 0.012322815895080566,
389
+ 0.012302335739135742,
390
+ 0.012307456016540527,
391
+ 0.012307456016540527,
392
+ 0.012333056449890138,
393
+ 0.012319744110107422,
394
+ 0.012307456016540527,
395
+ 0.012302335739135742,
396
+ 0.012306431770324706,
397
+ 0.012310527801513671,
398
+ 0.012306431770324706,
399
+ 0.012321791648864745,
400
+ 0.012316672325134278,
401
+ 0.012381183624267577,
402
+ 0.01233407974243164,
403
+ 0.012309503555297852,
404
+ 0.012308480262756348,
405
+ 0.012309503555297852,
406
+ 0.012305407524108887,
407
+ 0.012300288200378418,
408
+ 0.012299263954162597,
409
+ 0.01245900821685791,
410
+ 0.01265561580657959,
411
+ 0.012741632461547851,
412
+ 0.012381183624267577,
413
+ 0.012320768356323243,
414
+ 0.01232588768005371,
415
+ 0.012310527801513671,
416
+ 0.012302335739135742,
417
+ 0.012311552047729492,
418
+ 0.012313599586486817,
419
+ 0.012298239707946777,
420
+ 0.012321791648864745,
421
+ 0.012307456016540527,
422
+ 0.01234329605102539,
423
+ 0.012315648078918457,
424
+ 0.012310527801513671,
425
+ 0.01234329605102539,
426
+ 0.012322815895080566,
427
+ 0.012851200103759765,
428
+ 0.01233510398864746,
429
+ 0.012317695617675782,
430
+ 0.012311552047729492,
431
+ 0.012309503555297852,
432
+ 0.012356608390808106,
433
+ 0.012701696395874023,
434
+ 0.012320768356323243,
435
+ 0.012322815895080566,
436
+ 0.012310527801513671,
437
+ 0.012310527801513671,
438
+ 0.012312576293945313,
439
+ 0.012307456016540527,
440
+ 0.012299263954162597,
441
+ 0.012357631683349609,
442
+ 0.012317695617675782,
443
+ 0.012329983711242675,
444
+ 0.01233510398864746,
445
+ 0.012316672325134278,
446
+ 0.012307456016540527,
447
+ 0.012298239707946777,
448
+ 0.012304384231567383,
449
+ 0.012324864387512208,
450
+ 0.012319744110107422,
451
+ 0.01242521572113037,
452
+ 0.012321791648864745,
453
+ 0.012311552047729492,
454
+ 0.01234227180480957,
455
+ 0.012316672325134278,
456
+ 0.012322815895080566,
457
+ 0.012320768356323243,
458
+ 0.012312576293945313,
459
+ 0.012386303901672363,
460
+ 0.012308480262756348,
461
+ 0.012306431770324706,
462
+ 0.012300288200378418
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.05601105882496
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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.252864,
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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
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-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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": 1337.790464,
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": 14.566982421875,
15
+ "mean": 14.566982421875,
16
+ "stdev": 0.0,
17
+ "p50": 14.566982421875,
18
+ "p90": 14.566982421875,
19
+ "p95": 14.566982421875,
20
+ "p99": 14.566982421875,
21
+ "values": [
22
+ 14.566982421875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1881.268224,
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.028342944145202636,
42
+ "mean": 0.014171472072601318,
43
+ "stdev": 0.00016865587234497076,
44
+ "p50": 0.014171472072601318,
45
+ "p90": 0.014306396770477296,
46
+ "p95": 0.014323262357711792,
47
+ "p99": 0.01433675482749939,
48
+ "values": [
49
+ 0.014002816200256347,
50
+ 0.014340127944946289
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 493.95009665464335
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2050.977792,
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.1339351806640625,
73
+ "mean": 1.5669675903320313,
74
+ "stdev": 0.0006007690429687962,
75
+ "p50": 1.5669675903320313,
76
+ "p90": 1.5674482055664063,
77
+ "p95": 1.5675082824707032,
78
+ "p99": 1.5675563439941407,
79
+ "values": [
80
+ 1.5663668212890625,
81
+ 1.567568359375
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.04826212333431
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.133635577201846,
97
+ "mean": 0.012337147941739542,
98
+ "stdev": 8.349739559579007e-05,
99
+ "p50": 0.012313599586486817,
100
+ "p90": 0.012371046447753907,
101
+ "p95": 0.012460799980163573,
102
+ "p99": 0.01278398497581482,
103
+ "values": [
104
+ 0.012340224266052247,
105
+ 0.012322815895080566,
106
+ 0.012314623832702636,
107
+ 0.012331007957458496,
108
+ 0.012315648078918457,
109
+ 0.012322815895080566,
110
+ 0.012327936172485352,
111
+ 0.012323840141296387,
112
+ 0.012304384231567383,
113
+ 0.012297216415405274,
114
+ 0.012312576293945313,
115
+ 0.012306431770324706,
116
+ 0.012387328147888184,
117
+ 0.012309503555297852,
118
+ 0.012307488441467285,
119
+ 0.01231663990020752,
120
+ 0.012300288200378418,
121
+ 0.012296192169189453,
122
+ 0.012288000106811523,
123
+ 0.012316672325134278,
124
+ 0.012319744110107422,
125
+ 0.012400639533996583,
126
+ 0.012313599586486817,
127
+ 0.012310527801513671,
128
+ 0.012307456016540527,
129
+ 0.012306431770324706,
130
+ 0.012317695617675782,
131
+ 0.01231056022644043,
132
+ 0.012321760177612304,
133
+ 0.012313599586486817,
134
+ 0.012316672325134278,
135
+ 0.012327936172485352,
136
+ 0.012314623832702636,
137
+ 0.012308480262756348,
138
+ 0.012308480262756348,
139
+ 0.012307456016540527,
140
+ 0.012308480262756348,
141
+ 0.012360704421997071,
142
+ 0.012598272323608398,
143
+ 0.012464127540588378,
144
+ 0.012311552047729492,
145
+ 0.012316672325134278,
146
+ 0.012321791648864745,
147
+ 0.012337151527404786,
148
+ 0.012302399635314942,
149
+ 0.012313535690307617,
150
+ 0.012312576293945313,
151
+ 0.012294143676757812,
152
+ 0.012300288200378418,
153
+ 0.012316672325134278,
154
+ 0.012317695617675782,
155
+ 0.012866559982299805,
156
+ 0.012371968269348145,
157
+ 0.012306431770324706,
158
+ 0.012333056449890138,
159
+ 0.012306431770324706,
160
+ 0.012309503555297852,
161
+ 0.012311552047729492,
162
+ 0.012300288200378418,
163
+ 0.012307456016540527,
164
+ 0.012299263954162597,
165
+ 0.012301312446594239,
166
+ 0.012301312446594239,
167
+ 0.012368895530700684,
168
+ 0.012338175773620605,
169
+ 0.012332032203674317,
170
+ 0.01232588768005371,
171
+ 0.012319744110107422,
172
+ 0.012308480262756348,
173
+ 0.012299263954162597,
174
+ 0.012324864387512208,
175
+ 0.012321791648864745,
176
+ 0.012309503555297852,
177
+ 0.012305407524108887,
178
+ 0.012304384231567383,
179
+ 0.012313599586486817,
180
+ 0.012304384231567383,
181
+ 0.012318719863891601,
182
+ 0.012302335739135742,
183
+ 0.012320768356323243,
184
+ 0.012311552047729492,
185
+ 0.012306431770324706,
186
+ 0.012375040054321289,
187
+ 0.012304384231567383,
188
+ 0.012324864387512208,
189
+ 0.012298239707946777,
190
+ 0.012302335739135742,
191
+ 0.012309503555297852,
192
+ 0.012309503555297852,
193
+ 0.012300288200378418,
194
+ 0.012314623832702636,
195
+ 0.01232588768005371,
196
+ 0.012329983711242675,
197
+ 0.012400639533996583,
198
+ 0.012310527801513671,
199
+ 0.012300288200378418,
200
+ 0.012304384231567383,
201
+ 0.01232588768005371,
202
+ 0.012313599586486817,
203
+ 0.012311552047729492,
204
+ 0.012332032203674317,
205
+ 0.012305407524108887,
206
+ 0.012309503555297852,
207
+ 0.012318719863891601,
208
+ 0.012321791648864745,
209
+ 0.01234227180480957,
210
+ 0.012307456016540527,
211
+ 0.012312576293945313,
212
+ 0.012298239707946777,
213
+ 0.012305407524108887,
214
+ 0.012315648078918457,
215
+ 0.012307456016540527,
216
+ 0.012301312446594239,
217
+ 0.012309503555297852,
218
+ 0.012308480262756348,
219
+ 0.012315648078918457,
220
+ 0.012301312446594239,
221
+ 0.012395520210266114,
222
+ 0.012308480262756348,
223
+ 0.012306431770324706,
224
+ 0.012324864387512208,
225
+ 0.012709888458251953,
226
+ 0.012357631683349609,
227
+ 0.012603391647338867,
228
+ 0.012352512359619141,
229
+ 0.01247436809539795,
230
+ 0.01234227180480957,
231
+ 0.012345343589782716,
232
+ 0.012311552047729492,
233
+ 0.012328960418701173,
234
+ 0.012332032203674317,
235
+ 0.012321791648864745,
236
+ 0.012337151527404786,
237
+ 0.012305407524108887,
238
+ 0.012831744194030761,
239
+ 0.012348416328430176,
240
+ 0.012306431770324706,
241
+ 0.012307456016540527,
242
+ 0.012299263954162597,
243
+ 0.012295167922973632,
244
+ 0.012306431770324706,
245
+ 0.012301312446594239,
246
+ 0.012324864387512208,
247
+ 0.01238425636291504,
248
+ 0.012320768356323243,
249
+ 0.012307456016540527,
250
+ 0.012303359985351562,
251
+ 0.012289024353027344,
252
+ 0.012314623832702636,
253
+ 0.012319744110107422,
254
+ 0.012298239707946777,
255
+ 0.012294143676757812,
256
+ 0.012294143676757812,
257
+ 0.012313599586486817,
258
+ 0.012304384231567383,
259
+ 0.012331007957458496,
260
+ 0.012306431770324706,
261
+ 0.012536831855773926,
262
+ 0.012317695617675782,
263
+ 0.012305407524108887,
264
+ 0.012305407524108887,
265
+ 0.012344320297241211,
266
+ 0.012365823745727538,
267
+ 0.012306431770324706,
268
+ 0.012340224266052247,
269
+ 0.012446720123291016,
270
+ 0.012344320297241211,
271
+ 0.012328960418701173,
272
+ 0.012313599586486817,
273
+ 0.012316672325134278,
274
+ 0.012304384231567383,
275
+ 0.01233510398864746,
276
+ 0.01229312038421631,
277
+ 0.012469247817993164,
278
+ 0.012323840141296387,
279
+ 0.012305407524108887,
280
+ 0.012328960418701173,
281
+ 0.012310527801513671,
282
+ 0.012332032203674317,
283
+ 0.012322815895080566,
284
+ 0.012302335739135742,
285
+ 0.012307456016540527,
286
+ 0.012307456016540527,
287
+ 0.012333056449890138,
288
+ 0.012319744110107422,
289
+ 0.012307456016540527,
290
+ 0.012302335739135742,
291
+ 0.012306431770324706,
292
+ 0.012310527801513671,
293
+ 0.012306431770324706,
294
+ 0.012321791648864745,
295
+ 0.012316672325134278,
296
+ 0.012381183624267577,
297
+ 0.01233407974243164,
298
+ 0.012309503555297852,
299
+ 0.012308480262756348,
300
+ 0.012309503555297852,
301
+ 0.012305407524108887,
302
+ 0.012300288200378418,
303
+ 0.012299263954162597,
304
+ 0.01245900821685791,
305
+ 0.01265561580657959,
306
+ 0.012741632461547851,
307
+ 0.012381183624267577,
308
+ 0.012320768356323243,
309
+ 0.01232588768005371,
310
+ 0.012310527801513671,
311
+ 0.012302335739135742,
312
+ 0.012311552047729492,
313
+ 0.012313599586486817,
314
+ 0.012298239707946777,
315
+ 0.012321791648864745,
316
+ 0.012307456016540527,
317
+ 0.01234329605102539,
318
+ 0.012315648078918457,
319
+ 0.012310527801513671,
320
+ 0.01234329605102539,
321
+ 0.012322815895080566,
322
+ 0.012851200103759765,
323
+ 0.01233510398864746,
324
+ 0.012317695617675782,
325
+ 0.012311552047729492,
326
+ 0.012309503555297852,
327
+ 0.012356608390808106,
328
+ 0.012701696395874023,
329
+ 0.012320768356323243,
330
+ 0.012322815895080566,
331
+ 0.012310527801513671,
332
+ 0.012310527801513671,
333
+ 0.012312576293945313,
334
+ 0.012307456016540527,
335
+ 0.012299263954162597,
336
+ 0.012357631683349609,
337
+ 0.012317695617675782,
338
+ 0.012329983711242675,
339
+ 0.01233510398864746,
340
+ 0.012316672325134278,
341
+ 0.012307456016540527,
342
+ 0.012298239707946777,
343
+ 0.012304384231567383,
344
+ 0.012324864387512208,
345
+ 0.012319744110107422,
346
+ 0.01242521572113037,
347
+ 0.012321791648864745,
348
+ 0.012311552047729492,
349
+ 0.01234227180480957,
350
+ 0.012316672325134278,
351
+ 0.012322815895080566,
352
+ 0.012320768356323243,
353
+ 0.012312576293945313,
354
+ 0.012386303901672363,
355
+ 0.012308480262756348,
356
+ 0.012306431770324706,
357
+ 0.012300288200378418
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.05601105882496
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/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": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014171472072601318,
7
+ "prefill.throughput.value": 493.95009665464335,
8
+ "decode.latency.mean": 1.5669675903320313,
9
+ "decode.throughput.value": 81.04826212333431,
10
+ "per_token.latency.mean": 0.012337147941739542,
11
+ "per_token.throughput.value": 81.05601105882496
12
+ }
13
+ }
2024-08-23/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpu7jyu3dp/commit=22e6f145259c4e9e156a3f846fad14b1cddfae4f
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/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f
88
+ - hydra.run.dir=_benchmark/tmpu7jyu3dp/commit\=22e6f145259c4e9e156a3f846fad14b1cddfae4f/${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.252864
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: 22e6f145259c4e9e156a3f846fad14b1cddfae4f
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-23/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.0198448486328125,
8
+ "prefill.throughput.value": 352.73637655395555,
9
+ "decode.latency.mean": 2.5000133056640625,
10
+ "decode.throughput.value": 50.799729630345226,
11
+ "per_token.latency.mean": 0.019683876322949025,
12
+ "per_token.throughput.value": 50.80300158328676
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022113823890686037,
21
+ "prefill.throughput.value": 316.544078247285,
22
+ "decode.latency.mean": 2.5960406494140624,
23
+ "decode.throughput.value": 48.92065154244193,
24
+ "per_token.latency.mean": 0.020440233373266507,
25
+ "per_token.throughput.value": 48.92312048197483
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "22e6f145259c4e9e156a3f846fad14b1cddfae4f",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014171472072601318,
34
+ "prefill.throughput.value": 493.95009665464335,
35
+ "decode.latency.mean": 1.5669675903320313,
36
+ "decode.throughput.value": 81.04826212333431,
37
+ "per_token.latency.mean": 0.012337147941739542,
38
+ "per_token.throughput.value": 81.05601105882496
39
+ }
40
+ }
41
+ ]
2024-08-23/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "22e6f145259c4e9e156a3f846fad14b1cddfae4f": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.0198448486328125,
7
+ "prefill.throughput.value": 352.73637655395555,
8
+ "decode.latency.mean": 2.5000133056640625,
9
+ "decode.throughput.value": 50.799729630345226,
10
+ "per_token.latency.mean": 0.019683876322949025,
11
+ "per_token.throughput.value": 50.80300158328676
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "22e6f145259c4e9e156a3f846fad14b1cddfae4f": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022113823890686037,
19
+ "prefill.throughput.value": 316.544078247285,
20
+ "decode.latency.mean": 2.5960406494140624,
21
+ "decode.throughput.value": 48.92065154244193,
22
+ "per_token.latency.mean": 0.020440233373266507,
23
+ "per_token.throughput.value": 48.92312048197483
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "22e6f145259c4e9e156a3f846fad14b1cddfae4f": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014171472072601318,
31
+ "prefill.throughput.value": 493.95009665464335,
32
+ "decode.latency.mean": 1.5669675903320313,
33
+ "decode.throughput.value": 81.04826212333431,
34
+ "per_token.latency.mean": 0.012337147941739542,
35
+ "per_token.throughput.value": 81.05601105882496
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }