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

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/multirun.yaml +232 -0
  31. 2024-06-27/summaries.json +21 -21
  32. 2024-06-27/summary.json +21 -21
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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: 0cf60f13ab1c857c17fc3fb127129048c93bf06c
82
+ accelerate_version: 0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c
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/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c
88
+ - hydra.run.dir=_benchmark/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
92
+ "accelerate_version": "0.32.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": 1702.682624,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5034.576896
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04019507217407227,
118
+ "mean": 0.020097536087036134,
119
+ "stdev": 8.304023742675658e-05,
120
+ "p50": 0.020097536087036134,
121
+ "p90": 0.02016396827697754,
122
+ "p95": 0.020172272300720214,
123
+ "p99": 0.020178915519714354,
124
+ "values": [
125
+ 0.020014495849609376,
126
+ 0.02018057632446289
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 348.3014022059815
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1702.703104,
140
+ "max_global_vram": 6795.296768,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6148.849664,
143
+ "max_allocated": 5034.577408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 4.902177734375,
149
+ "mean": 2.4510888671875,
150
+ "stdev": 0.007854003906250018,
151
+ "p50": 2.4510888671875,
152
+ "p90": 2.4573720703125,
153
+ "p95": 2.458157470703125,
154
+ "p99": 2.4587857910156248,
155
+ "values": [
156
+ 2.45894287109375,
157
+ 2.44323486328125
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 51.8137068386778
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.903001077651974,
173
+ "mean": 0.019379450899810188,
174
+ "stdev": 0.0013290117441632201,
175
+ "p50": 0.019354623794555666,
176
+ "p90": 0.019766476821899415,
177
+ "p95": 0.01999114227294922,
178
+ "p99": 0.02027610122680664,
179
+ "values": [
180
+ 0.019907583236694337,
181
+ 0.020090879440307616,
182
+ 0.019523584365844726,
183
+ 0.01942425537109375,
184
+ 0.019360767364501954,
185
+ 0.019254304885864257,
186
+ 0.019432416915893556,
187
+ 0.01968230438232422,
188
+ 0.02001817512512207,
189
+ 0.019919872283935547,
190
+ 0.020099071502685546,
191
+ 0.020063232421875,
192
+ 0.019963903427124022,
193
+ 0.02001817512512207,
194
+ 0.02012057685852051,
195
+ 0.020279296875,
196
+ 0.01972428894042969,
197
+ 0.019380224227905272,
198
+ 0.019280895233154297,
199
+ 0.01942428779602051,
200
+ 0.01932080078125,
201
+ 0.019208192825317383,
202
+ 0.01923686408996582,
203
+ 0.01920921516418457,
204
+ 0.019207168579101562,
205
+ 0.01922559928894043,
206
+ 0.01922867202758789,
207
+ 0.019467264175415038,
208
+ 0.019614719390869142,
209
+ 0.019583999633789064,
210
+ 0.019252223968505858,
211
+ 0.020175872802734376,
212
+ 0.019936256408691407,
213
+ 0.0198604793548584,
214
+ 0.01964134407043457,
215
+ 0.020273151397705077,
216
+ 0.019362815856933592,
217
+ 0.020075519561767577,
218
+ 0.019970048904418947,
219
+ 0.01925734329223633,
220
+ 0.01928294372558594,
221
+ 0.01907711982727051,
222
+ 0.019132448196411134,
223
+ 0.019206111907958984,
224
+ 0.018930688858032226,
225
+ 0.019155967712402345,
226
+ 0.019739648818969727,
227
+ 0.01982156753540039,
228
+ 0.01970278358459473,
229
+ 0.019527679443359376,
230
+ 0.018779136657714843,
231
+ 0.018779136657714843,
232
+ 0.018763776779174804,
233
+ 0.01923481559753418,
234
+ 0.018771968841552734,
235
+ 0.018724863052368163,
236
+ 0.019169279098510742,
237
+ 0.019582975387573243,
238
+ 0.01988096046447754,
239
+ 0.018932735443115235,
240
+ 0.018937856674194335,
241
+ 0.01897881507873535,
242
+ 0.018892799377441406,
243
+ 0.018979839324951172,
244
+ 0.018975744247436522,
245
+ 0.018942975997924806,
246
+ 0.018953216552734374,
247
+ 0.018907136917114258,
248
+ 0.01964339256286621,
249
+ 0.019629056930541993,
250
+ 0.019983360290527344,
251
+ 0.020789247512817383,
252
+ 0.019759103775024413,
253
+ 0.019567615509033204,
254
+ 0.019546112060546874,
255
+ 0.01944166374206543,
256
+ 0.01960550308227539,
257
+ 0.01947238349914551,
258
+ 0.019435583114624025,
259
+ 0.019591104507446288,
260
+ 0.019528703689575197,
261
+ 0.019526655197143555,
262
+ 0.019451904296875,
263
+ 0.01948467254638672,
264
+ 0.019505151748657225,
265
+ 0.018891775131225585,
266
+ 0.01903411293029785,
267
+ 0.018893823623657227,
268
+ 0.01901875114440918,
269
+ 0.018938880920410156,
270
+ 0.018942975997924806,
271
+ 0.0189040641784668,
272
+ 0.018948095321655273,
273
+ 0.018939903259277344,
274
+ 0.01942323112487793,
275
+ 0.0194969596862793,
276
+ 0.019549184799194336,
277
+ 0.01947648048400879,
278
+ 0.0194201602935791,
279
+ 0.019176448822021484,
280
+ 0.019528703689575197,
281
+ 0.018942975997924806,
282
+ 0.018934783935546876,
283
+ 0.018908159255981445,
284
+ 0.018912256240844725,
285
+ 0.018948095321655273,
286
+ 0.018896896362304686,
287
+ 0.018896896362304686,
288
+ 0.018962432861328125,
289
+ 0.018861055374145508,
290
+ 0.019377151489257814,
291
+ 0.019490816116333007,
292
+ 0.018994176864624023,
293
+ 0.018935808181762694,
294
+ 0.018948095321655273,
295
+ 0.01901568031311035,
296
+ 0.019084287643432618,
297
+ 0.018881536483764647,
298
+ 0.018949119567871094,
299
+ 0.018905088424682616,
300
+ 0.018757631301879883,
301
+ 0.019591167449951173,
302
+ 0.019474431991577147,
303
+ 0.019508224487304687,
304
+ 0.01949286460876465,
305
+ 0.019490816116333007,
306
+ 0.0396124153137207,
307
+ 0.019283967971801756,
308
+ 0.01926246452331543,
309
+ 0.019321855545043946,
310
+ 0.019302400588989257,
311
+ 0.019380224227905272,
312
+ 0.019368959426879884,
313
+ 0.019306495666503908,
314
+ 0.019316736221313476,
315
+ 0.01939455986022949,
316
+ 0.019297279357910157,
317
+ 0.019354623794555666,
318
+ 0.018787328720092773,
319
+ 0.01880575942993164,
320
+ 0.0192225284576416,
321
+ 0.019358720779418945,
322
+ 0.019326976776123047,
323
+ 0.018769920349121092,
324
+ 0.01881395149230957,
325
+ 0.018770944595336913,
326
+ 0.018757631301879883,
327
+ 0.018702335357666015,
328
+ 0.018823232650756836,
329
+ 0.01878828811645508,
330
+ 0.01881395149230957,
331
+ 0.019338239669799806,
332
+ 0.019333120346069335,
333
+ 0.019329023361206055,
334
+ 0.01942937660217285,
335
+ 0.01945599937438965,
336
+ 0.019397632598876953,
337
+ 0.01942118453979492,
338
+ 0.019348480224609374,
339
+ 0.019581951141357423,
340
+ 0.0194150390625,
341
+ 0.019277824401855468,
342
+ 0.019503103256225587,
343
+ 0.019392511367797852,
344
+ 0.0193832950592041,
345
+ 0.019390464782714844,
346
+ 0.01940275192260742,
347
+ 0.01943552017211914,
348
+ 0.018817024230957033,
349
+ 0.018790399551391602,
350
+ 0.018751487731933594,
351
+ 0.018755584716796874,
352
+ 0.018783231735229493,
353
+ 0.01880268859863281,
354
+ 0.01878835105895996,
355
+ 0.01879756736755371,
356
+ 0.018760704040527345,
357
+ 0.019309568405151366,
358
+ 0.018769920349121092,
359
+ 0.01878835105895996,
360
+ 0.018787328720092773,
361
+ 0.018765823364257812,
362
+ 0.018977792739868164,
363
+ 0.019580928802490235,
364
+ 0.019522560119628905,
365
+ 0.019551231384277345,
366
+ 0.019529727935791014,
367
+ 0.01984921646118164,
368
+ 0.019768320083618163,
369
+ 0.019075071334838867,
370
+ 0.018949119567871094,
371
+ 0.018933759689331055,
372
+ 0.018899967193603515,
373
+ 0.018965503692626954,
374
+ 0.018965503692626954,
375
+ 0.018944000244140623,
376
+ 0.018923519134521484,
377
+ 0.018935808181762694,
378
+ 0.018951168060302736,
379
+ 0.018919424057006837,
380
+ 0.019482624053955077,
381
+ 0.019532800674438477,
382
+ 0.01947648048400879,
383
+ 0.01979801559448242,
384
+ 0.01948876762390137,
385
+ 0.019525632858276368,
386
+ 0.019808256149291992,
387
+ 0.01958502388000488,
388
+ 0.019595264434814453,
389
+ 0.019513343811035155,
390
+ 0.019553279876708983,
391
+ 0.019355648040771483,
392
+ 0.019591167449951173,
393
+ 0.020002815246582033,
394
+ 0.019495935440063478,
395
+ 0.019546112060546874,
396
+ 0.019503103256225587,
397
+ 0.019561471939086913,
398
+ 0.019544063568115236,
399
+ 0.019499008178710937,
400
+ 0.019508224487304687,
401
+ 0.019551231384277345,
402
+ 0.019579904556274414,
403
+ 0.019524608612060547,
404
+ 0.019560447692871095,
405
+ 0.019610624313354492,
406
+ 0.019565568923950196,
407
+ 0.01945702362060547,
408
+ 0.019531839370727538,
409
+ 0.0197324161529541,
410
+ 0.019521535873413084,
411
+ 0.019504127502441407,
412
+ 0.019503103256225587,
413
+ 0.01944166374206543,
414
+ 0.019572736740112305,
415
+ 0.019603456497192383,
416
+ 0.019564544677734375,
417
+ 0.01948876762390137,
418
+ 0.018998271942138673,
419
+ 0.018899967193603515,
420
+ 0.018908159255981445,
421
+ 0.018856960296630858,
422
+ 0.01883852767944336,
423
+ 0.018967552185058592,
424
+ 0.018949119567871094,
425
+ 0.018941951751708985,
426
+ 0.018922496795654296,
427
+ 0.018923519134521484,
428
+ 0.018885631561279297,
429
+ 0.018856960296630858,
430
+ 0.018909183502197266,
431
+ 0.018914304733276367,
432
+ 0.018912256240844725
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 51.60104923353605
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
91
+ "accelerate_version": "0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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": 1702.682624,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5034.576896
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04019507217407227,
15
+ "mean": 0.020097536087036134,
16
+ "stdev": 8.304023742675658e-05,
17
+ "p50": 0.020097536087036134,
18
+ "p90": 0.02016396827697754,
19
+ "p95": 0.020172272300720214,
20
+ "p99": 0.020178915519714354,
21
+ "values": [
22
+ 0.020014495849609376,
23
+ 0.02018057632446289
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 348.3014022059815
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1702.703104,
37
+ "max_global_vram": 6795.296768,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6148.849664,
40
+ "max_allocated": 5034.577408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 4.902177734375,
46
+ "mean": 2.4510888671875,
47
+ "stdev": 0.007854003906250018,
48
+ "p50": 2.4510888671875,
49
+ "p90": 2.4573720703125,
50
+ "p95": 2.458157470703125,
51
+ "p99": 2.4587857910156248,
52
+ "values": [
53
+ 2.45894287109375,
54
+ 2.44323486328125
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 51.8137068386778
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.903001077651974,
70
+ "mean": 0.019379450899810188,
71
+ "stdev": 0.0013290117441632201,
72
+ "p50": 0.019354623794555666,
73
+ "p90": 0.019766476821899415,
74
+ "p95": 0.01999114227294922,
75
+ "p99": 0.02027610122680664,
76
+ "values": [
77
+ 0.019907583236694337,
78
+ 0.020090879440307616,
79
+ 0.019523584365844726,
80
+ 0.01942425537109375,
81
+ 0.019360767364501954,
82
+ 0.019254304885864257,
83
+ 0.019432416915893556,
84
+ 0.01968230438232422,
85
+ 0.02001817512512207,
86
+ 0.019919872283935547,
87
+ 0.020099071502685546,
88
+ 0.020063232421875,
89
+ 0.019963903427124022,
90
+ 0.02001817512512207,
91
+ 0.02012057685852051,
92
+ 0.020279296875,
93
+ 0.01972428894042969,
94
+ 0.019380224227905272,
95
+ 0.019280895233154297,
96
+ 0.01942428779602051,
97
+ 0.01932080078125,
98
+ 0.019208192825317383,
99
+ 0.01923686408996582,
100
+ 0.01920921516418457,
101
+ 0.019207168579101562,
102
+ 0.01922559928894043,
103
+ 0.01922867202758789,
104
+ 0.019467264175415038,
105
+ 0.019614719390869142,
106
+ 0.019583999633789064,
107
+ 0.019252223968505858,
108
+ 0.020175872802734376,
109
+ 0.019936256408691407,
110
+ 0.0198604793548584,
111
+ 0.01964134407043457,
112
+ 0.020273151397705077,
113
+ 0.019362815856933592,
114
+ 0.020075519561767577,
115
+ 0.019970048904418947,
116
+ 0.01925734329223633,
117
+ 0.01928294372558594,
118
+ 0.01907711982727051,
119
+ 0.019132448196411134,
120
+ 0.019206111907958984,
121
+ 0.018930688858032226,
122
+ 0.019155967712402345,
123
+ 0.019739648818969727,
124
+ 0.01982156753540039,
125
+ 0.01970278358459473,
126
+ 0.019527679443359376,
127
+ 0.018779136657714843,
128
+ 0.018779136657714843,
129
+ 0.018763776779174804,
130
+ 0.01923481559753418,
131
+ 0.018771968841552734,
132
+ 0.018724863052368163,
133
+ 0.019169279098510742,
134
+ 0.019582975387573243,
135
+ 0.01988096046447754,
136
+ 0.018932735443115235,
137
+ 0.018937856674194335,
138
+ 0.01897881507873535,
139
+ 0.018892799377441406,
140
+ 0.018979839324951172,
141
+ 0.018975744247436522,
142
+ 0.018942975997924806,
143
+ 0.018953216552734374,
144
+ 0.018907136917114258,
145
+ 0.01964339256286621,
146
+ 0.019629056930541993,
147
+ 0.019983360290527344,
148
+ 0.020789247512817383,
149
+ 0.019759103775024413,
150
+ 0.019567615509033204,
151
+ 0.019546112060546874,
152
+ 0.01944166374206543,
153
+ 0.01960550308227539,
154
+ 0.01947238349914551,
155
+ 0.019435583114624025,
156
+ 0.019591104507446288,
157
+ 0.019528703689575197,
158
+ 0.019526655197143555,
159
+ 0.019451904296875,
160
+ 0.01948467254638672,
161
+ 0.019505151748657225,
162
+ 0.018891775131225585,
163
+ 0.01903411293029785,
164
+ 0.018893823623657227,
165
+ 0.01901875114440918,
166
+ 0.018938880920410156,
167
+ 0.018942975997924806,
168
+ 0.0189040641784668,
169
+ 0.018948095321655273,
170
+ 0.018939903259277344,
171
+ 0.01942323112487793,
172
+ 0.0194969596862793,
173
+ 0.019549184799194336,
174
+ 0.01947648048400879,
175
+ 0.0194201602935791,
176
+ 0.019176448822021484,
177
+ 0.019528703689575197,
178
+ 0.018942975997924806,
179
+ 0.018934783935546876,
180
+ 0.018908159255981445,
181
+ 0.018912256240844725,
182
+ 0.018948095321655273,
183
+ 0.018896896362304686,
184
+ 0.018896896362304686,
185
+ 0.018962432861328125,
186
+ 0.018861055374145508,
187
+ 0.019377151489257814,
188
+ 0.019490816116333007,
189
+ 0.018994176864624023,
190
+ 0.018935808181762694,
191
+ 0.018948095321655273,
192
+ 0.01901568031311035,
193
+ 0.019084287643432618,
194
+ 0.018881536483764647,
195
+ 0.018949119567871094,
196
+ 0.018905088424682616,
197
+ 0.018757631301879883,
198
+ 0.019591167449951173,
199
+ 0.019474431991577147,
200
+ 0.019508224487304687,
201
+ 0.01949286460876465,
202
+ 0.019490816116333007,
203
+ 0.0396124153137207,
204
+ 0.019283967971801756,
205
+ 0.01926246452331543,
206
+ 0.019321855545043946,
207
+ 0.019302400588989257,
208
+ 0.019380224227905272,
209
+ 0.019368959426879884,
210
+ 0.019306495666503908,
211
+ 0.019316736221313476,
212
+ 0.01939455986022949,
213
+ 0.019297279357910157,
214
+ 0.019354623794555666,
215
+ 0.018787328720092773,
216
+ 0.01880575942993164,
217
+ 0.0192225284576416,
218
+ 0.019358720779418945,
219
+ 0.019326976776123047,
220
+ 0.018769920349121092,
221
+ 0.01881395149230957,
222
+ 0.018770944595336913,
223
+ 0.018757631301879883,
224
+ 0.018702335357666015,
225
+ 0.018823232650756836,
226
+ 0.01878828811645508,
227
+ 0.01881395149230957,
228
+ 0.019338239669799806,
229
+ 0.019333120346069335,
230
+ 0.019329023361206055,
231
+ 0.01942937660217285,
232
+ 0.01945599937438965,
233
+ 0.019397632598876953,
234
+ 0.01942118453979492,
235
+ 0.019348480224609374,
236
+ 0.019581951141357423,
237
+ 0.0194150390625,
238
+ 0.019277824401855468,
239
+ 0.019503103256225587,
240
+ 0.019392511367797852,
241
+ 0.0193832950592041,
242
+ 0.019390464782714844,
243
+ 0.01940275192260742,
244
+ 0.01943552017211914,
245
+ 0.018817024230957033,
246
+ 0.018790399551391602,
247
+ 0.018751487731933594,
248
+ 0.018755584716796874,
249
+ 0.018783231735229493,
250
+ 0.01880268859863281,
251
+ 0.01878835105895996,
252
+ 0.01879756736755371,
253
+ 0.018760704040527345,
254
+ 0.019309568405151366,
255
+ 0.018769920349121092,
256
+ 0.01878835105895996,
257
+ 0.018787328720092773,
258
+ 0.018765823364257812,
259
+ 0.018977792739868164,
260
+ 0.019580928802490235,
261
+ 0.019522560119628905,
262
+ 0.019551231384277345,
263
+ 0.019529727935791014,
264
+ 0.01984921646118164,
265
+ 0.019768320083618163,
266
+ 0.019075071334838867,
267
+ 0.018949119567871094,
268
+ 0.018933759689331055,
269
+ 0.018899967193603515,
270
+ 0.018965503692626954,
271
+ 0.018965503692626954,
272
+ 0.018944000244140623,
273
+ 0.018923519134521484,
274
+ 0.018935808181762694,
275
+ 0.018951168060302736,
276
+ 0.018919424057006837,
277
+ 0.019482624053955077,
278
+ 0.019532800674438477,
279
+ 0.01947648048400879,
280
+ 0.01979801559448242,
281
+ 0.01948876762390137,
282
+ 0.019525632858276368,
283
+ 0.019808256149291992,
284
+ 0.01958502388000488,
285
+ 0.019595264434814453,
286
+ 0.019513343811035155,
287
+ 0.019553279876708983,
288
+ 0.019355648040771483,
289
+ 0.019591167449951173,
290
+ 0.020002815246582033,
291
+ 0.019495935440063478,
292
+ 0.019546112060546874,
293
+ 0.019503103256225587,
294
+ 0.019561471939086913,
295
+ 0.019544063568115236,
296
+ 0.019499008178710937,
297
+ 0.019508224487304687,
298
+ 0.019551231384277345,
299
+ 0.019579904556274414,
300
+ 0.019524608612060547,
301
+ 0.019560447692871095,
302
+ 0.019610624313354492,
303
+ 0.019565568923950196,
304
+ 0.01945702362060547,
305
+ 0.019531839370727538,
306
+ 0.0197324161529541,
307
+ 0.019521535873413084,
308
+ 0.019504127502441407,
309
+ 0.019503103256225587,
310
+ 0.01944166374206543,
311
+ 0.019572736740112305,
312
+ 0.019603456497192383,
313
+ 0.019564544677734375,
314
+ 0.01948876762390137,
315
+ 0.018998271942138673,
316
+ 0.018899967193603515,
317
+ 0.018908159255981445,
318
+ 0.018856960296630858,
319
+ 0.01883852767944336,
320
+ 0.018967552185058592,
321
+ 0.018949119567871094,
322
+ 0.018941951751708985,
323
+ 0.018922496795654296,
324
+ 0.018923519134521484,
325
+ 0.018885631561279297,
326
+ 0.018856960296630858,
327
+ 0.018909183502197266,
328
+ 0.018914304733276367,
329
+ 0.018912256240844725
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 51.60104923353605
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020097536087036134,
7
+ "prefill.throughput.value": 348.3014022059815,
8
+ "decode.latency.mean": 2.4510888671875,
9
+ "decode.throughput.value": 51.8137068386778,
10
+ "per_token.latency.mean": 0.019379450899810188,
11
+ "per_token.throughput.value": 51.60104923353605
12
+ }
13
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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: 0cf60f13ab1c857c17fc3fb127129048c93bf06c
82
+ accelerate_version: 0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c
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/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c
88
+ - hydra.run.dir=_benchmark/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-27 15:44:52,349][process][ERROR] - + Sending traceback to main process
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
91
+ "accelerate_version": "0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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: 0cf60f13ab1c857c17fc3fb127129048c93bf06c
82
+ accelerate_version: 0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c
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/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c
88
+ - hydra.run.dir=_benchmark/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
92
+ "accelerate_version": "0.32.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.132544,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5036.936192
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04406230354309082,
118
+ "mean": 0.02203115177154541,
119
+ "stdev": 0.0002537126541137698,
120
+ "p50": 0.02203115177154541,
121
+ "p90": 0.022234121894836426,
122
+ "p95": 0.022259493160247803,
123
+ "p99": 0.022279790172576905,
124
+ "values": [
125
+ 0.02228486442565918,
126
+ 0.02177743911743164
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 317.7319130923028
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1761.144832,
140
+ "max_global_vram": 6793.199616,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6146.752512,
143
+ "max_allocated": 5036.936704
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 5.085963623046875,
149
+ "mean": 2.5429818115234375,
150
+ "stdev": 0.004353637695312607,
151
+ "p50": 2.5429818115234375,
152
+ "p90": 2.5464647216796874,
153
+ "p95": 2.5469000854492188,
154
+ "p99": 2.547248376464844,
155
+ "values": [
156
+ 2.538628173828125,
157
+ 2.54733544921875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 49.941371748906626
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.086945281982421,
173
+ "mean": 0.02010650309083961,
174
+ "stdev": 0.001386545097967834,
175
+ "p50": 0.019987424850463866,
176
+ "p90": 0.020068146896362302,
177
+ "p95": 0.020278079986572266,
178
+ "p99": 0.02078359619140625,
179
+ "values": [
180
+ 0.02167091178894043,
181
+ 0.02025267219543457,
182
+ 0.020134912490844727,
183
+ 0.019982336044311523,
184
+ 0.01983897590637207,
185
+ 0.019784704208374023,
186
+ 0.019987455368041994,
187
+ 0.019949567794799804,
188
+ 0.01980723190307617,
189
+ 0.02004787254333496,
190
+ 0.019953664779663087,
191
+ 0.019932159423828123,
192
+ 0.019959903717041014,
193
+ 0.019973024368286133,
194
+ 0.020009983062744142,
195
+ 0.019985408782958985,
196
+ 0.019983360290527344,
197
+ 0.019976192474365235,
198
+ 0.020007936477661133,
199
+ 0.019961856842041017,
200
+ 0.019951616287231445,
201
+ 0.019946495056152345,
202
+ 0.019999744415283204,
203
+ 0.019941375732421874,
204
+ 0.019964927673339843,
205
+ 0.019954687118530275,
206
+ 0.019965951919555663,
207
+ 0.019962879180908204,
208
+ 0.019963903427124022,
209
+ 0.019976192474365235,
210
+ 0.01985536003112793,
211
+ 0.019742719650268553,
212
+ 0.019759103775024413,
213
+ 0.019944448471069336,
214
+ 0.019914751052856446,
215
+ 0.019947519302368166,
216
+ 0.019948543548583983,
217
+ 0.01992192077636719,
218
+ 0.019966976165771484,
219
+ 0.019947519302368166,
220
+ 0.019955711364746095,
221
+ 0.019946495056152345,
222
+ 0.019974143981933593,
223
+ 0.019960895538330078,
224
+ 0.01996588706970215,
225
+ 0.019968000411987305,
226
+ 0.019919872283935547,
227
+ 0.019944448471069336,
228
+ 0.019924991607666014,
229
+ 0.019922943115234376,
230
+ 0.020282400131225585,
231
+ 0.020007904052734376,
232
+ 0.019981311798095702,
233
+ 0.019963903427124022,
234
+ 0.019950592041015625,
235
+ 0.019956735610961913,
236
+ 0.01992300796508789,
237
+ 0.01996281623840332,
238
+ 0.02007756805419922,
239
+ 0.01998847961425781,
240
+ 0.02000588798522949,
241
+ 0.019965951919555663,
242
+ 0.019951616287231445,
243
+ 0.019971071243286134,
244
+ 0.019970048904418947,
245
+ 0.019965951919555663,
246
+ 0.019939327239990236,
247
+ 0.019978239059448243,
248
+ 0.02002022361755371,
249
+ 0.02003660774230957,
250
+ 0.019960832595825196,
251
+ 0.02001408004760742,
252
+ 0.01984409523010254,
253
+ 0.019733503341674806,
254
+ 0.019950592041015625,
255
+ 0.019989503860473632,
256
+ 0.019984384536743165,
257
+ 0.019976255416870117,
258
+ 0.01996895980834961,
259
+ 0.019954687118530275,
260
+ 0.019955711364746095,
261
+ 0.01998028755187988,
262
+ 0.019971071243286134,
263
+ 0.019982336044311523,
264
+ 0.019957759857177734,
265
+ 0.020031488418579102,
266
+ 0.019977216720581056,
267
+ 0.019983360290527344,
268
+ 0.019982336044311523,
269
+ 0.02000588798522949,
270
+ 0.019949567794799804,
271
+ 0.019962879180908204,
272
+ 0.02000486373901367,
273
+ 0.02003455924987793,
274
+ 0.020015104293823242,
275
+ 0.020000768661499024,
276
+ 0.01997932815551758,
277
+ 0.01999558448791504,
278
+ 0.01997209548950195,
279
+ 0.019979263305664064,
280
+ 0.020007936477661133,
281
+ 0.019993600845336915,
282
+ 0.019960832595825196,
283
+ 0.01998847961425781,
284
+ 0.019919872283935547,
285
+ 0.019991552352905274,
286
+ 0.019969024658203126,
287
+ 0.01999564743041992,
288
+ 0.020017152786254884,
289
+ 0.019961856842041017,
290
+ 0.01998028755187988,
291
+ 0.019957759857177734,
292
+ 0.01998028755187988,
293
+ 0.019992576599121094,
294
+ 0.019998720169067383,
295
+ 0.01998028755187988,
296
+ 0.019962879180908204,
297
+ 0.020020256042480467,
298
+ 0.020000736236572267,
299
+ 0.019986431121826173,
300
+ 0.02003046417236328,
301
+ 0.019984384536743165,
302
+ 0.019969024658203126,
303
+ 0.019937280654907227,
304
+ 0.019977216720581056,
305
+ 0.019981311798095702,
306
+ 0.04194406509399414,
307
+ 0.019969024658203126,
308
+ 0.019989503860473632,
309
+ 0.019991552352905274,
310
+ 0.019976192474365235,
311
+ 0.020024320602416993,
312
+ 0.019944448471069336,
313
+ 0.019979263305664064,
314
+ 0.020015104293823242,
315
+ 0.020017152786254884,
316
+ 0.019945472717285157,
317
+ 0.019974143981933593,
318
+ 0.019756032943725587,
319
+ 0.02002841567993164,
320
+ 0.019978239059448243,
321
+ 0.019981311798095702,
322
+ 0.019924991607666014,
323
+ 0.019957759857177734,
324
+ 0.019950592041015625,
325
+ 0.019950592041015625,
326
+ 0.019990528106689453,
327
+ 0.019983360290527344,
328
+ 0.019977216720581056,
329
+ 0.020130815505981444,
330
+ 0.020000768661499024,
331
+ 0.0200263671875,
332
+ 0.01999667167663574,
333
+ 0.020007936477661133,
334
+ 0.019959808349609375,
335
+ 0.019968000411987305,
336
+ 0.019955711364746095,
337
+ 0.019957759857177734,
338
+ 0.02002022361755371,
339
+ 0.019989503860473632,
340
+ 0.019943456649780273,
341
+ 0.019987424850463866,
342
+ 0.019963903427124022,
343
+ 0.02072166442871094,
344
+ 0.020592639923095703,
345
+ 0.020008960723876954,
346
+ 0.019985408782958985,
347
+ 0.019999744415283204,
348
+ 0.019997695922851562,
349
+ 0.020016128540039063,
350
+ 0.020068351745605468,
351
+ 0.019976192474365235,
352
+ 0.0200263671875,
353
+ 0.020067327499389647,
354
+ 0.020007936477661133,
355
+ 0.020007936477661133,
356
+ 0.01999667167663574,
357
+ 0.019964927673339843,
358
+ 0.019946495056152345,
359
+ 0.019979263305664064,
360
+ 0.02002739143371582,
361
+ 0.019991552352905274,
362
+ 0.019977216720581056,
363
+ 0.019964927673339843,
364
+ 0.02027519989013672,
365
+ 0.020008960723876954,
366
+ 0.02001919937133789,
367
+ 0.02002124786376953,
368
+ 0.020051967620849608,
369
+ 0.020024320602416993,
370
+ 0.019970048904418947,
371
+ 0.020009983062744142,
372
+ 0.019962879180908204,
373
+ 0.019990528106689453,
374
+ 0.019998720169067383,
375
+ 0.020007936477661133,
376
+ 0.020016128540039063,
377
+ 0.02003558349609375,
378
+ 0.02001817512512207,
379
+ 0.0200130558013916,
380
+ 0.019989503860473632,
381
+ 0.019998720169067383,
382
+ 0.02003558349609375,
383
+ 0.020001792907714845,
384
+ 0.020016128540039063,
385
+ 0.019993600845336915,
386
+ 0.019961856842041017,
387
+ 0.019974143981933593,
388
+ 0.020098047256469728,
389
+ 0.019990528106689453,
390
+ 0.019974143981933593,
391
+ 0.020016128540039063,
392
+ 0.019993600845336915,
393
+ 0.0200100154876709,
394
+ 0.019990495681762695,
395
+ 0.020063232421875,
396
+ 0.020016128540039063,
397
+ 0.020025344848632814,
398
+ 0.020008960723876954,
399
+ 0.02026803207397461,
400
+ 0.02005504035949707,
401
+ 0.02039910316467285,
402
+ 0.019983360290527344,
403
+ 0.01999667167663574,
404
+ 0.020023296356201172,
405
+ 0.02008166313171387,
406
+ 0.020159488677978517,
407
+ 0.020471807479858398,
408
+ 0.02007756805419922,
409
+ 0.020068351745605468,
410
+ 0.019993600845336915,
411
+ 0.02085068893432617,
412
+ 0.02064076805114746,
413
+ 0.020602880477905275,
414
+ 0.020601856231689454,
415
+ 0.02062848091125488,
416
+ 0.020592639923095703,
417
+ 0.020050943374633787,
418
+ 0.019983360290527344,
419
+ 0.020001792907714845,
420
+ 0.020031488418579102,
421
+ 0.02004172706604004,
422
+ 0.02001817512512207,
423
+ 0.02004684829711914,
424
+ 0.02003455924987793,
425
+ 0.020023296356201172,
426
+ 0.02002124786376953,
427
+ 0.02004377555847168,
428
+ 0.020134912490844727,
429
+ 0.020051967620849608,
430
+ 0.020048896789550782,
431
+ 0.02003763198852539,
432
+ 0.020011007308959963
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 49.73515262609704
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
91
+ "accelerate_version": "0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.132544,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5036.936192
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04406230354309082,
15
+ "mean": 0.02203115177154541,
16
+ "stdev": 0.0002537126541137698,
17
+ "p50": 0.02203115177154541,
18
+ "p90": 0.022234121894836426,
19
+ "p95": 0.022259493160247803,
20
+ "p99": 0.022279790172576905,
21
+ "values": [
22
+ 0.02228486442565918,
23
+ 0.02177743911743164
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 317.7319130923028
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1761.144832,
37
+ "max_global_vram": 6793.199616,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6146.752512,
40
+ "max_allocated": 5036.936704
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 5.085963623046875,
46
+ "mean": 2.5429818115234375,
47
+ "stdev": 0.004353637695312607,
48
+ "p50": 2.5429818115234375,
49
+ "p90": 2.5464647216796874,
50
+ "p95": 2.5469000854492188,
51
+ "p99": 2.547248376464844,
52
+ "values": [
53
+ 2.538628173828125,
54
+ 2.54733544921875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 49.941371748906626
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.086945281982421,
70
+ "mean": 0.02010650309083961,
71
+ "stdev": 0.001386545097967834,
72
+ "p50": 0.019987424850463866,
73
+ "p90": 0.020068146896362302,
74
+ "p95": 0.020278079986572266,
75
+ "p99": 0.02078359619140625,
76
+ "values": [
77
+ 0.02167091178894043,
78
+ 0.02025267219543457,
79
+ 0.020134912490844727,
80
+ 0.019982336044311523,
81
+ 0.01983897590637207,
82
+ 0.019784704208374023,
83
+ 0.019987455368041994,
84
+ 0.019949567794799804,
85
+ 0.01980723190307617,
86
+ 0.02004787254333496,
87
+ 0.019953664779663087,
88
+ 0.019932159423828123,
89
+ 0.019959903717041014,
90
+ 0.019973024368286133,
91
+ 0.020009983062744142,
92
+ 0.019985408782958985,
93
+ 0.019983360290527344,
94
+ 0.019976192474365235,
95
+ 0.020007936477661133,
96
+ 0.019961856842041017,
97
+ 0.019951616287231445,
98
+ 0.019946495056152345,
99
+ 0.019999744415283204,
100
+ 0.019941375732421874,
101
+ 0.019964927673339843,
102
+ 0.019954687118530275,
103
+ 0.019965951919555663,
104
+ 0.019962879180908204,
105
+ 0.019963903427124022,
106
+ 0.019976192474365235,
107
+ 0.01985536003112793,
108
+ 0.019742719650268553,
109
+ 0.019759103775024413,
110
+ 0.019944448471069336,
111
+ 0.019914751052856446,
112
+ 0.019947519302368166,
113
+ 0.019948543548583983,
114
+ 0.01992192077636719,
115
+ 0.019966976165771484,
116
+ 0.019947519302368166,
117
+ 0.019955711364746095,
118
+ 0.019946495056152345,
119
+ 0.019974143981933593,
120
+ 0.019960895538330078,
121
+ 0.01996588706970215,
122
+ 0.019968000411987305,
123
+ 0.019919872283935547,
124
+ 0.019944448471069336,
125
+ 0.019924991607666014,
126
+ 0.019922943115234376,
127
+ 0.020282400131225585,
128
+ 0.020007904052734376,
129
+ 0.019981311798095702,
130
+ 0.019963903427124022,
131
+ 0.019950592041015625,
132
+ 0.019956735610961913,
133
+ 0.01992300796508789,
134
+ 0.01996281623840332,
135
+ 0.02007756805419922,
136
+ 0.01998847961425781,
137
+ 0.02000588798522949,
138
+ 0.019965951919555663,
139
+ 0.019951616287231445,
140
+ 0.019971071243286134,
141
+ 0.019970048904418947,
142
+ 0.019965951919555663,
143
+ 0.019939327239990236,
144
+ 0.019978239059448243,
145
+ 0.02002022361755371,
146
+ 0.02003660774230957,
147
+ 0.019960832595825196,
148
+ 0.02001408004760742,
149
+ 0.01984409523010254,
150
+ 0.019733503341674806,
151
+ 0.019950592041015625,
152
+ 0.019989503860473632,
153
+ 0.019984384536743165,
154
+ 0.019976255416870117,
155
+ 0.01996895980834961,
156
+ 0.019954687118530275,
157
+ 0.019955711364746095,
158
+ 0.01998028755187988,
159
+ 0.019971071243286134,
160
+ 0.019982336044311523,
161
+ 0.019957759857177734,
162
+ 0.020031488418579102,
163
+ 0.019977216720581056,
164
+ 0.019983360290527344,
165
+ 0.019982336044311523,
166
+ 0.02000588798522949,
167
+ 0.019949567794799804,
168
+ 0.019962879180908204,
169
+ 0.02000486373901367,
170
+ 0.02003455924987793,
171
+ 0.020015104293823242,
172
+ 0.020000768661499024,
173
+ 0.01997932815551758,
174
+ 0.01999558448791504,
175
+ 0.01997209548950195,
176
+ 0.019979263305664064,
177
+ 0.020007936477661133,
178
+ 0.019993600845336915,
179
+ 0.019960832595825196,
180
+ 0.01998847961425781,
181
+ 0.019919872283935547,
182
+ 0.019991552352905274,
183
+ 0.019969024658203126,
184
+ 0.01999564743041992,
185
+ 0.020017152786254884,
186
+ 0.019961856842041017,
187
+ 0.01998028755187988,
188
+ 0.019957759857177734,
189
+ 0.01998028755187988,
190
+ 0.019992576599121094,
191
+ 0.019998720169067383,
192
+ 0.01998028755187988,
193
+ 0.019962879180908204,
194
+ 0.020020256042480467,
195
+ 0.020000736236572267,
196
+ 0.019986431121826173,
197
+ 0.02003046417236328,
198
+ 0.019984384536743165,
199
+ 0.019969024658203126,
200
+ 0.019937280654907227,
201
+ 0.019977216720581056,
202
+ 0.019981311798095702,
203
+ 0.04194406509399414,
204
+ 0.019969024658203126,
205
+ 0.019989503860473632,
206
+ 0.019991552352905274,
207
+ 0.019976192474365235,
208
+ 0.020024320602416993,
209
+ 0.019944448471069336,
210
+ 0.019979263305664064,
211
+ 0.020015104293823242,
212
+ 0.020017152786254884,
213
+ 0.019945472717285157,
214
+ 0.019974143981933593,
215
+ 0.019756032943725587,
216
+ 0.02002841567993164,
217
+ 0.019978239059448243,
218
+ 0.019981311798095702,
219
+ 0.019924991607666014,
220
+ 0.019957759857177734,
221
+ 0.019950592041015625,
222
+ 0.019950592041015625,
223
+ 0.019990528106689453,
224
+ 0.019983360290527344,
225
+ 0.019977216720581056,
226
+ 0.020130815505981444,
227
+ 0.020000768661499024,
228
+ 0.0200263671875,
229
+ 0.01999667167663574,
230
+ 0.020007936477661133,
231
+ 0.019959808349609375,
232
+ 0.019968000411987305,
233
+ 0.019955711364746095,
234
+ 0.019957759857177734,
235
+ 0.02002022361755371,
236
+ 0.019989503860473632,
237
+ 0.019943456649780273,
238
+ 0.019987424850463866,
239
+ 0.019963903427124022,
240
+ 0.02072166442871094,
241
+ 0.020592639923095703,
242
+ 0.020008960723876954,
243
+ 0.019985408782958985,
244
+ 0.019999744415283204,
245
+ 0.019997695922851562,
246
+ 0.020016128540039063,
247
+ 0.020068351745605468,
248
+ 0.019976192474365235,
249
+ 0.0200263671875,
250
+ 0.020067327499389647,
251
+ 0.020007936477661133,
252
+ 0.020007936477661133,
253
+ 0.01999667167663574,
254
+ 0.019964927673339843,
255
+ 0.019946495056152345,
256
+ 0.019979263305664064,
257
+ 0.02002739143371582,
258
+ 0.019991552352905274,
259
+ 0.019977216720581056,
260
+ 0.019964927673339843,
261
+ 0.02027519989013672,
262
+ 0.020008960723876954,
263
+ 0.02001919937133789,
264
+ 0.02002124786376953,
265
+ 0.020051967620849608,
266
+ 0.020024320602416993,
267
+ 0.019970048904418947,
268
+ 0.020009983062744142,
269
+ 0.019962879180908204,
270
+ 0.019990528106689453,
271
+ 0.019998720169067383,
272
+ 0.020007936477661133,
273
+ 0.020016128540039063,
274
+ 0.02003558349609375,
275
+ 0.02001817512512207,
276
+ 0.0200130558013916,
277
+ 0.019989503860473632,
278
+ 0.019998720169067383,
279
+ 0.02003558349609375,
280
+ 0.020001792907714845,
281
+ 0.020016128540039063,
282
+ 0.019993600845336915,
283
+ 0.019961856842041017,
284
+ 0.019974143981933593,
285
+ 0.020098047256469728,
286
+ 0.019990528106689453,
287
+ 0.019974143981933593,
288
+ 0.020016128540039063,
289
+ 0.019993600845336915,
290
+ 0.0200100154876709,
291
+ 0.019990495681762695,
292
+ 0.020063232421875,
293
+ 0.020016128540039063,
294
+ 0.020025344848632814,
295
+ 0.020008960723876954,
296
+ 0.02026803207397461,
297
+ 0.02005504035949707,
298
+ 0.02039910316467285,
299
+ 0.019983360290527344,
300
+ 0.01999667167663574,
301
+ 0.020023296356201172,
302
+ 0.02008166313171387,
303
+ 0.020159488677978517,
304
+ 0.020471807479858398,
305
+ 0.02007756805419922,
306
+ 0.020068351745605468,
307
+ 0.019993600845336915,
308
+ 0.02085068893432617,
309
+ 0.02064076805114746,
310
+ 0.020602880477905275,
311
+ 0.020601856231689454,
312
+ 0.02062848091125488,
313
+ 0.020592639923095703,
314
+ 0.020050943374633787,
315
+ 0.019983360290527344,
316
+ 0.020001792907714845,
317
+ 0.020031488418579102,
318
+ 0.02004172706604004,
319
+ 0.02001817512512207,
320
+ 0.02004684829711914,
321
+ 0.02003455924987793,
322
+ 0.020023296356201172,
323
+ 0.02002124786376953,
324
+ 0.02004377555847168,
325
+ 0.020134912490844727,
326
+ 0.020051967620849608,
327
+ 0.020048896789550782,
328
+ 0.02003763198852539,
329
+ 0.020011007308959963
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 49.73515262609704
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02203115177154541,
7
+ "prefill.throughput.value": 317.7319130923028,
8
+ "decode.latency.mean": 2.5429818115234375,
9
+ "decode.throughput.value": 49.941371748906626,
10
+ "per_token.latency.mean": 0.02010650309083961,
11
+ "per_token.throughput.value": 49.73515262609704
12
+ }
13
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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: 0cf60f13ab1c857c17fc3fb127129048c93bf06c
82
+ accelerate_version: 0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c
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/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c
88
+ - hydra.run.dir=_benchmark/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${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/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
92
+ "accelerate_version": "0.32.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": 1926.791168,
109
+ "max_global_vram": 6094.848,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 5379.19488,
112
+ "max_allocated": 5021.251584
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.02825267219543457,
118
+ "mean": 0.014126336097717285,
119
+ "stdev": 9.008026123046887e-05,
120
+ "p50": 0.014126336097717285,
121
+ "p90": 0.01419840030670166,
122
+ "p95": 0.014207408332824707,
123
+ "p99": 0.014214614753723145,
124
+ "values": [
125
+ 0.014216416358947754,
126
+ 0.014036255836486817
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 495.52834872243693
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2270.47424,
140
+ "max_global_vram": 8907.128832,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 5379.19488,
143
+ "max_allocated": 5027.089408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 3.1223244628906253,
149
+ "mean": 1.5611622314453126,
150
+ "stdev": 0.0017890624999999938,
151
+ "p50": 1.5611622314453126,
152
+ "p90": 1.5625934814453126,
153
+ "p95": 1.5627723876953126,
154
+ "p99": 1.5629155126953125,
155
+ "values": [
156
+ 1.5629512939453125,
157
+ 1.5593731689453125
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 81.34964928175614
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.123441691398621,
173
+ "mean": 0.012345619333591386,
174
+ "stdev": 0.0008976254741421028,
175
+ "p50": 0.012279808044433594,
176
+ "p90": 0.012317695617675782,
177
+ "p95": 0.012366847801208496,
178
+ "p99": 0.012799877433776854,
179
+ "values": [
180
+ 0.012720128059387208,
181
+ 0.012816384315490722,
182
+ 0.012759039878845215,
183
+ 0.012307456016540527,
184
+ 0.012272640228271485,
185
+ 0.012297216415405274,
186
+ 0.012248064041137695,
187
+ 0.012291071891784668,
188
+ 0.01225830364227295,
189
+ 0.012306431770324706,
190
+ 0.012241920471191407,
191
+ 0.012298239707946777,
192
+ 0.01225830364227295,
193
+ 0.012328960418701173,
194
+ 0.012265472412109376,
195
+ 0.012290047645568849,
196
+ 0.01226137638092041,
197
+ 0.012312576293945313,
198
+ 0.012259327888488769,
199
+ 0.012304384231567383,
200
+ 0.012256256103515625,
201
+ 0.012294143676757812,
202
+ 0.012270591735839843,
203
+ 0.012286975860595703,
204
+ 0.012271615982055664,
205
+ 0.012302335739135742,
206
+ 0.01225830364227295,
207
+ 0.012300288200378418,
208
+ 0.01224294376373291,
209
+ 0.012282879829406738,
210
+ 0.012262399673461915,
211
+ 0.012328960418701173,
212
+ 0.01224396800994873,
213
+ 0.012282879829406738,
214
+ 0.01226035213470459,
215
+ 0.012308480262756348,
216
+ 0.01226035213470459,
217
+ 0.012281855583190919,
218
+ 0.012254207611083985,
219
+ 0.012304384231567383,
220
+ 0.012282879829406738,
221
+ 0.012311552047729492,
222
+ 0.012247039794921874,
223
+ 0.012286975860595703,
224
+ 0.012283904075622559,
225
+ 0.012317695617675782,
226
+ 0.012241920471191407,
227
+ 0.012286975860595703,
228
+ 0.012317695617675782,
229
+ 0.012302335739135742,
230
+ 0.012274687767028808,
231
+ 0.012289024353027344,
232
+ 0.01224396800994873,
233
+ 0.012281855583190919,
234
+ 0.01226137638092041,
235
+ 0.012294143676757812,
236
+ 0.012279808044433594,
237
+ 0.012290047645568849,
238
+ 0.012238847732543945,
239
+ 0.012527615547180175,
240
+ 0.012266495704650878,
241
+ 0.012303359985351562,
242
+ 0.012327936172485352,
243
+ 0.012290047645568849,
244
+ 0.012246015548706055,
245
+ 0.01229312038421631,
246
+ 0.012244992256164551,
247
+ 0.012283904075622559,
248
+ 0.012253184318542481,
249
+ 0.01229520034790039,
250
+ 0.012243935585021973,
251
+ 0.012357631683349609,
252
+ 0.01226956844329834,
253
+ 0.012322815895080566,
254
+ 0.012246015548706055,
255
+ 0.012303359985351562,
256
+ 0.012239871978759765,
257
+ 0.012286016464233399,
258
+ 0.012238783836364746,
259
+ 0.01234227180480957,
260
+ 0.012391424179077149,
261
+ 0.012439552307128907,
262
+ 0.012453887939453125,
263
+ 0.012858367919921876,
264
+ 0.012273664474487305,
265
+ 0.012292160034179687,
266
+ 0.012249024391174316,
267
+ 0.01229312038421631,
268
+ 0.012249088287353516,
269
+ 0.012275712013244629,
270
+ 0.012264448165893555,
271
+ 0.012283904075622559,
272
+ 0.01225011157989502,
273
+ 0.012305407524108887,
274
+ 0.012249088287353516,
275
+ 0.012289024353027344,
276
+ 0.01225216007232666,
277
+ 0.01237299156188965,
278
+ 0.012256256103515625,
279
+ 0.012282879829406738,
280
+ 0.012246015548706055,
281
+ 0.012323840141296387,
282
+ 0.01224396800994873,
283
+ 0.01228492832183838,
284
+ 0.01224396800994873,
285
+ 0.012295167922973632,
286
+ 0.012253184318542481,
287
+ 0.012302335739135742,
288
+ 0.012253184318542481,
289
+ 0.012289024353027344,
290
+ 0.012233728408813477,
291
+ 0.012286975860595703,
292
+ 0.012265472412109376,
293
+ 0.012300288200378418,
294
+ 0.01224294376373291,
295
+ 0.012285951614379884,
296
+ 0.012236800193786621,
297
+ 0.012286975860595703,
298
+ 0.012240896224975586,
299
+ 0.012286975860595703,
300
+ 0.012237824440002442,
301
+ 0.012278783798217773,
302
+ 0.01224294376373291,
303
+ 0.012488703727722168,
304
+ 0.012289024353027344,
305
+ 0.012310527801513671,
306
+ 0.02653593635559082,
307
+ 0.012257280349731446,
308
+ 0.012288000106811523,
309
+ 0.01224294376373291,
310
+ 0.012300288200378418,
311
+ 0.012248064041137695,
312
+ 0.012309503555297852,
313
+ 0.012267519950866699,
314
+ 0.012290047645568849,
315
+ 0.01225113582611084,
316
+ 0.012290047645568849,
317
+ 0.012257280349731446,
318
+ 0.012288000106811523,
319
+ 0.01226035213470459,
320
+ 0.012285951614379884,
321
+ 0.012240896224975586,
322
+ 0.012356608390808106,
323
+ 0.012272640228271485,
324
+ 0.012287039756774903,
325
+ 0.012243904113769532,
326
+ 0.012288000106811523,
327
+ 0.012253184318542481,
328
+ 0.012277759552001954,
329
+ 0.012246047973632813,
330
+ 0.012280799865722657,
331
+ 0.012255231857299804,
332
+ 0.012283967971801759,
333
+ 0.012234687805175781,
334
+ 0.01228492832183838,
335
+ 0.012253184318542481,
336
+ 0.012279808044433594,
337
+ 0.01225011157989502,
338
+ 0.012304384231567383,
339
+ 0.012240896224975586,
340
+ 0.012277759552001954,
341
+ 0.01224396800994873,
342
+ 0.012298239707946777,
343
+ 0.01224294376373291,
344
+ 0.012279808044433594,
345
+ 0.01225216007232666,
346
+ 0.012279808044433594,
347
+ 0.012239871978759765,
348
+ 0.012286975860595703,
349
+ 0.012230655670166016,
350
+ 0.012283904075622559,
351
+ 0.012249088287353516,
352
+ 0.012288000106811523,
353
+ 0.01225011157989502,
354
+ 0.012273664474487305,
355
+ 0.0122357759475708,
356
+ 0.012271615982055664,
357
+ 0.012784640312194824,
358
+ 0.012307456016540527,
359
+ 0.012254207611083985,
360
+ 0.012280832290649414,
361
+ 0.012254207611083985,
362
+ 0.012305407524108887,
363
+ 0.01228492832183838,
364
+ 0.012296192169189453,
365
+ 0.012292096138000488,
366
+ 0.012311552047729492,
367
+ 0.01223475170135498,
368
+ 0.012291071891784668,
369
+ 0.012266495704650878,
370
+ 0.012298239707946777,
371
+ 0.012231679916381836,
372
+ 0.012277791976928711,
373
+ 0.012238816261291504,
374
+ 0.012300288200378418,
375
+ 0.012240896224975586,
376
+ 0.012283904075622559,
377
+ 0.012246015548706055,
378
+ 0.012294143676757812,
379
+ 0.012244992256164551,
380
+ 0.012279808044433594,
381
+ 0.012248064041137695,
382
+ 0.012291071891784668,
383
+ 0.01223475170135498,
384
+ 0.012302335739135742,
385
+ 0.012244992256164551,
386
+ 0.01227673625946045,
387
+ 0.012256256103515625,
388
+ 0.012281888008117676,
389
+ 0.012359647750854493,
390
+ 0.0123023681640625,
391
+ 0.012243935585021973,
392
+ 0.01229312038421631,
393
+ 0.012254207611083985,
394
+ 0.012294143676757812,
395
+ 0.012248064041137695,
396
+ 0.012292096138000488,
397
+ 0.012362751960754394,
398
+ 0.012480511665344238,
399
+ 0.012247039794921874,
400
+ 0.012280832290649414,
401
+ 0.01225011157989502,
402
+ 0.012345343589782716,
403
+ 0.012259327888488769,
404
+ 0.012291071891784668,
405
+ 0.012249088287353516,
406
+ 0.01227673625946045,
407
+ 0.012241920471191407,
408
+ 0.012286975860595703,
409
+ 0.012238847732543945,
410
+ 0.012271615982055664,
411
+ 0.012244992256164551,
412
+ 0.012289024353027344,
413
+ 0.012279808044433594,
414
+ 0.01226956844329834,
415
+ 0.012239871978759765,
416
+ 0.012279808044433594,
417
+ 0.01224294376373291,
418
+ 0.012282879829406738,
419
+ 0.012230655670166016,
420
+ 0.012277759552001954,
421
+ 0.01225113582611084,
422
+ 0.012266495704650878,
423
+ 0.01224294376373291,
424
+ 0.012306495666503907,
425
+ 0.012232640266418456,
426
+ 0.012277759552001954,
427
+ 0.012263423919677734,
428
+ 0.012323840141296387,
429
+ 0.01223475170135498,
430
+ 0.012282879829406738,
431
+ 0.012241920471191407,
432
+ 0.012283935546875
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 81.00039155419968
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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.218-208.862.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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
91
+ "accelerate_version": "0.32.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-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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": 1926.791168,
6
+ "max_global_vram": 6094.848,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 5379.19488,
9
+ "max_allocated": 5021.251584
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.02825267219543457,
15
+ "mean": 0.014126336097717285,
16
+ "stdev": 9.008026123046887e-05,
17
+ "p50": 0.014126336097717285,
18
+ "p90": 0.01419840030670166,
19
+ "p95": 0.014207408332824707,
20
+ "p99": 0.014214614753723145,
21
+ "values": [
22
+ 0.014216416358947754,
23
+ 0.014036255836486817
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 495.52834872243693
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2270.47424,
37
+ "max_global_vram": 8907.128832,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 5379.19488,
40
+ "max_allocated": 5027.089408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 3.1223244628906253,
46
+ "mean": 1.5611622314453126,
47
+ "stdev": 0.0017890624999999938,
48
+ "p50": 1.5611622314453126,
49
+ "p90": 1.5625934814453126,
50
+ "p95": 1.5627723876953126,
51
+ "p99": 1.5629155126953125,
52
+ "values": [
53
+ 1.5629512939453125,
54
+ 1.5593731689453125
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 81.34964928175614
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.123441691398621,
70
+ "mean": 0.012345619333591386,
71
+ "stdev": 0.0008976254741421028,
72
+ "p50": 0.012279808044433594,
73
+ "p90": 0.012317695617675782,
74
+ "p95": 0.012366847801208496,
75
+ "p99": 0.012799877433776854,
76
+ "values": [
77
+ 0.012720128059387208,
78
+ 0.012816384315490722,
79
+ 0.012759039878845215,
80
+ 0.012307456016540527,
81
+ 0.012272640228271485,
82
+ 0.012297216415405274,
83
+ 0.012248064041137695,
84
+ 0.012291071891784668,
85
+ 0.01225830364227295,
86
+ 0.012306431770324706,
87
+ 0.012241920471191407,
88
+ 0.012298239707946777,
89
+ 0.01225830364227295,
90
+ 0.012328960418701173,
91
+ 0.012265472412109376,
92
+ 0.012290047645568849,
93
+ 0.01226137638092041,
94
+ 0.012312576293945313,
95
+ 0.012259327888488769,
96
+ 0.012304384231567383,
97
+ 0.012256256103515625,
98
+ 0.012294143676757812,
99
+ 0.012270591735839843,
100
+ 0.012286975860595703,
101
+ 0.012271615982055664,
102
+ 0.012302335739135742,
103
+ 0.01225830364227295,
104
+ 0.012300288200378418,
105
+ 0.01224294376373291,
106
+ 0.012282879829406738,
107
+ 0.012262399673461915,
108
+ 0.012328960418701173,
109
+ 0.01224396800994873,
110
+ 0.012282879829406738,
111
+ 0.01226035213470459,
112
+ 0.012308480262756348,
113
+ 0.01226035213470459,
114
+ 0.012281855583190919,
115
+ 0.012254207611083985,
116
+ 0.012304384231567383,
117
+ 0.012282879829406738,
118
+ 0.012311552047729492,
119
+ 0.012247039794921874,
120
+ 0.012286975860595703,
121
+ 0.012283904075622559,
122
+ 0.012317695617675782,
123
+ 0.012241920471191407,
124
+ 0.012286975860595703,
125
+ 0.012317695617675782,
126
+ 0.012302335739135742,
127
+ 0.012274687767028808,
128
+ 0.012289024353027344,
129
+ 0.01224396800994873,
130
+ 0.012281855583190919,
131
+ 0.01226137638092041,
132
+ 0.012294143676757812,
133
+ 0.012279808044433594,
134
+ 0.012290047645568849,
135
+ 0.012238847732543945,
136
+ 0.012527615547180175,
137
+ 0.012266495704650878,
138
+ 0.012303359985351562,
139
+ 0.012327936172485352,
140
+ 0.012290047645568849,
141
+ 0.012246015548706055,
142
+ 0.01229312038421631,
143
+ 0.012244992256164551,
144
+ 0.012283904075622559,
145
+ 0.012253184318542481,
146
+ 0.01229520034790039,
147
+ 0.012243935585021973,
148
+ 0.012357631683349609,
149
+ 0.01226956844329834,
150
+ 0.012322815895080566,
151
+ 0.012246015548706055,
152
+ 0.012303359985351562,
153
+ 0.012239871978759765,
154
+ 0.012286016464233399,
155
+ 0.012238783836364746,
156
+ 0.01234227180480957,
157
+ 0.012391424179077149,
158
+ 0.012439552307128907,
159
+ 0.012453887939453125,
160
+ 0.012858367919921876,
161
+ 0.012273664474487305,
162
+ 0.012292160034179687,
163
+ 0.012249024391174316,
164
+ 0.01229312038421631,
165
+ 0.012249088287353516,
166
+ 0.012275712013244629,
167
+ 0.012264448165893555,
168
+ 0.012283904075622559,
169
+ 0.01225011157989502,
170
+ 0.012305407524108887,
171
+ 0.012249088287353516,
172
+ 0.012289024353027344,
173
+ 0.01225216007232666,
174
+ 0.01237299156188965,
175
+ 0.012256256103515625,
176
+ 0.012282879829406738,
177
+ 0.012246015548706055,
178
+ 0.012323840141296387,
179
+ 0.01224396800994873,
180
+ 0.01228492832183838,
181
+ 0.01224396800994873,
182
+ 0.012295167922973632,
183
+ 0.012253184318542481,
184
+ 0.012302335739135742,
185
+ 0.012253184318542481,
186
+ 0.012289024353027344,
187
+ 0.012233728408813477,
188
+ 0.012286975860595703,
189
+ 0.012265472412109376,
190
+ 0.012300288200378418,
191
+ 0.01224294376373291,
192
+ 0.012285951614379884,
193
+ 0.012236800193786621,
194
+ 0.012286975860595703,
195
+ 0.012240896224975586,
196
+ 0.012286975860595703,
197
+ 0.012237824440002442,
198
+ 0.012278783798217773,
199
+ 0.01224294376373291,
200
+ 0.012488703727722168,
201
+ 0.012289024353027344,
202
+ 0.012310527801513671,
203
+ 0.02653593635559082,
204
+ 0.012257280349731446,
205
+ 0.012288000106811523,
206
+ 0.01224294376373291,
207
+ 0.012300288200378418,
208
+ 0.012248064041137695,
209
+ 0.012309503555297852,
210
+ 0.012267519950866699,
211
+ 0.012290047645568849,
212
+ 0.01225113582611084,
213
+ 0.012290047645568849,
214
+ 0.012257280349731446,
215
+ 0.012288000106811523,
216
+ 0.01226035213470459,
217
+ 0.012285951614379884,
218
+ 0.012240896224975586,
219
+ 0.012356608390808106,
220
+ 0.012272640228271485,
221
+ 0.012287039756774903,
222
+ 0.012243904113769532,
223
+ 0.012288000106811523,
224
+ 0.012253184318542481,
225
+ 0.012277759552001954,
226
+ 0.012246047973632813,
227
+ 0.012280799865722657,
228
+ 0.012255231857299804,
229
+ 0.012283967971801759,
230
+ 0.012234687805175781,
231
+ 0.01228492832183838,
232
+ 0.012253184318542481,
233
+ 0.012279808044433594,
234
+ 0.01225011157989502,
235
+ 0.012304384231567383,
236
+ 0.012240896224975586,
237
+ 0.012277759552001954,
238
+ 0.01224396800994873,
239
+ 0.012298239707946777,
240
+ 0.01224294376373291,
241
+ 0.012279808044433594,
242
+ 0.01225216007232666,
243
+ 0.012279808044433594,
244
+ 0.012239871978759765,
245
+ 0.012286975860595703,
246
+ 0.012230655670166016,
247
+ 0.012283904075622559,
248
+ 0.012249088287353516,
249
+ 0.012288000106811523,
250
+ 0.01225011157989502,
251
+ 0.012273664474487305,
252
+ 0.0122357759475708,
253
+ 0.012271615982055664,
254
+ 0.012784640312194824,
255
+ 0.012307456016540527,
256
+ 0.012254207611083985,
257
+ 0.012280832290649414,
258
+ 0.012254207611083985,
259
+ 0.012305407524108887,
260
+ 0.01228492832183838,
261
+ 0.012296192169189453,
262
+ 0.012292096138000488,
263
+ 0.012311552047729492,
264
+ 0.01223475170135498,
265
+ 0.012291071891784668,
266
+ 0.012266495704650878,
267
+ 0.012298239707946777,
268
+ 0.012231679916381836,
269
+ 0.012277791976928711,
270
+ 0.012238816261291504,
271
+ 0.012300288200378418,
272
+ 0.012240896224975586,
273
+ 0.012283904075622559,
274
+ 0.012246015548706055,
275
+ 0.012294143676757812,
276
+ 0.012244992256164551,
277
+ 0.012279808044433594,
278
+ 0.012248064041137695,
279
+ 0.012291071891784668,
280
+ 0.01223475170135498,
281
+ 0.012302335739135742,
282
+ 0.012244992256164551,
283
+ 0.01227673625946045,
284
+ 0.012256256103515625,
285
+ 0.012281888008117676,
286
+ 0.012359647750854493,
287
+ 0.0123023681640625,
288
+ 0.012243935585021973,
289
+ 0.01229312038421631,
290
+ 0.012254207611083985,
291
+ 0.012294143676757812,
292
+ 0.012248064041137695,
293
+ 0.012292096138000488,
294
+ 0.012362751960754394,
295
+ 0.012480511665344238,
296
+ 0.012247039794921874,
297
+ 0.012280832290649414,
298
+ 0.01225011157989502,
299
+ 0.012345343589782716,
300
+ 0.012259327888488769,
301
+ 0.012291071891784668,
302
+ 0.012249088287353516,
303
+ 0.01227673625946045,
304
+ 0.012241920471191407,
305
+ 0.012286975860595703,
306
+ 0.012238847732543945,
307
+ 0.012271615982055664,
308
+ 0.012244992256164551,
309
+ 0.012289024353027344,
310
+ 0.012279808044433594,
311
+ 0.01226956844329834,
312
+ 0.012239871978759765,
313
+ 0.012279808044433594,
314
+ 0.01224294376373291,
315
+ 0.012282879829406738,
316
+ 0.012230655670166016,
317
+ 0.012277759552001954,
318
+ 0.01225113582611084,
319
+ 0.012266495704650878,
320
+ 0.01224294376373291,
321
+ 0.012306495666503907,
322
+ 0.012232640266418456,
323
+ 0.012277759552001954,
324
+ 0.012263423919677734,
325
+ 0.012323840141296387,
326
+ 0.01223475170135498,
327
+ 0.012282879829406738,
328
+ 0.012241920471191407,
329
+ 0.012283935546875
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 81.00039155419968
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/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": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014126336097717285,
7
+ "prefill.throughput.value": 495.52834872243693,
8
+ "decode.latency.mean": 1.5611622314453126,
9
+ "decode.throughput.value": 81.34964928175614,
10
+ "per_token.latency.mean": 0.012345619333591386,
11
+ "per_token.throughput.value": 81.00039155419968
12
+ }
13
+ }
2024-06-27/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp4835o3gn/commit=0cf60f13ab1c857c17fc3fb127129048c93bf06c
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/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c
88
+ - hydra.run.dir=_benchmark/tmp4835o3gn/commit\=0cf60f13ab1c857c17fc3fb127129048c93bf06c/${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.218-208.862.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: 0cf60f13ab1c857c17fc3fb127129048c93bf06c
223
+ accelerate_version: 0.32.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-06-27/summaries.json CHANGED
@@ -1,41 +1,41 @@
1
  [
2
  {
3
  "model": "google/gemma-2b",
4
- "commit": "11138ca013add0041753aab276e83261c38b08ac",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
- "prefill.latency.mean": 0.02065000057220459,
8
- "prefill.throughput.value": 338.98304145435094,
9
- "decode.latency.mean": 2.4808460693359375,
10
- "decode.throughput.value": 51.19221283809633,
11
- "per_token.latency.mean": 0.019609357132742054,
12
- "per_token.throughput.value": 50.99606240177472
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
- "commit": "11138ca013add0041753aab276e83261c38b08ac",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
- "prefill.latency.mean": 0.0228809757232666,
21
- "prefill.throughput.value": 305.93100944038963,
22
- "decode.latency.mean": 2.6492465820312496,
23
- "decode.throughput.value": 47.93815753557588,
24
- "per_token.latency.mean": 0.020951849481333853,
25
- "per_token.throughput.value": 47.728483391927135
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
- "commit": "11138ca013add0041753aab276e83261c38b08ac",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
- "prefill.latency.mean": 0.014092031955718995,
34
- "prefill.throughput.value": 496.73461016806573,
35
- "decode.latency.mean": 1.5612584228515625,
36
- "decode.throughput.value": 81.3446372113341,
37
- "per_token.latency.mean": 0.012346432486070475,
38
- "per_token.throughput.value": 80.99505676058429
39
  }
40
  }
41
  ]
 
1
  [
2
  {
3
  "model": "google/gemma-2b",
4
+ "commit": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
5
  "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
  "metrics": {
7
+ "prefill.latency.mean": 0.020097536087036134,
8
+ "prefill.throughput.value": 348.3014022059815,
9
+ "decode.latency.mean": 2.4510888671875,
10
+ "decode.throughput.value": 51.8137068386778,
11
+ "per_token.latency.mean": 0.019379450899810188,
12
+ "per_token.throughput.value": 51.60104923353605
13
  }
14
  },
15
  {
16
  "model": "google/gemma-2b",
17
+ "commit": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
18
  "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
  "metrics": {
20
+ "prefill.latency.mean": 0.02203115177154541,
21
+ "prefill.throughput.value": 317.7319130923028,
22
+ "decode.latency.mean": 2.5429818115234375,
23
+ "decode.throughput.value": 49.941371748906626,
24
+ "per_token.latency.mean": 0.02010650309083961,
25
+ "per_token.throughput.value": 49.73515262609704
26
  }
27
  },
28
  {
29
  "model": "google/gemma-2b",
30
+ "commit": "0cf60f13ab1c857c17fc3fb127129048c93bf06c",
31
  "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
  "metrics": {
33
+ "prefill.latency.mean": 0.014126336097717285,
34
+ "prefill.throughput.value": 495.52834872243693,
35
+ "decode.latency.mean": 1.5611622314453126,
36
+ "decode.throughput.value": 81.34964928175614,
37
+ "per_token.latency.mean": 0.012345619333591386,
38
+ "per_token.throughput.value": 81.00039155419968
39
  }
40
  }
41
  ]
2024-06-27/summary.json CHANGED
@@ -1,38 +1,38 @@
1
  {
2
  "google/gemma-2b": {
3
  "backend.cache_implementation=null,backend.torch_compile=False": {
4
- "11138ca013add0041753aab276e83261c38b08ac": {
5
  "metrics": {
6
- "prefill.latency.mean": 0.02065000057220459,
7
- "prefill.throughput.value": 338.98304145435094,
8
- "decode.latency.mean": 2.4808460693359375,
9
- "decode.throughput.value": 51.19221283809633,
10
- "per_token.latency.mean": 0.019609357132742054,
11
- "per_token.throughput.value": 50.99606240177472
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
- "11138ca013add0041753aab276e83261c38b08ac": {
17
  "metrics": {
18
- "prefill.latency.mean": 0.0228809757232666,
19
- "prefill.throughput.value": 305.93100944038963,
20
- "decode.latency.mean": 2.6492465820312496,
21
- "decode.throughput.value": 47.93815753557588,
22
- "per_token.latency.mean": 0.020951849481333853,
23
- "per_token.throughput.value": 47.728483391927135
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
- "11138ca013add0041753aab276e83261c38b08ac": {
29
  "metrics": {
30
- "prefill.latency.mean": 0.014092031955718995,
31
- "prefill.throughput.value": 496.73461016806573,
32
- "decode.latency.mean": 1.5612584228515625,
33
- "decode.throughput.value": 81.3446372113341,
34
- "per_token.latency.mean": 0.012346432486070475,
35
- "per_token.throughput.value": 80.99505676058429
36
  }
37
  }
38
  }
 
1
  {
2
  "google/gemma-2b": {
3
  "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "0cf60f13ab1c857c17fc3fb127129048c93bf06c": {
5
  "metrics": {
6
+ "prefill.latency.mean": 0.020097536087036134,
7
+ "prefill.throughput.value": 348.3014022059815,
8
+ "decode.latency.mean": 2.4510888671875,
9
+ "decode.throughput.value": 51.8137068386778,
10
+ "per_token.latency.mean": 0.019379450899810188,
11
+ "per_token.throughput.value": 51.60104923353605
12
  }
13
  }
14
  },
15
  "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "0cf60f13ab1c857c17fc3fb127129048c93bf06c": {
17
  "metrics": {
18
+ "prefill.latency.mean": 0.02203115177154541,
19
+ "prefill.throughput.value": 317.7319130923028,
20
+ "decode.latency.mean": 2.5429818115234375,
21
+ "decode.throughput.value": 49.941371748906626,
22
+ "per_token.latency.mean": 0.02010650309083961,
23
+ "per_token.throughput.value": 49.73515262609704
24
  }
25
  }
26
  },
27
  "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "0cf60f13ab1c857c17fc3fb127129048c93bf06c": {
29
  "metrics": {
30
+ "prefill.latency.mean": 0.014126336097717285,
31
+ "prefill.throughput.value": 495.52834872243693,
32
+ "decode.latency.mean": 1.5611622314453126,
33
+ "decode.throughput.value": 81.34964928175614,
34
+ "per_token.latency.mean": 0.012345619333591386,
35
+ "per_token.throughput.value": 81.00039155419968
36
  }
37
  }
38
  }