hf-transformers-bot commited on
Commit
a9f5e37
1 Parent(s): b378100

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/multirun.yaml +232 -0
  31. 2024-05-31/summaries.json +21 -21
  32. 2024-05-31/summary.json +21 -21
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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: 48681e6e5ef08e5af8b3feb5683f044321605f1f
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f
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/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f
88
+ - hydra.run.dir=_benchmark/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f/${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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
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": 1705.181184,
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.038181695938110355,
118
+ "mean": 0.019090847969055177,
119
+ "stdev": 0.00028950405120849697,
120
+ "p50": 0.019090847969055177,
121
+ "p90": 0.019322451210021973,
122
+ "p95": 0.019351401615142823,
123
+ "p99": 0.019374561939239504,
124
+ "values": [
125
+ 0.019380352020263673,
126
+ 0.01880134391784668
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 366.66784059809555
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1705.312256,
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.671938232421875,
149
+ "mean": 2.3359691162109373,
150
+ "stdev": 0.010532592773437655,
151
+ "p50": 2.3359691162109373,
152
+ "p90": 2.3443951904296876,
153
+ "p95": 2.3454484497070314,
154
+ "p99": 2.3462910571289064,
155
+ "values": [
156
+ 2.346501708984375,
157
+ 2.3254365234375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 54.36715713348153
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.672020479202273,
173
+ "mean": 0.018466484107518857,
174
+ "stdev": 0.001207257285035993,
175
+ "p50": 0.018326528549194337,
176
+ "p90": 0.018824806594848635,
177
+ "p95": 0.018910591888427735,
178
+ "p99": 0.01941487632751465,
179
+ "values": [
180
+ 0.018897920608520507,
181
+ 0.019398656845092774,
182
+ 0.018861183166503905,
183
+ 0.01865305519104004,
184
+ 0.01863270378112793,
185
+ 0.018736127853393555,
186
+ 0.018618368148803712,
187
+ 0.01863065528869629,
188
+ 0.01849241638183594,
189
+ 0.018534400939941405,
190
+ 0.018696191787719727,
191
+ 0.018696191787719727,
192
+ 0.018905088424682616,
193
+ 0.018931711196899414,
194
+ 0.018682912826538087,
195
+ 0.01891433525085449,
196
+ 0.018908096313476563,
197
+ 0.01888768005371094,
198
+ 0.018921472549438476,
199
+ 0.018711551666259766,
200
+ 0.018603008270263673,
201
+ 0.018791423797607423,
202
+ 0.018715648651123046,
203
+ 0.018526208877563476,
204
+ 0.018507776260375978,
205
+ 0.018537471771240235,
206
+ 0.018705408096313478,
207
+ 0.018584575653076172,
208
+ 0.018637823104858398,
209
+ 0.01860403251647949,
210
+ 0.018865152359008788,
211
+ 0.018925567626953126,
212
+ 0.018885631561279297,
213
+ 0.01859584045410156,
214
+ 0.0188590087890625,
215
+ 0.0192993278503418,
216
+ 0.01943244743347168,
217
+ 0.019290111541748048,
218
+ 0.018682880401611326,
219
+ 0.018950143814086915,
220
+ 0.01859174346923828,
221
+ 0.018516992568969725,
222
+ 0.018569215774536133,
223
+ 0.018721792221069337,
224
+ 0.01862553596496582,
225
+ 0.018585599899291993,
226
+ 0.018546688079833985,
227
+ 0.01848422431945801,
228
+ 0.01839820861816406,
229
+ 0.01836851119995117,
230
+ 0.01856716728210449,
231
+ 0.018577407836914063,
232
+ 0.018307071685791015,
233
+ 0.018147327423095702,
234
+ 0.018199552536010744,
235
+ 0.018102272033691406,
236
+ 0.018259967803955078,
237
+ 0.01823744010925293,
238
+ 0.018373632431030275,
239
+ 0.018273279190063475,
240
+ 0.018321407318115233,
241
+ 0.01844326400756836,
242
+ 0.018347007751464844,
243
+ 0.018099199295043944,
244
+ 0.018329599380493163,
245
+ 0.01835212707519531,
246
+ 0.01823641586303711,
247
+ 0.018215936660766603,
248
+ 0.01822208023071289,
249
+ 0.018305023193359374,
250
+ 0.01841868782043457,
251
+ 0.018268159866333008,
252
+ 0.01843916893005371,
253
+ 0.018214912414550782,
254
+ 0.01826521682739258,
255
+ 0.018380672454833984,
256
+ 0.018111488342285157,
257
+ 0.018366464614868162,
258
+ 0.018316287994384766,
259
+ 0.01843097686767578,
260
+ 0.018498559951782227,
261
+ 0.01877299118041992,
262
+ 0.018141183853149414,
263
+ 0.01820262336730957,
264
+ 0.018251775741577148,
265
+ 0.01828659248352051,
266
+ 0.018258943557739257,
267
+ 0.018380800247192384,
268
+ 0.018266111373901366,
269
+ 0.01828556823730469,
270
+ 0.018258943557739257,
271
+ 0.018284543991088868,
272
+ 0.018015264511108398,
273
+ 0.018199520111083986,
274
+ 0.018199552536010744,
275
+ 0.018128896713256838,
276
+ 0.018135040283203126,
277
+ 0.018339839935302735,
278
+ 0.018851839065551757,
279
+ 0.01862860870361328,
280
+ 0.01820467185974121,
281
+ 0.01823744010925293,
282
+ 0.018354175567626953,
283
+ 0.018317312240600587,
284
+ 0.018335744857788085,
285
+ 0.018350080490112306,
286
+ 0.01819545555114746,
287
+ 0.01823539161682129,
288
+ 0.018305023193359374,
289
+ 0.018239488601684572,
290
+ 0.018379776000976563,
291
+ 0.018440223693847655,
292
+ 0.01830396842956543,
293
+ 0.018307071685791015,
294
+ 0.018437120437622072,
295
+ 0.018225151062011717,
296
+ 0.018104320526123048,
297
+ 0.018268159866333008,
298
+ 0.01819647979736328,
299
+ 0.01827123260498047,
300
+ 0.018067455291748045,
301
+ 0.01819443130493164,
302
+ 0.01822003173828125,
303
+ 0.01840332794189453,
304
+ 0.018265087127685545,
305
+ 0.018264064788818358,
306
+ 0.03701964950561523,
307
+ 0.018035711288452147,
308
+ 0.017951744079589844,
309
+ 0.01785856056213379,
310
+ 0.017912832260131836,
311
+ 0.018139135360717772,
312
+ 0.017993728637695314,
313
+ 0.01788313674926758,
314
+ 0.018448383331298827,
315
+ 0.01799065589904785,
316
+ 0.018119680404663087,
317
+ 0.01823232078552246,
318
+ 0.01822719955444336,
319
+ 0.018207744598388673,
320
+ 0.018307071685791015,
321
+ 0.018123775482177733,
322
+ 0.018126848220825196,
323
+ 0.01806540870666504,
324
+ 0.018168832778930662,
325
+ 0.017925119400024413,
326
+ 0.01801523208618164,
327
+ 0.01805516815185547,
328
+ 0.018062335968017578,
329
+ 0.017905664443969727,
330
+ 0.017876991271972655,
331
+ 0.017949695587158202,
332
+ 0.018068479537963866,
333
+ 0.018159616470336915,
334
+ 0.01813811111450195,
335
+ 0.01814630317687988,
336
+ 0.01819647979736328,
337
+ 0.018158592224121094,
338
+ 0.018010112762451173,
339
+ 0.01823232078552246,
340
+ 0.01863270378112793,
341
+ 0.018158592224121094,
342
+ 0.018058240890502928,
343
+ 0.018340864181518556,
344
+ 0.01816985511779785,
345
+ 0.018135040283203126,
346
+ 0.018114559173583983,
347
+ 0.018111488342285157,
348
+ 0.017976320266723633,
349
+ 0.017920000076293945,
350
+ 0.017977344512939454,
351
+ 0.018285663604736328,
352
+ 0.018963359832763673,
353
+ 0.020100095748901366,
354
+ 0.018902015686035157,
355
+ 0.018390016555786134,
356
+ 0.018182144165039063,
357
+ 0.018284543991088868,
358
+ 0.018449407577514648,
359
+ 0.018336767196655272,
360
+ 0.01822003173828125,
361
+ 0.01837772750854492,
362
+ 0.018754560470581053,
363
+ 0.01879449653625488,
364
+ 0.018935808181762694,
365
+ 0.01845248031616211,
366
+ 0.018342912673950194,
367
+ 0.018329599380493163,
368
+ 0.018428928375244142,
369
+ 0.018894847869873048,
370
+ 0.018395135879516602,
371
+ 0.018120704650878908,
372
+ 0.018107391357421874,
373
+ 0.018131967544555663,
374
+ 0.018165760040283203,
375
+ 0.01824563217163086,
376
+ 0.01842790412902832,
377
+ 0.018528255462646484,
378
+ 0.01842278480529785,
379
+ 0.018344959259033202,
380
+ 0.018547712326049806,
381
+ 0.018382848739624022,
382
+ 0.018423807144165038,
383
+ 0.01860403251647949,
384
+ 0.01878835105895996,
385
+ 0.01862553596496582,
386
+ 0.018134016036987305,
387
+ 0.018122751235961913,
388
+ 0.018167808532714845,
389
+ 0.0182794246673584,
390
+ 0.01842995262145996,
391
+ 0.01860403251647949,
392
+ 0.01860403251647949,
393
+ 0.018233343124389647,
394
+ 0.018314239501953124,
395
+ 0.01866444778442383,
396
+ 0.01863884735107422,
397
+ 0.018513919830322266,
398
+ 0.018832384109497072,
399
+ 0.018465791702270508,
400
+ 0.018323455810546875,
401
+ 0.018164735794067383,
402
+ 0.018313215255737304,
403
+ 0.018085887908935547,
404
+ 0.018113536834716795,
405
+ 0.018295808792114256,
406
+ 0.01855897521972656,
407
+ 0.0188723201751709,
408
+ 0.018341888427734376,
409
+ 0.018309120178222657,
410
+ 0.018316287994384766,
411
+ 0.018295808792114256,
412
+ 0.018529279708862305,
413
+ 0.018694143295288086,
414
+ 0.018564096450805666,
415
+ 0.018052095413208007,
416
+ 0.018083839416503905,
417
+ 0.01807974433898926,
418
+ 0.018471935272216796,
419
+ 0.018116607666015624,
420
+ 0.018367488861083983,
421
+ 0.01877299118041992,
422
+ 0.018316287994384766,
423
+ 0.018143232345581056,
424
+ 0.018153472900390624,
425
+ 0.018173952102661133,
426
+ 0.01838489532470703,
427
+ 0.018324480056762696,
428
+ 0.018326528549194337,
429
+ 0.01866854476928711,
430
+ 0.018306047439575195,
431
+ 0.018387968063354493,
432
+ 0.018353151321411132
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 54.15215989018926
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": 1705.181184,
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.038181695938110355,
15
+ "mean": 0.019090847969055177,
16
+ "stdev": 0.00028950405120849697,
17
+ "p50": 0.019090847969055177,
18
+ "p90": 0.019322451210021973,
19
+ "p95": 0.019351401615142823,
20
+ "p99": 0.019374561939239504,
21
+ "values": [
22
+ 0.019380352020263673,
23
+ 0.01880134391784668
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 366.66784059809555
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1705.312256,
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.671938232421875,
46
+ "mean": 2.3359691162109373,
47
+ "stdev": 0.010532592773437655,
48
+ "p50": 2.3359691162109373,
49
+ "p90": 2.3443951904296876,
50
+ "p95": 2.3454484497070314,
51
+ "p99": 2.3462910571289064,
52
+ "values": [
53
+ 2.346501708984375,
54
+ 2.3254365234375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 54.36715713348153
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.672020479202273,
70
+ "mean": 0.018466484107518857,
71
+ "stdev": 0.001207257285035993,
72
+ "p50": 0.018326528549194337,
73
+ "p90": 0.018824806594848635,
74
+ "p95": 0.018910591888427735,
75
+ "p99": 0.01941487632751465,
76
+ "values": [
77
+ 0.018897920608520507,
78
+ 0.019398656845092774,
79
+ 0.018861183166503905,
80
+ 0.01865305519104004,
81
+ 0.01863270378112793,
82
+ 0.018736127853393555,
83
+ 0.018618368148803712,
84
+ 0.01863065528869629,
85
+ 0.01849241638183594,
86
+ 0.018534400939941405,
87
+ 0.018696191787719727,
88
+ 0.018696191787719727,
89
+ 0.018905088424682616,
90
+ 0.018931711196899414,
91
+ 0.018682912826538087,
92
+ 0.01891433525085449,
93
+ 0.018908096313476563,
94
+ 0.01888768005371094,
95
+ 0.018921472549438476,
96
+ 0.018711551666259766,
97
+ 0.018603008270263673,
98
+ 0.018791423797607423,
99
+ 0.018715648651123046,
100
+ 0.018526208877563476,
101
+ 0.018507776260375978,
102
+ 0.018537471771240235,
103
+ 0.018705408096313478,
104
+ 0.018584575653076172,
105
+ 0.018637823104858398,
106
+ 0.01860403251647949,
107
+ 0.018865152359008788,
108
+ 0.018925567626953126,
109
+ 0.018885631561279297,
110
+ 0.01859584045410156,
111
+ 0.0188590087890625,
112
+ 0.0192993278503418,
113
+ 0.01943244743347168,
114
+ 0.019290111541748048,
115
+ 0.018682880401611326,
116
+ 0.018950143814086915,
117
+ 0.01859174346923828,
118
+ 0.018516992568969725,
119
+ 0.018569215774536133,
120
+ 0.018721792221069337,
121
+ 0.01862553596496582,
122
+ 0.018585599899291993,
123
+ 0.018546688079833985,
124
+ 0.01848422431945801,
125
+ 0.01839820861816406,
126
+ 0.01836851119995117,
127
+ 0.01856716728210449,
128
+ 0.018577407836914063,
129
+ 0.018307071685791015,
130
+ 0.018147327423095702,
131
+ 0.018199552536010744,
132
+ 0.018102272033691406,
133
+ 0.018259967803955078,
134
+ 0.01823744010925293,
135
+ 0.018373632431030275,
136
+ 0.018273279190063475,
137
+ 0.018321407318115233,
138
+ 0.01844326400756836,
139
+ 0.018347007751464844,
140
+ 0.018099199295043944,
141
+ 0.018329599380493163,
142
+ 0.01835212707519531,
143
+ 0.01823641586303711,
144
+ 0.018215936660766603,
145
+ 0.01822208023071289,
146
+ 0.018305023193359374,
147
+ 0.01841868782043457,
148
+ 0.018268159866333008,
149
+ 0.01843916893005371,
150
+ 0.018214912414550782,
151
+ 0.01826521682739258,
152
+ 0.018380672454833984,
153
+ 0.018111488342285157,
154
+ 0.018366464614868162,
155
+ 0.018316287994384766,
156
+ 0.01843097686767578,
157
+ 0.018498559951782227,
158
+ 0.01877299118041992,
159
+ 0.018141183853149414,
160
+ 0.01820262336730957,
161
+ 0.018251775741577148,
162
+ 0.01828659248352051,
163
+ 0.018258943557739257,
164
+ 0.018380800247192384,
165
+ 0.018266111373901366,
166
+ 0.01828556823730469,
167
+ 0.018258943557739257,
168
+ 0.018284543991088868,
169
+ 0.018015264511108398,
170
+ 0.018199520111083986,
171
+ 0.018199552536010744,
172
+ 0.018128896713256838,
173
+ 0.018135040283203126,
174
+ 0.018339839935302735,
175
+ 0.018851839065551757,
176
+ 0.01862860870361328,
177
+ 0.01820467185974121,
178
+ 0.01823744010925293,
179
+ 0.018354175567626953,
180
+ 0.018317312240600587,
181
+ 0.018335744857788085,
182
+ 0.018350080490112306,
183
+ 0.01819545555114746,
184
+ 0.01823539161682129,
185
+ 0.018305023193359374,
186
+ 0.018239488601684572,
187
+ 0.018379776000976563,
188
+ 0.018440223693847655,
189
+ 0.01830396842956543,
190
+ 0.018307071685791015,
191
+ 0.018437120437622072,
192
+ 0.018225151062011717,
193
+ 0.018104320526123048,
194
+ 0.018268159866333008,
195
+ 0.01819647979736328,
196
+ 0.01827123260498047,
197
+ 0.018067455291748045,
198
+ 0.01819443130493164,
199
+ 0.01822003173828125,
200
+ 0.01840332794189453,
201
+ 0.018265087127685545,
202
+ 0.018264064788818358,
203
+ 0.03701964950561523,
204
+ 0.018035711288452147,
205
+ 0.017951744079589844,
206
+ 0.01785856056213379,
207
+ 0.017912832260131836,
208
+ 0.018139135360717772,
209
+ 0.017993728637695314,
210
+ 0.01788313674926758,
211
+ 0.018448383331298827,
212
+ 0.01799065589904785,
213
+ 0.018119680404663087,
214
+ 0.01823232078552246,
215
+ 0.01822719955444336,
216
+ 0.018207744598388673,
217
+ 0.018307071685791015,
218
+ 0.018123775482177733,
219
+ 0.018126848220825196,
220
+ 0.01806540870666504,
221
+ 0.018168832778930662,
222
+ 0.017925119400024413,
223
+ 0.01801523208618164,
224
+ 0.01805516815185547,
225
+ 0.018062335968017578,
226
+ 0.017905664443969727,
227
+ 0.017876991271972655,
228
+ 0.017949695587158202,
229
+ 0.018068479537963866,
230
+ 0.018159616470336915,
231
+ 0.01813811111450195,
232
+ 0.01814630317687988,
233
+ 0.01819647979736328,
234
+ 0.018158592224121094,
235
+ 0.018010112762451173,
236
+ 0.01823232078552246,
237
+ 0.01863270378112793,
238
+ 0.018158592224121094,
239
+ 0.018058240890502928,
240
+ 0.018340864181518556,
241
+ 0.01816985511779785,
242
+ 0.018135040283203126,
243
+ 0.018114559173583983,
244
+ 0.018111488342285157,
245
+ 0.017976320266723633,
246
+ 0.017920000076293945,
247
+ 0.017977344512939454,
248
+ 0.018285663604736328,
249
+ 0.018963359832763673,
250
+ 0.020100095748901366,
251
+ 0.018902015686035157,
252
+ 0.018390016555786134,
253
+ 0.018182144165039063,
254
+ 0.018284543991088868,
255
+ 0.018449407577514648,
256
+ 0.018336767196655272,
257
+ 0.01822003173828125,
258
+ 0.01837772750854492,
259
+ 0.018754560470581053,
260
+ 0.01879449653625488,
261
+ 0.018935808181762694,
262
+ 0.01845248031616211,
263
+ 0.018342912673950194,
264
+ 0.018329599380493163,
265
+ 0.018428928375244142,
266
+ 0.018894847869873048,
267
+ 0.018395135879516602,
268
+ 0.018120704650878908,
269
+ 0.018107391357421874,
270
+ 0.018131967544555663,
271
+ 0.018165760040283203,
272
+ 0.01824563217163086,
273
+ 0.01842790412902832,
274
+ 0.018528255462646484,
275
+ 0.01842278480529785,
276
+ 0.018344959259033202,
277
+ 0.018547712326049806,
278
+ 0.018382848739624022,
279
+ 0.018423807144165038,
280
+ 0.01860403251647949,
281
+ 0.01878835105895996,
282
+ 0.01862553596496582,
283
+ 0.018134016036987305,
284
+ 0.018122751235961913,
285
+ 0.018167808532714845,
286
+ 0.0182794246673584,
287
+ 0.01842995262145996,
288
+ 0.01860403251647949,
289
+ 0.01860403251647949,
290
+ 0.018233343124389647,
291
+ 0.018314239501953124,
292
+ 0.01866444778442383,
293
+ 0.01863884735107422,
294
+ 0.018513919830322266,
295
+ 0.018832384109497072,
296
+ 0.018465791702270508,
297
+ 0.018323455810546875,
298
+ 0.018164735794067383,
299
+ 0.018313215255737304,
300
+ 0.018085887908935547,
301
+ 0.018113536834716795,
302
+ 0.018295808792114256,
303
+ 0.01855897521972656,
304
+ 0.0188723201751709,
305
+ 0.018341888427734376,
306
+ 0.018309120178222657,
307
+ 0.018316287994384766,
308
+ 0.018295808792114256,
309
+ 0.018529279708862305,
310
+ 0.018694143295288086,
311
+ 0.018564096450805666,
312
+ 0.018052095413208007,
313
+ 0.018083839416503905,
314
+ 0.01807974433898926,
315
+ 0.018471935272216796,
316
+ 0.018116607666015624,
317
+ 0.018367488861083983,
318
+ 0.01877299118041992,
319
+ 0.018316287994384766,
320
+ 0.018143232345581056,
321
+ 0.018153472900390624,
322
+ 0.018173952102661133,
323
+ 0.01838489532470703,
324
+ 0.018324480056762696,
325
+ 0.018326528549194337,
326
+ 0.01866854476928711,
327
+ 0.018306047439575195,
328
+ 0.018387968063354493,
329
+ 0.018353151321411132
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 54.15215989018926
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019090847969055177,
7
+ "prefill.throughput.value": 366.66784059809555,
8
+ "decode.latency.mean": 2.3359691162109373,
9
+ "decode.throughput.value": 54.36715713348153,
10
+ "per_token.latency.mean": 0.018466484107518857,
11
+ "per_token.throughput.value": 54.15215989018926
12
+ }
13
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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: 48681e6e5ef08e5af8b3feb5683f044321605f1f
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f
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/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f
88
+ - hydra.run.dir=_benchmark/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f/${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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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 15:26:46,251][process][ERROR] - + Sending traceback to main process
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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: 48681e6e5ef08e5af8b3feb5683f044321605f1f
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f
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/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f
88
+ - hydra.run.dir=_benchmark/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f/${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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
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": 1761.93536,
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.043588544845581056,
118
+ "mean": 0.021794272422790528,
119
+ "stdev": 0.0004095678329467771,
120
+ "p50": 0.021794272422790528,
121
+ "p90": 0.02212192668914795,
122
+ "p95": 0.022162883472442628,
123
+ "p99": 0.02219564889907837,
124
+ "values": [
125
+ 0.022203840255737305,
126
+ 0.02138470458984375
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 321.1853033772312
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1761.951744,
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.105079345703125,
149
+ "mean": 2.5525396728515624,
150
+ "stdev": 0.012915405273437486,
151
+ "p50": 2.5525396728515624,
152
+ "p90": 2.5628719970703124,
153
+ "p95": 2.564163537597656,
154
+ "p99": 2.565196770019531,
155
+ "values": [
156
+ 2.565455078125,
157
+ 2.539624267578125
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 49.7543686982629
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.1058012218475355,
173
+ "mean": 0.020181032497421085,
174
+ "stdev": 0.0014170361689444676,
175
+ "p50": 0.019922943115234376,
176
+ "p90": 0.020541849136352538,
177
+ "p95": 0.0207728645324707,
178
+ "p99": 0.021574983978271484,
179
+ "values": [
180
+ 0.02147225570678711,
181
+ 0.021646335601806642,
182
+ 0.020923391342163086,
183
+ 0.020625408172607423,
184
+ 0.020570112228393556,
185
+ 0.02042572784423828,
186
+ 0.020533248901367186,
187
+ 0.020220928192138672,
188
+ 0.02039193534851074,
189
+ 0.02039910316467285,
190
+ 0.02063974380493164,
191
+ 0.020610048294067384,
192
+ 0.020404224395751954,
193
+ 0.02150912094116211,
194
+ 0.020775936126708985,
195
+ 0.020750335693359375,
196
+ 0.0204083194732666,
197
+ 0.020410367965698242,
198
+ 0.020470783233642577,
199
+ 0.02046156883239746,
200
+ 0.020215808868408205,
201
+ 0.020337663650512695,
202
+ 0.020405248641967775,
203
+ 0.020313087463378905,
204
+ 0.020371456146240235,
205
+ 0.020322303771972656,
206
+ 0.020560895919799805,
207
+ 0.020728832244873048,
208
+ 0.02083020782470703,
209
+ 0.020509695053100584,
210
+ 0.020770816802978515,
211
+ 0.020563968658447264,
212
+ 0.020411392211914063,
213
+ 0.02044825553894043,
214
+ 0.0206376953125,
215
+ 0.020535295486450195,
216
+ 0.020330495834350586,
217
+ 0.02086809539794922,
218
+ 0.020332544326782227,
219
+ 0.020362239837646484,
220
+ 0.02023423957824707,
221
+ 0.02020249557495117,
222
+ 0.02042470359802246,
223
+ 0.020092927932739257,
224
+ 0.02039910316467285,
225
+ 0.02069196891784668,
226
+ 0.02390425682067871,
227
+ 0.020922367095947265,
228
+ 0.020159488677978517,
229
+ 0.020011007308959963,
230
+ 0.019885055541992186,
231
+ 0.019894271850585937,
232
+ 0.01986662483215332,
233
+ 0.019826688766479493,
234
+ 0.01982169532775879,
235
+ 0.019912576675415038,
236
+ 0.020314111709594726,
237
+ 0.02029465675354004,
238
+ 0.019936256408691407,
239
+ 0.01983078384399414,
240
+ 0.01983795166015625,
241
+ 0.02027008056640625,
242
+ 0.01979801559448242,
243
+ 0.019785728454589844,
244
+ 0.019812351226806642,
245
+ 0.019761152267456054,
246
+ 0.019775487899780272,
247
+ 0.02007756805419922,
248
+ 0.019934207916259765,
249
+ 0.0198154239654541,
250
+ 0.019777536392211914,
251
+ 0.019786752700805665,
252
+ 0.02000486373901367,
253
+ 0.0198973445892334,
254
+ 0.019796991348266603,
255
+ 0.019752960205078125,
256
+ 0.01987583923339844,
257
+ 0.019964927673339843,
258
+ 0.020543487548828124,
259
+ 0.01981644821166992,
260
+ 0.019817472457885742,
261
+ 0.020248575210571287,
262
+ 0.01982464027404785,
263
+ 0.01980723190307617,
264
+ 0.020011007308959963,
265
+ 0.019876863479614256,
266
+ 0.019810304641723633,
267
+ 0.019800064086914062,
268
+ 0.01977446365356445,
269
+ 0.019818496704101563,
270
+ 0.01989836883544922,
271
+ 0.019796991348266603,
272
+ 0.01982156753540039,
273
+ 0.019781631469726564,
274
+ 0.01984819221496582,
275
+ 0.019963903427124022,
276
+ 0.019825664520263672,
277
+ 0.019989503860473632,
278
+ 0.019779584884643556,
279
+ 0.019793920516967774,
280
+ 0.019813375473022463,
281
+ 0.019833856582641602,
282
+ 0.019826688766479493,
283
+ 0.019809280395507813,
284
+ 0.01984000015258789,
285
+ 0.01979084777832031,
286
+ 0.02026188850402832,
287
+ 0.02046566390991211,
288
+ 0.020558847427368163,
289
+ 0.020340736389160157,
290
+ 0.02033459281921387,
291
+ 0.020114431381225584,
292
+ 0.02024038314819336,
293
+ 0.019895296096801757,
294
+ 0.0198154239654541,
295
+ 0.01988915252685547,
296
+ 0.019929088592529298,
297
+ 0.01984409523010254,
298
+ 0.01979903984069824,
299
+ 0.019793920516967774,
300
+ 0.019819520950317384,
301
+ 0.019869695663452147,
302
+ 0.019899391174316407,
303
+ 0.019903615951538087,
304
+ 0.019782527923583985,
305
+ 0.019781631469726564,
306
+ 0.04165836715698242,
307
+ 0.020165632247924805,
308
+ 0.01982259178161621,
309
+ 0.01984921646118164,
310
+ 0.020185087203979494,
311
+ 0.019910655975341796,
312
+ 0.019869695663452147,
313
+ 0.01983795166015625,
314
+ 0.01983590316772461,
315
+ 0.01983795166015625,
316
+ 0.019878911972045898,
317
+ 0.019894271850585937,
318
+ 0.020125696182250977,
319
+ 0.02030899238586426,
320
+ 0.0198973445892334,
321
+ 0.01986662483215332,
322
+ 0.01983897590637207,
323
+ 0.020141056060791016,
324
+ 0.019878911972045898,
325
+ 0.01987993621826172,
326
+ 0.019960832595825196,
327
+ 0.020928512573242186,
328
+ 0.02032640075683594,
329
+ 0.02011955261230469,
330
+ 0.01979084777832031,
331
+ 0.01986355209350586,
332
+ 0.019803136825561524,
333
+ 0.01988198471069336,
334
+ 0.01979084777832031,
335
+ 0.02004377555847168,
336
+ 0.019756032943725587,
337
+ 0.019833856582641602,
338
+ 0.019968000411987305,
339
+ 0.019909631729125975,
340
+ 0.01986662483215332,
341
+ 0.019939327239990236,
342
+ 0.019914751052856446,
343
+ 0.019886079788208007,
344
+ 0.019732479095458985,
345
+ 0.019779584884643556,
346
+ 0.019896320343017578,
347
+ 0.01985024070739746,
348
+ 0.01979903984069824,
349
+ 0.019927040100097656,
350
+ 0.019733503341674806,
351
+ 0.019612672805786133,
352
+ 0.019588096618652344,
353
+ 0.019796991348266603,
354
+ 0.019801088333129883,
355
+ 0.019861503601074217,
356
+ 0.019825664520263672,
357
+ 0.020396032333374024,
358
+ 0.019998720169067383,
359
+ 0.019842048645019532,
360
+ 0.019976192474365235,
361
+ 0.019887231826782228,
362
+ 0.019818368911743163,
363
+ 0.019893247604370116,
364
+ 0.01982975959777832,
365
+ 0.019886079788208007,
366
+ 0.020009983062744142,
367
+ 0.019912704467773438,
368
+ 0.01998028755187988,
369
+ 0.020382720947265624,
370
+ 0.020023296356201172,
371
+ 0.02082815933227539,
372
+ 0.020534271240234374,
373
+ 0.019932159423828123,
374
+ 0.019922943115234376,
375
+ 0.019817472457885742,
376
+ 0.019973119735717772,
377
+ 0.020082687377929686,
378
+ 0.021325824737548828,
379
+ 0.020512767791748047,
380
+ 0.020339712142944336,
381
+ 0.02043391990661621,
382
+ 0.02008576011657715,
383
+ 0.01982975959777832,
384
+ 0.01978265571594238,
385
+ 0.020380672454833985,
386
+ 0.020157440185546875,
387
+ 0.01985945510864258,
388
+ 0.019851264953613282,
389
+ 0.01967820739746094,
390
+ 0.01964236831665039,
391
+ 0.020281343460083007,
392
+ 0.020143104553222657,
393
+ 0.019941375732421874,
394
+ 0.019963903427124022,
395
+ 0.019802112579345704,
396
+ 0.020343807220458983,
397
+ 0.019957759857177734,
398
+ 0.019780607223510743,
399
+ 0.02043084716796875,
400
+ 0.02031001663208008,
401
+ 0.020156415939331054,
402
+ 0.020221952438354493,
403
+ 0.01981439971923828,
404
+ 0.019775487899780272,
405
+ 0.020314111709594726,
406
+ 0.02045132827758789,
407
+ 0.02030080032348633,
408
+ 0.019801088333129883,
409
+ 0.019793920516967774,
410
+ 0.02003660774230957,
411
+ 0.01999667167663574,
412
+ 0.020322303771972656,
413
+ 0.020180992126464844,
414
+ 0.020307968139648438,
415
+ 0.019842048645019532,
416
+ 0.01987481689453125,
417
+ 0.01985740852355957,
418
+ 0.01986662483215332,
419
+ 0.02029465675354004,
420
+ 0.019805183410644533,
421
+ 0.0198287353515625,
422
+ 0.019802112579345704,
423
+ 0.01982464027404785,
424
+ 0.020039680480957032,
425
+ 0.01979903984069824,
426
+ 0.020230144500732423,
427
+ 0.020279296875,
428
+ 0.019813375473022463,
429
+ 0.019810304641723633,
430
+ 0.01982464027404785,
431
+ 0.019776512145996093,
432
+ 0.019767295837402343
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 49.55147860387168
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": 1761.93536,
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.043588544845581056,
15
+ "mean": 0.021794272422790528,
16
+ "stdev": 0.0004095678329467771,
17
+ "p50": 0.021794272422790528,
18
+ "p90": 0.02212192668914795,
19
+ "p95": 0.022162883472442628,
20
+ "p99": 0.02219564889907837,
21
+ "values": [
22
+ 0.022203840255737305,
23
+ 0.02138470458984375
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 321.1853033772312
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1761.951744,
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.105079345703125,
46
+ "mean": 2.5525396728515624,
47
+ "stdev": 0.012915405273437486,
48
+ "p50": 2.5525396728515624,
49
+ "p90": 2.5628719970703124,
50
+ "p95": 2.564163537597656,
51
+ "p99": 2.565196770019531,
52
+ "values": [
53
+ 2.565455078125,
54
+ 2.539624267578125
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 49.7543686982629
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.1058012218475355,
70
+ "mean": 0.020181032497421085,
71
+ "stdev": 0.0014170361689444676,
72
+ "p50": 0.019922943115234376,
73
+ "p90": 0.020541849136352538,
74
+ "p95": 0.0207728645324707,
75
+ "p99": 0.021574983978271484,
76
+ "values": [
77
+ 0.02147225570678711,
78
+ 0.021646335601806642,
79
+ 0.020923391342163086,
80
+ 0.020625408172607423,
81
+ 0.020570112228393556,
82
+ 0.02042572784423828,
83
+ 0.020533248901367186,
84
+ 0.020220928192138672,
85
+ 0.02039193534851074,
86
+ 0.02039910316467285,
87
+ 0.02063974380493164,
88
+ 0.020610048294067384,
89
+ 0.020404224395751954,
90
+ 0.02150912094116211,
91
+ 0.020775936126708985,
92
+ 0.020750335693359375,
93
+ 0.0204083194732666,
94
+ 0.020410367965698242,
95
+ 0.020470783233642577,
96
+ 0.02046156883239746,
97
+ 0.020215808868408205,
98
+ 0.020337663650512695,
99
+ 0.020405248641967775,
100
+ 0.020313087463378905,
101
+ 0.020371456146240235,
102
+ 0.020322303771972656,
103
+ 0.020560895919799805,
104
+ 0.020728832244873048,
105
+ 0.02083020782470703,
106
+ 0.020509695053100584,
107
+ 0.020770816802978515,
108
+ 0.020563968658447264,
109
+ 0.020411392211914063,
110
+ 0.02044825553894043,
111
+ 0.0206376953125,
112
+ 0.020535295486450195,
113
+ 0.020330495834350586,
114
+ 0.02086809539794922,
115
+ 0.020332544326782227,
116
+ 0.020362239837646484,
117
+ 0.02023423957824707,
118
+ 0.02020249557495117,
119
+ 0.02042470359802246,
120
+ 0.020092927932739257,
121
+ 0.02039910316467285,
122
+ 0.02069196891784668,
123
+ 0.02390425682067871,
124
+ 0.020922367095947265,
125
+ 0.020159488677978517,
126
+ 0.020011007308959963,
127
+ 0.019885055541992186,
128
+ 0.019894271850585937,
129
+ 0.01986662483215332,
130
+ 0.019826688766479493,
131
+ 0.01982169532775879,
132
+ 0.019912576675415038,
133
+ 0.020314111709594726,
134
+ 0.02029465675354004,
135
+ 0.019936256408691407,
136
+ 0.01983078384399414,
137
+ 0.01983795166015625,
138
+ 0.02027008056640625,
139
+ 0.01979801559448242,
140
+ 0.019785728454589844,
141
+ 0.019812351226806642,
142
+ 0.019761152267456054,
143
+ 0.019775487899780272,
144
+ 0.02007756805419922,
145
+ 0.019934207916259765,
146
+ 0.0198154239654541,
147
+ 0.019777536392211914,
148
+ 0.019786752700805665,
149
+ 0.02000486373901367,
150
+ 0.0198973445892334,
151
+ 0.019796991348266603,
152
+ 0.019752960205078125,
153
+ 0.01987583923339844,
154
+ 0.019964927673339843,
155
+ 0.020543487548828124,
156
+ 0.01981644821166992,
157
+ 0.019817472457885742,
158
+ 0.020248575210571287,
159
+ 0.01982464027404785,
160
+ 0.01980723190307617,
161
+ 0.020011007308959963,
162
+ 0.019876863479614256,
163
+ 0.019810304641723633,
164
+ 0.019800064086914062,
165
+ 0.01977446365356445,
166
+ 0.019818496704101563,
167
+ 0.01989836883544922,
168
+ 0.019796991348266603,
169
+ 0.01982156753540039,
170
+ 0.019781631469726564,
171
+ 0.01984819221496582,
172
+ 0.019963903427124022,
173
+ 0.019825664520263672,
174
+ 0.019989503860473632,
175
+ 0.019779584884643556,
176
+ 0.019793920516967774,
177
+ 0.019813375473022463,
178
+ 0.019833856582641602,
179
+ 0.019826688766479493,
180
+ 0.019809280395507813,
181
+ 0.01984000015258789,
182
+ 0.01979084777832031,
183
+ 0.02026188850402832,
184
+ 0.02046566390991211,
185
+ 0.020558847427368163,
186
+ 0.020340736389160157,
187
+ 0.02033459281921387,
188
+ 0.020114431381225584,
189
+ 0.02024038314819336,
190
+ 0.019895296096801757,
191
+ 0.0198154239654541,
192
+ 0.01988915252685547,
193
+ 0.019929088592529298,
194
+ 0.01984409523010254,
195
+ 0.01979903984069824,
196
+ 0.019793920516967774,
197
+ 0.019819520950317384,
198
+ 0.019869695663452147,
199
+ 0.019899391174316407,
200
+ 0.019903615951538087,
201
+ 0.019782527923583985,
202
+ 0.019781631469726564,
203
+ 0.04165836715698242,
204
+ 0.020165632247924805,
205
+ 0.01982259178161621,
206
+ 0.01984921646118164,
207
+ 0.020185087203979494,
208
+ 0.019910655975341796,
209
+ 0.019869695663452147,
210
+ 0.01983795166015625,
211
+ 0.01983590316772461,
212
+ 0.01983795166015625,
213
+ 0.019878911972045898,
214
+ 0.019894271850585937,
215
+ 0.020125696182250977,
216
+ 0.02030899238586426,
217
+ 0.0198973445892334,
218
+ 0.01986662483215332,
219
+ 0.01983897590637207,
220
+ 0.020141056060791016,
221
+ 0.019878911972045898,
222
+ 0.01987993621826172,
223
+ 0.019960832595825196,
224
+ 0.020928512573242186,
225
+ 0.02032640075683594,
226
+ 0.02011955261230469,
227
+ 0.01979084777832031,
228
+ 0.01986355209350586,
229
+ 0.019803136825561524,
230
+ 0.01988198471069336,
231
+ 0.01979084777832031,
232
+ 0.02004377555847168,
233
+ 0.019756032943725587,
234
+ 0.019833856582641602,
235
+ 0.019968000411987305,
236
+ 0.019909631729125975,
237
+ 0.01986662483215332,
238
+ 0.019939327239990236,
239
+ 0.019914751052856446,
240
+ 0.019886079788208007,
241
+ 0.019732479095458985,
242
+ 0.019779584884643556,
243
+ 0.019896320343017578,
244
+ 0.01985024070739746,
245
+ 0.01979903984069824,
246
+ 0.019927040100097656,
247
+ 0.019733503341674806,
248
+ 0.019612672805786133,
249
+ 0.019588096618652344,
250
+ 0.019796991348266603,
251
+ 0.019801088333129883,
252
+ 0.019861503601074217,
253
+ 0.019825664520263672,
254
+ 0.020396032333374024,
255
+ 0.019998720169067383,
256
+ 0.019842048645019532,
257
+ 0.019976192474365235,
258
+ 0.019887231826782228,
259
+ 0.019818368911743163,
260
+ 0.019893247604370116,
261
+ 0.01982975959777832,
262
+ 0.019886079788208007,
263
+ 0.020009983062744142,
264
+ 0.019912704467773438,
265
+ 0.01998028755187988,
266
+ 0.020382720947265624,
267
+ 0.020023296356201172,
268
+ 0.02082815933227539,
269
+ 0.020534271240234374,
270
+ 0.019932159423828123,
271
+ 0.019922943115234376,
272
+ 0.019817472457885742,
273
+ 0.019973119735717772,
274
+ 0.020082687377929686,
275
+ 0.021325824737548828,
276
+ 0.020512767791748047,
277
+ 0.020339712142944336,
278
+ 0.02043391990661621,
279
+ 0.02008576011657715,
280
+ 0.01982975959777832,
281
+ 0.01978265571594238,
282
+ 0.020380672454833985,
283
+ 0.020157440185546875,
284
+ 0.01985945510864258,
285
+ 0.019851264953613282,
286
+ 0.01967820739746094,
287
+ 0.01964236831665039,
288
+ 0.020281343460083007,
289
+ 0.020143104553222657,
290
+ 0.019941375732421874,
291
+ 0.019963903427124022,
292
+ 0.019802112579345704,
293
+ 0.020343807220458983,
294
+ 0.019957759857177734,
295
+ 0.019780607223510743,
296
+ 0.02043084716796875,
297
+ 0.02031001663208008,
298
+ 0.020156415939331054,
299
+ 0.020221952438354493,
300
+ 0.01981439971923828,
301
+ 0.019775487899780272,
302
+ 0.020314111709594726,
303
+ 0.02045132827758789,
304
+ 0.02030080032348633,
305
+ 0.019801088333129883,
306
+ 0.019793920516967774,
307
+ 0.02003660774230957,
308
+ 0.01999667167663574,
309
+ 0.020322303771972656,
310
+ 0.020180992126464844,
311
+ 0.020307968139648438,
312
+ 0.019842048645019532,
313
+ 0.01987481689453125,
314
+ 0.01985740852355957,
315
+ 0.01986662483215332,
316
+ 0.02029465675354004,
317
+ 0.019805183410644533,
318
+ 0.0198287353515625,
319
+ 0.019802112579345704,
320
+ 0.01982464027404785,
321
+ 0.020039680480957032,
322
+ 0.01979903984069824,
323
+ 0.020230144500732423,
324
+ 0.020279296875,
325
+ 0.019813375473022463,
326
+ 0.019810304641723633,
327
+ 0.01982464027404785,
328
+ 0.019776512145996093,
329
+ 0.019767295837402343
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 49.55147860387168
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.021794272422790528,
7
+ "prefill.throughput.value": 321.1853033772312,
8
+ "decode.latency.mean": 2.5525396728515624,
9
+ "decode.throughput.value": 49.7543686982629,
10
+ "per_token.latency.mean": 0.020181032497421085,
11
+ "per_token.throughput.value": 49.55147860387168
12
+ }
13
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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: 48681e6e5ef08e5af8b3feb5683f044321605f1f
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f
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/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f
88
+ - hydra.run.dir=_benchmark/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f/${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/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
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": 1930.887168,
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.027867552757263183,
118
+ "mean": 0.013933776378631592,
119
+ "stdev": 0.0001242079734802247,
120
+ "p50": 0.013933776378631592,
121
+ "p90": 0.014033142757415771,
122
+ "p95": 0.014045563554763794,
123
+ "p99": 0.014055500192642211,
124
+ "values": [
125
+ 0.014057984352111816,
126
+ 0.013809568405151367
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 502.37637018023224
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2274.69312,
140
+ "max_global_vram": 8902.934528,
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.115814453125,
149
+ "mean": 1.5579072265625,
150
+ "stdev": 0.0014305419921875062,
151
+ "p50": 1.5579072265625,
152
+ "p90": 1.5590516601562499,
153
+ "p95": 1.5591947143554687,
154
+ "p99": 1.5593091577148437,
155
+ "values": [
156
+ 1.5593377685546874,
157
+ 1.5564766845703124
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 81.51961672340636
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.116761084556579,
173
+ "mean": 0.012319213772950909,
174
+ "stdev": 0.0008828992046347225,
175
+ "p50": 0.01225216007232666,
176
+ "p90": 0.012292915534973145,
177
+ "p95": 0.012339814186096192,
178
+ "p99": 0.012745801849365234,
179
+ "values": [
180
+ 0.012689408302307128,
181
+ 0.012703743934631348,
182
+ 0.012758015632629394,
183
+ 0.012734527587890626,
184
+ 0.012722111701965333,
185
+ 0.012315648078918457,
186
+ 0.012233728408813477,
187
+ 0.012271615982055664,
188
+ 0.012213248252868653,
189
+ 0.01226956844329834,
190
+ 0.012215295791625976,
191
+ 0.012263423919677734,
192
+ 0.012247039794921874,
193
+ 0.012320768356323243,
194
+ 0.01223475170135498,
195
+ 0.012259327888488769,
196
+ 0.012241920471191407,
197
+ 0.012253184318542481,
198
+ 0.012214271545410157,
199
+ 0.012262528419494628,
200
+ 0.012220288276672363,
201
+ 0.01226854419708252,
202
+ 0.012215295791625976,
203
+ 0.012263423919677734,
204
+ 0.012229632377624512,
205
+ 0.012266495704650878,
206
+ 0.012230655670166016,
207
+ 0.01255731201171875,
208
+ 0.012255231857299804,
209
+ 0.012255231857299804,
210
+ 0.012208127975463867,
211
+ 0.01225011157989502,
212
+ 0.012272640228271485,
213
+ 0.012271615982055664,
214
+ 0.012222463607788087,
215
+ 0.012294143676757812,
216
+ 0.01223475170135498,
217
+ 0.012253184318542481,
218
+ 0.012212224006652832,
219
+ 0.012247039794921874,
220
+ 0.012213312149047851,
221
+ 0.012254143714904785,
222
+ 0.012215295791625976,
223
+ 0.01234227180480957,
224
+ 0.012238847732543945,
225
+ 0.012249088287353516,
226
+ 0.012215295791625976,
227
+ 0.01225216007232666,
228
+ 0.012216320037841797,
229
+ 0.01225830364227295,
230
+ 0.012309503555297852,
231
+ 0.012289024353027344,
232
+ 0.012259327888488769,
233
+ 0.012263423919677734,
234
+ 0.012246015548706055,
235
+ 0.012338175773620605,
236
+ 0.012244992256164551,
237
+ 0.012264448165893555,
238
+ 0.012282879829406738,
239
+ 0.01232192039489746,
240
+ 0.012228480339050293,
241
+ 0.012265536308288574,
242
+ 0.012217280387878417,
243
+ 0.012257280349731446,
244
+ 0.012226559638977052,
245
+ 0.01225113582611084,
246
+ 0.012217344284057617,
247
+ 0.012265472412109376,
248
+ 0.012230655670166016,
249
+ 0.012307583808898926,
250
+ 0.012211071968078612,
251
+ 0.012256256103515625,
252
+ 0.01221232032775879,
253
+ 0.01225001621246338,
254
+ 0.012228608131408691,
255
+ 0.012275712013244629,
256
+ 0.012213248252868653,
257
+ 0.01225216007232666,
258
+ 0.012210176467895508,
259
+ 0.012259327888488769,
260
+ 0.012209152221679688,
261
+ 0.01226035213470459,
262
+ 0.012248064041137695,
263
+ 0.01226854419708252,
264
+ 0.012226559638977052,
265
+ 0.01226137638092041,
266
+ 0.012210176467895508,
267
+ 0.012248064041137695,
268
+ 0.012218367576599122,
269
+ 0.012254207611083985,
270
+ 0.01221939182281494,
271
+ 0.01228492832183838,
272
+ 0.012264448165893555,
273
+ 0.01225113582611084,
274
+ 0.012217344284057617,
275
+ 0.01225113582611084,
276
+ 0.012214271545410157,
277
+ 0.01253990364074707,
278
+ 0.012345343589782716,
279
+ 0.012292096138000488,
280
+ 0.012224512100219726,
281
+ 0.012267519950866699,
282
+ 0.01221939182281494,
283
+ 0.012266495704650878,
284
+ 0.01221939182281494,
285
+ 0.012256256103515625,
286
+ 0.012236800193786621,
287
+ 0.01226854419708252,
288
+ 0.012209152221679688,
289
+ 0.012254207611083985,
290
+ 0.012220416069030762,
291
+ 0.01225830364227295,
292
+ 0.012218367576599122,
293
+ 0.01226137638092041,
294
+ 0.0122357759475708,
295
+ 0.012275712013244629,
296
+ 0.012216320037841797,
297
+ 0.01226035213470459,
298
+ 0.012222463607788087,
299
+ 0.012263487815856934,
300
+ 0.012217280387878417,
301
+ 0.012257280349731446,
302
+ 0.01226035213470459,
303
+ 0.012279808044433594,
304
+ 0.012224512100219726,
305
+ 0.012300288200378418,
306
+ 0.026265600204467773,
307
+ 0.012239871978759765,
308
+ 0.012262399673461915,
309
+ 0.012223487854003906,
310
+ 0.012313599586486817,
311
+ 0.01229312038421631,
312
+ 0.012270591735839843,
313
+ 0.012224512100219726,
314
+ 0.012281855583190919,
315
+ 0.01222758388519287,
316
+ 0.012255231857299804,
317
+ 0.012224512100219726,
318
+ 0.012270591735839843,
319
+ 0.012221440315246582,
320
+ 0.012262399673461915,
321
+ 0.01221939182281494,
322
+ 0.012262399673461915,
323
+ 0.01221939182281494,
324
+ 0.01226956844329834,
325
+ 0.012225536346435547,
326
+ 0.012289024353027344,
327
+ 0.012239871978759765,
328
+ 0.012257280349731446,
329
+ 0.012221440315246582,
330
+ 0.01227673625946045,
331
+ 0.012231743812561036,
332
+ 0.012254143714904785,
333
+ 0.012236800193786621,
334
+ 0.012264448165893555,
335
+ 0.01222758388519287,
336
+ 0.012271615982055664,
337
+ 0.012238847732543945,
338
+ 0.01227673625946045,
339
+ 0.012236800193786621,
340
+ 0.012271615982055664,
341
+ 0.012228608131408691,
342
+ 0.012281855583190919,
343
+ 0.012222463607788087,
344
+ 0.012257280349731446,
345
+ 0.012222463607788087,
346
+ 0.01226137638092041,
347
+ 0.012214271545410157,
348
+ 0.01225830364227295,
349
+ 0.012225536346435547,
350
+ 0.012274687767028808,
351
+ 0.01222156810760498,
352
+ 0.0122674560546875,
353
+ 0.012213184356689452,
354
+ 0.012262399673461915,
355
+ 0.01221939182281494,
356
+ 0.012254207611083985,
357
+ 0.012226559638977052,
358
+ 0.012277759552001954,
359
+ 0.012240896224975586,
360
+ 0.012273664474487305,
361
+ 0.012220416069030762,
362
+ 0.012267519950866699,
363
+ 0.012217344284057617,
364
+ 0.012253184318542481,
365
+ 0.012208224296569824,
366
+ 0.012254112243652344,
367
+ 0.01223475170135498,
368
+ 0.01226854419708252,
369
+ 0.01221939182281494,
370
+ 0.01225830364227295,
371
+ 0.01221939182281494,
372
+ 0.01226956844329834,
373
+ 0.012220416069030762,
374
+ 0.012292096138000488,
375
+ 0.01225113582611084,
376
+ 0.012255231857299804,
377
+ 0.012294143676757812,
378
+ 0.012916735649108887,
379
+ 0.01225216007232666,
380
+ 0.012274687767028808,
381
+ 0.012223487854003906,
382
+ 0.012270591735839843,
383
+ 0.012221440315246582,
384
+ 0.012257280349731446,
385
+ 0.01222758388519287,
386
+ 0.012281855583190919,
387
+ 0.012285951614379884,
388
+ 0.01244876766204834,
389
+ 0.012369919776916503,
390
+ 0.01232588768005371,
391
+ 0.012248064041137695,
392
+ 0.012279808044433594,
393
+ 0.01224396800994873,
394
+ 0.012298239707946777,
395
+ 0.012259327888488769,
396
+ 0.012267519950866699,
397
+ 0.012210176467895508,
398
+ 0.012265472412109376,
399
+ 0.012192768096923828,
400
+ 0.012244992256164551,
401
+ 0.012198911666870118,
402
+ 0.01225113582611084,
403
+ 0.012222463607788087,
404
+ 0.012244992256164551,
405
+ 0.012221440315246582,
406
+ 0.012253184318542481,
407
+ 0.012193792343139649,
408
+ 0.012254207611083985,
409
+ 0.012198911666870118,
410
+ 0.012248064041137695,
411
+ 0.012224512100219726,
412
+ 0.012264448165893555,
413
+ 0.012214271545410157,
414
+ 0.01225216007232666,
415
+ 0.012194815635681153,
416
+ 0.012259327888488769,
417
+ 0.012223487854003906,
418
+ 0.012246015548706055,
419
+ 0.01225113582611084,
420
+ 0.012273664474487305,
421
+ 0.012213248252868653,
422
+ 0.012254207611083985,
423
+ 0.012206080436706544,
424
+ 0.01224294376373291,
425
+ 0.012213248252868653,
426
+ 0.012244992256164551,
427
+ 0.012204031944274902,
428
+ 0.012278783798217773,
429
+ 0.012233728408813477,
430
+ 0.012256256103515625,
431
+ 0.012218367576599122,
432
+ 0.012259327888488769
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 81.17401146132258
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
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=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": 1930.887168,
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.027867552757263183,
15
+ "mean": 0.013933776378631592,
16
+ "stdev": 0.0001242079734802247,
17
+ "p50": 0.013933776378631592,
18
+ "p90": 0.014033142757415771,
19
+ "p95": 0.014045563554763794,
20
+ "p99": 0.014055500192642211,
21
+ "values": [
22
+ 0.014057984352111816,
23
+ 0.013809568405151367
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 502.37637018023224
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2274.69312,
37
+ "max_global_vram": 8902.934528,
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.115814453125,
46
+ "mean": 1.5579072265625,
47
+ "stdev": 0.0014305419921875062,
48
+ "p50": 1.5579072265625,
49
+ "p90": 1.5590516601562499,
50
+ "p95": 1.5591947143554687,
51
+ "p99": 1.5593091577148437,
52
+ "values": [
53
+ 1.5593377685546874,
54
+ 1.5564766845703124
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 81.51961672340636
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.116761084556579,
70
+ "mean": 0.012319213772950909,
71
+ "stdev": 0.0008828992046347225,
72
+ "p50": 0.01225216007232666,
73
+ "p90": 0.012292915534973145,
74
+ "p95": 0.012339814186096192,
75
+ "p99": 0.012745801849365234,
76
+ "values": [
77
+ 0.012689408302307128,
78
+ 0.012703743934631348,
79
+ 0.012758015632629394,
80
+ 0.012734527587890626,
81
+ 0.012722111701965333,
82
+ 0.012315648078918457,
83
+ 0.012233728408813477,
84
+ 0.012271615982055664,
85
+ 0.012213248252868653,
86
+ 0.01226956844329834,
87
+ 0.012215295791625976,
88
+ 0.012263423919677734,
89
+ 0.012247039794921874,
90
+ 0.012320768356323243,
91
+ 0.01223475170135498,
92
+ 0.012259327888488769,
93
+ 0.012241920471191407,
94
+ 0.012253184318542481,
95
+ 0.012214271545410157,
96
+ 0.012262528419494628,
97
+ 0.012220288276672363,
98
+ 0.01226854419708252,
99
+ 0.012215295791625976,
100
+ 0.012263423919677734,
101
+ 0.012229632377624512,
102
+ 0.012266495704650878,
103
+ 0.012230655670166016,
104
+ 0.01255731201171875,
105
+ 0.012255231857299804,
106
+ 0.012255231857299804,
107
+ 0.012208127975463867,
108
+ 0.01225011157989502,
109
+ 0.012272640228271485,
110
+ 0.012271615982055664,
111
+ 0.012222463607788087,
112
+ 0.012294143676757812,
113
+ 0.01223475170135498,
114
+ 0.012253184318542481,
115
+ 0.012212224006652832,
116
+ 0.012247039794921874,
117
+ 0.012213312149047851,
118
+ 0.012254143714904785,
119
+ 0.012215295791625976,
120
+ 0.01234227180480957,
121
+ 0.012238847732543945,
122
+ 0.012249088287353516,
123
+ 0.012215295791625976,
124
+ 0.01225216007232666,
125
+ 0.012216320037841797,
126
+ 0.01225830364227295,
127
+ 0.012309503555297852,
128
+ 0.012289024353027344,
129
+ 0.012259327888488769,
130
+ 0.012263423919677734,
131
+ 0.012246015548706055,
132
+ 0.012338175773620605,
133
+ 0.012244992256164551,
134
+ 0.012264448165893555,
135
+ 0.012282879829406738,
136
+ 0.01232192039489746,
137
+ 0.012228480339050293,
138
+ 0.012265536308288574,
139
+ 0.012217280387878417,
140
+ 0.012257280349731446,
141
+ 0.012226559638977052,
142
+ 0.01225113582611084,
143
+ 0.012217344284057617,
144
+ 0.012265472412109376,
145
+ 0.012230655670166016,
146
+ 0.012307583808898926,
147
+ 0.012211071968078612,
148
+ 0.012256256103515625,
149
+ 0.01221232032775879,
150
+ 0.01225001621246338,
151
+ 0.012228608131408691,
152
+ 0.012275712013244629,
153
+ 0.012213248252868653,
154
+ 0.01225216007232666,
155
+ 0.012210176467895508,
156
+ 0.012259327888488769,
157
+ 0.012209152221679688,
158
+ 0.01226035213470459,
159
+ 0.012248064041137695,
160
+ 0.01226854419708252,
161
+ 0.012226559638977052,
162
+ 0.01226137638092041,
163
+ 0.012210176467895508,
164
+ 0.012248064041137695,
165
+ 0.012218367576599122,
166
+ 0.012254207611083985,
167
+ 0.01221939182281494,
168
+ 0.01228492832183838,
169
+ 0.012264448165893555,
170
+ 0.01225113582611084,
171
+ 0.012217344284057617,
172
+ 0.01225113582611084,
173
+ 0.012214271545410157,
174
+ 0.01253990364074707,
175
+ 0.012345343589782716,
176
+ 0.012292096138000488,
177
+ 0.012224512100219726,
178
+ 0.012267519950866699,
179
+ 0.01221939182281494,
180
+ 0.012266495704650878,
181
+ 0.01221939182281494,
182
+ 0.012256256103515625,
183
+ 0.012236800193786621,
184
+ 0.01226854419708252,
185
+ 0.012209152221679688,
186
+ 0.012254207611083985,
187
+ 0.012220416069030762,
188
+ 0.01225830364227295,
189
+ 0.012218367576599122,
190
+ 0.01226137638092041,
191
+ 0.0122357759475708,
192
+ 0.012275712013244629,
193
+ 0.012216320037841797,
194
+ 0.01226035213470459,
195
+ 0.012222463607788087,
196
+ 0.012263487815856934,
197
+ 0.012217280387878417,
198
+ 0.012257280349731446,
199
+ 0.01226035213470459,
200
+ 0.012279808044433594,
201
+ 0.012224512100219726,
202
+ 0.012300288200378418,
203
+ 0.026265600204467773,
204
+ 0.012239871978759765,
205
+ 0.012262399673461915,
206
+ 0.012223487854003906,
207
+ 0.012313599586486817,
208
+ 0.01229312038421631,
209
+ 0.012270591735839843,
210
+ 0.012224512100219726,
211
+ 0.012281855583190919,
212
+ 0.01222758388519287,
213
+ 0.012255231857299804,
214
+ 0.012224512100219726,
215
+ 0.012270591735839843,
216
+ 0.012221440315246582,
217
+ 0.012262399673461915,
218
+ 0.01221939182281494,
219
+ 0.012262399673461915,
220
+ 0.01221939182281494,
221
+ 0.01226956844329834,
222
+ 0.012225536346435547,
223
+ 0.012289024353027344,
224
+ 0.012239871978759765,
225
+ 0.012257280349731446,
226
+ 0.012221440315246582,
227
+ 0.01227673625946045,
228
+ 0.012231743812561036,
229
+ 0.012254143714904785,
230
+ 0.012236800193786621,
231
+ 0.012264448165893555,
232
+ 0.01222758388519287,
233
+ 0.012271615982055664,
234
+ 0.012238847732543945,
235
+ 0.01227673625946045,
236
+ 0.012236800193786621,
237
+ 0.012271615982055664,
238
+ 0.012228608131408691,
239
+ 0.012281855583190919,
240
+ 0.012222463607788087,
241
+ 0.012257280349731446,
242
+ 0.012222463607788087,
243
+ 0.01226137638092041,
244
+ 0.012214271545410157,
245
+ 0.01225830364227295,
246
+ 0.012225536346435547,
247
+ 0.012274687767028808,
248
+ 0.01222156810760498,
249
+ 0.0122674560546875,
250
+ 0.012213184356689452,
251
+ 0.012262399673461915,
252
+ 0.01221939182281494,
253
+ 0.012254207611083985,
254
+ 0.012226559638977052,
255
+ 0.012277759552001954,
256
+ 0.012240896224975586,
257
+ 0.012273664474487305,
258
+ 0.012220416069030762,
259
+ 0.012267519950866699,
260
+ 0.012217344284057617,
261
+ 0.012253184318542481,
262
+ 0.012208224296569824,
263
+ 0.012254112243652344,
264
+ 0.01223475170135498,
265
+ 0.01226854419708252,
266
+ 0.01221939182281494,
267
+ 0.01225830364227295,
268
+ 0.01221939182281494,
269
+ 0.01226956844329834,
270
+ 0.012220416069030762,
271
+ 0.012292096138000488,
272
+ 0.01225113582611084,
273
+ 0.012255231857299804,
274
+ 0.012294143676757812,
275
+ 0.012916735649108887,
276
+ 0.01225216007232666,
277
+ 0.012274687767028808,
278
+ 0.012223487854003906,
279
+ 0.012270591735839843,
280
+ 0.012221440315246582,
281
+ 0.012257280349731446,
282
+ 0.01222758388519287,
283
+ 0.012281855583190919,
284
+ 0.012285951614379884,
285
+ 0.01244876766204834,
286
+ 0.012369919776916503,
287
+ 0.01232588768005371,
288
+ 0.012248064041137695,
289
+ 0.012279808044433594,
290
+ 0.01224396800994873,
291
+ 0.012298239707946777,
292
+ 0.012259327888488769,
293
+ 0.012267519950866699,
294
+ 0.012210176467895508,
295
+ 0.012265472412109376,
296
+ 0.012192768096923828,
297
+ 0.012244992256164551,
298
+ 0.012198911666870118,
299
+ 0.01225113582611084,
300
+ 0.012222463607788087,
301
+ 0.012244992256164551,
302
+ 0.012221440315246582,
303
+ 0.012253184318542481,
304
+ 0.012193792343139649,
305
+ 0.012254207611083985,
306
+ 0.012198911666870118,
307
+ 0.012248064041137695,
308
+ 0.012224512100219726,
309
+ 0.012264448165893555,
310
+ 0.012214271545410157,
311
+ 0.01225216007232666,
312
+ 0.012194815635681153,
313
+ 0.012259327888488769,
314
+ 0.012223487854003906,
315
+ 0.012246015548706055,
316
+ 0.01225113582611084,
317
+ 0.012273664474487305,
318
+ 0.012213248252868653,
319
+ 0.012254207611083985,
320
+ 0.012206080436706544,
321
+ 0.01224294376373291,
322
+ 0.012213248252868653,
323
+ 0.012244992256164551,
324
+ 0.012204031944274902,
325
+ 0.012278783798217773,
326
+ 0.012233728408813477,
327
+ 0.012256256103515625,
328
+ 0.012218367576599122,
329
+ 0.012259327888488769
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 81.17401146132258
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.013933776378631592,
7
+ "prefill.throughput.value": 502.37637018023224,
8
+ "decode.latency.mean": 1.5579072265625,
9
+ "decode.throughput.value": 81.51961672340636,
10
+ "per_token.latency.mean": 0.012319213772950909,
11
+ "per_token.throughput.value": 81.17401146132258
12
+ }
13
+ }
2024-05-31/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpcnl9kbor/commit=48681e6e5ef08e5af8b3feb5683f044321605f1f
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/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f
88
+ - hydra.run.dir=_benchmark/tmpcnl9kbor/commit\=48681e6e5ef08e5af8b3feb5683f044321605f1f/${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: 48681e6e5ef08e5af8b3feb5683f044321605f1f
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": "a51a3fbc4827db26e896292b6409246fe8152cd4",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
- "prefill.latency.mean": 0.01953075122833252,
8
- "prefill.throughput.value": 358.4091527337344,
9
- "decode.latency.mean": 2.3896519775390628,
10
- "decode.throughput.value": 53.14581419960094,
11
- "per_token.latency.mean": 0.01889121342836161,
12
- "per_token.throughput.value": 52.9346621270335
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
- "commit": "a51a3fbc4827db26e896292b6409246fe8152cd4",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
- "prefill.latency.mean": 0.02243016052246094,
21
- "prefill.throughput.value": 312.0797995623078,
22
- "decode.latency.mean": 2.6233077392578124,
23
- "decode.throughput.value": 48.4121622863549,
24
- "per_token.latency.mean": 0.020742164204714326,
25
- "per_token.throughput.value": 48.21097693232598
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
- "commit": "a51a3fbc4827db26e896292b6409246fe8152cd4",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
- "prefill.latency.mean": 0.01414243173599243,
34
- "prefill.throughput.value": 494.96438311842996,
35
- "decode.latency.mean": 1.5720382690429688,
36
- "decode.throughput.value": 80.78683738234663,
37
- "per_token.latency.mean": 0.012431230492271454,
38
- "per_token.throughput.value": 80.44255961802848
39
  }
40
  }
41
  ]
 
1
  [
2
  {
3
  "model": "google/gemma-2b",
4
+ "commit": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
+ "prefill.latency.mean": 0.019090847969055177,
8
+ "prefill.throughput.value": 366.66784059809555,
9
+ "decode.latency.mean": 2.3359691162109373,
10
+ "decode.throughput.value": 54.36715713348153,
11
+ "per_token.latency.mean": 0.018466484107518857,
12
+ "per_token.throughput.value": 54.15215989018926
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
+ "commit": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
+ "prefill.latency.mean": 0.021794272422790528,
21
+ "prefill.throughput.value": 321.1853033772312,
22
+ "decode.latency.mean": 2.5525396728515624,
23
+ "decode.throughput.value": 49.7543686982629,
24
+ "per_token.latency.mean": 0.020181032497421085,
25
+ "per_token.throughput.value": 49.55147860387168
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
+ "commit": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
+ "prefill.latency.mean": 0.013933776378631592,
34
+ "prefill.throughput.value": 502.37637018023224,
35
+ "decode.latency.mean": 1.5579072265625,
36
+ "decode.throughput.value": 81.51961672340636,
37
+ "per_token.latency.mean": 0.012319213772950909,
38
+ "per_token.throughput.value": 81.17401146132258
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
- "a51a3fbc4827db26e896292b6409246fe8152cd4": {
5
  "metrics": {
6
- "prefill.latency.mean": 0.01953075122833252,
7
- "prefill.throughput.value": 358.4091527337344,
8
- "decode.latency.mean": 2.3896519775390628,
9
- "decode.throughput.value": 53.14581419960094,
10
- "per_token.latency.mean": 0.01889121342836161,
11
- "per_token.throughput.value": 52.9346621270335
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
- "a51a3fbc4827db26e896292b6409246fe8152cd4": {
17
  "metrics": {
18
- "prefill.latency.mean": 0.02243016052246094,
19
- "prefill.throughput.value": 312.0797995623078,
20
- "decode.latency.mean": 2.6233077392578124,
21
- "decode.throughput.value": 48.4121622863549,
22
- "per_token.latency.mean": 0.020742164204714326,
23
- "per_token.throughput.value": 48.21097693232598
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
- "a51a3fbc4827db26e896292b6409246fe8152cd4": {
29
  "metrics": {
30
- "prefill.latency.mean": 0.01414243173599243,
31
- "prefill.throughput.value": 494.96438311842996,
32
- "decode.latency.mean": 1.5720382690429688,
33
- "decode.throughput.value": 80.78683738234663,
34
- "per_token.latency.mean": 0.012431230492271454,
35
- "per_token.throughput.value": 80.44255961802848
36
  }
37
  }
38
  }
 
1
  {
2
  "google/gemma-2b": {
3
  "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "48681e6e5ef08e5af8b3feb5683f044321605f1f": {
5
  "metrics": {
6
+ "prefill.latency.mean": 0.019090847969055177,
7
+ "prefill.throughput.value": 366.66784059809555,
8
+ "decode.latency.mean": 2.3359691162109373,
9
+ "decode.throughput.value": 54.36715713348153,
10
+ "per_token.latency.mean": 0.018466484107518857,
11
+ "per_token.throughput.value": 54.15215989018926
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "48681e6e5ef08e5af8b3feb5683f044321605f1f": {
17
  "metrics": {
18
+ "prefill.latency.mean": 0.021794272422790528,
19
+ "prefill.throughput.value": 321.1853033772312,
20
+ "decode.latency.mean": 2.5525396728515624,
21
+ "decode.throughput.value": 49.7543686982629,
22
+ "per_token.latency.mean": 0.020181032497421085,
23
+ "per_token.throughput.value": 49.55147860387168
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "48681e6e5ef08e5af8b3feb5683f044321605f1f": {
29
  "metrics": {
30
+ "prefill.latency.mean": 0.013933776378631592,
31
+ "prefill.throughput.value": 502.37637018023224,
32
+ "decode.latency.mean": 1.5579072265625,
33
+ "decode.throughput.value": 81.51961672340636,
34
+ "per_token.latency.mean": 0.012319213772950909,
35
+ "per_token.throughput.value": 81.17401146132258
36
  }
37
  }
38
  }