hf-transformers-bot commited on
Commit
a318fee
1 Parent(s): 0a791a4

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/multirun.yaml +232 -0
  31. 2024-06-25/summaries.json +41 -0
  32. 2024-06-25/summary.json +40 -0
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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: 74b92c62560b7ade42d35a49f9063adc8b805c4a
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a
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/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a
88
+ - hydra.run.dir=_benchmark/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a/${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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
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": 1704.5504,
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.038641920089721685,
118
+ "mean": 0.019320960044860842,
119
+ "stdev": 0.0002982397079467781,
120
+ "p50": 0.019320960044860842,
121
+ "p90": 0.019559551811218264,
122
+ "p95": 0.01958937578201294,
123
+ "p99": 0.01961323495864868,
124
+ "values": [
125
+ 0.01961919975280762,
126
+ 0.019022720336914063
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 362.30083721237867
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1704.574976,
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.655030517578125,
149
+ "mean": 2.3275152587890626,
150
+ "stdev": 0.003330932617187532,
151
+ "p50": 2.3275152587890626,
152
+ "p90": 2.3301800048828127,
153
+ "p95": 2.3305130981445314,
154
+ "p99": 2.3307795727539062,
155
+ "values": [
156
+ 2.324184326171875,
157
+ 2.33084619140625
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 54.564626169658
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.655222801208495,
173
+ "mean": 0.01840009012335374,
174
+ "stdev": 0.001254085328966746,
175
+ "p50": 0.018181119918823242,
176
+ "p90": 0.018891775131225585,
177
+ "p95": 0.01915596809387207,
178
+ "p99": 0.019525508193969726,
179
+ "values": [
180
+ 0.01882828712463379,
181
+ 0.0198287353515625,
182
+ 0.018349056243896485,
183
+ 0.018124799728393554,
184
+ 0.018137088775634767,
185
+ 0.01830297660827637,
186
+ 0.018174047470092772,
187
+ 0.018126752853393553,
188
+ 0.01805721664428711,
189
+ 0.018123775482177733,
190
+ 0.018081792831420897,
191
+ 0.018114559173583983,
192
+ 0.018173952102661133,
193
+ 0.018128896713256838,
194
+ 0.018066432952880858,
195
+ 0.018172927856445312,
196
+ 0.018283519744873047,
197
+ 0.018130943298339842,
198
+ 0.018731008529663085,
199
+ 0.018824192047119142,
200
+ 0.018351104736328124,
201
+ 0.018119680404663087,
202
+ 0.019165184020996092,
203
+ 0.01881395149230957,
204
+ 0.01879347229003906,
205
+ 0.018877439498901367,
206
+ 0.01883955192565918,
207
+ 0.018969600677490234,
208
+ 0.01830297660827637,
209
+ 0.01819340705871582,
210
+ 0.018185216903686522,
211
+ 0.01810534477233887,
212
+ 0.018851839065551757,
213
+ 0.01882316780090332,
214
+ 0.01799782371520996,
215
+ 0.017932287216186525,
216
+ 0.017954816818237306,
217
+ 0.01799577522277832,
218
+ 0.018010112762451173,
219
+ 0.017968128204345703,
220
+ 0.018114559173583983,
221
+ 0.018108415603637695,
222
+ 0.018191360473632814,
223
+ 0.018308095932006836,
224
+ 0.01811369514465332,
225
+ 0.018199392318725586,
226
+ 0.01825279998779297,
227
+ 0.018338815689086914,
228
+ 0.017954816818237306,
229
+ 0.01819545555114746,
230
+ 0.01799884796142578,
231
+ 0.017941503524780272,
232
+ 0.017970176696777345,
233
+ 0.018060287475585936,
234
+ 0.01802956771850586,
235
+ 0.01796505546569824,
236
+ 0.018167808532714845,
237
+ 0.018117631912231445,
238
+ 0.01809715270996094,
239
+ 0.018266111373901366,
240
+ 0.018618368148803712,
241
+ 0.018729984283447267,
242
+ 0.018716672897338867,
243
+ 0.01865318489074707,
244
+ 0.018373632431030275,
245
+ 0.018331647872924805,
246
+ 0.018206720352172853,
247
+ 0.01819340705871582,
248
+ 0.01808896064758301,
249
+ 0.018303104400634766,
250
+ 0.018380672454833984,
251
+ 0.018315263748168945,
252
+ 0.018339839935302735,
253
+ 0.01807257652282715,
254
+ 0.01827123260498047,
255
+ 0.018153472900390624,
256
+ 0.018130943298339842,
257
+ 0.01810534477233887,
258
+ 0.018078720092773438,
259
+ 0.018128896713256838,
260
+ 0.01862144088745117,
261
+ 0.018891775131225585,
262
+ 0.01842790412902832,
263
+ 0.018137088775634767,
264
+ 0.018153472900390624,
265
+ 0.018094175338745116,
266
+ 0.01814828872680664,
267
+ 0.01807868766784668,
268
+ 0.018163711547851562,
269
+ 0.018291711807250977,
270
+ 0.018131967544555663,
271
+ 0.018113536834716795,
272
+ 0.018222143173217773,
273
+ 0.018238399505615236,
274
+ 0.018140159606933593,
275
+ 0.018100223541259765,
276
+ 0.018289663314819335,
277
+ 0.018348031997680665,
278
+ 0.018157567977905274,
279
+ 0.018152448654174806,
280
+ 0.01816985511779785,
281
+ 0.01883545684814453,
282
+ 0.018977792739868164,
283
+ 0.018136064529418947,
284
+ 0.01903718376159668,
285
+ 0.01859686470031738,
286
+ 0.018301952362060548,
287
+ 0.018114559173583983,
288
+ 0.018330623626708984,
289
+ 0.018747392654418944,
290
+ 0.01879859161376953,
291
+ 0.01824460792541504,
292
+ 0.018181119918823242,
293
+ 0.018140159606933593,
294
+ 0.018145280838012694,
295
+ 0.018134016036987305,
296
+ 0.018115583419799804,
297
+ 0.018124799728393554,
298
+ 0.018181119918823242,
299
+ 0.018109439849853515,
300
+ 0.0182476806640625,
301
+ 0.01830297660827637,
302
+ 0.018059263229370116,
303
+ 0.01816166305541992,
304
+ 0.01838387107849121,
305
+ 0.018251775741577148,
306
+ 0.037407745361328126,
307
+ 0.018018304824829103,
308
+ 0.017967103958129883,
309
+ 0.017975296020507812,
310
+ 0.017957887649536132,
311
+ 0.017993728637695314,
312
+ 0.017984512329101563,
313
+ 0.01803878402709961,
314
+ 0.017966079711914062,
315
+ 0.018027519226074217,
316
+ 0.017950719833374023,
317
+ 0.01807974433898926,
318
+ 0.017993728637695314,
319
+ 0.01800499153137207,
320
+ 0.01802137565612793,
321
+ 0.017952768325805665,
322
+ 0.017943552017211914,
323
+ 0.017936384201049805,
324
+ 0.01800704002380371,
325
+ 0.01804902458190918,
326
+ 0.018018304824829103,
327
+ 0.017952768325805665,
328
+ 0.017945600509643556,
329
+ 0.01803468894958496,
330
+ 0.017925119400024413,
331
+ 0.017985536575317384,
332
+ 0.0179814395904541,
333
+ 0.017970176696777345,
334
+ 0.018001920700073244,
335
+ 0.01804595184326172,
336
+ 0.018329599380493163,
337
+ 0.01821286392211914,
338
+ 0.01807257652282715,
339
+ 0.018091007232666014,
340
+ 0.01805619239807129,
341
+ 0.018159616470336915,
342
+ 0.01797222328186035,
343
+ 0.01802649688720703,
344
+ 0.017960960388183594,
345
+ 0.017960960388183594,
346
+ 0.01808896064758301,
347
+ 0.0179814395904541,
348
+ 0.018010112762451173,
349
+ 0.018066432952880858,
350
+ 0.018081792831420897,
351
+ 0.017931264877319338,
352
+ 0.018019327163696287,
353
+ 0.0180633602142334,
354
+ 0.018118656158447266,
355
+ 0.017979391098022462,
356
+ 0.018051103591918947,
357
+ 0.018064352035522462,
358
+ 0.017986560821533205,
359
+ 0.01818623924255371,
360
+ 0.01819647979736328,
361
+ 0.018206720352172853,
362
+ 0.018189311981201172,
363
+ 0.01828659248352051,
364
+ 0.018386943817138672,
365
+ 0.018391040802001952,
366
+ 0.018373632431030275,
367
+ 0.018367488861083983,
368
+ 0.018229248046875,
369
+ 0.018191360473632814,
370
+ 0.01808793640136719,
371
+ 0.018157567977905274,
372
+ 0.018328575134277342,
373
+ 0.018423807144165038,
374
+ 0.018308095932006836,
375
+ 0.018745344161987306,
376
+ 0.019510271072387696,
377
+ 0.019542015075683594,
378
+ 0.019326976776123047,
379
+ 0.01922662353515625,
380
+ 0.018397184371948243,
381
+ 0.01842585563659668,
382
+ 0.01920204734802246,
383
+ 0.019149824142456053,
384
+ 0.018378751754760742,
385
+ 0.018206720352172853,
386
+ 0.018298879623413086,
387
+ 0.018355199813842774,
388
+ 0.018769920349121092,
389
+ 0.018880512237548826,
390
+ 0.018873344421386717,
391
+ 0.018923648834228514,
392
+ 0.01903398323059082,
393
+ 0.019324928283691405,
394
+ 0.01881395149230957,
395
+ 0.018840576171875,
396
+ 0.018807807922363282,
397
+ 0.01899212837219238,
398
+ 0.01907302474975586,
399
+ 0.018969600677490234,
400
+ 0.019173376083374022,
401
+ 0.019140607833862306,
402
+ 0.019214431762695314,
403
+ 0.01882512092590332,
404
+ 0.018177024841308592,
405
+ 0.018114559173583983,
406
+ 0.018276351928710938,
407
+ 0.018156543731689453,
408
+ 0.01816166305541992,
409
+ 0.018126848220825196,
410
+ 0.018207744598388673,
411
+ 0.018124799728393554,
412
+ 0.01821388816833496,
413
+ 0.01880268859863281,
414
+ 0.018921472549438476,
415
+ 0.019190784454345702,
416
+ 0.018318336486816408,
417
+ 0.018308095932006836,
418
+ 0.01819545555114746,
419
+ 0.01819443130493164,
420
+ 0.018169984817504883,
421
+ 0.018288511276245117,
422
+ 0.018747392654418944,
423
+ 0.018990079879760743,
424
+ 0.018783231735229493,
425
+ 0.01883545684814453,
426
+ 0.018891775131225585,
427
+ 0.018093055725097656,
428
+ 0.018176000595092775,
429
+ 0.01819647979736328,
430
+ 0.01863372802734375,
431
+ 0.019272703170776367,
432
+ 0.018168832778930662
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 54.34755989215407
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": 1704.5504,
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.038641920089721685,
15
+ "mean": 0.019320960044860842,
16
+ "stdev": 0.0002982397079467781,
17
+ "p50": 0.019320960044860842,
18
+ "p90": 0.019559551811218264,
19
+ "p95": 0.01958937578201294,
20
+ "p99": 0.01961323495864868,
21
+ "values": [
22
+ 0.01961919975280762,
23
+ 0.019022720336914063
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 362.30083721237867
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1704.574976,
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.655030517578125,
46
+ "mean": 2.3275152587890626,
47
+ "stdev": 0.003330932617187532,
48
+ "p50": 2.3275152587890626,
49
+ "p90": 2.3301800048828127,
50
+ "p95": 2.3305130981445314,
51
+ "p99": 2.3307795727539062,
52
+ "values": [
53
+ 2.324184326171875,
54
+ 2.33084619140625
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 54.564626169658
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.655222801208495,
70
+ "mean": 0.01840009012335374,
71
+ "stdev": 0.001254085328966746,
72
+ "p50": 0.018181119918823242,
73
+ "p90": 0.018891775131225585,
74
+ "p95": 0.01915596809387207,
75
+ "p99": 0.019525508193969726,
76
+ "values": [
77
+ 0.01882828712463379,
78
+ 0.0198287353515625,
79
+ 0.018349056243896485,
80
+ 0.018124799728393554,
81
+ 0.018137088775634767,
82
+ 0.01830297660827637,
83
+ 0.018174047470092772,
84
+ 0.018126752853393553,
85
+ 0.01805721664428711,
86
+ 0.018123775482177733,
87
+ 0.018081792831420897,
88
+ 0.018114559173583983,
89
+ 0.018173952102661133,
90
+ 0.018128896713256838,
91
+ 0.018066432952880858,
92
+ 0.018172927856445312,
93
+ 0.018283519744873047,
94
+ 0.018130943298339842,
95
+ 0.018731008529663085,
96
+ 0.018824192047119142,
97
+ 0.018351104736328124,
98
+ 0.018119680404663087,
99
+ 0.019165184020996092,
100
+ 0.01881395149230957,
101
+ 0.01879347229003906,
102
+ 0.018877439498901367,
103
+ 0.01883955192565918,
104
+ 0.018969600677490234,
105
+ 0.01830297660827637,
106
+ 0.01819340705871582,
107
+ 0.018185216903686522,
108
+ 0.01810534477233887,
109
+ 0.018851839065551757,
110
+ 0.01882316780090332,
111
+ 0.01799782371520996,
112
+ 0.017932287216186525,
113
+ 0.017954816818237306,
114
+ 0.01799577522277832,
115
+ 0.018010112762451173,
116
+ 0.017968128204345703,
117
+ 0.018114559173583983,
118
+ 0.018108415603637695,
119
+ 0.018191360473632814,
120
+ 0.018308095932006836,
121
+ 0.01811369514465332,
122
+ 0.018199392318725586,
123
+ 0.01825279998779297,
124
+ 0.018338815689086914,
125
+ 0.017954816818237306,
126
+ 0.01819545555114746,
127
+ 0.01799884796142578,
128
+ 0.017941503524780272,
129
+ 0.017970176696777345,
130
+ 0.018060287475585936,
131
+ 0.01802956771850586,
132
+ 0.01796505546569824,
133
+ 0.018167808532714845,
134
+ 0.018117631912231445,
135
+ 0.01809715270996094,
136
+ 0.018266111373901366,
137
+ 0.018618368148803712,
138
+ 0.018729984283447267,
139
+ 0.018716672897338867,
140
+ 0.01865318489074707,
141
+ 0.018373632431030275,
142
+ 0.018331647872924805,
143
+ 0.018206720352172853,
144
+ 0.01819340705871582,
145
+ 0.01808896064758301,
146
+ 0.018303104400634766,
147
+ 0.018380672454833984,
148
+ 0.018315263748168945,
149
+ 0.018339839935302735,
150
+ 0.01807257652282715,
151
+ 0.01827123260498047,
152
+ 0.018153472900390624,
153
+ 0.018130943298339842,
154
+ 0.01810534477233887,
155
+ 0.018078720092773438,
156
+ 0.018128896713256838,
157
+ 0.01862144088745117,
158
+ 0.018891775131225585,
159
+ 0.01842790412902832,
160
+ 0.018137088775634767,
161
+ 0.018153472900390624,
162
+ 0.018094175338745116,
163
+ 0.01814828872680664,
164
+ 0.01807868766784668,
165
+ 0.018163711547851562,
166
+ 0.018291711807250977,
167
+ 0.018131967544555663,
168
+ 0.018113536834716795,
169
+ 0.018222143173217773,
170
+ 0.018238399505615236,
171
+ 0.018140159606933593,
172
+ 0.018100223541259765,
173
+ 0.018289663314819335,
174
+ 0.018348031997680665,
175
+ 0.018157567977905274,
176
+ 0.018152448654174806,
177
+ 0.01816985511779785,
178
+ 0.01883545684814453,
179
+ 0.018977792739868164,
180
+ 0.018136064529418947,
181
+ 0.01903718376159668,
182
+ 0.01859686470031738,
183
+ 0.018301952362060548,
184
+ 0.018114559173583983,
185
+ 0.018330623626708984,
186
+ 0.018747392654418944,
187
+ 0.01879859161376953,
188
+ 0.01824460792541504,
189
+ 0.018181119918823242,
190
+ 0.018140159606933593,
191
+ 0.018145280838012694,
192
+ 0.018134016036987305,
193
+ 0.018115583419799804,
194
+ 0.018124799728393554,
195
+ 0.018181119918823242,
196
+ 0.018109439849853515,
197
+ 0.0182476806640625,
198
+ 0.01830297660827637,
199
+ 0.018059263229370116,
200
+ 0.01816166305541992,
201
+ 0.01838387107849121,
202
+ 0.018251775741577148,
203
+ 0.037407745361328126,
204
+ 0.018018304824829103,
205
+ 0.017967103958129883,
206
+ 0.017975296020507812,
207
+ 0.017957887649536132,
208
+ 0.017993728637695314,
209
+ 0.017984512329101563,
210
+ 0.01803878402709961,
211
+ 0.017966079711914062,
212
+ 0.018027519226074217,
213
+ 0.017950719833374023,
214
+ 0.01807974433898926,
215
+ 0.017993728637695314,
216
+ 0.01800499153137207,
217
+ 0.01802137565612793,
218
+ 0.017952768325805665,
219
+ 0.017943552017211914,
220
+ 0.017936384201049805,
221
+ 0.01800704002380371,
222
+ 0.01804902458190918,
223
+ 0.018018304824829103,
224
+ 0.017952768325805665,
225
+ 0.017945600509643556,
226
+ 0.01803468894958496,
227
+ 0.017925119400024413,
228
+ 0.017985536575317384,
229
+ 0.0179814395904541,
230
+ 0.017970176696777345,
231
+ 0.018001920700073244,
232
+ 0.01804595184326172,
233
+ 0.018329599380493163,
234
+ 0.01821286392211914,
235
+ 0.01807257652282715,
236
+ 0.018091007232666014,
237
+ 0.01805619239807129,
238
+ 0.018159616470336915,
239
+ 0.01797222328186035,
240
+ 0.01802649688720703,
241
+ 0.017960960388183594,
242
+ 0.017960960388183594,
243
+ 0.01808896064758301,
244
+ 0.0179814395904541,
245
+ 0.018010112762451173,
246
+ 0.018066432952880858,
247
+ 0.018081792831420897,
248
+ 0.017931264877319338,
249
+ 0.018019327163696287,
250
+ 0.0180633602142334,
251
+ 0.018118656158447266,
252
+ 0.017979391098022462,
253
+ 0.018051103591918947,
254
+ 0.018064352035522462,
255
+ 0.017986560821533205,
256
+ 0.01818623924255371,
257
+ 0.01819647979736328,
258
+ 0.018206720352172853,
259
+ 0.018189311981201172,
260
+ 0.01828659248352051,
261
+ 0.018386943817138672,
262
+ 0.018391040802001952,
263
+ 0.018373632431030275,
264
+ 0.018367488861083983,
265
+ 0.018229248046875,
266
+ 0.018191360473632814,
267
+ 0.01808793640136719,
268
+ 0.018157567977905274,
269
+ 0.018328575134277342,
270
+ 0.018423807144165038,
271
+ 0.018308095932006836,
272
+ 0.018745344161987306,
273
+ 0.019510271072387696,
274
+ 0.019542015075683594,
275
+ 0.019326976776123047,
276
+ 0.01922662353515625,
277
+ 0.018397184371948243,
278
+ 0.01842585563659668,
279
+ 0.01920204734802246,
280
+ 0.019149824142456053,
281
+ 0.018378751754760742,
282
+ 0.018206720352172853,
283
+ 0.018298879623413086,
284
+ 0.018355199813842774,
285
+ 0.018769920349121092,
286
+ 0.018880512237548826,
287
+ 0.018873344421386717,
288
+ 0.018923648834228514,
289
+ 0.01903398323059082,
290
+ 0.019324928283691405,
291
+ 0.01881395149230957,
292
+ 0.018840576171875,
293
+ 0.018807807922363282,
294
+ 0.01899212837219238,
295
+ 0.01907302474975586,
296
+ 0.018969600677490234,
297
+ 0.019173376083374022,
298
+ 0.019140607833862306,
299
+ 0.019214431762695314,
300
+ 0.01882512092590332,
301
+ 0.018177024841308592,
302
+ 0.018114559173583983,
303
+ 0.018276351928710938,
304
+ 0.018156543731689453,
305
+ 0.01816166305541992,
306
+ 0.018126848220825196,
307
+ 0.018207744598388673,
308
+ 0.018124799728393554,
309
+ 0.01821388816833496,
310
+ 0.01880268859863281,
311
+ 0.018921472549438476,
312
+ 0.019190784454345702,
313
+ 0.018318336486816408,
314
+ 0.018308095932006836,
315
+ 0.01819545555114746,
316
+ 0.01819443130493164,
317
+ 0.018169984817504883,
318
+ 0.018288511276245117,
319
+ 0.018747392654418944,
320
+ 0.018990079879760743,
321
+ 0.018783231735229493,
322
+ 0.01883545684814453,
323
+ 0.018891775131225585,
324
+ 0.018093055725097656,
325
+ 0.018176000595092775,
326
+ 0.01819647979736328,
327
+ 0.01863372802734375,
328
+ 0.019272703170776367,
329
+ 0.018168832778930662
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 54.34755989215407
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019320960044860842,
7
+ "prefill.throughput.value": 362.30083721237867,
8
+ "decode.latency.mean": 2.3275152587890626,
9
+ "decode.throughput.value": 54.564626169658,
10
+ "per_token.latency.mean": 0.01840009012335374,
11
+ "per_token.throughput.value": 54.34755989215407
12
+ }
13
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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: 74b92c62560b7ade42d35a49f9063adc8b805c4a
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a
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/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a
88
+ - hydra.run.dir=_benchmark/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a/${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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-25 02:34:32,235][process][ERROR] - + Sending traceback to main process
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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: 74b92c62560b7ade42d35a49f9063adc8b805c4a
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a
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/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a
88
+ - hydra.run.dir=_benchmark/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a/${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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
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": 1753.546752,
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.045966016769409174,
118
+ "mean": 0.022983008384704587,
119
+ "stdev": 0.00017788791656494184,
120
+ "p50": 0.022983008384704587,
121
+ "p90": 0.023125318717956544,
122
+ "p95": 0.023143107509613035,
123
+ "p99": 0.023157338542938232,
124
+ "values": [
125
+ 0.022805120468139647,
126
+ 0.02316089630126953
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 304.57283410550235
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1753.567232,
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.389102783203125,
149
+ "mean": 2.6945513916015624,
150
+ "stdev": 0.008186645507812562,
151
+ "p50": 2.6945513916015624,
152
+ "p90": 2.7011007080078127,
153
+ "p95": 2.701919372558594,
154
+ "p99": 2.702574304199219,
155
+ "values": [
156
+ 2.702738037109375,
157
+ 2.68636474609375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 47.132149862064765
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.390889976501462,
173
+ "mean": 0.021307865519768633,
174
+ "stdev": 0.0015965676788997239,
175
+ "p50": 0.021398527145385742,
176
+ "p90": 0.02195804214477539,
177
+ "p95": 0.02212249641418457,
178
+ "p99": 0.023629455642700196,
179
+ "values": [
180
+ 0.02166579246520996,
181
+ 0.021629951477050782,
182
+ 0.021301248550415038,
183
+ 0.023805952072143553,
184
+ 0.02327654457092285,
185
+ 0.022517759323120116,
186
+ 0.022609920501708985,
187
+ 0.022675455093383787,
188
+ 0.02370560073852539,
189
+ 0.022098943710327147,
190
+ 0.02211020851135254,
191
+ 0.022140928268432617,
192
+ 0.021969919204711915,
193
+ 0.021833728790283204,
194
+ 0.021944320678710938,
195
+ 0.022063104629516602,
196
+ 0.02206822395324707,
197
+ 0.0220948486328125,
198
+ 0.02209280014038086,
199
+ 0.021994495391845705,
200
+ 0.02188083267211914,
201
+ 0.021925888061523437,
202
+ 0.021914623260498048,
203
+ 0.021827583312988282,
204
+ 0.021931007385253908,
205
+ 0.021873664855957032,
206
+ 0.021752832412719726,
207
+ 0.021959680557250977,
208
+ 0.02207334327697754,
209
+ 0.022558719635009765,
210
+ 0.022208511352539064,
211
+ 0.021961727142333985,
212
+ 0.022378496170043945,
213
+ 0.021951488494873047,
214
+ 0.02208665657043457,
215
+ 0.02191155242919922,
216
+ 0.0220897274017334,
217
+ 0.02224844741821289,
218
+ 0.0219289608001709,
219
+ 0.020980735778808594,
220
+ 0.020923391342163086,
221
+ 0.020968448638916014,
222
+ 0.021015552520751952,
223
+ 0.020793344497680662,
224
+ 0.020954111099243163,
225
+ 0.02084147262573242,
226
+ 0.02168012809753418,
227
+ 0.02101862335205078,
228
+ 0.021029888153076173,
229
+ 0.0208721923828125,
230
+ 0.02083839988708496,
231
+ 0.020786176681518553,
232
+ 0.02050764846801758,
233
+ 0.02046566390991211,
234
+ 0.0213309440612793,
235
+ 0.021539840698242187,
236
+ 0.02162380790710449,
237
+ 0.02144972801208496,
238
+ 0.020714496612548827,
239
+ 0.020610048294067384,
240
+ 0.02049945640563965,
241
+ 0.020518911361694335,
242
+ 0.020504575729370117,
243
+ 0.02044211196899414,
244
+ 0.020563968658447264,
245
+ 0.020582399368286132,
246
+ 0.02046976089477539,
247
+ 0.020544511795043945,
248
+ 0.02048307228088379,
249
+ 0.020497407913208008,
250
+ 0.020542463302612304,
251
+ 0.020511743545532226,
252
+ 0.02067046356201172,
253
+ 0.020545536041259766,
254
+ 0.020541439056396483,
255
+ 0.02046668815612793,
256
+ 0.02064896011352539,
257
+ 0.020460544586181642,
258
+ 0.020557823181152343,
259
+ 0.020567039489746093,
260
+ 0.020533248901367186,
261
+ 0.020511743545532226,
262
+ 0.020724735260009765,
263
+ 0.02050662422180176,
264
+ 0.02062131118774414,
265
+ 0.020537343978881836,
266
+ 0.020511743545532226,
267
+ 0.020714496612548827,
268
+ 0.020585472106933594,
269
+ 0.020477951049804686,
270
+ 0.020503551483154296,
271
+ 0.020560895919799805,
272
+ 0.020574207305908202,
273
+ 0.02063155174255371,
274
+ 0.021515264511108398,
275
+ 0.0204769287109375,
276
+ 0.020773887634277344,
277
+ 0.02149580764770508,
278
+ 0.020552703857421875,
279
+ 0.020584447860717774,
280
+ 0.020661247253417968,
281
+ 0.02047283172607422,
282
+ 0.02048307228088379,
283
+ 0.02182655906677246,
284
+ 0.02152038383483887,
285
+ 0.021575679779052736,
286
+ 0.0214783992767334,
287
+ 0.02145484733581543,
288
+ 0.021613567352294923,
289
+ 0.02147737693786621,
290
+ 0.02148454475402832,
291
+ 0.02144767951965332,
292
+ 0.02146201515197754,
293
+ 0.021397504806518555,
294
+ 0.0215285758972168,
295
+ 0.021411840438842773,
296
+ 0.021535743713378908,
297
+ 0.02146201515197754,
298
+ 0.020566015243530272,
299
+ 0.02057318305969238,
300
+ 0.020929536819458007,
301
+ 0.021412864685058593,
302
+ 0.021398527145385742,
303
+ 0.021399551391601563,
304
+ 0.021315584182739256,
305
+ 0.02042265510559082,
306
+ 0.044578815460205076,
307
+ 0.021429248809814453,
308
+ 0.021436416625976562,
309
+ 0.020547584533691408,
310
+ 0.020447231292724608,
311
+ 0.020540416717529295,
312
+ 0.02049945640563965,
313
+ 0.020509695053100584,
314
+ 0.021518335342407227,
315
+ 0.021530624389648437,
316
+ 0.021555200576782226,
317
+ 0.020959232330322267,
318
+ 0.020626432418823244,
319
+ 0.020978687286376953,
320
+ 0.021212160110473634,
321
+ 0.021342208862304687,
322
+ 0.02051584053039551,
323
+ 0.020666368484497072,
324
+ 0.02058956718444824,
325
+ 0.020619264602661135,
326
+ 0.020706304550170897,
327
+ 0.02066022491455078,
328
+ 0.020559871673583984,
329
+ 0.021550079345703126,
330
+ 0.021627904891967774,
331
+ 0.02146611213684082,
332
+ 0.02162892723083496,
333
+ 0.02145484733581543,
334
+ 0.02142207908630371,
335
+ 0.02146099281311035,
336
+ 0.021805055618286134,
337
+ 0.02146816062927246,
338
+ 0.02145075225830078,
339
+ 0.020707328796386718,
340
+ 0.020468736648559572,
341
+ 0.02060492706298828,
342
+ 0.020576255798339844,
343
+ 0.020984832763671874,
344
+ 0.02163711929321289,
345
+ 0.02148659133911133,
346
+ 0.021507072448730468,
347
+ 0.020557823181152343,
348
+ 0.020518911361694335,
349
+ 0.020488191604614257,
350
+ 0.020779008865356444,
351
+ 0.021584896087646483,
352
+ 0.020798463821411133,
353
+ 0.021553152084350585,
354
+ 0.021622783660888673,
355
+ 0.020669439315795898,
356
+ 0.02064076805114746,
357
+ 0.020513792037963868,
358
+ 0.020593664169311524,
359
+ 0.020586496353149415,
360
+ 0.020586496353149415,
361
+ 0.020634624481201173,
362
+ 0.020618240356445314,
363
+ 0.020540416717529295,
364
+ 0.02058137512207031,
365
+ 0.020602880477905275,
366
+ 0.021526527404785157,
367
+ 0.021505023956298826,
368
+ 0.021507072448730468,
369
+ 0.0214968318939209,
370
+ 0.020951040267944337,
371
+ 0.021638143539428712,
372
+ 0.020516864776611327,
373
+ 0.02148249626159668,
374
+ 0.021533695220947266,
375
+ 0.021370880126953123,
376
+ 0.0206376953125,
377
+ 0.021833728790283204,
378
+ 0.021557247161865235,
379
+ 0.02150297546386719,
380
+ 0.02162892723083496,
381
+ 0.020533248901367186,
382
+ 0.02046668815612793,
383
+ 0.02067353630065918,
384
+ 0.02149580764770508,
385
+ 0.021517311096191406,
386
+ 0.021411840438842773,
387
+ 0.021540864944458008,
388
+ 0.021540864944458008,
389
+ 0.021510143280029297,
390
+ 0.021407743453979493,
391
+ 0.02145996856689453,
392
+ 0.02151628875732422,
393
+ 0.021401599884033205,
394
+ 0.021542911529541017,
395
+ 0.02166886329650879,
396
+ 0.02147532844543457,
397
+ 0.02062950325012207,
398
+ 0.020353023529052734,
399
+ 0.020319232940673827,
400
+ 0.023559167861938478,
401
+ 0.02173030471801758,
402
+ 0.021534719467163087,
403
+ 0.02142310333251953,
404
+ 0.02058137512207031,
405
+ 0.021304319381713867,
406
+ 0.021518335342407227,
407
+ 0.021448703765869142,
408
+ 0.021323776245117186,
409
+ 0.021420032501220702,
410
+ 0.02142207908630371,
411
+ 0.021385215759277345,
412
+ 0.02142720031738281,
413
+ 0.021440511703491212,
414
+ 0.021320703506469727,
415
+ 0.021403648376464843,
416
+ 0.021414911270141602,
417
+ 0.021621759414672852,
418
+ 0.020808704376220705,
419
+ 0.020403200149536133,
420
+ 0.02045952033996582,
421
+ 0.02084351921081543,
422
+ 0.020619264602661135,
423
+ 0.020674560546875,
424
+ 0.021778432846069336,
425
+ 0.0214466552734375,
426
+ 0.021242879867553712,
427
+ 0.021536767959594725,
428
+ 0.021416959762573243,
429
+ 0.021444608688354492,
430
+ 0.02166067123413086,
431
+ 0.021600255966186522,
432
+ 0.021379072189331053
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 46.93102643585946
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": 1753.546752,
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.045966016769409174,
15
+ "mean": 0.022983008384704587,
16
+ "stdev": 0.00017788791656494184,
17
+ "p50": 0.022983008384704587,
18
+ "p90": 0.023125318717956544,
19
+ "p95": 0.023143107509613035,
20
+ "p99": 0.023157338542938232,
21
+ "values": [
22
+ 0.022805120468139647,
23
+ 0.02316089630126953
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 304.57283410550235
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1753.567232,
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.389102783203125,
46
+ "mean": 2.6945513916015624,
47
+ "stdev": 0.008186645507812562,
48
+ "p50": 2.6945513916015624,
49
+ "p90": 2.7011007080078127,
50
+ "p95": 2.701919372558594,
51
+ "p99": 2.702574304199219,
52
+ "values": [
53
+ 2.702738037109375,
54
+ 2.68636474609375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 47.132149862064765
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.390889976501462,
70
+ "mean": 0.021307865519768633,
71
+ "stdev": 0.0015965676788997239,
72
+ "p50": 0.021398527145385742,
73
+ "p90": 0.02195804214477539,
74
+ "p95": 0.02212249641418457,
75
+ "p99": 0.023629455642700196,
76
+ "values": [
77
+ 0.02166579246520996,
78
+ 0.021629951477050782,
79
+ 0.021301248550415038,
80
+ 0.023805952072143553,
81
+ 0.02327654457092285,
82
+ 0.022517759323120116,
83
+ 0.022609920501708985,
84
+ 0.022675455093383787,
85
+ 0.02370560073852539,
86
+ 0.022098943710327147,
87
+ 0.02211020851135254,
88
+ 0.022140928268432617,
89
+ 0.021969919204711915,
90
+ 0.021833728790283204,
91
+ 0.021944320678710938,
92
+ 0.022063104629516602,
93
+ 0.02206822395324707,
94
+ 0.0220948486328125,
95
+ 0.02209280014038086,
96
+ 0.021994495391845705,
97
+ 0.02188083267211914,
98
+ 0.021925888061523437,
99
+ 0.021914623260498048,
100
+ 0.021827583312988282,
101
+ 0.021931007385253908,
102
+ 0.021873664855957032,
103
+ 0.021752832412719726,
104
+ 0.021959680557250977,
105
+ 0.02207334327697754,
106
+ 0.022558719635009765,
107
+ 0.022208511352539064,
108
+ 0.021961727142333985,
109
+ 0.022378496170043945,
110
+ 0.021951488494873047,
111
+ 0.02208665657043457,
112
+ 0.02191155242919922,
113
+ 0.0220897274017334,
114
+ 0.02224844741821289,
115
+ 0.0219289608001709,
116
+ 0.020980735778808594,
117
+ 0.020923391342163086,
118
+ 0.020968448638916014,
119
+ 0.021015552520751952,
120
+ 0.020793344497680662,
121
+ 0.020954111099243163,
122
+ 0.02084147262573242,
123
+ 0.02168012809753418,
124
+ 0.02101862335205078,
125
+ 0.021029888153076173,
126
+ 0.0208721923828125,
127
+ 0.02083839988708496,
128
+ 0.020786176681518553,
129
+ 0.02050764846801758,
130
+ 0.02046566390991211,
131
+ 0.0213309440612793,
132
+ 0.021539840698242187,
133
+ 0.02162380790710449,
134
+ 0.02144972801208496,
135
+ 0.020714496612548827,
136
+ 0.020610048294067384,
137
+ 0.02049945640563965,
138
+ 0.020518911361694335,
139
+ 0.020504575729370117,
140
+ 0.02044211196899414,
141
+ 0.020563968658447264,
142
+ 0.020582399368286132,
143
+ 0.02046976089477539,
144
+ 0.020544511795043945,
145
+ 0.02048307228088379,
146
+ 0.020497407913208008,
147
+ 0.020542463302612304,
148
+ 0.020511743545532226,
149
+ 0.02067046356201172,
150
+ 0.020545536041259766,
151
+ 0.020541439056396483,
152
+ 0.02046668815612793,
153
+ 0.02064896011352539,
154
+ 0.020460544586181642,
155
+ 0.020557823181152343,
156
+ 0.020567039489746093,
157
+ 0.020533248901367186,
158
+ 0.020511743545532226,
159
+ 0.020724735260009765,
160
+ 0.02050662422180176,
161
+ 0.02062131118774414,
162
+ 0.020537343978881836,
163
+ 0.020511743545532226,
164
+ 0.020714496612548827,
165
+ 0.020585472106933594,
166
+ 0.020477951049804686,
167
+ 0.020503551483154296,
168
+ 0.020560895919799805,
169
+ 0.020574207305908202,
170
+ 0.02063155174255371,
171
+ 0.021515264511108398,
172
+ 0.0204769287109375,
173
+ 0.020773887634277344,
174
+ 0.02149580764770508,
175
+ 0.020552703857421875,
176
+ 0.020584447860717774,
177
+ 0.020661247253417968,
178
+ 0.02047283172607422,
179
+ 0.02048307228088379,
180
+ 0.02182655906677246,
181
+ 0.02152038383483887,
182
+ 0.021575679779052736,
183
+ 0.0214783992767334,
184
+ 0.02145484733581543,
185
+ 0.021613567352294923,
186
+ 0.02147737693786621,
187
+ 0.02148454475402832,
188
+ 0.02144767951965332,
189
+ 0.02146201515197754,
190
+ 0.021397504806518555,
191
+ 0.0215285758972168,
192
+ 0.021411840438842773,
193
+ 0.021535743713378908,
194
+ 0.02146201515197754,
195
+ 0.020566015243530272,
196
+ 0.02057318305969238,
197
+ 0.020929536819458007,
198
+ 0.021412864685058593,
199
+ 0.021398527145385742,
200
+ 0.021399551391601563,
201
+ 0.021315584182739256,
202
+ 0.02042265510559082,
203
+ 0.044578815460205076,
204
+ 0.021429248809814453,
205
+ 0.021436416625976562,
206
+ 0.020547584533691408,
207
+ 0.020447231292724608,
208
+ 0.020540416717529295,
209
+ 0.02049945640563965,
210
+ 0.020509695053100584,
211
+ 0.021518335342407227,
212
+ 0.021530624389648437,
213
+ 0.021555200576782226,
214
+ 0.020959232330322267,
215
+ 0.020626432418823244,
216
+ 0.020978687286376953,
217
+ 0.021212160110473634,
218
+ 0.021342208862304687,
219
+ 0.02051584053039551,
220
+ 0.020666368484497072,
221
+ 0.02058956718444824,
222
+ 0.020619264602661135,
223
+ 0.020706304550170897,
224
+ 0.02066022491455078,
225
+ 0.020559871673583984,
226
+ 0.021550079345703126,
227
+ 0.021627904891967774,
228
+ 0.02146611213684082,
229
+ 0.02162892723083496,
230
+ 0.02145484733581543,
231
+ 0.02142207908630371,
232
+ 0.02146099281311035,
233
+ 0.021805055618286134,
234
+ 0.02146816062927246,
235
+ 0.02145075225830078,
236
+ 0.020707328796386718,
237
+ 0.020468736648559572,
238
+ 0.02060492706298828,
239
+ 0.020576255798339844,
240
+ 0.020984832763671874,
241
+ 0.02163711929321289,
242
+ 0.02148659133911133,
243
+ 0.021507072448730468,
244
+ 0.020557823181152343,
245
+ 0.020518911361694335,
246
+ 0.020488191604614257,
247
+ 0.020779008865356444,
248
+ 0.021584896087646483,
249
+ 0.020798463821411133,
250
+ 0.021553152084350585,
251
+ 0.021622783660888673,
252
+ 0.020669439315795898,
253
+ 0.02064076805114746,
254
+ 0.020513792037963868,
255
+ 0.020593664169311524,
256
+ 0.020586496353149415,
257
+ 0.020586496353149415,
258
+ 0.020634624481201173,
259
+ 0.020618240356445314,
260
+ 0.020540416717529295,
261
+ 0.02058137512207031,
262
+ 0.020602880477905275,
263
+ 0.021526527404785157,
264
+ 0.021505023956298826,
265
+ 0.021507072448730468,
266
+ 0.0214968318939209,
267
+ 0.020951040267944337,
268
+ 0.021638143539428712,
269
+ 0.020516864776611327,
270
+ 0.02148249626159668,
271
+ 0.021533695220947266,
272
+ 0.021370880126953123,
273
+ 0.0206376953125,
274
+ 0.021833728790283204,
275
+ 0.021557247161865235,
276
+ 0.02150297546386719,
277
+ 0.02162892723083496,
278
+ 0.020533248901367186,
279
+ 0.02046668815612793,
280
+ 0.02067353630065918,
281
+ 0.02149580764770508,
282
+ 0.021517311096191406,
283
+ 0.021411840438842773,
284
+ 0.021540864944458008,
285
+ 0.021540864944458008,
286
+ 0.021510143280029297,
287
+ 0.021407743453979493,
288
+ 0.02145996856689453,
289
+ 0.02151628875732422,
290
+ 0.021401599884033205,
291
+ 0.021542911529541017,
292
+ 0.02166886329650879,
293
+ 0.02147532844543457,
294
+ 0.02062950325012207,
295
+ 0.020353023529052734,
296
+ 0.020319232940673827,
297
+ 0.023559167861938478,
298
+ 0.02173030471801758,
299
+ 0.021534719467163087,
300
+ 0.02142310333251953,
301
+ 0.02058137512207031,
302
+ 0.021304319381713867,
303
+ 0.021518335342407227,
304
+ 0.021448703765869142,
305
+ 0.021323776245117186,
306
+ 0.021420032501220702,
307
+ 0.02142207908630371,
308
+ 0.021385215759277345,
309
+ 0.02142720031738281,
310
+ 0.021440511703491212,
311
+ 0.021320703506469727,
312
+ 0.021403648376464843,
313
+ 0.021414911270141602,
314
+ 0.021621759414672852,
315
+ 0.020808704376220705,
316
+ 0.020403200149536133,
317
+ 0.02045952033996582,
318
+ 0.02084351921081543,
319
+ 0.020619264602661135,
320
+ 0.020674560546875,
321
+ 0.021778432846069336,
322
+ 0.0214466552734375,
323
+ 0.021242879867553712,
324
+ 0.021536767959594725,
325
+ 0.021416959762573243,
326
+ 0.021444608688354492,
327
+ 0.02166067123413086,
328
+ 0.021600255966186522,
329
+ 0.021379072189331053
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 46.93102643585946
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022983008384704587,
7
+ "prefill.throughput.value": 304.57283410550235,
8
+ "decode.latency.mean": 2.6945513916015624,
9
+ "decode.throughput.value": 47.132149862064765,
10
+ "per_token.latency.mean": 0.021307865519768633,
11
+ "per_token.throughput.value": 46.93102643585946
12
+ }
13
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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: 74b92c62560b7ade42d35a49f9063adc8b805c4a
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a
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/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a
88
+ - hydra.run.dir=_benchmark/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a/${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/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
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.561792,
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.028141599655151367,
118
+ "mean": 0.014070799827575683,
119
+ "stdev": 0.00011755180358886778,
120
+ "p50": 0.014070799827575683,
121
+ "p90": 0.014164841270446777,
122
+ "p95": 0.014176596450805665,
123
+ "p99": 0.014186000595092774,
124
+ "values": [
125
+ 0.014188351631164551,
126
+ 0.013953248023986816
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 497.4841576725109
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2270.507008,
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.118426391601562,
149
+ "mean": 1.559213195800781,
150
+ "stdev": 0.0018688354492187864,
151
+ "p50": 1.559213195800781,
152
+ "p90": 1.5607082641601562,
153
+ "p95": 1.560895147705078,
154
+ "p99": 1.5610446545410157,
155
+ "values": [
156
+ 1.56108203125,
157
+ 1.5573443603515624
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 81.4513373424699
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.1194429349899293,
173
+ "mean": 0.012329813972292209,
174
+ "stdev": 0.0008926076728477048,
175
+ "p50": 0.012270591735839843,
176
+ "p90": 0.012302131080627441,
177
+ "p95": 0.012313395309448243,
178
+ "p99": 0.012788285675048826,
179
+ "values": [
180
+ 0.01274060821533203,
181
+ 0.01283993625640869,
182
+ 0.01285427188873291,
183
+ 0.012364800453186036,
184
+ 0.012256256103515625,
185
+ 0.012312576293945313,
186
+ 0.01225830364227295,
187
+ 0.012484607696533203,
188
+ 0.012253184318542481,
189
+ 0.012302335739135742,
190
+ 0.012254207611083985,
191
+ 0.012295167922973632,
192
+ 0.012247039794921874,
193
+ 0.012277759552001954,
194
+ 0.01226035213470459,
195
+ 0.012289024353027344,
196
+ 0.012241920471191407,
197
+ 0.012294143676757812,
198
+ 0.01224294376373291,
199
+ 0.012306431770324706,
200
+ 0.012241920471191407,
201
+ 0.012314623832702636,
202
+ 0.012283904075622559,
203
+ 0.012288000106811523,
204
+ 0.01225113582611084,
205
+ 0.012302335739135742,
206
+ 0.01225216007232666,
207
+ 0.01228492832183838,
208
+ 0.012256256103515625,
209
+ 0.012295167922973632,
210
+ 0.012262399673461915,
211
+ 0.012303359985351562,
212
+ 0.012262399673461915,
213
+ 0.012278783798217773,
214
+ 0.012241920471191407,
215
+ 0.012311552047729492,
216
+ 0.012294143676757812,
217
+ 0.012305407524108887,
218
+ 0.012240896224975586,
219
+ 0.012298239707946777,
220
+ 0.01224294376373291,
221
+ 0.012273664474487305,
222
+ 0.012249088287353516,
223
+ 0.012291071891784668,
224
+ 0.012239871978759765,
225
+ 0.012295167922973632,
226
+ 0.012267519950866699,
227
+ 0.012309503555297852,
228
+ 0.0122357759475708,
229
+ 0.012283904075622559,
230
+ 0.012239871978759765,
231
+ 0.012327936172485352,
232
+ 0.01225011157989502,
233
+ 0.012275712013244629,
234
+ 0.01225113582611084,
235
+ 0.012291071891784668,
236
+ 0.012240896224975586,
237
+ 0.012286975860595703,
238
+ 0.01225216007232666,
239
+ 0.012281855583190919,
240
+ 0.012236800193786621,
241
+ 0.012312576293945313,
242
+ 0.012249088287353516,
243
+ 0.012285951614379884,
244
+ 0.01224294376373291,
245
+ 0.012320768356323243,
246
+ 0.01227673625946045,
247
+ 0.012280832290649414,
248
+ 0.01225113582611084,
249
+ 0.012280832290649414,
250
+ 0.012299263954162597,
251
+ 0.012348416328430176,
252
+ 0.012249088287353516,
253
+ 0.012281855583190919,
254
+ 0.012239871978759765,
255
+ 0.012288000106811523,
256
+ 0.012244992256164551,
257
+ 0.012285951614379884,
258
+ 0.012246015548706055,
259
+ 0.012285951614379884,
260
+ 0.01227673625946045,
261
+ 0.012301312446594239,
262
+ 0.012231679916381836,
263
+ 0.01227673625946045,
264
+ 0.012241920471191407,
265
+ 0.012288000106811523,
266
+ 0.012248064041137695,
267
+ 0.012275712013244629,
268
+ 0.012239871978759765,
269
+ 0.012289024353027344,
270
+ 0.012256256103515625,
271
+ 0.012306431770324706,
272
+ 0.01224396800994873,
273
+ 0.012290047645568849,
274
+ 0.01224396800994873,
275
+ 0.012318719863891601,
276
+ 0.01224396800994873,
277
+ 0.012274687767028808,
278
+ 0.012229632377624512,
279
+ 0.012283904075622559,
280
+ 0.01223475170135498,
281
+ 0.012271615982055664,
282
+ 0.0122357759475708,
283
+ 0.012279808044433594,
284
+ 0.012240896224975586,
285
+ 0.012279808044433594,
286
+ 0.012239871978759765,
287
+ 0.012278783798217773,
288
+ 0.012221440315246582,
289
+ 0.012464127540588378,
290
+ 0.01225830364227295,
291
+ 0.012275712013244629,
292
+ 0.012231679916381836,
293
+ 0.01227673625946045,
294
+ 0.012244992256164551,
295
+ 0.012294143676757812,
296
+ 0.012228608131408691,
297
+ 0.012279808044433594,
298
+ 0.012223487854003906,
299
+ 0.012267519950866699,
300
+ 0.01224294376373291,
301
+ 0.012285951614379884,
302
+ 0.012226559638977052,
303
+ 0.012282879829406738,
304
+ 0.012230655670166016,
305
+ 0.012294143676757812,
306
+ 0.026454015731811522,
307
+ 0.012263423919677734,
308
+ 0.01228492832183838,
309
+ 0.012238847732543945,
310
+ 0.012278783798217773,
311
+ 0.012232704162597656,
312
+ 0.012304384231567383,
313
+ 0.01225011157989502,
314
+ 0.012283904075622559,
315
+ 0.012224512100219726,
316
+ 0.012275712013244629,
317
+ 0.012231679916381836,
318
+ 0.012278783798217773,
319
+ 0.012230655670166016,
320
+ 0.012275712013244629,
321
+ 0.012232704162597656,
322
+ 0.012273664474487305,
323
+ 0.012254207611083985,
324
+ 0.012270591735839843,
325
+ 0.012236800193786621,
326
+ 0.01227673625946045,
327
+ 0.01224396800994873,
328
+ 0.012300288200378418,
329
+ 0.012232704162597656,
330
+ 0.01226854419708252,
331
+ 0.01224294376373291,
332
+ 0.012278783798217773,
333
+ 0.012236800193786621,
334
+ 0.012277759552001954,
335
+ 0.01223475170135498,
336
+ 0.012286975860595703,
337
+ 0.012229632377624512,
338
+ 0.012294143676757812,
339
+ 0.012239871978759765,
340
+ 0.012274687767028808,
341
+ 0.01221939182281494,
342
+ 0.012273664474487305,
343
+ 0.012255231857299804,
344
+ 0.012288000106811523,
345
+ 0.01222758388519287,
346
+ 0.012275712013244629,
347
+ 0.012231679916381836,
348
+ 0.012278783798217773,
349
+ 0.012223487854003906,
350
+ 0.01226854419708252,
351
+ 0.012231679916381836,
352
+ 0.012282879829406738,
353
+ 0.012281855583190919,
354
+ 0.012297216415405274,
355
+ 0.01223475170135498,
356
+ 0.01226854419708252,
357
+ 0.012218367576599122,
358
+ 0.012278783798217773,
359
+ 0.01225011157989502,
360
+ 0.01226956844329834,
361
+ 0.012220416069030762,
362
+ 0.012281855583190919,
363
+ 0.012232704162597656,
364
+ 0.01227673625946045,
365
+ 0.012225536346435547,
366
+ 0.012274687767028808,
367
+ 0.012239871978759765,
368
+ 0.012275712013244629,
369
+ 0.012229632377624512,
370
+ 0.012277759552001954,
371
+ 0.012223487854003906,
372
+ 0.012290047645568849,
373
+ 0.01221939182281494,
374
+ 0.012294143676757812,
375
+ 0.012263423919677734,
376
+ 0.01227673625946045,
377
+ 0.012244992256164551,
378
+ 0.012279808044433594,
379
+ 0.012232704162597656,
380
+ 0.012275712013244629,
381
+ 0.012222463607788087,
382
+ 0.012274687767028808,
383
+ 0.012226559638977052,
384
+ 0.012278783798217773,
385
+ 0.01223475170135498,
386
+ 0.01225216007232666,
387
+ 0.012225536346435547,
388
+ 0.012275712013244629,
389
+ 0.01224294376373291,
390
+ 0.012294143676757812,
391
+ 0.012224512100219726,
392
+ 0.012295167922973632,
393
+ 0.01223475170135498,
394
+ 0.012264448165893555,
395
+ 0.012239871978759765,
396
+ 0.012635135650634765,
397
+ 0.012311552047729492,
398
+ 0.012310527801513671,
399
+ 0.012277759552001954,
400
+ 0.012286975860595703,
401
+ 0.012254207611083985,
402
+ 0.012271615982055664,
403
+ 0.012244992256164551,
404
+ 0.01228492832183838,
405
+ 0.012230655670166016,
406
+ 0.012271615982055664,
407
+ 0.012216320037841797,
408
+ 0.012277759552001954,
409
+ 0.01221939182281494,
410
+ 0.012285951614379884,
411
+ 0.012244992256164551,
412
+ 0.012281855583190919,
413
+ 0.012225536346435547,
414
+ 0.012278783798217773,
415
+ 0.012216320037841797,
416
+ 0.012275712013244629,
417
+ 0.012240896224975586,
418
+ 0.012263423919677734,
419
+ 0.012254207611083985,
420
+ 0.012262399673461915,
421
+ 0.012217344284057617,
422
+ 0.012281855583190919,
423
+ 0.012239871978759765,
424
+ 0.012271615982055664,
425
+ 0.012238944053649902,
426
+ 0.012259231567382813,
427
+ 0.012229632377624512,
428
+ 0.012283904075622559,
429
+ 0.01225216007232666,
430
+ 0.012283904075622559,
431
+ 0.012225536346435547,
432
+ 0.012272640228271485
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 81.10422446333894
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
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-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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.561792,
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.028141599655151367,
15
+ "mean": 0.014070799827575683,
16
+ "stdev": 0.00011755180358886778,
17
+ "p50": 0.014070799827575683,
18
+ "p90": 0.014164841270446777,
19
+ "p95": 0.014176596450805665,
20
+ "p99": 0.014186000595092774,
21
+ "values": [
22
+ 0.014188351631164551,
23
+ 0.013953248023986816
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 497.4841576725109
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2270.507008,
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.118426391601562,
46
+ "mean": 1.559213195800781,
47
+ "stdev": 0.0018688354492187864,
48
+ "p50": 1.559213195800781,
49
+ "p90": 1.5607082641601562,
50
+ "p95": 1.560895147705078,
51
+ "p99": 1.5610446545410157,
52
+ "values": [
53
+ 1.56108203125,
54
+ 1.5573443603515624
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 81.4513373424699
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.1194429349899293,
70
+ "mean": 0.012329813972292209,
71
+ "stdev": 0.0008926076728477048,
72
+ "p50": 0.012270591735839843,
73
+ "p90": 0.012302131080627441,
74
+ "p95": 0.012313395309448243,
75
+ "p99": 0.012788285675048826,
76
+ "values": [
77
+ 0.01274060821533203,
78
+ 0.01283993625640869,
79
+ 0.01285427188873291,
80
+ 0.012364800453186036,
81
+ 0.012256256103515625,
82
+ 0.012312576293945313,
83
+ 0.01225830364227295,
84
+ 0.012484607696533203,
85
+ 0.012253184318542481,
86
+ 0.012302335739135742,
87
+ 0.012254207611083985,
88
+ 0.012295167922973632,
89
+ 0.012247039794921874,
90
+ 0.012277759552001954,
91
+ 0.01226035213470459,
92
+ 0.012289024353027344,
93
+ 0.012241920471191407,
94
+ 0.012294143676757812,
95
+ 0.01224294376373291,
96
+ 0.012306431770324706,
97
+ 0.012241920471191407,
98
+ 0.012314623832702636,
99
+ 0.012283904075622559,
100
+ 0.012288000106811523,
101
+ 0.01225113582611084,
102
+ 0.012302335739135742,
103
+ 0.01225216007232666,
104
+ 0.01228492832183838,
105
+ 0.012256256103515625,
106
+ 0.012295167922973632,
107
+ 0.012262399673461915,
108
+ 0.012303359985351562,
109
+ 0.012262399673461915,
110
+ 0.012278783798217773,
111
+ 0.012241920471191407,
112
+ 0.012311552047729492,
113
+ 0.012294143676757812,
114
+ 0.012305407524108887,
115
+ 0.012240896224975586,
116
+ 0.012298239707946777,
117
+ 0.01224294376373291,
118
+ 0.012273664474487305,
119
+ 0.012249088287353516,
120
+ 0.012291071891784668,
121
+ 0.012239871978759765,
122
+ 0.012295167922973632,
123
+ 0.012267519950866699,
124
+ 0.012309503555297852,
125
+ 0.0122357759475708,
126
+ 0.012283904075622559,
127
+ 0.012239871978759765,
128
+ 0.012327936172485352,
129
+ 0.01225011157989502,
130
+ 0.012275712013244629,
131
+ 0.01225113582611084,
132
+ 0.012291071891784668,
133
+ 0.012240896224975586,
134
+ 0.012286975860595703,
135
+ 0.01225216007232666,
136
+ 0.012281855583190919,
137
+ 0.012236800193786621,
138
+ 0.012312576293945313,
139
+ 0.012249088287353516,
140
+ 0.012285951614379884,
141
+ 0.01224294376373291,
142
+ 0.012320768356323243,
143
+ 0.01227673625946045,
144
+ 0.012280832290649414,
145
+ 0.01225113582611084,
146
+ 0.012280832290649414,
147
+ 0.012299263954162597,
148
+ 0.012348416328430176,
149
+ 0.012249088287353516,
150
+ 0.012281855583190919,
151
+ 0.012239871978759765,
152
+ 0.012288000106811523,
153
+ 0.012244992256164551,
154
+ 0.012285951614379884,
155
+ 0.012246015548706055,
156
+ 0.012285951614379884,
157
+ 0.01227673625946045,
158
+ 0.012301312446594239,
159
+ 0.012231679916381836,
160
+ 0.01227673625946045,
161
+ 0.012241920471191407,
162
+ 0.012288000106811523,
163
+ 0.012248064041137695,
164
+ 0.012275712013244629,
165
+ 0.012239871978759765,
166
+ 0.012289024353027344,
167
+ 0.012256256103515625,
168
+ 0.012306431770324706,
169
+ 0.01224396800994873,
170
+ 0.012290047645568849,
171
+ 0.01224396800994873,
172
+ 0.012318719863891601,
173
+ 0.01224396800994873,
174
+ 0.012274687767028808,
175
+ 0.012229632377624512,
176
+ 0.012283904075622559,
177
+ 0.01223475170135498,
178
+ 0.012271615982055664,
179
+ 0.0122357759475708,
180
+ 0.012279808044433594,
181
+ 0.012240896224975586,
182
+ 0.012279808044433594,
183
+ 0.012239871978759765,
184
+ 0.012278783798217773,
185
+ 0.012221440315246582,
186
+ 0.012464127540588378,
187
+ 0.01225830364227295,
188
+ 0.012275712013244629,
189
+ 0.012231679916381836,
190
+ 0.01227673625946045,
191
+ 0.012244992256164551,
192
+ 0.012294143676757812,
193
+ 0.012228608131408691,
194
+ 0.012279808044433594,
195
+ 0.012223487854003906,
196
+ 0.012267519950866699,
197
+ 0.01224294376373291,
198
+ 0.012285951614379884,
199
+ 0.012226559638977052,
200
+ 0.012282879829406738,
201
+ 0.012230655670166016,
202
+ 0.012294143676757812,
203
+ 0.026454015731811522,
204
+ 0.012263423919677734,
205
+ 0.01228492832183838,
206
+ 0.012238847732543945,
207
+ 0.012278783798217773,
208
+ 0.012232704162597656,
209
+ 0.012304384231567383,
210
+ 0.01225011157989502,
211
+ 0.012283904075622559,
212
+ 0.012224512100219726,
213
+ 0.012275712013244629,
214
+ 0.012231679916381836,
215
+ 0.012278783798217773,
216
+ 0.012230655670166016,
217
+ 0.012275712013244629,
218
+ 0.012232704162597656,
219
+ 0.012273664474487305,
220
+ 0.012254207611083985,
221
+ 0.012270591735839843,
222
+ 0.012236800193786621,
223
+ 0.01227673625946045,
224
+ 0.01224396800994873,
225
+ 0.012300288200378418,
226
+ 0.012232704162597656,
227
+ 0.01226854419708252,
228
+ 0.01224294376373291,
229
+ 0.012278783798217773,
230
+ 0.012236800193786621,
231
+ 0.012277759552001954,
232
+ 0.01223475170135498,
233
+ 0.012286975860595703,
234
+ 0.012229632377624512,
235
+ 0.012294143676757812,
236
+ 0.012239871978759765,
237
+ 0.012274687767028808,
238
+ 0.01221939182281494,
239
+ 0.012273664474487305,
240
+ 0.012255231857299804,
241
+ 0.012288000106811523,
242
+ 0.01222758388519287,
243
+ 0.012275712013244629,
244
+ 0.012231679916381836,
245
+ 0.012278783798217773,
246
+ 0.012223487854003906,
247
+ 0.01226854419708252,
248
+ 0.012231679916381836,
249
+ 0.012282879829406738,
250
+ 0.012281855583190919,
251
+ 0.012297216415405274,
252
+ 0.01223475170135498,
253
+ 0.01226854419708252,
254
+ 0.012218367576599122,
255
+ 0.012278783798217773,
256
+ 0.01225011157989502,
257
+ 0.01226956844329834,
258
+ 0.012220416069030762,
259
+ 0.012281855583190919,
260
+ 0.012232704162597656,
261
+ 0.01227673625946045,
262
+ 0.012225536346435547,
263
+ 0.012274687767028808,
264
+ 0.012239871978759765,
265
+ 0.012275712013244629,
266
+ 0.012229632377624512,
267
+ 0.012277759552001954,
268
+ 0.012223487854003906,
269
+ 0.012290047645568849,
270
+ 0.01221939182281494,
271
+ 0.012294143676757812,
272
+ 0.012263423919677734,
273
+ 0.01227673625946045,
274
+ 0.012244992256164551,
275
+ 0.012279808044433594,
276
+ 0.012232704162597656,
277
+ 0.012275712013244629,
278
+ 0.012222463607788087,
279
+ 0.012274687767028808,
280
+ 0.012226559638977052,
281
+ 0.012278783798217773,
282
+ 0.01223475170135498,
283
+ 0.01225216007232666,
284
+ 0.012225536346435547,
285
+ 0.012275712013244629,
286
+ 0.01224294376373291,
287
+ 0.012294143676757812,
288
+ 0.012224512100219726,
289
+ 0.012295167922973632,
290
+ 0.01223475170135498,
291
+ 0.012264448165893555,
292
+ 0.012239871978759765,
293
+ 0.012635135650634765,
294
+ 0.012311552047729492,
295
+ 0.012310527801513671,
296
+ 0.012277759552001954,
297
+ 0.012286975860595703,
298
+ 0.012254207611083985,
299
+ 0.012271615982055664,
300
+ 0.012244992256164551,
301
+ 0.01228492832183838,
302
+ 0.012230655670166016,
303
+ 0.012271615982055664,
304
+ 0.012216320037841797,
305
+ 0.012277759552001954,
306
+ 0.01221939182281494,
307
+ 0.012285951614379884,
308
+ 0.012244992256164551,
309
+ 0.012281855583190919,
310
+ 0.012225536346435547,
311
+ 0.012278783798217773,
312
+ 0.012216320037841797,
313
+ 0.012275712013244629,
314
+ 0.012240896224975586,
315
+ 0.012263423919677734,
316
+ 0.012254207611083985,
317
+ 0.012262399673461915,
318
+ 0.012217344284057617,
319
+ 0.012281855583190919,
320
+ 0.012239871978759765,
321
+ 0.012271615982055664,
322
+ 0.012238944053649902,
323
+ 0.012259231567382813,
324
+ 0.012229632377624512,
325
+ 0.012283904075622559,
326
+ 0.01225216007232666,
327
+ 0.012283904075622559,
328
+ 0.012225536346435547,
329
+ 0.012272640228271485
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 81.10422446333894
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/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": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014070799827575683,
7
+ "prefill.throughput.value": 497.4841576725109,
8
+ "decode.latency.mean": 1.559213195800781,
9
+ "decode.throughput.value": 81.4513373424699,
10
+ "per_token.latency.mean": 0.012329813972292209,
11
+ "per_token.throughput.value": 81.10422446333894
12
+ }
13
+ }
2024-06-25/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp0ph0yh1g/commit=74b92c62560b7ade42d35a49f9063adc8b805c4a
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/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a
88
+ - hydra.run.dir=_benchmark/tmp0ph0yh1g/commit\=74b92c62560b7ade42d35a49f9063adc8b805c4a/${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: 74b92c62560b7ade42d35a49f9063adc8b805c4a
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-25/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.019320960044860842,
8
+ "prefill.throughput.value": 362.30083721237867,
9
+ "decode.latency.mean": 2.3275152587890626,
10
+ "decode.throughput.value": 54.564626169658,
11
+ "per_token.latency.mean": 0.01840009012335374,
12
+ "per_token.throughput.value": 54.34755989215407
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022983008384704587,
21
+ "prefill.throughput.value": 304.57283410550235,
22
+ "decode.latency.mean": 2.6945513916015624,
23
+ "decode.throughput.value": 47.132149862064765,
24
+ "per_token.latency.mean": 0.021307865519768633,
25
+ "per_token.throughput.value": 46.93102643585946
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "74b92c62560b7ade42d35a49f9063adc8b805c4a",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014070799827575683,
34
+ "prefill.throughput.value": 497.4841576725109,
35
+ "decode.latency.mean": 1.559213195800781,
36
+ "decode.throughput.value": 81.4513373424699,
37
+ "per_token.latency.mean": 0.012329813972292209,
38
+ "per_token.throughput.value": 81.10422446333894
39
+ }
40
+ }
41
+ ]
2024-06-25/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "74b92c62560b7ade42d35a49f9063adc8b805c4a": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019320960044860842,
7
+ "prefill.throughput.value": 362.30083721237867,
8
+ "decode.latency.mean": 2.3275152587890626,
9
+ "decode.throughput.value": 54.564626169658,
10
+ "per_token.latency.mean": 0.01840009012335374,
11
+ "per_token.throughput.value": 54.34755989215407
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "74b92c62560b7ade42d35a49f9063adc8b805c4a": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022983008384704587,
19
+ "prefill.throughput.value": 304.57283410550235,
20
+ "decode.latency.mean": 2.6945513916015624,
21
+ "decode.throughput.value": 47.132149862064765,
22
+ "per_token.latency.mean": 0.021307865519768633,
23
+ "per_token.throughput.value": 46.93102643585946
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "74b92c62560b7ade42d35a49f9063adc8b805c4a": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014070799827575683,
31
+ "prefill.throughput.value": 497.4841576725109,
32
+ "decode.latency.mean": 1.559213195800781,
33
+ "decode.throughput.value": 81.4513373424699,
34
+ "per_token.latency.mean": 0.012329813972292209,
35
+ "per_token.throughput.value": 81.10422446333894
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }