hf-transformers-bot commited on
Commit
4941993
1 Parent(s): 1f148af

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/multirun.yaml +234 -0
  31. 2024-09-12/summaries.json +41 -0
  32. 2024-09-12/summary.json +40 -0
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: cea9ec086a14da1320940c5e48d7bd5dbcf32734
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734
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/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734
88
+ - hydra.run.dir=_benchmark/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=False
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.23.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": 1333.297152,
111
+ "max_global_vram": 6775.373824,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.5092490234375,
120
+ "mean": 11.5092490234375,
121
+ "stdev": 0.0,
122
+ "p50": 11.5092490234375,
123
+ "p90": 11.5092490234375,
124
+ "p95": 11.5092490234375,
125
+ "p99": 11.5092490234375,
126
+ "values": [
127
+ 11.5092490234375
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1777.102848,
138
+ "max_global_vram": 6796.345344,
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.04193267250061035,
147
+ "mean": 0.020966336250305175,
148
+ "stdev": 5.606365203857447e-05,
149
+ "p50": 0.020966336250305175,
150
+ "p90": 0.021011187171936035,
151
+ "p95": 0.02101679353713989,
152
+ "p99": 0.02102127862930298,
153
+ "values": [
154
+ 0.0209102725982666,
155
+ 0.02102239990234375
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 333.8685365163936
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1834.962944,
169
+ "max_global_vram": 6800.539648,
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.006701904296875,
178
+ "mean": 2.5033509521484376,
179
+ "stdev": 0.009765502929687475,
180
+ "p50": 2.5033509521484376,
181
+ "p90": 2.5111633544921874,
182
+ "p95": 2.5121399047851565,
183
+ "p99": 2.5129211450195315,
184
+ "values": [
185
+ 2.513116455078125,
186
+ 2.49358544921875
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 50.731999798512255
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.006389253616335,
202
+ "mean": 0.019710193911875326,
203
+ "stdev": 0.0003160522800085985,
204
+ "p50": 0.019616255760192873,
205
+ "p90": 0.020170342445373534,
206
+ "p95": 0.020360021114349366,
207
+ "p99": 0.020726200180053708,
208
+ "values": [
209
+ 0.01946009635925293,
210
+ 0.019398656845092774,
211
+ 0.019397632598876953,
212
+ 0.019481599807739256,
213
+ 0.019489791870117186,
214
+ 0.01949388885498047,
215
+ 0.01948467254638672,
216
+ 0.019885055541992186,
217
+ 0.019577856063842772,
218
+ 0.019612672805786133,
219
+ 0.019800064086914062,
220
+ 0.02009600067138672,
221
+ 0.019594240188598632,
222
+ 0.019526655197143555,
223
+ 0.019505151748657225,
224
+ 0.019486719131469727,
225
+ 0.019507200241088866,
226
+ 0.019530752182006835,
227
+ 0.019551231384277345,
228
+ 0.019539968490600586,
229
+ 0.019520511627197267,
230
+ 0.0194969596862793,
231
+ 0.019497983932495116,
232
+ 0.019494911193847657,
233
+ 0.019522560119628905,
234
+ 0.019506175994873046,
235
+ 0.019558399200439454,
236
+ 0.019512319564819337,
237
+ 0.019577856063842772,
238
+ 0.019529727935791014,
239
+ 0.019548160552978516,
240
+ 0.019520511627197267,
241
+ 0.019449855804443358,
242
+ 0.019500032424926757,
243
+ 0.019501056671142578,
244
+ 0.019499008178710937,
245
+ 0.019499008178710937,
246
+ 0.019523584365844726,
247
+ 0.01948876762390137,
248
+ 0.019489791870117186,
249
+ 0.019515392303466796,
250
+ 0.01948057556152344,
251
+ 0.01949286460876465,
252
+ 0.019489791870117186,
253
+ 0.019614719390869142,
254
+ 0.0194652156829834,
255
+ 0.019479551315307618,
256
+ 0.019467264175415038,
257
+ 0.019507200241088866,
258
+ 0.019577856063842772,
259
+ 0.019497983932495116,
260
+ 0.019565568923950196,
261
+ 0.019471359252929688,
262
+ 0.019509248733520508,
263
+ 0.019504127502441407,
264
+ 0.019902463912963866,
265
+ 0.020179967880249023,
266
+ 0.020817920684814452,
267
+ 0.019780607223510743,
268
+ 0.020178943634033202,
269
+ 0.020512767791748047,
270
+ 0.01964543914794922,
271
+ 0.01979084777832031,
272
+ 0.020527103424072265,
273
+ 0.02049126434326172,
274
+ 0.01962188720703125,
275
+ 0.019706880569458008,
276
+ 0.020015104293823242,
277
+ 0.020248575210571287,
278
+ 0.020189184188842774,
279
+ 0.020161535263061522,
280
+ 0.020174848556518556,
281
+ 0.01968230438232422,
282
+ 0.01965977668762207,
283
+ 0.019687423706054686,
284
+ 0.020164608001708984,
285
+ 0.020213760375976563,
286
+ 0.020185087203979494,
287
+ 0.01963827133178711,
288
+ 0.01965158462524414,
289
+ 0.02006220817565918,
290
+ 0.020497407913208008,
291
+ 0.02002227210998535,
292
+ 0.01964236831665039,
293
+ 0.01963007926940918,
294
+ 0.0196177921295166,
295
+ 0.01964031982421875,
296
+ 0.0196628475189209,
297
+ 0.019568639755249022,
298
+ 0.01968230438232422,
299
+ 0.020378623962402344,
300
+ 0.020093952178955078,
301
+ 0.01963724708557129,
302
+ 0.01962598419189453,
303
+ 0.020068351745605468,
304
+ 0.020084735870361328,
305
+ 0.019819520950317384,
306
+ 0.019958784103393554,
307
+ 0.020144128799438478,
308
+ 0.019909631729125975,
309
+ 0.01958502388000488,
310
+ 0.019926015853881835,
311
+ 0.02025881576538086,
312
+ 0.020198400497436524,
313
+ 0.020141056060791016,
314
+ 0.020172800064086914,
315
+ 0.02059878349304199,
316
+ 0.021743616104125976,
317
+ 0.020357120513916017,
318
+ 0.01998028755187988,
319
+ 0.01942323112487793,
320
+ 0.019588096618652344,
321
+ 0.019610624313354492,
322
+ 0.01977446365356445,
323
+ 0.02030284881591797,
324
+ 0.020393983840942383,
325
+ 0.020496383666992187,
326
+ 0.020289535522460937,
327
+ 0.019741695404052736,
328
+ 0.0196177921295166,
329
+ 0.019620864868164063,
330
+ 0.01967820739746094,
331
+ 0.019647487640380858,
332
+ 0.019788799285888673,
333
+ 0.02004991912841797,
334
+ 0.01960857582092285,
335
+ 0.019489791870117186,
336
+ 0.01944576072692871,
337
+ 0.01945497512817383,
338
+ 0.019392511367797852,
339
+ 0.019598335266113282,
340
+ 0.019534847259521485,
341
+ 0.019438592910766602,
342
+ 0.01944473648071289,
343
+ 0.019521535873413084,
344
+ 0.019438592910766602,
345
+ 0.019422208786010742,
346
+ 0.019494911193847657,
347
+ 0.019487743377685548,
348
+ 0.019544063568115236,
349
+ 0.019515392303466796,
350
+ 0.019517440795898438,
351
+ 0.019496992111206056,
352
+ 0.019473440170288087,
353
+ 0.019518400192260744,
354
+ 0.01945907211303711,
355
+ 0.019501056671142578,
356
+ 0.0194467830657959,
357
+ 0.01946009635925293,
358
+ 0.0194703369140625,
359
+ 0.019687423706054686,
360
+ 0.019533824920654298,
361
+ 0.01949388885498047,
362
+ 0.019563520431518554,
363
+ 0.01944166374206543,
364
+ 0.01942937660217285,
365
+ 0.019552255630493166,
366
+ 0.019490816116333007,
367
+ 0.0195020809173584,
368
+ 0.019405824661254883,
369
+ 0.01947750473022461,
370
+ 0.01945702362060547,
371
+ 0.019533824920654298,
372
+ 0.019475456237792968,
373
+ 0.019487743377685548,
374
+ 0.01946316719055176,
375
+ 0.019522560119628905,
376
+ 0.01988198471069336,
377
+ 0.019896320343017578,
378
+ 0.01962495994567871,
379
+ 0.01965772819519043,
380
+ 0.01944780731201172,
381
+ 0.01946316719055176,
382
+ 0.019495935440063478,
383
+ 0.019466239929199217,
384
+ 0.019466239929199217,
385
+ 0.019471359252929688,
386
+ 0.019937280654907227,
387
+ 0.019663871765136717,
388
+ 0.01945395278930664,
389
+ 0.019449855804443358,
390
+ 0.01968639945983887,
391
+ 0.019532800674438477,
392
+ 0.019475456237792968,
393
+ 0.019577856063842772,
394
+ 0.019596288681030274,
395
+ 0.019614719390869142,
396
+ 0.01970790481567383,
397
+ 0.01964134407043457,
398
+ 0.01965260887145996,
399
+ 0.01963520050048828,
400
+ 0.01962291145324707,
401
+ 0.01964339256286621,
402
+ 0.019596288681030274,
403
+ 0.01966080093383789,
404
+ 0.01962700843811035,
405
+ 0.01965670394897461,
406
+ 0.01965670394897461,
407
+ 0.01961881637573242,
408
+ 0.019567647933959962,
409
+ 0.01968227195739746,
410
+ 0.020644863128662108,
411
+ 0.02104934310913086,
412
+ 0.020365407943725586,
413
+ 0.01977231979370117,
414
+ 0.020093952178955078,
415
+ 0.019757055282592775,
416
+ 0.01966694450378418,
417
+ 0.01963520050048828,
418
+ 0.019631103515625,
419
+ 0.019672063827514647,
420
+ 0.019668991088867188,
421
+ 0.019629056930541993,
422
+ 0.019636224746704102,
423
+ 0.019598335266113282,
424
+ 0.019595264434814453,
425
+ 0.019631103515625,
426
+ 0.019586048126220702,
427
+ 0.019719167709350584,
428
+ 0.01965772819519043,
429
+ 0.020130815505981444,
430
+ 0.019977216720581056,
431
+ 0.0198287353515625,
432
+ 0.019586048126220702,
433
+ 0.01963827133178711,
434
+ 0.01964134407043457,
435
+ 0.019715072631835938,
436
+ 0.01962700843811035,
437
+ 0.019628032684326172,
438
+ 0.01964236831665039,
439
+ 0.01964339256286621,
440
+ 0.020149248123168945,
441
+ 0.019804159164428712,
442
+ 0.019794944763183595,
443
+ 0.019714048385620117,
444
+ 0.019587072372436523,
445
+ 0.019580928802490235,
446
+ 0.019688447952270507,
447
+ 0.01962598419189453,
448
+ 0.019606527328491212,
449
+ 0.019606527328491212,
450
+ 0.019604480743408204,
451
+ 0.01963520050048828,
452
+ 0.01963212776184082,
453
+ 0.019647487640380858,
454
+ 0.019565568923950196,
455
+ 0.019614719390869142,
456
+ 0.01960550308227539,
457
+ 0.01964851188659668,
458
+ 0.019603456497192383,
459
+ 0.01969049644470215,
460
+ 0.019572736740112305,
461
+ 0.020060159683227538,
462
+ 0.019901439666748046
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 50.7351680288393
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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": 1333.297152,
6
+ "max_global_vram": 6775.373824,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.5092490234375,
15
+ "mean": 11.5092490234375,
16
+ "stdev": 0.0,
17
+ "p50": 11.5092490234375,
18
+ "p90": 11.5092490234375,
19
+ "p95": 11.5092490234375,
20
+ "p99": 11.5092490234375,
21
+ "values": [
22
+ 11.5092490234375
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1777.102848,
33
+ "max_global_vram": 6796.345344,
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.04193267250061035,
42
+ "mean": 0.020966336250305175,
43
+ "stdev": 5.606365203857447e-05,
44
+ "p50": 0.020966336250305175,
45
+ "p90": 0.021011187171936035,
46
+ "p95": 0.02101679353713989,
47
+ "p99": 0.02102127862930298,
48
+ "values": [
49
+ 0.0209102725982666,
50
+ 0.02102239990234375
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 333.8685365163936
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1834.962944,
64
+ "max_global_vram": 6800.539648,
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.006701904296875,
73
+ "mean": 2.5033509521484376,
74
+ "stdev": 0.009765502929687475,
75
+ "p50": 2.5033509521484376,
76
+ "p90": 2.5111633544921874,
77
+ "p95": 2.5121399047851565,
78
+ "p99": 2.5129211450195315,
79
+ "values": [
80
+ 2.513116455078125,
81
+ 2.49358544921875
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 50.731999798512255
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.006389253616335,
97
+ "mean": 0.019710193911875326,
98
+ "stdev": 0.0003160522800085985,
99
+ "p50": 0.019616255760192873,
100
+ "p90": 0.020170342445373534,
101
+ "p95": 0.020360021114349366,
102
+ "p99": 0.020726200180053708,
103
+ "values": [
104
+ 0.01946009635925293,
105
+ 0.019398656845092774,
106
+ 0.019397632598876953,
107
+ 0.019481599807739256,
108
+ 0.019489791870117186,
109
+ 0.01949388885498047,
110
+ 0.01948467254638672,
111
+ 0.019885055541992186,
112
+ 0.019577856063842772,
113
+ 0.019612672805786133,
114
+ 0.019800064086914062,
115
+ 0.02009600067138672,
116
+ 0.019594240188598632,
117
+ 0.019526655197143555,
118
+ 0.019505151748657225,
119
+ 0.019486719131469727,
120
+ 0.019507200241088866,
121
+ 0.019530752182006835,
122
+ 0.019551231384277345,
123
+ 0.019539968490600586,
124
+ 0.019520511627197267,
125
+ 0.0194969596862793,
126
+ 0.019497983932495116,
127
+ 0.019494911193847657,
128
+ 0.019522560119628905,
129
+ 0.019506175994873046,
130
+ 0.019558399200439454,
131
+ 0.019512319564819337,
132
+ 0.019577856063842772,
133
+ 0.019529727935791014,
134
+ 0.019548160552978516,
135
+ 0.019520511627197267,
136
+ 0.019449855804443358,
137
+ 0.019500032424926757,
138
+ 0.019501056671142578,
139
+ 0.019499008178710937,
140
+ 0.019499008178710937,
141
+ 0.019523584365844726,
142
+ 0.01948876762390137,
143
+ 0.019489791870117186,
144
+ 0.019515392303466796,
145
+ 0.01948057556152344,
146
+ 0.01949286460876465,
147
+ 0.019489791870117186,
148
+ 0.019614719390869142,
149
+ 0.0194652156829834,
150
+ 0.019479551315307618,
151
+ 0.019467264175415038,
152
+ 0.019507200241088866,
153
+ 0.019577856063842772,
154
+ 0.019497983932495116,
155
+ 0.019565568923950196,
156
+ 0.019471359252929688,
157
+ 0.019509248733520508,
158
+ 0.019504127502441407,
159
+ 0.019902463912963866,
160
+ 0.020179967880249023,
161
+ 0.020817920684814452,
162
+ 0.019780607223510743,
163
+ 0.020178943634033202,
164
+ 0.020512767791748047,
165
+ 0.01964543914794922,
166
+ 0.01979084777832031,
167
+ 0.020527103424072265,
168
+ 0.02049126434326172,
169
+ 0.01962188720703125,
170
+ 0.019706880569458008,
171
+ 0.020015104293823242,
172
+ 0.020248575210571287,
173
+ 0.020189184188842774,
174
+ 0.020161535263061522,
175
+ 0.020174848556518556,
176
+ 0.01968230438232422,
177
+ 0.01965977668762207,
178
+ 0.019687423706054686,
179
+ 0.020164608001708984,
180
+ 0.020213760375976563,
181
+ 0.020185087203979494,
182
+ 0.01963827133178711,
183
+ 0.01965158462524414,
184
+ 0.02006220817565918,
185
+ 0.020497407913208008,
186
+ 0.02002227210998535,
187
+ 0.01964236831665039,
188
+ 0.01963007926940918,
189
+ 0.0196177921295166,
190
+ 0.01964031982421875,
191
+ 0.0196628475189209,
192
+ 0.019568639755249022,
193
+ 0.01968230438232422,
194
+ 0.020378623962402344,
195
+ 0.020093952178955078,
196
+ 0.01963724708557129,
197
+ 0.01962598419189453,
198
+ 0.020068351745605468,
199
+ 0.020084735870361328,
200
+ 0.019819520950317384,
201
+ 0.019958784103393554,
202
+ 0.020144128799438478,
203
+ 0.019909631729125975,
204
+ 0.01958502388000488,
205
+ 0.019926015853881835,
206
+ 0.02025881576538086,
207
+ 0.020198400497436524,
208
+ 0.020141056060791016,
209
+ 0.020172800064086914,
210
+ 0.02059878349304199,
211
+ 0.021743616104125976,
212
+ 0.020357120513916017,
213
+ 0.01998028755187988,
214
+ 0.01942323112487793,
215
+ 0.019588096618652344,
216
+ 0.019610624313354492,
217
+ 0.01977446365356445,
218
+ 0.02030284881591797,
219
+ 0.020393983840942383,
220
+ 0.020496383666992187,
221
+ 0.020289535522460937,
222
+ 0.019741695404052736,
223
+ 0.0196177921295166,
224
+ 0.019620864868164063,
225
+ 0.01967820739746094,
226
+ 0.019647487640380858,
227
+ 0.019788799285888673,
228
+ 0.02004991912841797,
229
+ 0.01960857582092285,
230
+ 0.019489791870117186,
231
+ 0.01944576072692871,
232
+ 0.01945497512817383,
233
+ 0.019392511367797852,
234
+ 0.019598335266113282,
235
+ 0.019534847259521485,
236
+ 0.019438592910766602,
237
+ 0.01944473648071289,
238
+ 0.019521535873413084,
239
+ 0.019438592910766602,
240
+ 0.019422208786010742,
241
+ 0.019494911193847657,
242
+ 0.019487743377685548,
243
+ 0.019544063568115236,
244
+ 0.019515392303466796,
245
+ 0.019517440795898438,
246
+ 0.019496992111206056,
247
+ 0.019473440170288087,
248
+ 0.019518400192260744,
249
+ 0.01945907211303711,
250
+ 0.019501056671142578,
251
+ 0.0194467830657959,
252
+ 0.01946009635925293,
253
+ 0.0194703369140625,
254
+ 0.019687423706054686,
255
+ 0.019533824920654298,
256
+ 0.01949388885498047,
257
+ 0.019563520431518554,
258
+ 0.01944166374206543,
259
+ 0.01942937660217285,
260
+ 0.019552255630493166,
261
+ 0.019490816116333007,
262
+ 0.0195020809173584,
263
+ 0.019405824661254883,
264
+ 0.01947750473022461,
265
+ 0.01945702362060547,
266
+ 0.019533824920654298,
267
+ 0.019475456237792968,
268
+ 0.019487743377685548,
269
+ 0.01946316719055176,
270
+ 0.019522560119628905,
271
+ 0.01988198471069336,
272
+ 0.019896320343017578,
273
+ 0.01962495994567871,
274
+ 0.01965772819519043,
275
+ 0.01944780731201172,
276
+ 0.01946316719055176,
277
+ 0.019495935440063478,
278
+ 0.019466239929199217,
279
+ 0.019466239929199217,
280
+ 0.019471359252929688,
281
+ 0.019937280654907227,
282
+ 0.019663871765136717,
283
+ 0.01945395278930664,
284
+ 0.019449855804443358,
285
+ 0.01968639945983887,
286
+ 0.019532800674438477,
287
+ 0.019475456237792968,
288
+ 0.019577856063842772,
289
+ 0.019596288681030274,
290
+ 0.019614719390869142,
291
+ 0.01970790481567383,
292
+ 0.01964134407043457,
293
+ 0.01965260887145996,
294
+ 0.01963520050048828,
295
+ 0.01962291145324707,
296
+ 0.01964339256286621,
297
+ 0.019596288681030274,
298
+ 0.01966080093383789,
299
+ 0.01962700843811035,
300
+ 0.01965670394897461,
301
+ 0.01965670394897461,
302
+ 0.01961881637573242,
303
+ 0.019567647933959962,
304
+ 0.01968227195739746,
305
+ 0.020644863128662108,
306
+ 0.02104934310913086,
307
+ 0.020365407943725586,
308
+ 0.01977231979370117,
309
+ 0.020093952178955078,
310
+ 0.019757055282592775,
311
+ 0.01966694450378418,
312
+ 0.01963520050048828,
313
+ 0.019631103515625,
314
+ 0.019672063827514647,
315
+ 0.019668991088867188,
316
+ 0.019629056930541993,
317
+ 0.019636224746704102,
318
+ 0.019598335266113282,
319
+ 0.019595264434814453,
320
+ 0.019631103515625,
321
+ 0.019586048126220702,
322
+ 0.019719167709350584,
323
+ 0.01965772819519043,
324
+ 0.020130815505981444,
325
+ 0.019977216720581056,
326
+ 0.0198287353515625,
327
+ 0.019586048126220702,
328
+ 0.01963827133178711,
329
+ 0.01964134407043457,
330
+ 0.019715072631835938,
331
+ 0.01962700843811035,
332
+ 0.019628032684326172,
333
+ 0.01964236831665039,
334
+ 0.01964339256286621,
335
+ 0.020149248123168945,
336
+ 0.019804159164428712,
337
+ 0.019794944763183595,
338
+ 0.019714048385620117,
339
+ 0.019587072372436523,
340
+ 0.019580928802490235,
341
+ 0.019688447952270507,
342
+ 0.01962598419189453,
343
+ 0.019606527328491212,
344
+ 0.019606527328491212,
345
+ 0.019604480743408204,
346
+ 0.01963520050048828,
347
+ 0.01963212776184082,
348
+ 0.019647487640380858,
349
+ 0.019565568923950196,
350
+ 0.019614719390869142,
351
+ 0.01960550308227539,
352
+ 0.01964851188659668,
353
+ 0.019603456497192383,
354
+ 0.01969049644470215,
355
+ 0.019572736740112305,
356
+ 0.020060159683227538,
357
+ 0.019901439666748046
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 50.7351680288393
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020966336250305175,
7
+ "prefill.throughput.value": 333.8685365163936,
8
+ "decode.latency.mean": 2.5033509521484376,
9
+ "decode.throughput.value": 50.731999798512255,
10
+ "per_token.latency.mean": 0.019710193911875326,
11
+ "per_token.throughput.value": 50.7351680288393
12
+ }
13
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: cea9ec086a14da1320940c5e48d7bd5dbcf32734
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734
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/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734
88
+ - hydra.run.dir=_benchmark/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=True
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [ISOLATED-PROCESS][2024-09-12 02:41:03,004][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-09-12 02:41:05,469][process][ERROR] - + Received traceback from isolated process
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: cea9ec086a14da1320940c5e48d7bd5dbcf32734
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734
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/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734
88
+ - hydra.run.dir=_benchmark/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=False
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.23.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": 1334.45632,
111
+ "max_global_vram": 6775.373824,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.4699326171875,
120
+ "mean": 11.4699326171875,
121
+ "stdev": 0.0,
122
+ "p50": 11.4699326171875,
123
+ "p90": 11.4699326171875,
124
+ "p95": 11.4699326171875,
125
+ "p99": 11.4699326171875,
126
+ "values": [
127
+ 11.4699326171875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1807.03232,
138
+ "max_global_vram": 6796.345344,
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.04457372856140136,
147
+ "mean": 0.02228686428070068,
148
+ "stdev": 4.47835922241218e-05,
149
+ "p50": 0.02228686428070068,
150
+ "p90": 0.02232269115447998,
151
+ "p95": 0.022327169513702394,
152
+ "p99": 0.02233075220108032,
153
+ "values": [
154
+ 0.02224208068847656,
155
+ 0.022331647872924805
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 314.0863565118783
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1833.96352,
169
+ "max_global_vram": 6800.539648,
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.25077294921875,
178
+ "mean": 2.625386474609375,
179
+ "stdev": 0.0016545410156250107,
180
+ "p50": 2.625386474609375,
181
+ "p90": 2.626710107421875,
182
+ "p95": 2.6268755615234376,
183
+ "p99": 2.627007924804688,
184
+ "values": [
185
+ 2.62373193359375,
186
+ 2.627041015625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 48.37383037820975
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.2505200405120815,
202
+ "mean": 0.02067133874217356,
203
+ "stdev": 0.00025620689256807927,
204
+ "p50": 0.020558335304260253,
205
+ "p90": 0.02118389720916748,
206
+ "p95": 0.021240001773834227,
207
+ "p99": 0.021446307601928713,
208
+ "values": [
209
+ 0.020557823181152343,
210
+ 0.02062339210510254,
211
+ 0.020584415435791016,
212
+ 0.020612096786499022,
213
+ 0.020580352783203124,
214
+ 0.020547584533691408,
215
+ 0.020525056838989256,
216
+ 0.020530176162719727,
217
+ 0.020542463302612304,
218
+ 0.020521984100341797,
219
+ 0.020504575729370117,
220
+ 0.020517887115478514,
221
+ 0.02050774383544922,
222
+ 0.020524959564208984,
223
+ 0.02052403259277344,
224
+ 0.020802560806274413,
225
+ 0.020550655364990233,
226
+ 0.02050764846801758,
227
+ 0.020521984100341797,
228
+ 0.020708351135253905,
229
+ 0.020541439056396483,
230
+ 0.020570112228393556,
231
+ 0.020569087982177735,
232
+ 0.020538368225097657,
233
+ 0.020536319732666015,
234
+ 0.020533248901367186,
235
+ 0.020520959854125977,
236
+ 0.02066329574584961,
237
+ 0.020570112228393556,
238
+ 0.02122137641906738,
239
+ 0.02166169548034668,
240
+ 0.021271615982055663,
241
+ 0.02129913520812988,
242
+ 0.02060697555541992,
243
+ 0.020546560287475587,
244
+ 0.020550655364990233,
245
+ 0.020567039489746093,
246
+ 0.02053222465515137,
247
+ 0.020555776596069338,
248
+ 0.021156864166259767,
249
+ 0.020558847427368163,
250
+ 0.020847616195678712,
251
+ 0.02148863983154297,
252
+ 0.02125004768371582,
253
+ 0.020552703857421875,
254
+ 0.020529151916503906,
255
+ 0.020582399368286132,
256
+ 0.020587520599365236,
257
+ 0.020577280044555665,
258
+ 0.02053222465515137,
259
+ 0.020625408172607423,
260
+ 0.020587520599365236,
261
+ 0.02125312042236328,
262
+ 0.021217279434204102,
263
+ 0.021207040786743164,
264
+ 0.02060697555541992,
265
+ 0.020562944412231447,
266
+ 0.020560895919799805,
267
+ 0.02058137512207031,
268
+ 0.020564992904663085,
269
+ 0.020516864776611327,
270
+ 0.020508672714233397,
271
+ 0.020553728103637696,
272
+ 0.020517887115478514,
273
+ 0.02088243293762207,
274
+ 0.021184511184692383,
275
+ 0.020576255798339844,
276
+ 0.020535295486450195,
277
+ 0.020801536560058592,
278
+ 0.0206059513092041,
279
+ 0.020595712661743162,
280
+ 0.02065715217590332,
281
+ 0.020546560287475587,
282
+ 0.020548608779907225,
283
+ 0.020562944412231447,
284
+ 0.020517887115478514,
285
+ 0.020549631118774413,
286
+ 0.02061311912536621,
287
+ 0.020571136474609376,
288
+ 0.020576255798339844,
289
+ 0.020583423614501953,
290
+ 0.02051481628417969,
291
+ 0.020536319732666015,
292
+ 0.020547584533691408,
293
+ 0.02062131118774414,
294
+ 0.020542463302612304,
295
+ 0.02052403259277344,
296
+ 0.02051481628417969,
297
+ 0.020545536041259766,
298
+ 0.02050662422180176,
299
+ 0.021408767700195314,
300
+ 0.02059878349304199,
301
+ 0.02052403259277344,
302
+ 0.020508672714233397,
303
+ 0.020531200408935548,
304
+ 0.020535295486450195,
305
+ 0.020555776596069338,
306
+ 0.020584447860717774,
307
+ 0.020668415069580077,
308
+ 0.020563968658447264,
309
+ 0.02063871955871582,
310
+ 0.02104012870788574,
311
+ 0.020666368484497072,
312
+ 0.020619264602661135,
313
+ 0.020582399368286132,
314
+ 0.020533248901367186,
315
+ 0.020505599975585938,
316
+ 0.02032640075683594,
317
+ 0.020436992645263673,
318
+ 0.020559871673583984,
319
+ 0.020548608779907225,
320
+ 0.020568063735961914,
321
+ 0.020545536041259766,
322
+ 0.020561920166015626,
323
+ 0.02059775924682617,
324
+ 0.020530176162719727,
325
+ 0.020583423614501953,
326
+ 0.021153791427612305,
327
+ 0.021320768356323242,
328
+ 0.02058131217956543,
329
+ 0.020546560287475587,
330
+ 0.020533248901367186,
331
+ 0.020533248901367186,
332
+ 0.020791296005249024,
333
+ 0.020990976333618162,
334
+ 0.02084147262573242,
335
+ 0.020548608779907225,
336
+ 0.02052707290649414,
337
+ 0.020552703857421875,
338
+ 0.020520959854125977,
339
+ 0.020547584533691408,
340
+ 0.020547584533691408,
341
+ 0.020642816543579103,
342
+ 0.020511743545532226,
343
+ 0.020552703857421875,
344
+ 0.02048307228088379,
345
+ 0.020495359420776366,
346
+ 0.021104639053344726,
347
+ 0.021209087371826172,
348
+ 0.021203968048095705,
349
+ 0.020304895401000975,
350
+ 0.02040934371948242,
351
+ 0.020547584533691408,
352
+ 0.020556800842285155,
353
+ 0.020567039489746093,
354
+ 0.020632575988769532,
355
+ 0.020513792037963868,
356
+ 0.020596736907958983,
357
+ 0.020857887268066408,
358
+ 0.020777952194213866,
359
+ 0.020617216110229493,
360
+ 0.020547584533691408,
361
+ 0.020528127670288086,
362
+ 0.020525056838989256,
363
+ 0.020518911361694335,
364
+ 0.020549631118774413,
365
+ 0.020542463302612304,
366
+ 0.020572160720825194,
367
+ 0.02051584053039551,
368
+ 0.020502527236938475,
369
+ 0.020540416717529295,
370
+ 0.020520959854125977,
371
+ 0.02050662422180176,
372
+ 0.020574207305908202,
373
+ 0.021130239486694336,
374
+ 0.021178367614746094,
375
+ 0.020535295486450195,
376
+ 0.020523008346557618,
377
+ 0.0204902400970459,
378
+ 0.020516864776611327,
379
+ 0.020533248901367186,
380
+ 0.020932607650756836,
381
+ 0.02165247917175293,
382
+ 0.021154815673828126,
383
+ 0.020596736907958983,
384
+ 0.02057318305969238,
385
+ 0.02054256057739258,
386
+ 0.020515743255615233,
387
+ 0.020552703857421875,
388
+ 0.020703231811523438,
389
+ 0.021221439361572267,
390
+ 0.02054035186767578,
391
+ 0.020544511795043945,
392
+ 0.02049843215942383,
393
+ 0.020584447860717774,
394
+ 0.020520959854125977,
395
+ 0.02123161506652832,
396
+ 0.020904960632324218,
397
+ 0.020494335174560546,
398
+ 0.020553728103637696,
399
+ 0.020556800842285155,
400
+ 0.020578304290771485,
401
+ 0.020602880477905275,
402
+ 0.020562944412231447,
403
+ 0.021112831115722656,
404
+ 0.021188703536987305,
405
+ 0.02123459243774414,
406
+ 0.02125312042236328,
407
+ 0.020519935607910156,
408
+ 0.020584447860717774,
409
+ 0.02063564872741699,
410
+ 0.020592639923095703,
411
+ 0.020553728103637696,
412
+ 0.020583423614501953,
413
+ 0.020516864776611327,
414
+ 0.020566015243530272,
415
+ 0.020527103424072265,
416
+ 0.020550655364990233,
417
+ 0.02051584053039551,
418
+ 0.020530176162719727,
419
+ 0.020559871673583984,
420
+ 0.020536319732666015,
421
+ 0.021201919555664063,
422
+ 0.02102579116821289,
423
+ 0.021204992294311522,
424
+ 0.020585472106933594,
425
+ 0.020545536041259766,
426
+ 0.020495359420776366,
427
+ 0.020548608779907225,
428
+ 0.020508672714233397,
429
+ 0.020593664169311524,
430
+ 0.020619264602661135,
431
+ 0.020545536041259766,
432
+ 0.020489215850830078,
433
+ 0.020516864776611327,
434
+ 0.020541439056396483,
435
+ 0.020600831985473633,
436
+ 0.020554752349853517,
437
+ 0.020799488067626954,
438
+ 0.02058755111694336,
439
+ 0.020523008346557618,
440
+ 0.020538400650024415,
441
+ 0.020535232543945313,
442
+ 0.020572160720825194,
443
+ 0.021317632675170898,
444
+ 0.020959232330322267,
445
+ 0.020504575729370117,
446
+ 0.020554752349853517,
447
+ 0.020540416717529295,
448
+ 0.020528127670288086,
449
+ 0.02052921676635742,
450
+ 0.020536256790161134,
451
+ 0.020501504898071288,
452
+ 0.020495359420776366,
453
+ 0.021013504028320314,
454
+ 0.021182464599609374,
455
+ 0.020569087982177735,
456
+ 0.020570112228393556,
457
+ 0.021212160110473634,
458
+ 0.02079539108276367,
459
+ 0.021257247924804688,
460
+ 0.021148639678955077,
461
+ 0.020989952087402345,
462
+ 0.021259263992309572
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 48.37616046414087
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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": 1334.45632,
6
+ "max_global_vram": 6775.373824,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.4699326171875,
15
+ "mean": 11.4699326171875,
16
+ "stdev": 0.0,
17
+ "p50": 11.4699326171875,
18
+ "p90": 11.4699326171875,
19
+ "p95": 11.4699326171875,
20
+ "p99": 11.4699326171875,
21
+ "values": [
22
+ 11.4699326171875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1807.03232,
33
+ "max_global_vram": 6796.345344,
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.04457372856140136,
42
+ "mean": 0.02228686428070068,
43
+ "stdev": 4.47835922241218e-05,
44
+ "p50": 0.02228686428070068,
45
+ "p90": 0.02232269115447998,
46
+ "p95": 0.022327169513702394,
47
+ "p99": 0.02233075220108032,
48
+ "values": [
49
+ 0.02224208068847656,
50
+ 0.022331647872924805
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 314.0863565118783
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1833.96352,
64
+ "max_global_vram": 6800.539648,
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.25077294921875,
73
+ "mean": 2.625386474609375,
74
+ "stdev": 0.0016545410156250107,
75
+ "p50": 2.625386474609375,
76
+ "p90": 2.626710107421875,
77
+ "p95": 2.6268755615234376,
78
+ "p99": 2.627007924804688,
79
+ "values": [
80
+ 2.62373193359375,
81
+ 2.627041015625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 48.37383037820975
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.2505200405120815,
97
+ "mean": 0.02067133874217356,
98
+ "stdev": 0.00025620689256807927,
99
+ "p50": 0.020558335304260253,
100
+ "p90": 0.02118389720916748,
101
+ "p95": 0.021240001773834227,
102
+ "p99": 0.021446307601928713,
103
+ "values": [
104
+ 0.020557823181152343,
105
+ 0.02062339210510254,
106
+ 0.020584415435791016,
107
+ 0.020612096786499022,
108
+ 0.020580352783203124,
109
+ 0.020547584533691408,
110
+ 0.020525056838989256,
111
+ 0.020530176162719727,
112
+ 0.020542463302612304,
113
+ 0.020521984100341797,
114
+ 0.020504575729370117,
115
+ 0.020517887115478514,
116
+ 0.02050774383544922,
117
+ 0.020524959564208984,
118
+ 0.02052403259277344,
119
+ 0.020802560806274413,
120
+ 0.020550655364990233,
121
+ 0.02050764846801758,
122
+ 0.020521984100341797,
123
+ 0.020708351135253905,
124
+ 0.020541439056396483,
125
+ 0.020570112228393556,
126
+ 0.020569087982177735,
127
+ 0.020538368225097657,
128
+ 0.020536319732666015,
129
+ 0.020533248901367186,
130
+ 0.020520959854125977,
131
+ 0.02066329574584961,
132
+ 0.020570112228393556,
133
+ 0.02122137641906738,
134
+ 0.02166169548034668,
135
+ 0.021271615982055663,
136
+ 0.02129913520812988,
137
+ 0.02060697555541992,
138
+ 0.020546560287475587,
139
+ 0.020550655364990233,
140
+ 0.020567039489746093,
141
+ 0.02053222465515137,
142
+ 0.020555776596069338,
143
+ 0.021156864166259767,
144
+ 0.020558847427368163,
145
+ 0.020847616195678712,
146
+ 0.02148863983154297,
147
+ 0.02125004768371582,
148
+ 0.020552703857421875,
149
+ 0.020529151916503906,
150
+ 0.020582399368286132,
151
+ 0.020587520599365236,
152
+ 0.020577280044555665,
153
+ 0.02053222465515137,
154
+ 0.020625408172607423,
155
+ 0.020587520599365236,
156
+ 0.02125312042236328,
157
+ 0.021217279434204102,
158
+ 0.021207040786743164,
159
+ 0.02060697555541992,
160
+ 0.020562944412231447,
161
+ 0.020560895919799805,
162
+ 0.02058137512207031,
163
+ 0.020564992904663085,
164
+ 0.020516864776611327,
165
+ 0.020508672714233397,
166
+ 0.020553728103637696,
167
+ 0.020517887115478514,
168
+ 0.02088243293762207,
169
+ 0.021184511184692383,
170
+ 0.020576255798339844,
171
+ 0.020535295486450195,
172
+ 0.020801536560058592,
173
+ 0.0206059513092041,
174
+ 0.020595712661743162,
175
+ 0.02065715217590332,
176
+ 0.020546560287475587,
177
+ 0.020548608779907225,
178
+ 0.020562944412231447,
179
+ 0.020517887115478514,
180
+ 0.020549631118774413,
181
+ 0.02061311912536621,
182
+ 0.020571136474609376,
183
+ 0.020576255798339844,
184
+ 0.020583423614501953,
185
+ 0.02051481628417969,
186
+ 0.020536319732666015,
187
+ 0.020547584533691408,
188
+ 0.02062131118774414,
189
+ 0.020542463302612304,
190
+ 0.02052403259277344,
191
+ 0.02051481628417969,
192
+ 0.020545536041259766,
193
+ 0.02050662422180176,
194
+ 0.021408767700195314,
195
+ 0.02059878349304199,
196
+ 0.02052403259277344,
197
+ 0.020508672714233397,
198
+ 0.020531200408935548,
199
+ 0.020535295486450195,
200
+ 0.020555776596069338,
201
+ 0.020584447860717774,
202
+ 0.020668415069580077,
203
+ 0.020563968658447264,
204
+ 0.02063871955871582,
205
+ 0.02104012870788574,
206
+ 0.020666368484497072,
207
+ 0.020619264602661135,
208
+ 0.020582399368286132,
209
+ 0.020533248901367186,
210
+ 0.020505599975585938,
211
+ 0.02032640075683594,
212
+ 0.020436992645263673,
213
+ 0.020559871673583984,
214
+ 0.020548608779907225,
215
+ 0.020568063735961914,
216
+ 0.020545536041259766,
217
+ 0.020561920166015626,
218
+ 0.02059775924682617,
219
+ 0.020530176162719727,
220
+ 0.020583423614501953,
221
+ 0.021153791427612305,
222
+ 0.021320768356323242,
223
+ 0.02058131217956543,
224
+ 0.020546560287475587,
225
+ 0.020533248901367186,
226
+ 0.020533248901367186,
227
+ 0.020791296005249024,
228
+ 0.020990976333618162,
229
+ 0.02084147262573242,
230
+ 0.020548608779907225,
231
+ 0.02052707290649414,
232
+ 0.020552703857421875,
233
+ 0.020520959854125977,
234
+ 0.020547584533691408,
235
+ 0.020547584533691408,
236
+ 0.020642816543579103,
237
+ 0.020511743545532226,
238
+ 0.020552703857421875,
239
+ 0.02048307228088379,
240
+ 0.020495359420776366,
241
+ 0.021104639053344726,
242
+ 0.021209087371826172,
243
+ 0.021203968048095705,
244
+ 0.020304895401000975,
245
+ 0.02040934371948242,
246
+ 0.020547584533691408,
247
+ 0.020556800842285155,
248
+ 0.020567039489746093,
249
+ 0.020632575988769532,
250
+ 0.020513792037963868,
251
+ 0.020596736907958983,
252
+ 0.020857887268066408,
253
+ 0.020777952194213866,
254
+ 0.020617216110229493,
255
+ 0.020547584533691408,
256
+ 0.020528127670288086,
257
+ 0.020525056838989256,
258
+ 0.020518911361694335,
259
+ 0.020549631118774413,
260
+ 0.020542463302612304,
261
+ 0.020572160720825194,
262
+ 0.02051584053039551,
263
+ 0.020502527236938475,
264
+ 0.020540416717529295,
265
+ 0.020520959854125977,
266
+ 0.02050662422180176,
267
+ 0.020574207305908202,
268
+ 0.021130239486694336,
269
+ 0.021178367614746094,
270
+ 0.020535295486450195,
271
+ 0.020523008346557618,
272
+ 0.0204902400970459,
273
+ 0.020516864776611327,
274
+ 0.020533248901367186,
275
+ 0.020932607650756836,
276
+ 0.02165247917175293,
277
+ 0.021154815673828126,
278
+ 0.020596736907958983,
279
+ 0.02057318305969238,
280
+ 0.02054256057739258,
281
+ 0.020515743255615233,
282
+ 0.020552703857421875,
283
+ 0.020703231811523438,
284
+ 0.021221439361572267,
285
+ 0.02054035186767578,
286
+ 0.020544511795043945,
287
+ 0.02049843215942383,
288
+ 0.020584447860717774,
289
+ 0.020520959854125977,
290
+ 0.02123161506652832,
291
+ 0.020904960632324218,
292
+ 0.020494335174560546,
293
+ 0.020553728103637696,
294
+ 0.020556800842285155,
295
+ 0.020578304290771485,
296
+ 0.020602880477905275,
297
+ 0.020562944412231447,
298
+ 0.021112831115722656,
299
+ 0.021188703536987305,
300
+ 0.02123459243774414,
301
+ 0.02125312042236328,
302
+ 0.020519935607910156,
303
+ 0.020584447860717774,
304
+ 0.02063564872741699,
305
+ 0.020592639923095703,
306
+ 0.020553728103637696,
307
+ 0.020583423614501953,
308
+ 0.020516864776611327,
309
+ 0.020566015243530272,
310
+ 0.020527103424072265,
311
+ 0.020550655364990233,
312
+ 0.02051584053039551,
313
+ 0.020530176162719727,
314
+ 0.020559871673583984,
315
+ 0.020536319732666015,
316
+ 0.021201919555664063,
317
+ 0.02102579116821289,
318
+ 0.021204992294311522,
319
+ 0.020585472106933594,
320
+ 0.020545536041259766,
321
+ 0.020495359420776366,
322
+ 0.020548608779907225,
323
+ 0.020508672714233397,
324
+ 0.020593664169311524,
325
+ 0.020619264602661135,
326
+ 0.020545536041259766,
327
+ 0.020489215850830078,
328
+ 0.020516864776611327,
329
+ 0.020541439056396483,
330
+ 0.020600831985473633,
331
+ 0.020554752349853517,
332
+ 0.020799488067626954,
333
+ 0.02058755111694336,
334
+ 0.020523008346557618,
335
+ 0.020538400650024415,
336
+ 0.020535232543945313,
337
+ 0.020572160720825194,
338
+ 0.021317632675170898,
339
+ 0.020959232330322267,
340
+ 0.020504575729370117,
341
+ 0.020554752349853517,
342
+ 0.020540416717529295,
343
+ 0.020528127670288086,
344
+ 0.02052921676635742,
345
+ 0.020536256790161134,
346
+ 0.020501504898071288,
347
+ 0.020495359420776366,
348
+ 0.021013504028320314,
349
+ 0.021182464599609374,
350
+ 0.020569087982177735,
351
+ 0.020570112228393556,
352
+ 0.021212160110473634,
353
+ 0.02079539108276367,
354
+ 0.021257247924804688,
355
+ 0.021148639678955077,
356
+ 0.020989952087402345,
357
+ 0.021259263992309572
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 48.37616046414087
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02228686428070068,
7
+ "prefill.throughput.value": 314.0863565118783,
8
+ "decode.latency.mean": 2.625386474609375,
9
+ "decode.throughput.value": 48.37383037820975,
10
+ "per_token.latency.mean": 0.02067133874217356,
11
+ "per_token.throughput.value": 48.37616046414087
12
+ }
13
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: cea9ec086a14da1320940c5e48d7bd5dbcf32734
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734
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/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734
88
+ - hydra.run.dir=_benchmark/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${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/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=True
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.23.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": 1352.798208,
111
+ "max_global_vram": 6775.373824,
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.4966904296875,
120
+ "mean": 12.4966904296875,
121
+ "stdev": 0.0,
122
+ "p50": 12.4966904296875,
123
+ "p90": 12.4966904296875,
124
+ "p95": 12.4966904296875,
125
+ "p99": 12.4966904296875,
126
+ "values": [
127
+ 12.4966904296875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1936.797696,
138
+ "max_global_vram": 6796.345344,
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.02842630386352539,
147
+ "mean": 0.014213151931762695,
148
+ "stdev": 8.979225158691449e-05,
149
+ "p50": 0.014213151931762695,
150
+ "p90": 0.014284985733032227,
151
+ "p95": 0.014293964958190918,
152
+ "p99": 0.014301148338317872,
153
+ "values": [
154
+ 0.01412335968017578,
155
+ 0.01430294418334961
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 492.501595255365
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2109.91104,
169
+ "max_global_vram": 6060.244992,
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.1280758056640625,
178
+ "mean": 1.5640379028320313,
179
+ "stdev": 0.0007692260742186985,
180
+ "p50": 1.5640379028320313,
181
+ "p90": 1.5646532836914062,
182
+ "p95": 1.564730206298828,
183
+ "p99": 1.5647917443847656,
184
+ "values": [
185
+ 1.5632686767578126,
186
+ 1.56480712890625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.20007818866719
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.1277578115463283,
202
+ "mean": 0.01231400713207215,
203
+ "stdev": 9.151940546208009e-05,
204
+ "p50": 0.01229312038421631,
205
+ "p90": 0.012329369449615478,
206
+ "p95": 0.012386355113983154,
207
+ "p99": 0.012869232559204103,
208
+ "values": [
209
+ 0.012382207870483398,
210
+ 0.012309503555297852,
211
+ 0.012296192169189453,
212
+ 0.012285951614379884,
213
+ 0.012317695617675782,
214
+ 0.012305407524108887,
215
+ 0.012321791648864745,
216
+ 0.012305407524108887,
217
+ 0.012292096138000488,
218
+ 0.012292096138000488,
219
+ 0.012315648078918457,
220
+ 0.012283904075622559,
221
+ 0.012288000106811523,
222
+ 0.012282879829406738,
223
+ 0.01228492832183838,
224
+ 0.012281855583190919,
225
+ 0.01234227180480957,
226
+ 0.012327936172485352,
227
+ 0.012300288200378418,
228
+ 0.01229315185546875,
229
+ 0.012314592361450195,
230
+ 0.012283904075622559,
231
+ 0.012283904075622559,
232
+ 0.012385279655456542,
233
+ 0.012304384231567383,
234
+ 0.01229312038421631,
235
+ 0.012299263954162597,
236
+ 0.012296192169189453,
237
+ 0.012289024353027344,
238
+ 0.012292096138000488,
239
+ 0.012304384231567383,
240
+ 0.012281855583190919,
241
+ 0.012281855583190919,
242
+ 0.012511232376098632,
243
+ 0.012320768356323243,
244
+ 0.012312576293945313,
245
+ 0.012285951614379884,
246
+ 0.012298239707946777,
247
+ 0.012283904075622559,
248
+ 0.012294143676757812,
249
+ 0.012280832290649414,
250
+ 0.01229312038421631,
251
+ 0.012285951614379884,
252
+ 0.012283904075622559,
253
+ 0.012292096138000488,
254
+ 0.012281855583190919,
255
+ 0.012297216415405274,
256
+ 0.012299263954162597,
257
+ 0.012281855583190919,
258
+ 0.012292096138000488,
259
+ 0.012299263954162597,
260
+ 0.012298239707946777,
261
+ 0.012290047645568849,
262
+ 0.012292096138000488,
263
+ 0.012279808044433594,
264
+ 0.012278783798217773,
265
+ 0.01228495979309082,
266
+ 0.012296159744262696,
267
+ 0.012279808044433594,
268
+ 0.012310527801513671,
269
+ 0.012309503555297852,
270
+ 0.012281855583190919,
271
+ 0.012285951614379884,
272
+ 0.012294143676757812,
273
+ 0.012299263954162597,
274
+ 0.012282879829406738,
275
+ 0.012291071891784668,
276
+ 0.012281855583190919,
277
+ 0.012280832290649414,
278
+ 0.012286975860595703,
279
+ 0.012283904075622559,
280
+ 0.012289024353027344,
281
+ 0.012292096138000488,
282
+ 0.012299263954162597,
283
+ 0.012297216415405274,
284
+ 0.012274687767028808,
285
+ 0.012281855583190919,
286
+ 0.012299263954162597,
287
+ 0.012296192169189453,
288
+ 0.012983296394348144,
289
+ 0.012389375686645507,
290
+ 0.012306431770324706,
291
+ 0.012297216415405274,
292
+ 0.012289024353027344,
293
+ 0.012307456016540527,
294
+ 0.012295167922973632,
295
+ 0.012302335739135742,
296
+ 0.012295167922973632,
297
+ 0.012291071891784668,
298
+ 0.012278783798217773,
299
+ 0.012296192169189453,
300
+ 0.012285951614379884,
301
+ 0.012317695617675782,
302
+ 0.012297216415405274,
303
+ 0.012408831596374511,
304
+ 0.012297216415405274,
305
+ 0.012305407524108887,
306
+ 0.012312576293945313,
307
+ 0.012374015808105468,
308
+ 0.012286975860595703,
309
+ 0.01229312038421631,
310
+ 0.012292096138000488,
311
+ 0.012285951614379884,
312
+ 0.012295167922973632,
313
+ 0.012571647644042968,
314
+ 0.012310527801513671,
315
+ 0.012307456016540527,
316
+ 0.012291135787963868,
317
+ 0.01228486442565918,
318
+ 0.012306431770324706,
319
+ 0.012299263954162597,
320
+ 0.012292096138000488,
321
+ 0.012291071891784668,
322
+ 0.012331007957458496,
323
+ 0.012280832290649414,
324
+ 0.012283904075622559,
325
+ 0.012281855583190919,
326
+ 0.012301312446594239,
327
+ 0.012285951614379884,
328
+ 0.012294143676757812,
329
+ 0.012288000106811523,
330
+ 0.012282879829406738,
331
+ 0.012327936172485352,
332
+ 0.01233510398864746,
333
+ 0.01229312038421631,
334
+ 0.012282879829406738,
335
+ 0.012291071891784668,
336
+ 0.012348416328430176,
337
+ 0.01232588768005371,
338
+ 0.012337151527404786,
339
+ 0.012278783798217773,
340
+ 0.012304384231567383,
341
+ 0.012296192169189453,
342
+ 0.012297216415405274,
343
+ 0.012282879829406738,
344
+ 0.012278783798217773,
345
+ 0.012349439620971679,
346
+ 0.01228492832183838,
347
+ 0.012286975860595703,
348
+ 0.012294143676757812,
349
+ 0.012295167922973632,
350
+ 0.012305407524108887,
351
+ 0.012310527801513671,
352
+ 0.012273664474487305,
353
+ 0.012272640228271485,
354
+ 0.012300288200378418,
355
+ 0.012294143676757812,
356
+ 0.012281855583190919,
357
+ 0.01228492832183838,
358
+ 0.012285951614379884,
359
+ 0.012278783798217773,
360
+ 0.012297216415405274,
361
+ 0.012297216415405274,
362
+ 0.012280832290649414,
363
+ 0.012281855583190919,
364
+ 0.012304384231567383,
365
+ 0.012416000366210938,
366
+ 0.012309503555297852,
367
+ 0.012290047645568849,
368
+ 0.012294143676757812,
369
+ 0.012288000106811523,
370
+ 0.012305407524108887,
371
+ 0.012963839530944824,
372
+ 0.012357631683349609,
373
+ 0.012303359985351562,
374
+ 0.012297216415405274,
375
+ 0.012344320297241211,
376
+ 0.012283904075622559,
377
+ 0.012292096138000488,
378
+ 0.012285951614379884,
379
+ 0.012300288200378418,
380
+ 0.012286975860595703,
381
+ 0.012290047645568849,
382
+ 0.01228492832183838,
383
+ 0.012278783798217773,
384
+ 0.012290047645568849,
385
+ 0.012283904075622559,
386
+ 0.012290047645568849,
387
+ 0.012388352394104005,
388
+ 0.012315648078918457,
389
+ 0.012313599586486817,
390
+ 0.012290047645568849,
391
+ 0.012299263954162597,
392
+ 0.01229312038421631,
393
+ 0.012288096427917481,
394
+ 0.012330911636352538,
395
+ 0.012300288200378418,
396
+ 0.012285951614379884,
397
+ 0.012282879829406738,
398
+ 0.012285951614379884,
399
+ 0.012291071891784668,
400
+ 0.012278783798217773,
401
+ 0.012319744110107422,
402
+ 0.012308480262756348,
403
+ 0.012278783798217773,
404
+ 0.01262284755706787,
405
+ 0.012309503555297852,
406
+ 0.01229312038421631,
407
+ 0.012286975860595703,
408
+ 0.01228492832183838,
409
+ 0.012274687767028808,
410
+ 0.012283904075622559,
411
+ 0.012290047645568849,
412
+ 0.012289024353027344,
413
+ 0.012305407524108887,
414
+ 0.012308480262756348,
415
+ 0.012301312446594239,
416
+ 0.012285951614379884,
417
+ 0.012305407524108887,
418
+ 0.012296192169189453,
419
+ 0.012286975860595703,
420
+ 0.012283904075622559,
421
+ 0.012289024353027344,
422
+ 0.012275712013244629,
423
+ 0.012282879829406738,
424
+ 0.012303359985351562,
425
+ 0.012290047645568849,
426
+ 0.012302335739135742,
427
+ 0.012283904075622559,
428
+ 0.012300288200378418,
429
+ 0.012292096138000488,
430
+ 0.012290047645568849,
431
+ 0.012291071891784668,
432
+ 0.012289024353027344,
433
+ 0.012283904075622559,
434
+ 0.012297216415405274,
435
+ 0.012282879829406738,
436
+ 0.012286975860595703,
437
+ 0.012317695617675782,
438
+ 0.012308480262756348,
439
+ 0.012292096138000488,
440
+ 0.012271615982055664,
441
+ 0.012317695617675782,
442
+ 0.012301312446594239,
443
+ 0.012286975860595703,
444
+ 0.012288000106811523,
445
+ 0.012300288200378418,
446
+ 0.012294143676757812,
447
+ 0.012296192169189453,
448
+ 0.012283904075622559,
449
+ 0.012285951614379884,
450
+ 0.012305407524108887,
451
+ 0.012285951614379884,
452
+ 0.012291071891784668,
453
+ 0.012299263954162597,
454
+ 0.012279808044433594,
455
+ 0.012957695960998536,
456
+ 0.012741632461547851,
457
+ 0.01232588768005371,
458
+ 0.012285951614379884,
459
+ 0.012294143676757812,
460
+ 0.012329983711242675,
461
+ 0.012790783882141114,
462
+ 0.01254911994934082
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.20833367031875
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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": 1352.798208,
6
+ "max_global_vram": 6775.373824,
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.4966904296875,
15
+ "mean": 12.4966904296875,
16
+ "stdev": 0.0,
17
+ "p50": 12.4966904296875,
18
+ "p90": 12.4966904296875,
19
+ "p95": 12.4966904296875,
20
+ "p99": 12.4966904296875,
21
+ "values": [
22
+ 12.4966904296875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1936.797696,
33
+ "max_global_vram": 6796.345344,
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.02842630386352539,
42
+ "mean": 0.014213151931762695,
43
+ "stdev": 8.979225158691449e-05,
44
+ "p50": 0.014213151931762695,
45
+ "p90": 0.014284985733032227,
46
+ "p95": 0.014293964958190918,
47
+ "p99": 0.014301148338317872,
48
+ "values": [
49
+ 0.01412335968017578,
50
+ 0.01430294418334961
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 492.501595255365
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2109.91104,
64
+ "max_global_vram": 6060.244992,
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.1280758056640625,
73
+ "mean": 1.5640379028320313,
74
+ "stdev": 0.0007692260742186985,
75
+ "p50": 1.5640379028320313,
76
+ "p90": 1.5646532836914062,
77
+ "p95": 1.564730206298828,
78
+ "p99": 1.5647917443847656,
79
+ "values": [
80
+ 1.5632686767578126,
81
+ 1.56480712890625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.20007818866719
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.1277578115463283,
97
+ "mean": 0.01231400713207215,
98
+ "stdev": 9.151940546208009e-05,
99
+ "p50": 0.01229312038421631,
100
+ "p90": 0.012329369449615478,
101
+ "p95": 0.012386355113983154,
102
+ "p99": 0.012869232559204103,
103
+ "values": [
104
+ 0.012382207870483398,
105
+ 0.012309503555297852,
106
+ 0.012296192169189453,
107
+ 0.012285951614379884,
108
+ 0.012317695617675782,
109
+ 0.012305407524108887,
110
+ 0.012321791648864745,
111
+ 0.012305407524108887,
112
+ 0.012292096138000488,
113
+ 0.012292096138000488,
114
+ 0.012315648078918457,
115
+ 0.012283904075622559,
116
+ 0.012288000106811523,
117
+ 0.012282879829406738,
118
+ 0.01228492832183838,
119
+ 0.012281855583190919,
120
+ 0.01234227180480957,
121
+ 0.012327936172485352,
122
+ 0.012300288200378418,
123
+ 0.01229315185546875,
124
+ 0.012314592361450195,
125
+ 0.012283904075622559,
126
+ 0.012283904075622559,
127
+ 0.012385279655456542,
128
+ 0.012304384231567383,
129
+ 0.01229312038421631,
130
+ 0.012299263954162597,
131
+ 0.012296192169189453,
132
+ 0.012289024353027344,
133
+ 0.012292096138000488,
134
+ 0.012304384231567383,
135
+ 0.012281855583190919,
136
+ 0.012281855583190919,
137
+ 0.012511232376098632,
138
+ 0.012320768356323243,
139
+ 0.012312576293945313,
140
+ 0.012285951614379884,
141
+ 0.012298239707946777,
142
+ 0.012283904075622559,
143
+ 0.012294143676757812,
144
+ 0.012280832290649414,
145
+ 0.01229312038421631,
146
+ 0.012285951614379884,
147
+ 0.012283904075622559,
148
+ 0.012292096138000488,
149
+ 0.012281855583190919,
150
+ 0.012297216415405274,
151
+ 0.012299263954162597,
152
+ 0.012281855583190919,
153
+ 0.012292096138000488,
154
+ 0.012299263954162597,
155
+ 0.012298239707946777,
156
+ 0.012290047645568849,
157
+ 0.012292096138000488,
158
+ 0.012279808044433594,
159
+ 0.012278783798217773,
160
+ 0.01228495979309082,
161
+ 0.012296159744262696,
162
+ 0.012279808044433594,
163
+ 0.012310527801513671,
164
+ 0.012309503555297852,
165
+ 0.012281855583190919,
166
+ 0.012285951614379884,
167
+ 0.012294143676757812,
168
+ 0.012299263954162597,
169
+ 0.012282879829406738,
170
+ 0.012291071891784668,
171
+ 0.012281855583190919,
172
+ 0.012280832290649414,
173
+ 0.012286975860595703,
174
+ 0.012283904075622559,
175
+ 0.012289024353027344,
176
+ 0.012292096138000488,
177
+ 0.012299263954162597,
178
+ 0.012297216415405274,
179
+ 0.012274687767028808,
180
+ 0.012281855583190919,
181
+ 0.012299263954162597,
182
+ 0.012296192169189453,
183
+ 0.012983296394348144,
184
+ 0.012389375686645507,
185
+ 0.012306431770324706,
186
+ 0.012297216415405274,
187
+ 0.012289024353027344,
188
+ 0.012307456016540527,
189
+ 0.012295167922973632,
190
+ 0.012302335739135742,
191
+ 0.012295167922973632,
192
+ 0.012291071891784668,
193
+ 0.012278783798217773,
194
+ 0.012296192169189453,
195
+ 0.012285951614379884,
196
+ 0.012317695617675782,
197
+ 0.012297216415405274,
198
+ 0.012408831596374511,
199
+ 0.012297216415405274,
200
+ 0.012305407524108887,
201
+ 0.012312576293945313,
202
+ 0.012374015808105468,
203
+ 0.012286975860595703,
204
+ 0.01229312038421631,
205
+ 0.012292096138000488,
206
+ 0.012285951614379884,
207
+ 0.012295167922973632,
208
+ 0.012571647644042968,
209
+ 0.012310527801513671,
210
+ 0.012307456016540527,
211
+ 0.012291135787963868,
212
+ 0.01228486442565918,
213
+ 0.012306431770324706,
214
+ 0.012299263954162597,
215
+ 0.012292096138000488,
216
+ 0.012291071891784668,
217
+ 0.012331007957458496,
218
+ 0.012280832290649414,
219
+ 0.012283904075622559,
220
+ 0.012281855583190919,
221
+ 0.012301312446594239,
222
+ 0.012285951614379884,
223
+ 0.012294143676757812,
224
+ 0.012288000106811523,
225
+ 0.012282879829406738,
226
+ 0.012327936172485352,
227
+ 0.01233510398864746,
228
+ 0.01229312038421631,
229
+ 0.012282879829406738,
230
+ 0.012291071891784668,
231
+ 0.012348416328430176,
232
+ 0.01232588768005371,
233
+ 0.012337151527404786,
234
+ 0.012278783798217773,
235
+ 0.012304384231567383,
236
+ 0.012296192169189453,
237
+ 0.012297216415405274,
238
+ 0.012282879829406738,
239
+ 0.012278783798217773,
240
+ 0.012349439620971679,
241
+ 0.01228492832183838,
242
+ 0.012286975860595703,
243
+ 0.012294143676757812,
244
+ 0.012295167922973632,
245
+ 0.012305407524108887,
246
+ 0.012310527801513671,
247
+ 0.012273664474487305,
248
+ 0.012272640228271485,
249
+ 0.012300288200378418,
250
+ 0.012294143676757812,
251
+ 0.012281855583190919,
252
+ 0.01228492832183838,
253
+ 0.012285951614379884,
254
+ 0.012278783798217773,
255
+ 0.012297216415405274,
256
+ 0.012297216415405274,
257
+ 0.012280832290649414,
258
+ 0.012281855583190919,
259
+ 0.012304384231567383,
260
+ 0.012416000366210938,
261
+ 0.012309503555297852,
262
+ 0.012290047645568849,
263
+ 0.012294143676757812,
264
+ 0.012288000106811523,
265
+ 0.012305407524108887,
266
+ 0.012963839530944824,
267
+ 0.012357631683349609,
268
+ 0.012303359985351562,
269
+ 0.012297216415405274,
270
+ 0.012344320297241211,
271
+ 0.012283904075622559,
272
+ 0.012292096138000488,
273
+ 0.012285951614379884,
274
+ 0.012300288200378418,
275
+ 0.012286975860595703,
276
+ 0.012290047645568849,
277
+ 0.01228492832183838,
278
+ 0.012278783798217773,
279
+ 0.012290047645568849,
280
+ 0.012283904075622559,
281
+ 0.012290047645568849,
282
+ 0.012388352394104005,
283
+ 0.012315648078918457,
284
+ 0.012313599586486817,
285
+ 0.012290047645568849,
286
+ 0.012299263954162597,
287
+ 0.01229312038421631,
288
+ 0.012288096427917481,
289
+ 0.012330911636352538,
290
+ 0.012300288200378418,
291
+ 0.012285951614379884,
292
+ 0.012282879829406738,
293
+ 0.012285951614379884,
294
+ 0.012291071891784668,
295
+ 0.012278783798217773,
296
+ 0.012319744110107422,
297
+ 0.012308480262756348,
298
+ 0.012278783798217773,
299
+ 0.01262284755706787,
300
+ 0.012309503555297852,
301
+ 0.01229312038421631,
302
+ 0.012286975860595703,
303
+ 0.01228492832183838,
304
+ 0.012274687767028808,
305
+ 0.012283904075622559,
306
+ 0.012290047645568849,
307
+ 0.012289024353027344,
308
+ 0.012305407524108887,
309
+ 0.012308480262756348,
310
+ 0.012301312446594239,
311
+ 0.012285951614379884,
312
+ 0.012305407524108887,
313
+ 0.012296192169189453,
314
+ 0.012286975860595703,
315
+ 0.012283904075622559,
316
+ 0.012289024353027344,
317
+ 0.012275712013244629,
318
+ 0.012282879829406738,
319
+ 0.012303359985351562,
320
+ 0.012290047645568849,
321
+ 0.012302335739135742,
322
+ 0.012283904075622559,
323
+ 0.012300288200378418,
324
+ 0.012292096138000488,
325
+ 0.012290047645568849,
326
+ 0.012291071891784668,
327
+ 0.012289024353027344,
328
+ 0.012283904075622559,
329
+ 0.012297216415405274,
330
+ 0.012282879829406738,
331
+ 0.012286975860595703,
332
+ 0.012317695617675782,
333
+ 0.012308480262756348,
334
+ 0.012292096138000488,
335
+ 0.012271615982055664,
336
+ 0.012317695617675782,
337
+ 0.012301312446594239,
338
+ 0.012286975860595703,
339
+ 0.012288000106811523,
340
+ 0.012300288200378418,
341
+ 0.012294143676757812,
342
+ 0.012296192169189453,
343
+ 0.012283904075622559,
344
+ 0.012285951614379884,
345
+ 0.012305407524108887,
346
+ 0.012285951614379884,
347
+ 0.012291071891784668,
348
+ 0.012299263954162597,
349
+ 0.012279808044433594,
350
+ 0.012957695960998536,
351
+ 0.012741632461547851,
352
+ 0.01232588768005371,
353
+ 0.012285951614379884,
354
+ 0.012294143676757812,
355
+ 0.012329983711242675,
356
+ 0.012790783882141114,
357
+ 0.01254911994934082
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.20833367031875
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/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": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014213151931762695,
7
+ "prefill.throughput.value": 492.501595255365,
8
+ "decode.latency.mean": 1.5640379028320313,
9
+ "decode.throughput.value": 81.20007818866719,
10
+ "per_token.latency.mean": 0.01231400713207215,
11
+ "per_token.throughput.value": 81.20833367031875
12
+ }
13
+ }
2024-09-12/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpa402z03o/commit=cea9ec086a14da1320940c5e48d7bd5dbcf32734
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/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734
88
+ - hydra.run.dir=_benchmark/tmpa402z03o/commit\=cea9ec086a14da1320940c5e48d7bd5dbcf32734/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.4.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model_type: null
150
+ model: google/gemma-2b
151
+ processor: null
152
+ device: cuda
153
+ device_ids: '0'
154
+ seed: 42
155
+ inter_op_num_threads: null
156
+ intra_op_num_threads: null
157
+ model_kwargs: {}
158
+ processor_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ memory: true
192
+ latency: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ numactl: false
206
+ numactl_kwargs: {}
207
+ start_method: spawn
208
+ environment:
209
+ cpu: ' AMD EPYC 7R32'
210
+ cpu_count: 16
211
+ cpu_ram_mb: 66697.261056
212
+ system: Linux
213
+ machine: x86_64
214
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
215
+ processor: x86_64
216
+ python_version: 3.8.10
217
+ gpu:
218
+ - NVIDIA A10G
219
+ gpu_count: 1
220
+ gpu_vram_mb: 24146608128
221
+ optimum_benchmark_version: 0.4.0
222
+ optimum_benchmark_commit: null
223
+ transformers_version: 4.45.0.dev0
224
+ transformers_commit: cea9ec086a14da1320940c5e48d7bd5dbcf32734
225
+ accelerate_version: 0.35.0.dev0
226
+ accelerate_commit: null
227
+ diffusers_version: null
228
+ diffusers_commit: null
229
+ optimum_version: 1.23.0.dev0
230
+ optimum_commit: null
231
+ timm_version: 0.9.16
232
+ timm_commit: null
233
+ peft_version: 0.12.1.dev0
234
+ peft_commit: null
2024-09-12/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.020966336250305175,
8
+ "prefill.throughput.value": 333.8685365163936,
9
+ "decode.latency.mean": 2.5033509521484376,
10
+ "decode.throughput.value": 50.731999798512255,
11
+ "per_token.latency.mean": 0.019710193911875326,
12
+ "per_token.throughput.value": 50.7351680288393
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.02228686428070068,
21
+ "prefill.throughput.value": 314.0863565118783,
22
+ "decode.latency.mean": 2.625386474609375,
23
+ "decode.throughput.value": 48.37383037820975,
24
+ "per_token.latency.mean": 0.02067133874217356,
25
+ "per_token.throughput.value": 48.37616046414087
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "cea9ec086a14da1320940c5e48d7bd5dbcf32734",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014213151931762695,
34
+ "prefill.throughput.value": 492.501595255365,
35
+ "decode.latency.mean": 1.5640379028320313,
36
+ "decode.throughput.value": 81.20007818866719,
37
+ "per_token.latency.mean": 0.01231400713207215,
38
+ "per_token.throughput.value": 81.20833367031875
39
+ }
40
+ }
41
+ ]
2024-09-12/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "cea9ec086a14da1320940c5e48d7bd5dbcf32734": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020966336250305175,
7
+ "prefill.throughput.value": 333.8685365163936,
8
+ "decode.latency.mean": 2.5033509521484376,
9
+ "decode.throughput.value": 50.731999798512255,
10
+ "per_token.latency.mean": 0.019710193911875326,
11
+ "per_token.throughput.value": 50.7351680288393
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "cea9ec086a14da1320940c5e48d7bd5dbcf32734": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.02228686428070068,
19
+ "prefill.throughput.value": 314.0863565118783,
20
+ "decode.latency.mean": 2.625386474609375,
21
+ "decode.throughput.value": 48.37383037820975,
22
+ "per_token.latency.mean": 0.02067133874217356,
23
+ "per_token.throughput.value": 48.37616046414087
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "cea9ec086a14da1320940c5e48d7bd5dbcf32734": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014213151931762695,
31
+ "prefill.throughput.value": 492.501595255365,
32
+ "decode.latency.mean": 1.5640379028320313,
33
+ "decode.throughput.value": 81.20007818866719,
34
+ "per_token.latency.mean": 0.01231400713207215,
35
+ "per_token.throughput.value": 81.20833367031875
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }