hf-transformers-bot commited on
Commit
29ac9c1
1 Parent(s): cfd12a5

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/multirun.yaml +232 -0
  31. 2024-05-31/summaries.json +21 -21
  32. 2024-05-31/summary.json +21 -21
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 8d2efea701bb524efb9917bf10657f4fd8021e9a
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a
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/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a
88
+ - hydra.run.dir=_benchmark/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a/${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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1714.19648,
109
+ "max_global_vram": 6795.296768,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6148.849664,
112
+ "max_allocated": 5033.552896
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04570534324645996,
118
+ "mean": 0.02285267162322998,
119
+ "stdev": 0.003733311653137207,
120
+ "p50": 0.02285267162322998,
121
+ "p90": 0.025839320945739746,
122
+ "p95": 0.026212652111053465,
123
+ "p99": 0.026511317043304443,
124
+ "values": [
125
+ 0.026585983276367187,
126
+ 0.019119359970092772
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 306.3099192693263
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1714.200576,
140
+ "max_global_vram": 6795.296768,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6148.849664,
143
+ "max_allocated": 5033.553408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 4.715706298828125,
149
+ "mean": 2.3578531494140624,
150
+ "stdev": 0.001009887695312628,
151
+ "p50": 2.3578531494140624,
152
+ "p90": 2.3586610595703124,
153
+ "p95": 2.3587620483398437,
154
+ "p99": 2.358842839355469,
155
+ "values": [
156
+ 2.35684326171875,
157
+ 2.358863037109375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 53.86255714507076
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 4.714851266860956,
173
+ "mean": 0.01863577575834372,
174
+ "stdev": 0.0012413036969916396,
175
+ "p50": 0.018550783157348632,
176
+ "p90": 0.018630245971679688,
177
+ "p95": 0.01893580780029297,
178
+ "p99": 0.01997886192321777,
179
+ "values": [
180
+ 0.019871679306030274,
181
+ 0.0200949764251709,
182
+ 0.01862860870361328,
183
+ 0.018367488861083983,
184
+ 0.01838489532470703,
185
+ 0.018348031997680665,
186
+ 0.01836649513244629,
187
+ 0.018358240127563475,
188
+ 0.018363391876220703,
189
+ 0.01842790412902832,
190
+ 0.01841868782043457,
191
+ 0.018347007751464844,
192
+ 0.018358272552490236,
193
+ 0.01820364761352539,
194
+ 0.018223104476928712,
195
+ 0.018292736053466797,
196
+ 0.0183767032623291,
197
+ 0.018440191268920898,
198
+ 0.018386943817138672,
199
+ 0.018423807144165038,
200
+ 0.018536447525024414,
201
+ 0.018448383331298827,
202
+ 0.01841868782043457,
203
+ 0.01840025520324707,
204
+ 0.018408447265625,
205
+ 0.018288639068603514,
206
+ 0.01822822380065918,
207
+ 0.0182476806640625,
208
+ 0.018318336486816408,
209
+ 0.01843916893005371,
210
+ 0.01840742492675781,
211
+ 0.01840332794189453,
212
+ 0.01844121551513672,
213
+ 0.01839923286437988,
214
+ 0.018447359085083007,
215
+ 0.01842790412902832,
216
+ 0.018362367630004883,
217
+ 0.01844121551513672,
218
+ 0.018408447265625,
219
+ 0.01839820861816406,
220
+ 0.018255872726440428,
221
+ 0.01819443130493164,
222
+ 0.018242559432983398,
223
+ 0.018206720352172853,
224
+ 0.018249727249145507,
225
+ 0.018353151321411132,
226
+ 0.018258943557739257,
227
+ 0.018160640716552736,
228
+ 0.01826304054260254,
229
+ 0.018176000595092775,
230
+ 0.018335744857788085,
231
+ 0.018506752014160157,
232
+ 0.02190540885925293,
233
+ 0.019738624572753907,
234
+ 0.01860710334777832,
235
+ 0.01863577651977539,
236
+ 0.018694143295288086,
237
+ 0.0186060791015625,
238
+ 0.018332672119140626,
239
+ 0.01840025520324707,
240
+ 0.018550783157348632,
241
+ 0.018572288513183592,
242
+ 0.01858355140686035,
243
+ 0.018589696884155273,
244
+ 0.01861631965637207,
245
+ 0.018594816207885743,
246
+ 0.018546688079833985,
247
+ 0.01862451171875,
248
+ 0.018646015167236327,
249
+ 0.018589696884155273,
250
+ 0.018618368148803712,
251
+ 0.018559040069580077,
252
+ 0.018597824096679687,
253
+ 0.018532352447509767,
254
+ 0.018589696884155273,
255
+ 0.018587648391723634,
256
+ 0.018619392395019533,
257
+ 0.01862041664123535,
258
+ 0.018550783157348632,
259
+ 0.01859891128540039,
260
+ 0.018563072204589845,
261
+ 0.018557952880859374,
262
+ 0.01862144088745117,
263
+ 0.018535423278808593,
264
+ 0.018569215774536133,
265
+ 0.018911231994628908,
266
+ 0.018527231216430663,
267
+ 0.01860403251647949,
268
+ 0.018553855895996094,
269
+ 0.018528255462646484,
270
+ 0.018503679275512695,
271
+ 0.018579456329345705,
272
+ 0.018546688079833985,
273
+ 0.01860710334777832,
274
+ 0.018561023712158203,
275
+ 0.018565120697021483,
276
+ 0.018611200332641603,
277
+ 0.01863167953491211,
278
+ 0.018601984024047852,
279
+ 0.018534400939941405,
280
+ 0.018527296066284178,
281
+ 0.01855686378479004,
282
+ 0.018551807403564453,
283
+ 0.018539520263671876,
284
+ 0.018585599899291993,
285
+ 0.018566144943237304,
286
+ 0.018565120697021483,
287
+ 0.018559999465942383,
288
+ 0.018587648391723634,
289
+ 0.018601984024047852,
290
+ 0.01857535934448242,
291
+ 0.018584575653076172,
292
+ 0.018536447525024414,
293
+ 0.018592767715454102,
294
+ 0.01858355140686035,
295
+ 0.018546688079833985,
296
+ 0.018601984024047852,
297
+ 0.01862041664123535,
298
+ 0.018516992568969725,
299
+ 0.018544639587402344,
300
+ 0.018520063400268554,
301
+ 0.018561023712158203,
302
+ 0.018544639587402344,
303
+ 0.018570240020751954,
304
+ 0.018563072204589845,
305
+ 0.018559999465942383,
306
+ 0.03768115234375,
307
+ 0.01840127944946289,
308
+ 0.018375680923461913,
309
+ 0.01839308738708496,
310
+ 0.01840947151184082,
311
+ 0.018455551147460936,
312
+ 0.018404352188110353,
313
+ 0.018420736312866212,
314
+ 0.0184268798828125,
315
+ 0.018507776260375978,
316
+ 0.018877439498901367,
317
+ 0.01867580795288086,
318
+ 0.018562976837158202,
319
+ 0.01838489532470703,
320
+ 0.01823744010925293,
321
+ 0.018191360473632814,
322
+ 0.018192384719848635,
323
+ 0.01825279998779297,
324
+ 0.01839206314086914,
325
+ 0.01846784019470215,
326
+ 0.01843609619140625,
327
+ 0.018413568496704103,
328
+ 0.01843609619140625,
329
+ 0.018469888687133788,
330
+ 0.018367488861083983,
331
+ 0.01846886444091797,
332
+ 0.01848320007324219,
333
+ 0.018456575393676757,
334
+ 0.018488319396972656,
335
+ 0.018487295150756835,
336
+ 0.018491392135620118,
337
+ 0.01845964813232422,
338
+ 0.0184770565032959,
339
+ 0.018528352737426756,
340
+ 0.01862544059753418,
341
+ 0.019636224746704102,
342
+ 0.019417087554931642,
343
+ 0.019311616897583008,
344
+ 0.019309568405151366,
345
+ 0.018490367889404297,
346
+ 0.01849241638183594,
347
+ 0.01845452880859375,
348
+ 0.018431999206542968,
349
+ 0.01844428825378418,
350
+ 0.01844534492492676,
351
+ 0.018448352813720703,
352
+ 0.018509824752807616,
353
+ 0.01836851119995117,
354
+ 0.01841663932800293,
355
+ 0.018397184371948243,
356
+ 0.01840025520324707,
357
+ 0.018437120437622072,
358
+ 0.018415615081787108,
359
+ 0.018435136795043945,
360
+ 0.018466751098632814,
361
+ 0.01841663932800293,
362
+ 0.018453504562377928,
363
+ 0.01863065528869629,
364
+ 0.01861222457885742,
365
+ 0.018572288513183592,
366
+ 0.018581504821777343,
367
+ 0.018584575653076172,
368
+ 0.018601984024047852,
369
+ 0.018594816207885743,
370
+ 0.018540544509887694,
371
+ 0.018601984024047852,
372
+ 0.01859584045410156,
373
+ 0.018571264266967775,
374
+ 0.018579456329345705,
375
+ 0.018580480575561522,
376
+ 0.018597888946533202,
377
+ 0.018603008270263673,
378
+ 0.01859686470031738,
379
+ 0.018571264266967775,
380
+ 0.018597888946533202,
381
+ 0.018553855895996094,
382
+ 0.01858252716064453,
383
+ 0.01859891128540039,
384
+ 0.01861222457885742,
385
+ 0.01862348747253418,
386
+ 0.01857535934448242,
387
+ 0.018587648391723634,
388
+ 0.01859891128540039,
389
+ 0.018601984024047852,
390
+ 0.018579456329345705,
391
+ 0.01864908790588379,
392
+ 0.018593791961669923,
393
+ 0.01860710334777832,
394
+ 0.018675712585449217,
395
+ 0.018618368148803712,
396
+ 0.01864192008972168,
397
+ 0.018589696884155273,
398
+ 0.01857535934448242,
399
+ 0.018578432083129884,
400
+ 0.018553855895996094,
401
+ 0.018540544509887694,
402
+ 0.018542591094970702,
403
+ 0.018543615341186523,
404
+ 0.01861427116394043,
405
+ 0.018523136138916017,
406
+ 0.01856716728210449,
407
+ 0.018525184631347655,
408
+ 0.018549791336059572,
409
+ 0.018526176452636718,
410
+ 0.018552831649780274,
411
+ 0.01857535934448242,
412
+ 0.018556928634643553,
413
+ 0.018566144943237304,
414
+ 0.01860095977783203,
415
+ 0.018972671508789063,
416
+ 0.018766847610473633,
417
+ 0.018597888946533202,
418
+ 0.01859891128540039,
419
+ 0.018550783157348632,
420
+ 0.018590751647949218,
421
+ 0.018606048583984375,
422
+ 0.018557952880859374,
423
+ 0.018546688079833985,
424
+ 0.018566144943237304,
425
+ 0.018593791961669923,
426
+ 0.019168256759643554,
427
+ 0.019219455718994142,
428
+ 0.019418111801147463,
429
+ 0.01863372802734375,
430
+ 0.018603008270263673,
431
+ 0.018603008270263673,
432
+ 0.01861631965637207
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 53.6602292798181
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1714.19648,
6
+ "max_global_vram": 6795.296768,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6148.849664,
9
+ "max_allocated": 5033.552896
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04570534324645996,
15
+ "mean": 0.02285267162322998,
16
+ "stdev": 0.003733311653137207,
17
+ "p50": 0.02285267162322998,
18
+ "p90": 0.025839320945739746,
19
+ "p95": 0.026212652111053465,
20
+ "p99": 0.026511317043304443,
21
+ "values": [
22
+ 0.026585983276367187,
23
+ 0.019119359970092772
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 306.3099192693263
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1714.200576,
37
+ "max_global_vram": 6795.296768,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6148.849664,
40
+ "max_allocated": 5033.553408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 4.715706298828125,
46
+ "mean": 2.3578531494140624,
47
+ "stdev": 0.001009887695312628,
48
+ "p50": 2.3578531494140624,
49
+ "p90": 2.3586610595703124,
50
+ "p95": 2.3587620483398437,
51
+ "p99": 2.358842839355469,
52
+ "values": [
53
+ 2.35684326171875,
54
+ 2.358863037109375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 53.86255714507076
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 4.714851266860956,
70
+ "mean": 0.01863577575834372,
71
+ "stdev": 0.0012413036969916396,
72
+ "p50": 0.018550783157348632,
73
+ "p90": 0.018630245971679688,
74
+ "p95": 0.01893580780029297,
75
+ "p99": 0.01997886192321777,
76
+ "values": [
77
+ 0.019871679306030274,
78
+ 0.0200949764251709,
79
+ 0.01862860870361328,
80
+ 0.018367488861083983,
81
+ 0.01838489532470703,
82
+ 0.018348031997680665,
83
+ 0.01836649513244629,
84
+ 0.018358240127563475,
85
+ 0.018363391876220703,
86
+ 0.01842790412902832,
87
+ 0.01841868782043457,
88
+ 0.018347007751464844,
89
+ 0.018358272552490236,
90
+ 0.01820364761352539,
91
+ 0.018223104476928712,
92
+ 0.018292736053466797,
93
+ 0.0183767032623291,
94
+ 0.018440191268920898,
95
+ 0.018386943817138672,
96
+ 0.018423807144165038,
97
+ 0.018536447525024414,
98
+ 0.018448383331298827,
99
+ 0.01841868782043457,
100
+ 0.01840025520324707,
101
+ 0.018408447265625,
102
+ 0.018288639068603514,
103
+ 0.01822822380065918,
104
+ 0.0182476806640625,
105
+ 0.018318336486816408,
106
+ 0.01843916893005371,
107
+ 0.01840742492675781,
108
+ 0.01840332794189453,
109
+ 0.01844121551513672,
110
+ 0.01839923286437988,
111
+ 0.018447359085083007,
112
+ 0.01842790412902832,
113
+ 0.018362367630004883,
114
+ 0.01844121551513672,
115
+ 0.018408447265625,
116
+ 0.01839820861816406,
117
+ 0.018255872726440428,
118
+ 0.01819443130493164,
119
+ 0.018242559432983398,
120
+ 0.018206720352172853,
121
+ 0.018249727249145507,
122
+ 0.018353151321411132,
123
+ 0.018258943557739257,
124
+ 0.018160640716552736,
125
+ 0.01826304054260254,
126
+ 0.018176000595092775,
127
+ 0.018335744857788085,
128
+ 0.018506752014160157,
129
+ 0.02190540885925293,
130
+ 0.019738624572753907,
131
+ 0.01860710334777832,
132
+ 0.01863577651977539,
133
+ 0.018694143295288086,
134
+ 0.0186060791015625,
135
+ 0.018332672119140626,
136
+ 0.01840025520324707,
137
+ 0.018550783157348632,
138
+ 0.018572288513183592,
139
+ 0.01858355140686035,
140
+ 0.018589696884155273,
141
+ 0.01861631965637207,
142
+ 0.018594816207885743,
143
+ 0.018546688079833985,
144
+ 0.01862451171875,
145
+ 0.018646015167236327,
146
+ 0.018589696884155273,
147
+ 0.018618368148803712,
148
+ 0.018559040069580077,
149
+ 0.018597824096679687,
150
+ 0.018532352447509767,
151
+ 0.018589696884155273,
152
+ 0.018587648391723634,
153
+ 0.018619392395019533,
154
+ 0.01862041664123535,
155
+ 0.018550783157348632,
156
+ 0.01859891128540039,
157
+ 0.018563072204589845,
158
+ 0.018557952880859374,
159
+ 0.01862144088745117,
160
+ 0.018535423278808593,
161
+ 0.018569215774536133,
162
+ 0.018911231994628908,
163
+ 0.018527231216430663,
164
+ 0.01860403251647949,
165
+ 0.018553855895996094,
166
+ 0.018528255462646484,
167
+ 0.018503679275512695,
168
+ 0.018579456329345705,
169
+ 0.018546688079833985,
170
+ 0.01860710334777832,
171
+ 0.018561023712158203,
172
+ 0.018565120697021483,
173
+ 0.018611200332641603,
174
+ 0.01863167953491211,
175
+ 0.018601984024047852,
176
+ 0.018534400939941405,
177
+ 0.018527296066284178,
178
+ 0.01855686378479004,
179
+ 0.018551807403564453,
180
+ 0.018539520263671876,
181
+ 0.018585599899291993,
182
+ 0.018566144943237304,
183
+ 0.018565120697021483,
184
+ 0.018559999465942383,
185
+ 0.018587648391723634,
186
+ 0.018601984024047852,
187
+ 0.01857535934448242,
188
+ 0.018584575653076172,
189
+ 0.018536447525024414,
190
+ 0.018592767715454102,
191
+ 0.01858355140686035,
192
+ 0.018546688079833985,
193
+ 0.018601984024047852,
194
+ 0.01862041664123535,
195
+ 0.018516992568969725,
196
+ 0.018544639587402344,
197
+ 0.018520063400268554,
198
+ 0.018561023712158203,
199
+ 0.018544639587402344,
200
+ 0.018570240020751954,
201
+ 0.018563072204589845,
202
+ 0.018559999465942383,
203
+ 0.03768115234375,
204
+ 0.01840127944946289,
205
+ 0.018375680923461913,
206
+ 0.01839308738708496,
207
+ 0.01840947151184082,
208
+ 0.018455551147460936,
209
+ 0.018404352188110353,
210
+ 0.018420736312866212,
211
+ 0.0184268798828125,
212
+ 0.018507776260375978,
213
+ 0.018877439498901367,
214
+ 0.01867580795288086,
215
+ 0.018562976837158202,
216
+ 0.01838489532470703,
217
+ 0.01823744010925293,
218
+ 0.018191360473632814,
219
+ 0.018192384719848635,
220
+ 0.01825279998779297,
221
+ 0.01839206314086914,
222
+ 0.01846784019470215,
223
+ 0.01843609619140625,
224
+ 0.018413568496704103,
225
+ 0.01843609619140625,
226
+ 0.018469888687133788,
227
+ 0.018367488861083983,
228
+ 0.01846886444091797,
229
+ 0.01848320007324219,
230
+ 0.018456575393676757,
231
+ 0.018488319396972656,
232
+ 0.018487295150756835,
233
+ 0.018491392135620118,
234
+ 0.01845964813232422,
235
+ 0.0184770565032959,
236
+ 0.018528352737426756,
237
+ 0.01862544059753418,
238
+ 0.019636224746704102,
239
+ 0.019417087554931642,
240
+ 0.019311616897583008,
241
+ 0.019309568405151366,
242
+ 0.018490367889404297,
243
+ 0.01849241638183594,
244
+ 0.01845452880859375,
245
+ 0.018431999206542968,
246
+ 0.01844428825378418,
247
+ 0.01844534492492676,
248
+ 0.018448352813720703,
249
+ 0.018509824752807616,
250
+ 0.01836851119995117,
251
+ 0.01841663932800293,
252
+ 0.018397184371948243,
253
+ 0.01840025520324707,
254
+ 0.018437120437622072,
255
+ 0.018415615081787108,
256
+ 0.018435136795043945,
257
+ 0.018466751098632814,
258
+ 0.01841663932800293,
259
+ 0.018453504562377928,
260
+ 0.01863065528869629,
261
+ 0.01861222457885742,
262
+ 0.018572288513183592,
263
+ 0.018581504821777343,
264
+ 0.018584575653076172,
265
+ 0.018601984024047852,
266
+ 0.018594816207885743,
267
+ 0.018540544509887694,
268
+ 0.018601984024047852,
269
+ 0.01859584045410156,
270
+ 0.018571264266967775,
271
+ 0.018579456329345705,
272
+ 0.018580480575561522,
273
+ 0.018597888946533202,
274
+ 0.018603008270263673,
275
+ 0.01859686470031738,
276
+ 0.018571264266967775,
277
+ 0.018597888946533202,
278
+ 0.018553855895996094,
279
+ 0.01858252716064453,
280
+ 0.01859891128540039,
281
+ 0.01861222457885742,
282
+ 0.01862348747253418,
283
+ 0.01857535934448242,
284
+ 0.018587648391723634,
285
+ 0.01859891128540039,
286
+ 0.018601984024047852,
287
+ 0.018579456329345705,
288
+ 0.01864908790588379,
289
+ 0.018593791961669923,
290
+ 0.01860710334777832,
291
+ 0.018675712585449217,
292
+ 0.018618368148803712,
293
+ 0.01864192008972168,
294
+ 0.018589696884155273,
295
+ 0.01857535934448242,
296
+ 0.018578432083129884,
297
+ 0.018553855895996094,
298
+ 0.018540544509887694,
299
+ 0.018542591094970702,
300
+ 0.018543615341186523,
301
+ 0.01861427116394043,
302
+ 0.018523136138916017,
303
+ 0.01856716728210449,
304
+ 0.018525184631347655,
305
+ 0.018549791336059572,
306
+ 0.018526176452636718,
307
+ 0.018552831649780274,
308
+ 0.01857535934448242,
309
+ 0.018556928634643553,
310
+ 0.018566144943237304,
311
+ 0.01860095977783203,
312
+ 0.018972671508789063,
313
+ 0.018766847610473633,
314
+ 0.018597888946533202,
315
+ 0.01859891128540039,
316
+ 0.018550783157348632,
317
+ 0.018590751647949218,
318
+ 0.018606048583984375,
319
+ 0.018557952880859374,
320
+ 0.018546688079833985,
321
+ 0.018566144943237304,
322
+ 0.018593791961669923,
323
+ 0.019168256759643554,
324
+ 0.019219455718994142,
325
+ 0.019418111801147463,
326
+ 0.01863372802734375,
327
+ 0.018603008270263673,
328
+ 0.018603008270263673,
329
+ 0.01861631965637207
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 53.6602292798181
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02285267162322998,
7
+ "prefill.throughput.value": 306.3099192693263,
8
+ "decode.latency.mean": 2.3578531494140624,
9
+ "decode.throughput.value": 53.86255714507076,
10
+ "per_token.latency.mean": 0.01863577575834372,
11
+ "per_token.throughput.value": 53.6602292798181
12
+ }
13
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 8d2efea701bb524efb9917bf10657f4fd8021e9a
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a
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/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a
88
+ - hydra.run.dir=_benchmark/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a/${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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-05-31 13:50:25,114][process][ERROR] - + Sending traceback to main process
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 8d2efea701bb524efb9917bf10657f4fd8021e9a
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a
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/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a
88
+ - hydra.run.dir=_benchmark/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a/${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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1754.353664,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5035.912192
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04423503875732422,
118
+ "mean": 0.02211751937866211,
119
+ "stdev": 0.0006142559051513664,
120
+ "p50": 0.02211751937866211,
121
+ "p90": 0.0226089241027832,
122
+ "p95": 0.022670349693298338,
123
+ "p99": 0.022719490165710447,
124
+ "values": [
125
+ 0.022731775283813475,
126
+ 0.021503263473510743
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 316.4911887339976
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1754.374144,
140
+ "max_global_vram": 6793.199616,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6146.752512,
143
+ "max_allocated": 5035.912704
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 5.080131591796874,
149
+ "mean": 2.540065795898437,
150
+ "stdev": 0.014590698242187505,
151
+ "p50": 2.540065795898437,
152
+ "p90": 2.5517383544921874,
153
+ "p95": 2.553197424316406,
154
+ "p99": 2.554364680175781,
155
+ "values": [
156
+ 2.554656494140625,
157
+ 2.52547509765625
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 49.9987048386986
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 5.080565755844119,
173
+ "mean": 0.02008128757250639,
174
+ "stdev": 0.0014307271893491428,
175
+ "p50": 0.01983590316772461,
176
+ "p90": 0.02024304656982422,
177
+ "p95": 0.020713472366333006,
178
+ "p99": 0.022801776580810545,
179
+ "values": [
180
+ 0.02182655906677246,
181
+ 0.022700031280517577,
182
+ 0.022912000656127928,
183
+ 0.021621759414672852,
184
+ 0.021514240264892577,
185
+ 0.02024448013305664,
186
+ 0.020204544067382812,
187
+ 0.01987379264831543,
188
+ 0.01982259178161621,
189
+ 0.019803136825561524,
190
+ 0.02006630325317383,
191
+ 0.019801088333129883,
192
+ 0.019818496704101563,
193
+ 0.0198154239654541,
194
+ 0.019931135177612306,
195
+ 0.020262912750244142,
196
+ 0.020237312316894532,
197
+ 0.02022400093078613,
198
+ 0.020180992126464844,
199
+ 0.020185087203979494,
200
+ 0.020163583755493163,
201
+ 0.020199424743652345,
202
+ 0.020166656494140626,
203
+ 0.020132863998413086,
204
+ 0.02019430351257324,
205
+ 0.02021887969970703,
206
+ 0.02021990394592285,
207
+ 0.020175872802734376,
208
+ 0.020179967880249023,
209
+ 0.020118528366088868,
210
+ 0.020569087982177735,
211
+ 0.02032640075683594,
212
+ 0.020281343460083007,
213
+ 0.02019430351257324,
214
+ 0.020197376251220703,
215
+ 0.020179967880249023,
216
+ 0.02017791938781738,
217
+ 0.02020249557495117,
218
+ 0.020222976684570314,
219
+ 0.020184064865112306,
220
+ 0.020180992126464844,
221
+ 0.02020966339111328,
222
+ 0.020198400497436524,
223
+ 0.020176895141601564,
224
+ 0.020173824310302735,
225
+ 0.020123647689819335,
226
+ 0.02128281593322754,
227
+ 0.023988224029541014,
228
+ 0.02083430480957031,
229
+ 0.020541439056396483,
230
+ 0.020386816024780274,
231
+ 0.02104115104675293,
232
+ 0.020734975814819336,
233
+ 0.019946495056152345,
234
+ 0.019826688766479493,
235
+ 0.019922943115234376,
236
+ 0.019998720169067383,
237
+ 0.019788799285888673,
238
+ 0.019808256149291992,
239
+ 0.01979801559448242,
240
+ 0.019810304641723633,
241
+ 0.01984102439880371,
242
+ 0.01981644821166992,
243
+ 0.01979903984069824,
244
+ 0.019765247344970704,
245
+ 0.01979801559448242,
246
+ 0.01983078384399414,
247
+ 0.01981439971923828,
248
+ 0.01980620765686035,
249
+ 0.01984511947631836,
250
+ 0.019788799285888673,
251
+ 0.01987276840209961,
252
+ 0.02044211196899414,
253
+ 0.02039910316467285,
254
+ 0.01983283233642578,
255
+ 0.020150272369384766,
256
+ 0.019895296096801757,
257
+ 0.019870719909667968,
258
+ 0.019853311538696287,
259
+ 0.01983180809020996,
260
+ 0.01982156753540039,
261
+ 0.0198287353515625,
262
+ 0.019785728454589844,
263
+ 0.019810304641723633,
264
+ 0.019781631469726564,
265
+ 0.01978265571594238,
266
+ 0.019745792388916016,
267
+ 0.01983590316772461,
268
+ 0.019746816635131836,
269
+ 0.019808256149291992,
270
+ 0.019811328887939454,
271
+ 0.01981644821166992,
272
+ 0.019758079528808595,
273
+ 0.019762176513671875,
274
+ 0.019760128021240234,
275
+ 0.019765247344970704,
276
+ 0.019767295837402343,
277
+ 0.019793920516967774,
278
+ 0.019783679962158202,
279
+ 0.01979084777832031,
280
+ 0.01979801559448242,
281
+ 0.01985228729248047,
282
+ 0.01982771110534668,
283
+ 0.0198287353515625,
284
+ 0.019766271591186522,
285
+ 0.019780607223510743,
286
+ 0.019920896530151368,
287
+ 0.019810304641723633,
288
+ 0.019791872024536132,
289
+ 0.019780607223510743,
290
+ 0.019770368576049805,
291
+ 0.01988812828063965,
292
+ 0.019777536392211914,
293
+ 0.01983078384399414,
294
+ 0.019812351226806642,
295
+ 0.019794944763183595,
296
+ 0.019811328887939454,
297
+ 0.019801088333129883,
298
+ 0.01982464027404785,
299
+ 0.01983180809020996,
300
+ 0.019834880828857423,
301
+ 0.01984614372253418,
302
+ 0.01983795166015625,
303
+ 0.01982259178161621,
304
+ 0.01985638427734375,
305
+ 0.01992192077636719,
306
+ 0.04149555206298828,
307
+ 0.01983283233642578,
308
+ 0.019939327239990236,
309
+ 0.019801088333129883,
310
+ 0.019778560638427735,
311
+ 0.01984614372253418,
312
+ 0.019817472457885742,
313
+ 0.01982259178161621,
314
+ 0.019808256149291992,
315
+ 0.01982464027404785,
316
+ 0.019771392822265626,
317
+ 0.0202608642578125,
318
+ 0.019914751052856446,
319
+ 0.0198287353515625,
320
+ 0.019826688766479493,
321
+ 0.0198656005859375,
322
+ 0.01983692741394043,
323
+ 0.01980723190307617,
324
+ 0.019786752700805665,
325
+ 0.019801088333129883,
326
+ 0.019769344329833984,
327
+ 0.019786752700805665,
328
+ 0.01982464027404785,
329
+ 0.019811328887939454,
330
+ 0.019787776947021486,
331
+ 0.019931135177612306,
332
+ 0.01988812828063965,
333
+ 0.01984511947631836,
334
+ 0.019808256149291992,
335
+ 0.01980620765686035,
336
+ 0.019826688766479493,
337
+ 0.01985536003112793,
338
+ 0.01980620765686035,
339
+ 0.019796991348266603,
340
+ 0.01983897590637207,
341
+ 0.0198604793548584,
342
+ 0.019834880828857423,
343
+ 0.019809280395507813,
344
+ 0.01979903984069824,
345
+ 0.01983795166015625,
346
+ 0.01982054328918457,
347
+ 0.019812351226806642,
348
+ 0.01982771110534668,
349
+ 0.019819520950317384,
350
+ 0.01979801559448242,
351
+ 0.01979903984069824,
352
+ 0.02004787254333496,
353
+ 0.019923967361450197,
354
+ 0.01987379264831543,
355
+ 0.01983795166015625,
356
+ 0.019802112579345704,
357
+ 0.01983283233642578,
358
+ 0.019780607223510743,
359
+ 0.01983897590637207,
360
+ 0.019804159164428712,
361
+ 0.01984614372253418,
362
+ 0.019811328887939454,
363
+ 0.01982156753540039,
364
+ 0.01982156753540039,
365
+ 0.0198656005859375,
366
+ 0.01987174415588379,
367
+ 0.01985740852355957,
368
+ 0.019761152267456054,
369
+ 0.019792896270751953,
370
+ 0.019876863479614256,
371
+ 0.019813375473022463,
372
+ 0.019773439407348634,
373
+ 0.019795967102050782,
374
+ 0.019773439407348634,
375
+ 0.019802112579345704,
376
+ 0.01985024070739746,
377
+ 0.020447231292724608,
378
+ 0.019977216720581056,
379
+ 0.019796991348266603,
380
+ 0.01978265571594238,
381
+ 0.019985408782958985,
382
+ 0.019955711364746095,
383
+ 0.019899391174316407,
384
+ 0.019908607482910155,
385
+ 0.019917823791503905,
386
+ 0.01985228729248047,
387
+ 0.01983078384399414,
388
+ 0.01982156753540039,
389
+ 0.01991372871398926,
390
+ 0.01984511947631836,
391
+ 0.01986355209350586,
392
+ 0.019854335784912108,
393
+ 0.019809280395507813,
394
+ 0.01979084777832031,
395
+ 0.01984819221496582,
396
+ 0.01985638427734375,
397
+ 0.019805183410644533,
398
+ 0.019765247344970704,
399
+ 0.01982156753540039,
400
+ 0.019791872024536132,
401
+ 0.01979903984069824,
402
+ 0.01980620765686035,
403
+ 0.019792896270751953,
404
+ 0.019755008697509766,
405
+ 0.02069196891784668,
406
+ 0.020699136734008788,
407
+ 0.02007961654663086,
408
+ 0.01985228729248047,
409
+ 0.01984511947631836,
410
+ 0.019854335784912108,
411
+ 0.019819520950317384,
412
+ 0.019771392822265626,
413
+ 0.019800064086914062,
414
+ 0.01987379264831543,
415
+ 0.019870719909667968,
416
+ 0.01986764717102051,
417
+ 0.019903488159179687,
418
+ 0.01983897590637207,
419
+ 0.01985536003112793,
420
+ 0.019834880828857423,
421
+ 0.019893247604370116,
422
+ 0.01978982353210449,
423
+ 0.019791872024536132,
424
+ 0.019784704208374023,
425
+ 0.020237312316894532,
426
+ 0.021776384353637695,
427
+ 0.020741119384765624,
428
+ 0.019945472717285157,
429
+ 0.01987379264831543,
430
+ 0.01984511947631836,
431
+ 0.019795967102050782,
432
+ 0.01983795166015625
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 49.797603683994645
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1754.353664,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5035.912192
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04423503875732422,
15
+ "mean": 0.02211751937866211,
16
+ "stdev": 0.0006142559051513664,
17
+ "p50": 0.02211751937866211,
18
+ "p90": 0.0226089241027832,
19
+ "p95": 0.022670349693298338,
20
+ "p99": 0.022719490165710447,
21
+ "values": [
22
+ 0.022731775283813475,
23
+ 0.021503263473510743
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 316.4911887339976
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1754.374144,
37
+ "max_global_vram": 6793.199616,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6146.752512,
40
+ "max_allocated": 5035.912704
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 5.080131591796874,
46
+ "mean": 2.540065795898437,
47
+ "stdev": 0.014590698242187505,
48
+ "p50": 2.540065795898437,
49
+ "p90": 2.5517383544921874,
50
+ "p95": 2.553197424316406,
51
+ "p99": 2.554364680175781,
52
+ "values": [
53
+ 2.554656494140625,
54
+ 2.52547509765625
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 49.9987048386986
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 5.080565755844119,
70
+ "mean": 0.02008128757250639,
71
+ "stdev": 0.0014307271893491428,
72
+ "p50": 0.01983590316772461,
73
+ "p90": 0.02024304656982422,
74
+ "p95": 0.020713472366333006,
75
+ "p99": 0.022801776580810545,
76
+ "values": [
77
+ 0.02182655906677246,
78
+ 0.022700031280517577,
79
+ 0.022912000656127928,
80
+ 0.021621759414672852,
81
+ 0.021514240264892577,
82
+ 0.02024448013305664,
83
+ 0.020204544067382812,
84
+ 0.01987379264831543,
85
+ 0.01982259178161621,
86
+ 0.019803136825561524,
87
+ 0.02006630325317383,
88
+ 0.019801088333129883,
89
+ 0.019818496704101563,
90
+ 0.0198154239654541,
91
+ 0.019931135177612306,
92
+ 0.020262912750244142,
93
+ 0.020237312316894532,
94
+ 0.02022400093078613,
95
+ 0.020180992126464844,
96
+ 0.020185087203979494,
97
+ 0.020163583755493163,
98
+ 0.020199424743652345,
99
+ 0.020166656494140626,
100
+ 0.020132863998413086,
101
+ 0.02019430351257324,
102
+ 0.02021887969970703,
103
+ 0.02021990394592285,
104
+ 0.020175872802734376,
105
+ 0.020179967880249023,
106
+ 0.020118528366088868,
107
+ 0.020569087982177735,
108
+ 0.02032640075683594,
109
+ 0.020281343460083007,
110
+ 0.02019430351257324,
111
+ 0.020197376251220703,
112
+ 0.020179967880249023,
113
+ 0.02017791938781738,
114
+ 0.02020249557495117,
115
+ 0.020222976684570314,
116
+ 0.020184064865112306,
117
+ 0.020180992126464844,
118
+ 0.02020966339111328,
119
+ 0.020198400497436524,
120
+ 0.020176895141601564,
121
+ 0.020173824310302735,
122
+ 0.020123647689819335,
123
+ 0.02128281593322754,
124
+ 0.023988224029541014,
125
+ 0.02083430480957031,
126
+ 0.020541439056396483,
127
+ 0.020386816024780274,
128
+ 0.02104115104675293,
129
+ 0.020734975814819336,
130
+ 0.019946495056152345,
131
+ 0.019826688766479493,
132
+ 0.019922943115234376,
133
+ 0.019998720169067383,
134
+ 0.019788799285888673,
135
+ 0.019808256149291992,
136
+ 0.01979801559448242,
137
+ 0.019810304641723633,
138
+ 0.01984102439880371,
139
+ 0.01981644821166992,
140
+ 0.01979903984069824,
141
+ 0.019765247344970704,
142
+ 0.01979801559448242,
143
+ 0.01983078384399414,
144
+ 0.01981439971923828,
145
+ 0.01980620765686035,
146
+ 0.01984511947631836,
147
+ 0.019788799285888673,
148
+ 0.01987276840209961,
149
+ 0.02044211196899414,
150
+ 0.02039910316467285,
151
+ 0.01983283233642578,
152
+ 0.020150272369384766,
153
+ 0.019895296096801757,
154
+ 0.019870719909667968,
155
+ 0.019853311538696287,
156
+ 0.01983180809020996,
157
+ 0.01982156753540039,
158
+ 0.0198287353515625,
159
+ 0.019785728454589844,
160
+ 0.019810304641723633,
161
+ 0.019781631469726564,
162
+ 0.01978265571594238,
163
+ 0.019745792388916016,
164
+ 0.01983590316772461,
165
+ 0.019746816635131836,
166
+ 0.019808256149291992,
167
+ 0.019811328887939454,
168
+ 0.01981644821166992,
169
+ 0.019758079528808595,
170
+ 0.019762176513671875,
171
+ 0.019760128021240234,
172
+ 0.019765247344970704,
173
+ 0.019767295837402343,
174
+ 0.019793920516967774,
175
+ 0.019783679962158202,
176
+ 0.01979084777832031,
177
+ 0.01979801559448242,
178
+ 0.01985228729248047,
179
+ 0.01982771110534668,
180
+ 0.0198287353515625,
181
+ 0.019766271591186522,
182
+ 0.019780607223510743,
183
+ 0.019920896530151368,
184
+ 0.019810304641723633,
185
+ 0.019791872024536132,
186
+ 0.019780607223510743,
187
+ 0.019770368576049805,
188
+ 0.01988812828063965,
189
+ 0.019777536392211914,
190
+ 0.01983078384399414,
191
+ 0.019812351226806642,
192
+ 0.019794944763183595,
193
+ 0.019811328887939454,
194
+ 0.019801088333129883,
195
+ 0.01982464027404785,
196
+ 0.01983180809020996,
197
+ 0.019834880828857423,
198
+ 0.01984614372253418,
199
+ 0.01983795166015625,
200
+ 0.01982259178161621,
201
+ 0.01985638427734375,
202
+ 0.01992192077636719,
203
+ 0.04149555206298828,
204
+ 0.01983283233642578,
205
+ 0.019939327239990236,
206
+ 0.019801088333129883,
207
+ 0.019778560638427735,
208
+ 0.01984614372253418,
209
+ 0.019817472457885742,
210
+ 0.01982259178161621,
211
+ 0.019808256149291992,
212
+ 0.01982464027404785,
213
+ 0.019771392822265626,
214
+ 0.0202608642578125,
215
+ 0.019914751052856446,
216
+ 0.0198287353515625,
217
+ 0.019826688766479493,
218
+ 0.0198656005859375,
219
+ 0.01983692741394043,
220
+ 0.01980723190307617,
221
+ 0.019786752700805665,
222
+ 0.019801088333129883,
223
+ 0.019769344329833984,
224
+ 0.019786752700805665,
225
+ 0.01982464027404785,
226
+ 0.019811328887939454,
227
+ 0.019787776947021486,
228
+ 0.019931135177612306,
229
+ 0.01988812828063965,
230
+ 0.01984511947631836,
231
+ 0.019808256149291992,
232
+ 0.01980620765686035,
233
+ 0.019826688766479493,
234
+ 0.01985536003112793,
235
+ 0.01980620765686035,
236
+ 0.019796991348266603,
237
+ 0.01983897590637207,
238
+ 0.0198604793548584,
239
+ 0.019834880828857423,
240
+ 0.019809280395507813,
241
+ 0.01979903984069824,
242
+ 0.01983795166015625,
243
+ 0.01982054328918457,
244
+ 0.019812351226806642,
245
+ 0.01982771110534668,
246
+ 0.019819520950317384,
247
+ 0.01979801559448242,
248
+ 0.01979903984069824,
249
+ 0.02004787254333496,
250
+ 0.019923967361450197,
251
+ 0.01987379264831543,
252
+ 0.01983795166015625,
253
+ 0.019802112579345704,
254
+ 0.01983283233642578,
255
+ 0.019780607223510743,
256
+ 0.01983897590637207,
257
+ 0.019804159164428712,
258
+ 0.01984614372253418,
259
+ 0.019811328887939454,
260
+ 0.01982156753540039,
261
+ 0.01982156753540039,
262
+ 0.0198656005859375,
263
+ 0.01987174415588379,
264
+ 0.01985740852355957,
265
+ 0.019761152267456054,
266
+ 0.019792896270751953,
267
+ 0.019876863479614256,
268
+ 0.019813375473022463,
269
+ 0.019773439407348634,
270
+ 0.019795967102050782,
271
+ 0.019773439407348634,
272
+ 0.019802112579345704,
273
+ 0.01985024070739746,
274
+ 0.020447231292724608,
275
+ 0.019977216720581056,
276
+ 0.019796991348266603,
277
+ 0.01978265571594238,
278
+ 0.019985408782958985,
279
+ 0.019955711364746095,
280
+ 0.019899391174316407,
281
+ 0.019908607482910155,
282
+ 0.019917823791503905,
283
+ 0.01985228729248047,
284
+ 0.01983078384399414,
285
+ 0.01982156753540039,
286
+ 0.01991372871398926,
287
+ 0.01984511947631836,
288
+ 0.01986355209350586,
289
+ 0.019854335784912108,
290
+ 0.019809280395507813,
291
+ 0.01979084777832031,
292
+ 0.01984819221496582,
293
+ 0.01985638427734375,
294
+ 0.019805183410644533,
295
+ 0.019765247344970704,
296
+ 0.01982156753540039,
297
+ 0.019791872024536132,
298
+ 0.01979903984069824,
299
+ 0.01980620765686035,
300
+ 0.019792896270751953,
301
+ 0.019755008697509766,
302
+ 0.02069196891784668,
303
+ 0.020699136734008788,
304
+ 0.02007961654663086,
305
+ 0.01985228729248047,
306
+ 0.01984511947631836,
307
+ 0.019854335784912108,
308
+ 0.019819520950317384,
309
+ 0.019771392822265626,
310
+ 0.019800064086914062,
311
+ 0.01987379264831543,
312
+ 0.019870719909667968,
313
+ 0.01986764717102051,
314
+ 0.019903488159179687,
315
+ 0.01983897590637207,
316
+ 0.01985536003112793,
317
+ 0.019834880828857423,
318
+ 0.019893247604370116,
319
+ 0.01978982353210449,
320
+ 0.019791872024536132,
321
+ 0.019784704208374023,
322
+ 0.020237312316894532,
323
+ 0.021776384353637695,
324
+ 0.020741119384765624,
325
+ 0.019945472717285157,
326
+ 0.01987379264831543,
327
+ 0.01984511947631836,
328
+ 0.019795967102050782,
329
+ 0.01983795166015625
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 49.797603683994645
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02211751937866211,
7
+ "prefill.throughput.value": 316.4911887339976,
8
+ "decode.latency.mean": 2.540065795898437,
9
+ "decode.throughput.value": 49.9987048386986,
10
+ "per_token.latency.mean": 0.02008128757250639,
11
+ "per_token.throughput.value": 49.797603683994645
12
+ }
13
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 8d2efea701bb524efb9917bf10657f4fd8021e9a
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a
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/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a
88
+ - hydra.run.dir=_benchmark/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a/${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/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1919.750144,
109
+ "max_global_vram": 6094.848,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 5379.19488,
112
+ "max_allocated": 5020.227584
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.02803692817687988,
118
+ "mean": 0.01401846408843994,
119
+ "stdev": 9.251213073730499e-05,
120
+ "p50": 0.01401846408843994,
121
+ "p90": 0.014092473793029785,
122
+ "p95": 0.014101725006103516,
123
+ "p99": 0.014109125976562501,
124
+ "values": [
125
+ 0.014110976219177247,
126
+ 0.013925951957702637
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 499.34143682490986
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2263.63392,
140
+ "max_global_vram": 8907.128832,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 5379.19488,
143
+ "max_allocated": 5026.065408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 3.14997119140625,
149
+ "mean": 1.574985595703125,
150
+ "stdev": 0.01575048828124992,
151
+ "p50": 1.574985595703125,
152
+ "p90": 1.587585986328125,
153
+ "p95": 1.58916103515625,
154
+ "p99": 1.59042107421875,
155
+ "values": [
156
+ 1.590736083984375,
157
+ 1.559235107421875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 80.63565809521138
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 3.151008768081665,
173
+ "mean": 0.012454580110994724,
174
+ "stdev": 0.0009175521016498226,
175
+ "p50": 0.012283904075622559,
176
+ "p90": 0.012717874908447266,
177
+ "p95": 0.012736921882629393,
178
+ "p99": 0.01276338180541992,
179
+ "values": [
180
+ 0.012737536430358886,
181
+ 0.012743680000305176,
182
+ 0.012715007781982422,
183
+ 0.01275699234008789,
184
+ 0.012677120208740235,
185
+ 0.012742655754089355,
186
+ 0.012718079566955566,
187
+ 0.012744704246520995,
188
+ 0.01267199993133545,
189
+ 0.012713983535766601,
190
+ 0.01267302417755127,
191
+ 0.012750847816467285,
192
+ 0.012683263778686523,
193
+ 0.012703743934631348,
194
+ 0.012641280174255372,
195
+ 0.012732416152954102,
196
+ 0.012684288024902344,
197
+ 0.012736512184143066,
198
+ 0.012675071716308594,
199
+ 0.01273855972290039,
200
+ 0.012654591560363769,
201
+ 0.012716032028198243,
202
+ 0.012670975685119629,
203
+ 0.012749823570251465,
204
+ 0.012717056274414062,
205
+ 0.012736512184143066,
206
+ 0.01267404842376709,
207
+ 0.012727295875549317,
208
+ 0.012693504333496093,
209
+ 0.012729344367980957,
210
+ 0.012711935997009278,
211
+ 0.012717056274414062,
212
+ 0.012685312271118163,
213
+ 0.012675071716308594,
214
+ 0.01268019199371338,
215
+ 0.01264844799041748,
216
+ 0.012676095962524414,
217
+ 0.012720128059387208,
218
+ 0.012679167747497559,
219
+ 0.012699647903442383,
220
+ 0.012637184143066407,
221
+ 0.012721152305603027,
222
+ 0.012660736083984376,
223
+ 0.012727295875549317,
224
+ 0.012704768180847169,
225
+ 0.01273036766052246,
226
+ 0.012711935997009278,
227
+ 0.01273036766052246,
228
+ 0.012691455841064453,
229
+ 0.012734463691711426,
230
+ 0.012684288024902344,
231
+ 0.012697600364685058,
232
+ 0.012690431594848632,
233
+ 0.012732416152954102,
234
+ 0.012698623657226562,
235
+ 0.012770303726196289,
236
+ 0.012666879653930664,
237
+ 0.012741663932800292,
238
+ 0.012686304092407227,
239
+ 0.012744704246520995,
240
+ 0.01266380786895752,
241
+ 0.012710911750793457,
242
+ 0.012659711837768555,
243
+ 0.012809215545654297,
244
+ 0.012623871803283691,
245
+ 0.012613632202148438,
246
+ 0.0124518404006958,
247
+ 0.012706815719604492,
248
+ 0.012385279655456542,
249
+ 0.012508159637451171,
250
+ 0.012546048164367676,
251
+ 0.012670975685119629,
252
+ 0.012707839965820313,
253
+ 0.012709919929504394,
254
+ 0.012486623764038087,
255
+ 0.012506112098693848,
256
+ 0.01236787223815918,
257
+ 0.012420096397399903,
258
+ 0.012408831596374511,
259
+ 0.012299263954162597,
260
+ 0.012286975860595703,
261
+ 0.012283904075622559,
262
+ 0.012249088287353516,
263
+ 0.01229312038421631,
264
+ 0.01225830364227295,
265
+ 0.012279808044433594,
266
+ 0.01224396800994873,
267
+ 0.01229312038421631,
268
+ 0.01224294376373291,
269
+ 0.012296192169189453,
270
+ 0.012259327888488769,
271
+ 0.012303359985351562,
272
+ 0.012232704162597656,
273
+ 0.012279808044433594,
274
+ 0.012237824440002442,
275
+ 0.012288000106811523,
276
+ 0.012233728408813477,
277
+ 0.012282879829406738,
278
+ 0.012231679916381836,
279
+ 0.012298239707946777,
280
+ 0.012239871978759765,
281
+ 0.012282879829406738,
282
+ 0.012237824440002442,
283
+ 0.012270591735839843,
284
+ 0.012246015548706055,
285
+ 0.012297216415405274,
286
+ 0.012241920471191407,
287
+ 0.012290047645568849,
288
+ 0.012241920471191407,
289
+ 0.012290047645568849,
290
+ 0.012238847732543945,
291
+ 0.01227673625946045,
292
+ 0.012253184318542481,
293
+ 0.01226956844329834,
294
+ 0.012231679916381836,
295
+ 0.012269632339477539,
296
+ 0.012232640266418456,
297
+ 0.01227673625946045,
298
+ 0.01223475170135498,
299
+ 0.012272640228271485,
300
+ 0.012237824440002442,
301
+ 0.012311552047729492,
302
+ 0.012240896224975586,
303
+ 0.012291071891784668,
304
+ 0.012254207611083985,
305
+ 0.012281855583190919,
306
+ 0.026678272247314453,
307
+ 0.01226956844329834,
308
+ 0.012288000106811523,
309
+ 0.01225216007232666,
310
+ 0.012288000106811523,
311
+ 0.01225216007232666,
312
+ 0.012292096138000488,
313
+ 0.01226137638092041,
314
+ 0.012285951614379884,
315
+ 0.01224396800994873,
316
+ 0.012280832290649414,
317
+ 0.01225216007232666,
318
+ 0.012272640228271485,
319
+ 0.012246015548706055,
320
+ 0.012274687767028808,
321
+ 0.012253184318542481,
322
+ 0.012299263954162597,
323
+ 0.01225216007232666,
324
+ 0.012285951614379884,
325
+ 0.0122357759475708,
326
+ 0.012278783798217773,
327
+ 0.012238847732543945,
328
+ 0.012290047645568849,
329
+ 0.012248064041137695,
330
+ 0.012291071891784668,
331
+ 0.012256256103515625,
332
+ 0.012274687767028808,
333
+ 0.012247039794921874,
334
+ 0.012274687767028808,
335
+ 0.01225113582611084,
336
+ 0.012306431770324706,
337
+ 0.012267519950866699,
338
+ 0.012290047645568849,
339
+ 0.012249088287353516,
340
+ 0.012272640228271485,
341
+ 0.012240896224975586,
342
+ 0.01246617603302002,
343
+ 0.012249088287353516,
344
+ 0.012434432029724121,
345
+ 0.01225113582611084,
346
+ 0.012273664474487305,
347
+ 0.01225216007232666,
348
+ 0.01227673625946045,
349
+ 0.012228639602661132,
350
+ 0.012280799865722657,
351
+ 0.012263423919677734,
352
+ 0.012300288200378418,
353
+ 0.012246015548706055,
354
+ 0.012277759552001954,
355
+ 0.01225830364227295,
356
+ 0.01228492832183838,
357
+ 0.012239871978759765,
358
+ 0.012270591735839843,
359
+ 0.01224396800994873,
360
+ 0.012281855583190919,
361
+ 0.012239871978759765,
362
+ 0.012283904075622559,
363
+ 0.01224294376373291,
364
+ 0.012667903900146485,
365
+ 0.012303359985351562,
366
+ 0.012308480262756348,
367
+ 0.01225216007232666,
368
+ 0.012289024353027344,
369
+ 0.012241920471191407,
370
+ 0.012278783798217773,
371
+ 0.012241920471191407,
372
+ 0.012281855583190919,
373
+ 0.012218367576599122,
374
+ 0.012283904075622559,
375
+ 0.012233728408813477,
376
+ 0.012278783798217773,
377
+ 0.012244992256164551,
378
+ 0.01226956844329834,
379
+ 0.01225113582611084,
380
+ 0.012316672325134278,
381
+ 0.01225113582611084,
382
+ 0.012280832290649414,
383
+ 0.012236831665039062,
384
+ 0.012272607803344727,
385
+ 0.012246015548706055,
386
+ 0.012267519950866699,
387
+ 0.012244992256164551,
388
+ 0.012297216415405274,
389
+ 0.012244992256164551,
390
+ 0.012286975860595703,
391
+ 0.012238847732543945,
392
+ 0.012300288200378418,
393
+ 0.01225216007232666,
394
+ 0.012318719863891601,
395
+ 0.012249088287353516,
396
+ 0.012306431770324706,
397
+ 0.01227673625946045,
398
+ 0.012616703987121582,
399
+ 0.012327936172485352,
400
+ 0.012294143676757812,
401
+ 0.012249088287353516,
402
+ 0.012274687767028808,
403
+ 0.012239871978759765,
404
+ 0.012291071891784668,
405
+ 0.012232704162597656,
406
+ 0.012270591735839843,
407
+ 0.012264448165893555,
408
+ 0.012288000106811523,
409
+ 0.012241920471191407,
410
+ 0.012283904075622559,
411
+ 0.012232704162597656,
412
+ 0.012288000106811523,
413
+ 0.012222463607788087,
414
+ 0.012279808044433594,
415
+ 0.012223487854003906,
416
+ 0.012262399673461915,
417
+ 0.012222463607788087,
418
+ 0.01226956844329834,
419
+ 0.01223475170135498,
420
+ 0.012263423919677734,
421
+ 0.012221440315246582,
422
+ 0.012263423919677734,
423
+ 0.012238847732543945,
424
+ 0.012282879829406738,
425
+ 0.012237824440002442,
426
+ 0.012320768356323243,
427
+ 0.012221440315246582,
428
+ 0.012271615982055664,
429
+ 0.012249088287353516,
430
+ 0.012275712013244629,
431
+ 0.012236800193786621,
432
+ 0.012282879829406738
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 80.29174738032432
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1919.750144,
6
+ "max_global_vram": 6094.848,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 5379.19488,
9
+ "max_allocated": 5020.227584
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.02803692817687988,
15
+ "mean": 0.01401846408843994,
16
+ "stdev": 9.251213073730499e-05,
17
+ "p50": 0.01401846408843994,
18
+ "p90": 0.014092473793029785,
19
+ "p95": 0.014101725006103516,
20
+ "p99": 0.014109125976562501,
21
+ "values": [
22
+ 0.014110976219177247,
23
+ 0.013925951957702637
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 499.34143682490986
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2263.63392,
37
+ "max_global_vram": 8907.128832,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 5379.19488,
40
+ "max_allocated": 5026.065408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 3.14997119140625,
46
+ "mean": 1.574985595703125,
47
+ "stdev": 0.01575048828124992,
48
+ "p50": 1.574985595703125,
49
+ "p90": 1.587585986328125,
50
+ "p95": 1.58916103515625,
51
+ "p99": 1.59042107421875,
52
+ "values": [
53
+ 1.590736083984375,
54
+ 1.559235107421875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 80.63565809521138
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 3.151008768081665,
70
+ "mean": 0.012454580110994724,
71
+ "stdev": 0.0009175521016498226,
72
+ "p50": 0.012283904075622559,
73
+ "p90": 0.012717874908447266,
74
+ "p95": 0.012736921882629393,
75
+ "p99": 0.01276338180541992,
76
+ "values": [
77
+ 0.012737536430358886,
78
+ 0.012743680000305176,
79
+ 0.012715007781982422,
80
+ 0.01275699234008789,
81
+ 0.012677120208740235,
82
+ 0.012742655754089355,
83
+ 0.012718079566955566,
84
+ 0.012744704246520995,
85
+ 0.01267199993133545,
86
+ 0.012713983535766601,
87
+ 0.01267302417755127,
88
+ 0.012750847816467285,
89
+ 0.012683263778686523,
90
+ 0.012703743934631348,
91
+ 0.012641280174255372,
92
+ 0.012732416152954102,
93
+ 0.012684288024902344,
94
+ 0.012736512184143066,
95
+ 0.012675071716308594,
96
+ 0.01273855972290039,
97
+ 0.012654591560363769,
98
+ 0.012716032028198243,
99
+ 0.012670975685119629,
100
+ 0.012749823570251465,
101
+ 0.012717056274414062,
102
+ 0.012736512184143066,
103
+ 0.01267404842376709,
104
+ 0.012727295875549317,
105
+ 0.012693504333496093,
106
+ 0.012729344367980957,
107
+ 0.012711935997009278,
108
+ 0.012717056274414062,
109
+ 0.012685312271118163,
110
+ 0.012675071716308594,
111
+ 0.01268019199371338,
112
+ 0.01264844799041748,
113
+ 0.012676095962524414,
114
+ 0.012720128059387208,
115
+ 0.012679167747497559,
116
+ 0.012699647903442383,
117
+ 0.012637184143066407,
118
+ 0.012721152305603027,
119
+ 0.012660736083984376,
120
+ 0.012727295875549317,
121
+ 0.012704768180847169,
122
+ 0.01273036766052246,
123
+ 0.012711935997009278,
124
+ 0.01273036766052246,
125
+ 0.012691455841064453,
126
+ 0.012734463691711426,
127
+ 0.012684288024902344,
128
+ 0.012697600364685058,
129
+ 0.012690431594848632,
130
+ 0.012732416152954102,
131
+ 0.012698623657226562,
132
+ 0.012770303726196289,
133
+ 0.012666879653930664,
134
+ 0.012741663932800292,
135
+ 0.012686304092407227,
136
+ 0.012744704246520995,
137
+ 0.01266380786895752,
138
+ 0.012710911750793457,
139
+ 0.012659711837768555,
140
+ 0.012809215545654297,
141
+ 0.012623871803283691,
142
+ 0.012613632202148438,
143
+ 0.0124518404006958,
144
+ 0.012706815719604492,
145
+ 0.012385279655456542,
146
+ 0.012508159637451171,
147
+ 0.012546048164367676,
148
+ 0.012670975685119629,
149
+ 0.012707839965820313,
150
+ 0.012709919929504394,
151
+ 0.012486623764038087,
152
+ 0.012506112098693848,
153
+ 0.01236787223815918,
154
+ 0.012420096397399903,
155
+ 0.012408831596374511,
156
+ 0.012299263954162597,
157
+ 0.012286975860595703,
158
+ 0.012283904075622559,
159
+ 0.012249088287353516,
160
+ 0.01229312038421631,
161
+ 0.01225830364227295,
162
+ 0.012279808044433594,
163
+ 0.01224396800994873,
164
+ 0.01229312038421631,
165
+ 0.01224294376373291,
166
+ 0.012296192169189453,
167
+ 0.012259327888488769,
168
+ 0.012303359985351562,
169
+ 0.012232704162597656,
170
+ 0.012279808044433594,
171
+ 0.012237824440002442,
172
+ 0.012288000106811523,
173
+ 0.012233728408813477,
174
+ 0.012282879829406738,
175
+ 0.012231679916381836,
176
+ 0.012298239707946777,
177
+ 0.012239871978759765,
178
+ 0.012282879829406738,
179
+ 0.012237824440002442,
180
+ 0.012270591735839843,
181
+ 0.012246015548706055,
182
+ 0.012297216415405274,
183
+ 0.012241920471191407,
184
+ 0.012290047645568849,
185
+ 0.012241920471191407,
186
+ 0.012290047645568849,
187
+ 0.012238847732543945,
188
+ 0.01227673625946045,
189
+ 0.012253184318542481,
190
+ 0.01226956844329834,
191
+ 0.012231679916381836,
192
+ 0.012269632339477539,
193
+ 0.012232640266418456,
194
+ 0.01227673625946045,
195
+ 0.01223475170135498,
196
+ 0.012272640228271485,
197
+ 0.012237824440002442,
198
+ 0.012311552047729492,
199
+ 0.012240896224975586,
200
+ 0.012291071891784668,
201
+ 0.012254207611083985,
202
+ 0.012281855583190919,
203
+ 0.026678272247314453,
204
+ 0.01226956844329834,
205
+ 0.012288000106811523,
206
+ 0.01225216007232666,
207
+ 0.012288000106811523,
208
+ 0.01225216007232666,
209
+ 0.012292096138000488,
210
+ 0.01226137638092041,
211
+ 0.012285951614379884,
212
+ 0.01224396800994873,
213
+ 0.012280832290649414,
214
+ 0.01225216007232666,
215
+ 0.012272640228271485,
216
+ 0.012246015548706055,
217
+ 0.012274687767028808,
218
+ 0.012253184318542481,
219
+ 0.012299263954162597,
220
+ 0.01225216007232666,
221
+ 0.012285951614379884,
222
+ 0.0122357759475708,
223
+ 0.012278783798217773,
224
+ 0.012238847732543945,
225
+ 0.012290047645568849,
226
+ 0.012248064041137695,
227
+ 0.012291071891784668,
228
+ 0.012256256103515625,
229
+ 0.012274687767028808,
230
+ 0.012247039794921874,
231
+ 0.012274687767028808,
232
+ 0.01225113582611084,
233
+ 0.012306431770324706,
234
+ 0.012267519950866699,
235
+ 0.012290047645568849,
236
+ 0.012249088287353516,
237
+ 0.012272640228271485,
238
+ 0.012240896224975586,
239
+ 0.01246617603302002,
240
+ 0.012249088287353516,
241
+ 0.012434432029724121,
242
+ 0.01225113582611084,
243
+ 0.012273664474487305,
244
+ 0.01225216007232666,
245
+ 0.01227673625946045,
246
+ 0.012228639602661132,
247
+ 0.012280799865722657,
248
+ 0.012263423919677734,
249
+ 0.012300288200378418,
250
+ 0.012246015548706055,
251
+ 0.012277759552001954,
252
+ 0.01225830364227295,
253
+ 0.01228492832183838,
254
+ 0.012239871978759765,
255
+ 0.012270591735839843,
256
+ 0.01224396800994873,
257
+ 0.012281855583190919,
258
+ 0.012239871978759765,
259
+ 0.012283904075622559,
260
+ 0.01224294376373291,
261
+ 0.012667903900146485,
262
+ 0.012303359985351562,
263
+ 0.012308480262756348,
264
+ 0.01225216007232666,
265
+ 0.012289024353027344,
266
+ 0.012241920471191407,
267
+ 0.012278783798217773,
268
+ 0.012241920471191407,
269
+ 0.012281855583190919,
270
+ 0.012218367576599122,
271
+ 0.012283904075622559,
272
+ 0.012233728408813477,
273
+ 0.012278783798217773,
274
+ 0.012244992256164551,
275
+ 0.01226956844329834,
276
+ 0.01225113582611084,
277
+ 0.012316672325134278,
278
+ 0.01225113582611084,
279
+ 0.012280832290649414,
280
+ 0.012236831665039062,
281
+ 0.012272607803344727,
282
+ 0.012246015548706055,
283
+ 0.012267519950866699,
284
+ 0.012244992256164551,
285
+ 0.012297216415405274,
286
+ 0.012244992256164551,
287
+ 0.012286975860595703,
288
+ 0.012238847732543945,
289
+ 0.012300288200378418,
290
+ 0.01225216007232666,
291
+ 0.012318719863891601,
292
+ 0.012249088287353516,
293
+ 0.012306431770324706,
294
+ 0.01227673625946045,
295
+ 0.012616703987121582,
296
+ 0.012327936172485352,
297
+ 0.012294143676757812,
298
+ 0.012249088287353516,
299
+ 0.012274687767028808,
300
+ 0.012239871978759765,
301
+ 0.012291071891784668,
302
+ 0.012232704162597656,
303
+ 0.012270591735839843,
304
+ 0.012264448165893555,
305
+ 0.012288000106811523,
306
+ 0.012241920471191407,
307
+ 0.012283904075622559,
308
+ 0.012232704162597656,
309
+ 0.012288000106811523,
310
+ 0.012222463607788087,
311
+ 0.012279808044433594,
312
+ 0.012223487854003906,
313
+ 0.012262399673461915,
314
+ 0.012222463607788087,
315
+ 0.01226956844329834,
316
+ 0.01223475170135498,
317
+ 0.012263423919677734,
318
+ 0.012221440315246582,
319
+ 0.012263423919677734,
320
+ 0.012238847732543945,
321
+ 0.012282879829406738,
322
+ 0.012237824440002442,
323
+ 0.012320768356323243,
324
+ 0.012221440315246582,
325
+ 0.012271615982055664,
326
+ 0.012249088287353516,
327
+ 0.012275712013244629,
328
+ 0.012236800193786621,
329
+ 0.012282879829406738
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 80.29174738032432
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/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": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.01401846408843994,
7
+ "prefill.throughput.value": 499.34143682490986,
8
+ "decode.latency.mean": 1.574985595703125,
9
+ "decode.throughput.value": 80.63565809521138,
10
+ "per_token.latency.mean": 0.012454580110994724,
11
+ "per_token.throughput.value": 80.29174738032432
12
+ }
13
+ }
2024-05-31/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbky12gmj/commit=8d2efea701bb524efb9917bf10657f4fd8021e9a
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/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a
88
+ - hydra.run.dir=_benchmark/tmpbky12gmj/commit\=8d2efea701bb524efb9917bf10657f4fd8021e9a/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.3.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model: google/gemma-2b
150
+ processor: null
151
+ device: cuda
152
+ device_ids: '0'
153
+ seed: 42
154
+ inter_op_num_threads: null
155
+ intra_op_num_threads: null
156
+ model_kwargs: {}
157
+ processor_kwargs: {}
158
+ hub_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ latency: true
192
+ memory: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ start_method: spawn
206
+ environment:
207
+ cpu: ' AMD EPYC 7R32'
208
+ cpu_count: 16
209
+ cpu_ram_mb: 66697.29792
210
+ system: Linux
211
+ machine: x86_64
212
+ platform: Linux-5.10.216-204.855.amzn2.x86_64-x86_64-with-glibc2.29
213
+ processor: x86_64
214
+ python_version: 3.8.10
215
+ gpu:
216
+ - NVIDIA A10G
217
+ gpu_count: 1
218
+ gpu_vram_mb: 24146608128
219
+ optimum_benchmark_version: 0.2.1
220
+ optimum_benchmark_commit: null
221
+ transformers_version: 4.42.0.dev0
222
+ transformers_commit: 8d2efea701bb524efb9917bf10657f4fd8021e9a
223
+ accelerate_version: 0.31.0.dev0
224
+ accelerate_commit: null
225
+ diffusers_version: null
226
+ diffusers_commit: null
227
+ optimum_version: 1.21.0.dev0
228
+ optimum_commit: null
229
+ timm_version: 0.9.16
230
+ timm_commit: null
231
+ peft_version: 0.11.2.dev0
232
+ peft_commit: null
2024-05-31/summaries.json CHANGED
@@ -1,41 +1,41 @@
1
  [
2
  {
3
  "model": "google/gemma-2b",
4
- "commit": "6aafe5f36d73e730c988ee090233eb757b33821c",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
- "prefill.latency.mean": 0.0200676155090332,
8
- "prefill.throughput.value": 348.8207154880475,
9
- "decode.latency.mean": 2.4733016357421875,
10
- "decode.throughput.value": 51.34836696207896,
11
- "per_token.latency.mean": 0.019552757866297784,
12
- "per_token.throughput.value": 51.14368043822889
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
- "commit": "6aafe5f36d73e730c988ee090233eb757b33821c",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
- "prefill.latency.mean": 0.025525072097778323,
21
- "prefill.throughput.value": 274.2401656373489,
22
- "decode.latency.mean": 2.5864923095703123,
23
- "decode.throughput.value": 49.101247867656795,
24
- "per_token.latency.mean": 0.020449494561659017,
25
- "per_token.throughput.value": 48.90096412822403
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
- "commit": "6aafe5f36d73e730c988ee090233eb757b33821c",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
- "prefill.latency.mean": 0.013976719856262207,
34
- "prefill.throughput.value": 500.8328185717825,
35
- "decode.latency.mean": 1.5733544921874998,
36
- "decode.throughput.value": 80.71925343628482,
37
- "per_token.latency.mean": 0.012441685001840704,
38
- "per_token.throughput.value": 80.37496527617067
39
  }
40
  }
41
  ]
 
1
  [
2
  {
3
  "model": "google/gemma-2b",
4
+ "commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
+ "prefill.latency.mean": 0.02285267162322998,
8
+ "prefill.throughput.value": 306.3099192693263,
9
+ "decode.latency.mean": 2.3578531494140624,
10
+ "decode.throughput.value": 53.86255714507076,
11
+ "per_token.latency.mean": 0.01863577575834372,
12
+ "per_token.throughput.value": 53.6602292798181
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
+ "commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
+ "prefill.latency.mean": 0.02211751937866211,
21
+ "prefill.throughput.value": 316.4911887339976,
22
+ "decode.latency.mean": 2.540065795898437,
23
+ "decode.throughput.value": 49.9987048386986,
24
+ "per_token.latency.mean": 0.02008128757250639,
25
+ "per_token.throughput.value": 49.797603683994645
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
+ "commit": "8d2efea701bb524efb9917bf10657f4fd8021e9a",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
+ "prefill.latency.mean": 0.01401846408843994,
34
+ "prefill.throughput.value": 499.34143682490986,
35
+ "decode.latency.mean": 1.574985595703125,
36
+ "decode.throughput.value": 80.63565809521138,
37
+ "per_token.latency.mean": 0.012454580110994724,
38
+ "per_token.throughput.value": 80.29174738032432
39
  }
40
  }
41
  ]
2024-05-31/summary.json CHANGED
@@ -1,38 +1,38 @@
1
  {
2
  "google/gemma-2b": {
3
  "backend.cache_implementation=null,backend.torch_compile=False": {
4
- "6aafe5f36d73e730c988ee090233eb757b33821c": {
5
  "metrics": {
6
- "prefill.latency.mean": 0.0200676155090332,
7
- "prefill.throughput.value": 348.8207154880475,
8
- "decode.latency.mean": 2.4733016357421875,
9
- "decode.throughput.value": 51.34836696207896,
10
- "per_token.latency.mean": 0.019552757866297784,
11
- "per_token.throughput.value": 51.14368043822889
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
- "6aafe5f36d73e730c988ee090233eb757b33821c": {
17
  "metrics": {
18
- "prefill.latency.mean": 0.025525072097778323,
19
- "prefill.throughput.value": 274.2401656373489,
20
- "decode.latency.mean": 2.5864923095703123,
21
- "decode.throughput.value": 49.101247867656795,
22
- "per_token.latency.mean": 0.020449494561659017,
23
- "per_token.throughput.value": 48.90096412822403
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
- "6aafe5f36d73e730c988ee090233eb757b33821c": {
29
  "metrics": {
30
- "prefill.latency.mean": 0.013976719856262207,
31
- "prefill.throughput.value": 500.8328185717825,
32
- "decode.latency.mean": 1.5733544921874998,
33
- "decode.throughput.value": 80.71925343628482,
34
- "per_token.latency.mean": 0.012441685001840704,
35
- "per_token.throughput.value": 80.37496527617067
36
  }
37
  }
38
  }
 
1
  {
2
  "google/gemma-2b": {
3
  "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "8d2efea701bb524efb9917bf10657f4fd8021e9a": {
5
  "metrics": {
6
+ "prefill.latency.mean": 0.02285267162322998,
7
+ "prefill.throughput.value": 306.3099192693263,
8
+ "decode.latency.mean": 2.3578531494140624,
9
+ "decode.throughput.value": 53.86255714507076,
10
+ "per_token.latency.mean": 0.01863577575834372,
11
+ "per_token.throughput.value": 53.6602292798181
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "8d2efea701bb524efb9917bf10657f4fd8021e9a": {
17
  "metrics": {
18
+ "prefill.latency.mean": 0.02211751937866211,
19
+ "prefill.throughput.value": 316.4911887339976,
20
+ "decode.latency.mean": 2.540065795898437,
21
+ "decode.throughput.value": 49.9987048386986,
22
+ "per_token.latency.mean": 0.02008128757250639,
23
+ "per_token.throughput.value": 49.797603683994645
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "8d2efea701bb524efb9917bf10657f4fd8021e9a": {
29
  "metrics": {
30
+ "prefill.latency.mean": 0.01401846408843994,
31
+ "prefill.throughput.value": 499.34143682490986,
32
+ "decode.latency.mean": 1.574985595703125,
33
+ "decode.throughput.value": 80.63565809521138,
34
+ "per_token.latency.mean": 0.012454580110994724,
35
+ "per_token.throughput.value": 80.29174738032432
36
  }
37
  }
38
  }