hf-transformers-bot commited on
Commit
8993785
1 Parent(s): cef6559

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/multirun.yaml +234 -0
  31. 2024-08-23/summaries.json +41 -0
  32. 2024-08-23/summary.json +40 -0
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: d806fa3e92289876e01ab19c9e19e9264ea1c1a1
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
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/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
88
+ - hydra.run.dir=_benchmark/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1318.342656,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.320982421875,
120
+ "mean": 11.320982421875,
121
+ "stdev": 0.0,
122
+ "p50": 11.320982421875,
123
+ "p90": 11.320982421875,
124
+ "p95": 11.320982421875,
125
+ "p99": 11.320982421875,
126
+ "values": [
127
+ 11.320982421875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1720.58624,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5034.575872
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.04001260757446289,
147
+ "mean": 0.020006303787231446,
148
+ "stdev": 6.483268737792966e-05,
149
+ "p50": 0.020006303787231446,
150
+ "p90": 0.02005816993713379,
151
+ "p95": 0.020064653205871582,
152
+ "p99": 0.02006983982086182,
153
+ "values": [
154
+ 0.019941471099853517,
155
+ 0.020071136474609376
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 349.8897184830106
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1785.294848,
169
+ "max_global_vram": 6795.296768,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6148.849664,
172
+ "max_allocated": 5034.576384
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 4.95334716796875,
178
+ "mean": 2.476673583984375,
179
+ "stdev": 0.00426513671874984,
180
+ "p50": 2.476673583984375,
181
+ "p90": 2.4800856933593747,
182
+ "p95": 2.48051220703125,
183
+ "p99": 2.48085341796875,
184
+ "values": [
185
+ 2.472408447265625,
186
+ 2.480938720703125
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 51.27845704870296
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 4.953016315460205,
202
+ "mean": 0.019500064234095296,
203
+ "stdev": 0.0002412207593411123,
204
+ "p50": 0.01944115161895752,
205
+ "p90": 0.019782144165039064,
206
+ "p95": 0.019980748844146728,
207
+ "p99": 0.02044187629699707,
208
+ "values": [
209
+ 0.01927475166320801,
210
+ 0.019315711975097655,
211
+ 0.019302400588989257,
212
+ 0.01926348876953125,
213
+ 0.019326976776123047,
214
+ 0.019337215423583985,
215
+ 0.01942937660217285,
216
+ 0.019368959426879884,
217
+ 0.019578880310058593,
218
+ 0.019546112060546874,
219
+ 0.019356672286987304,
220
+ 0.019309568405151366,
221
+ 0.019351551055908203,
222
+ 0.019338239669799806,
223
+ 0.019313695907592774,
224
+ 0.01935152053833008,
225
+ 0.019357696533203125,
226
+ 0.01943654441833496,
227
+ 0.019757055282592775,
228
+ 0.019559423446655275,
229
+ 0.019365888595581054,
230
+ 0.019348480224609374,
231
+ 0.019345407485961915,
232
+ 0.019345407485961915,
233
+ 0.01929113578796387,
234
+ 0.019338239669799806,
235
+ 0.019360767364501954,
236
+ 0.01939455986022949,
237
+ 0.01928294372558594,
238
+ 0.019355648040771483,
239
+ 0.01943756866455078,
240
+ 0.019368959426879884,
241
+ 0.019361791610717775,
242
+ 0.01946828842163086,
243
+ 0.019372032165527343,
244
+ 0.019397632598876953,
245
+ 0.019381248474121093,
246
+ 0.019359743118286133,
247
+ 0.019323904037475585,
248
+ 0.019316736221313476,
249
+ 0.019315711975097655,
250
+ 0.019369983673095705,
251
+ 0.01938739204406738,
252
+ 0.019916799545288084,
253
+ 0.019817472457885742,
254
+ 0.019338239669799806,
255
+ 0.019317760467529296,
256
+ 0.019321855545043946,
257
+ 0.019296255111694336,
258
+ 0.01925632095336914,
259
+ 0.01939455986022949,
260
+ 0.019380224227905272,
261
+ 0.01942732810974121,
262
+ 0.020303871154785155,
263
+ 0.019776512145996093,
264
+ 0.01943142318725586,
265
+ 0.019288063049316406,
266
+ 0.01945088005065918,
267
+ 0.01948467254638672,
268
+ 0.01942118453979492,
269
+ 0.019614719390869142,
270
+ 0.01949286460876465,
271
+ 0.01947648048400879,
272
+ 0.019481599807739256,
273
+ 0.01942323112487793,
274
+ 0.019481599807739256,
275
+ 0.019536895751953123,
276
+ 0.019466239929199217,
277
+ 0.01961369514465332,
278
+ 0.019778560638427735,
279
+ 0.019916799545288084,
280
+ 0.019854335784912108,
281
+ 0.01969049644470215,
282
+ 0.0194201602935791,
283
+ 0.019482624053955077,
284
+ 0.01943961524963379,
285
+ 0.019571712493896484,
286
+ 0.019555328369140625,
287
+ 0.019579904556274414,
288
+ 0.01948569679260254,
289
+ 0.01943449592590332,
290
+ 0.019449855804443358,
291
+ 0.01946828842163086,
292
+ 0.019504127502441407,
293
+ 0.019512319564819337,
294
+ 0.01964851188659668,
295
+ 0.01944576072692871,
296
+ 0.019497983932495116,
297
+ 0.01942937660217285,
298
+ 0.019647487640380858,
299
+ 0.019463199615478516,
300
+ 0.019463136672973634,
301
+ 0.01948057556152344,
302
+ 0.01944576072692871,
303
+ 0.019951616287231445,
304
+ 0.01942835235595703,
305
+ 0.019924991607666014,
306
+ 0.019396608352661132,
307
+ 0.01923379135131836,
308
+ 0.019290111541748048,
309
+ 0.01947238349914551,
310
+ 0.01940377616882324,
311
+ 0.019404800415039062,
312
+ 0.019471359252929688,
313
+ 0.019423263549804688,
314
+ 0.01946006393432617,
315
+ 0.01942835235595703,
316
+ 0.019570688247680663,
317
+ 0.01943449592590332,
318
+ 0.01944268798828125,
319
+ 0.01943961524963379,
320
+ 0.019475456237792968,
321
+ 0.01948467254638672,
322
+ 0.019474431991577147,
323
+ 0.019490816116333007,
324
+ 0.01943961524963379,
325
+ 0.01944883155822754,
326
+ 0.0194969596862793,
327
+ 0.019450912475585936,
328
+ 0.01945903968811035,
329
+ 0.01945497512817383,
330
+ 0.019610624313354492,
331
+ 0.01942732810974121,
332
+ 0.019475456237792968,
333
+ 0.019729408264160156,
334
+ 0.01968639945983887,
335
+ 0.0194201602935791,
336
+ 0.01928294372558594,
337
+ 0.019284992218017577,
338
+ 0.019301376342773437,
339
+ 0.01927987289428711,
340
+ 0.019362815856933592,
341
+ 0.019381248474121093,
342
+ 0.019298303604125978,
343
+ 0.019361791610717775,
344
+ 0.019376127243041993,
345
+ 0.019372032165527343,
346
+ 0.019307519912719725,
347
+ 0.019355648040771483,
348
+ 0.019297279357910157,
349
+ 0.019306495666503908,
350
+ 0.019397632598876953,
351
+ 0.019304447174072266,
352
+ 0.019350528717041016,
353
+ 0.01941913604736328,
354
+ 0.019292160034179686,
355
+ 0.019339263916015623,
356
+ 0.019350528717041016,
357
+ 0.01937919998168945,
358
+ 0.01924608039855957,
359
+ 0.019320831298828126,
360
+ 0.019386367797851564,
361
+ 0.019329023361206055,
362
+ 0.019335168838500977,
363
+ 0.019343360900878907,
364
+ 0.01939967918395996,
365
+ 0.019315711975097655,
366
+ 0.019351551055908203,
367
+ 0.019332096099853514,
368
+ 0.019353599548339845,
369
+ 0.019321855545043946,
370
+ 0.019346431732177736,
371
+ 0.01942630386352539,
372
+ 0.019353599548339845,
373
+ 0.019353599548339845,
374
+ 0.019386367797851564,
375
+ 0.019325952529907226,
376
+ 0.019260480880737306,
377
+ 0.019403711318969726,
378
+ 0.019341312408447265,
379
+ 0.019366912841796875,
380
+ 0.019356672286987304,
381
+ 0.019348480224609374,
382
+ 0.019300352096557616,
383
+ 0.019318784713745117,
384
+ 0.01938739204406738,
385
+ 0.019902463912963866,
386
+ 0.01969049644470215,
387
+ 0.019392511367797852,
388
+ 0.019770368576049805,
389
+ 0.01940275192260742,
390
+ 0.01925119972229004,
391
+ 0.019145727157592773,
392
+ 0.01919692802429199,
393
+ 0.01946009635925293,
394
+ 0.019507200241088866,
395
+ 0.019559423446655275,
396
+ 0.019487743377685548,
397
+ 0.01949388885498047,
398
+ 0.019494911193847657,
399
+ 0.01978982353210449,
400
+ 0.019697664260864257,
401
+ 0.02059775924682617,
402
+ 0.019545087814331053,
403
+ 0.0194703369140625,
404
+ 0.01941094398498535,
405
+ 0.020025344848632814,
406
+ 0.019909631729125975,
407
+ 0.019458047866821288,
408
+ 0.01943654441833496,
409
+ 0.019449855804443358,
410
+ 0.019393535614013673,
411
+ 0.01944473648071289,
412
+ 0.019467264175415038,
413
+ 0.01960038375854492,
414
+ 0.019528703689575197,
415
+ 0.0194652156829834,
416
+ 0.019471359252929688,
417
+ 0.01943552017211914,
418
+ 0.01945395278930664,
419
+ 0.019482624053955077,
420
+ 0.019474431991577147,
421
+ 0.019579904556274414,
422
+ 0.019809280395507813,
423
+ 0.01967103958129883,
424
+ 0.019597312927246095,
425
+ 0.01943142318725586,
426
+ 0.019489791870117186,
427
+ 0.019478527069091797,
428
+ 0.020084735870361328,
429
+ 0.020929536819458007,
430
+ 0.020405344009399414,
431
+ 0.020119455337524413,
432
+ 0.020068351745605468,
433
+ 0.019509248733520508,
434
+ 0.019519487380981446,
435
+ 0.019514368057250975,
436
+ 0.019606527328491212,
437
+ 0.019701759338378907,
438
+ 0.02006425666809082,
439
+ 0.02021990394592285,
440
+ 0.01967820739746094,
441
+ 0.019529727935791014,
442
+ 0.02048307228088379,
443
+ 0.019725311279296876,
444
+ 0.019414016723632813,
445
+ 0.019594240188598632,
446
+ 0.020366336822509764,
447
+ 0.019535871505737306,
448
+ 0.01948876762390137,
449
+ 0.019491840362548828,
450
+ 0.019489791870117186,
451
+ 0.019547136306762695,
452
+ 0.020032512664794923,
453
+ 0.019783679962158202,
454
+ 0.019513343811035155,
455
+ 0.019543039321899415,
456
+ 0.019956735610961913,
457
+ 0.019937280654907227,
458
+ 0.019524608612060547,
459
+ 0.019505151748657225,
460
+ 0.01944576072692871,
461
+ 0.01946112060546875,
462
+ 0.0194467830657959
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 51.28188235665034
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1318.342656,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.320982421875,
15
+ "mean": 11.320982421875,
16
+ "stdev": 0.0,
17
+ "p50": 11.320982421875,
18
+ "p90": 11.320982421875,
19
+ "p95": 11.320982421875,
20
+ "p99": 11.320982421875,
21
+ "values": [
22
+ 11.320982421875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1720.58624,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5034.575872
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.04001260757446289,
42
+ "mean": 0.020006303787231446,
43
+ "stdev": 6.483268737792966e-05,
44
+ "p50": 0.020006303787231446,
45
+ "p90": 0.02005816993713379,
46
+ "p95": 0.020064653205871582,
47
+ "p99": 0.02006983982086182,
48
+ "values": [
49
+ 0.019941471099853517,
50
+ 0.020071136474609376
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 349.8897184830106
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1785.294848,
64
+ "max_global_vram": 6795.296768,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6148.849664,
67
+ "max_allocated": 5034.576384
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 4.95334716796875,
73
+ "mean": 2.476673583984375,
74
+ "stdev": 0.00426513671874984,
75
+ "p50": 2.476673583984375,
76
+ "p90": 2.4800856933593747,
77
+ "p95": 2.48051220703125,
78
+ "p99": 2.48085341796875,
79
+ "values": [
80
+ 2.472408447265625,
81
+ 2.480938720703125
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 51.27845704870296
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 4.953016315460205,
97
+ "mean": 0.019500064234095296,
98
+ "stdev": 0.0002412207593411123,
99
+ "p50": 0.01944115161895752,
100
+ "p90": 0.019782144165039064,
101
+ "p95": 0.019980748844146728,
102
+ "p99": 0.02044187629699707,
103
+ "values": [
104
+ 0.01927475166320801,
105
+ 0.019315711975097655,
106
+ 0.019302400588989257,
107
+ 0.01926348876953125,
108
+ 0.019326976776123047,
109
+ 0.019337215423583985,
110
+ 0.01942937660217285,
111
+ 0.019368959426879884,
112
+ 0.019578880310058593,
113
+ 0.019546112060546874,
114
+ 0.019356672286987304,
115
+ 0.019309568405151366,
116
+ 0.019351551055908203,
117
+ 0.019338239669799806,
118
+ 0.019313695907592774,
119
+ 0.01935152053833008,
120
+ 0.019357696533203125,
121
+ 0.01943654441833496,
122
+ 0.019757055282592775,
123
+ 0.019559423446655275,
124
+ 0.019365888595581054,
125
+ 0.019348480224609374,
126
+ 0.019345407485961915,
127
+ 0.019345407485961915,
128
+ 0.01929113578796387,
129
+ 0.019338239669799806,
130
+ 0.019360767364501954,
131
+ 0.01939455986022949,
132
+ 0.01928294372558594,
133
+ 0.019355648040771483,
134
+ 0.01943756866455078,
135
+ 0.019368959426879884,
136
+ 0.019361791610717775,
137
+ 0.01946828842163086,
138
+ 0.019372032165527343,
139
+ 0.019397632598876953,
140
+ 0.019381248474121093,
141
+ 0.019359743118286133,
142
+ 0.019323904037475585,
143
+ 0.019316736221313476,
144
+ 0.019315711975097655,
145
+ 0.019369983673095705,
146
+ 0.01938739204406738,
147
+ 0.019916799545288084,
148
+ 0.019817472457885742,
149
+ 0.019338239669799806,
150
+ 0.019317760467529296,
151
+ 0.019321855545043946,
152
+ 0.019296255111694336,
153
+ 0.01925632095336914,
154
+ 0.01939455986022949,
155
+ 0.019380224227905272,
156
+ 0.01942732810974121,
157
+ 0.020303871154785155,
158
+ 0.019776512145996093,
159
+ 0.01943142318725586,
160
+ 0.019288063049316406,
161
+ 0.01945088005065918,
162
+ 0.01948467254638672,
163
+ 0.01942118453979492,
164
+ 0.019614719390869142,
165
+ 0.01949286460876465,
166
+ 0.01947648048400879,
167
+ 0.019481599807739256,
168
+ 0.01942323112487793,
169
+ 0.019481599807739256,
170
+ 0.019536895751953123,
171
+ 0.019466239929199217,
172
+ 0.01961369514465332,
173
+ 0.019778560638427735,
174
+ 0.019916799545288084,
175
+ 0.019854335784912108,
176
+ 0.01969049644470215,
177
+ 0.0194201602935791,
178
+ 0.019482624053955077,
179
+ 0.01943961524963379,
180
+ 0.019571712493896484,
181
+ 0.019555328369140625,
182
+ 0.019579904556274414,
183
+ 0.01948569679260254,
184
+ 0.01943449592590332,
185
+ 0.019449855804443358,
186
+ 0.01946828842163086,
187
+ 0.019504127502441407,
188
+ 0.019512319564819337,
189
+ 0.01964851188659668,
190
+ 0.01944576072692871,
191
+ 0.019497983932495116,
192
+ 0.01942937660217285,
193
+ 0.019647487640380858,
194
+ 0.019463199615478516,
195
+ 0.019463136672973634,
196
+ 0.01948057556152344,
197
+ 0.01944576072692871,
198
+ 0.019951616287231445,
199
+ 0.01942835235595703,
200
+ 0.019924991607666014,
201
+ 0.019396608352661132,
202
+ 0.01923379135131836,
203
+ 0.019290111541748048,
204
+ 0.01947238349914551,
205
+ 0.01940377616882324,
206
+ 0.019404800415039062,
207
+ 0.019471359252929688,
208
+ 0.019423263549804688,
209
+ 0.01946006393432617,
210
+ 0.01942835235595703,
211
+ 0.019570688247680663,
212
+ 0.01943449592590332,
213
+ 0.01944268798828125,
214
+ 0.01943961524963379,
215
+ 0.019475456237792968,
216
+ 0.01948467254638672,
217
+ 0.019474431991577147,
218
+ 0.019490816116333007,
219
+ 0.01943961524963379,
220
+ 0.01944883155822754,
221
+ 0.0194969596862793,
222
+ 0.019450912475585936,
223
+ 0.01945903968811035,
224
+ 0.01945497512817383,
225
+ 0.019610624313354492,
226
+ 0.01942732810974121,
227
+ 0.019475456237792968,
228
+ 0.019729408264160156,
229
+ 0.01968639945983887,
230
+ 0.0194201602935791,
231
+ 0.01928294372558594,
232
+ 0.019284992218017577,
233
+ 0.019301376342773437,
234
+ 0.01927987289428711,
235
+ 0.019362815856933592,
236
+ 0.019381248474121093,
237
+ 0.019298303604125978,
238
+ 0.019361791610717775,
239
+ 0.019376127243041993,
240
+ 0.019372032165527343,
241
+ 0.019307519912719725,
242
+ 0.019355648040771483,
243
+ 0.019297279357910157,
244
+ 0.019306495666503908,
245
+ 0.019397632598876953,
246
+ 0.019304447174072266,
247
+ 0.019350528717041016,
248
+ 0.01941913604736328,
249
+ 0.019292160034179686,
250
+ 0.019339263916015623,
251
+ 0.019350528717041016,
252
+ 0.01937919998168945,
253
+ 0.01924608039855957,
254
+ 0.019320831298828126,
255
+ 0.019386367797851564,
256
+ 0.019329023361206055,
257
+ 0.019335168838500977,
258
+ 0.019343360900878907,
259
+ 0.01939967918395996,
260
+ 0.019315711975097655,
261
+ 0.019351551055908203,
262
+ 0.019332096099853514,
263
+ 0.019353599548339845,
264
+ 0.019321855545043946,
265
+ 0.019346431732177736,
266
+ 0.01942630386352539,
267
+ 0.019353599548339845,
268
+ 0.019353599548339845,
269
+ 0.019386367797851564,
270
+ 0.019325952529907226,
271
+ 0.019260480880737306,
272
+ 0.019403711318969726,
273
+ 0.019341312408447265,
274
+ 0.019366912841796875,
275
+ 0.019356672286987304,
276
+ 0.019348480224609374,
277
+ 0.019300352096557616,
278
+ 0.019318784713745117,
279
+ 0.01938739204406738,
280
+ 0.019902463912963866,
281
+ 0.01969049644470215,
282
+ 0.019392511367797852,
283
+ 0.019770368576049805,
284
+ 0.01940275192260742,
285
+ 0.01925119972229004,
286
+ 0.019145727157592773,
287
+ 0.01919692802429199,
288
+ 0.01946009635925293,
289
+ 0.019507200241088866,
290
+ 0.019559423446655275,
291
+ 0.019487743377685548,
292
+ 0.01949388885498047,
293
+ 0.019494911193847657,
294
+ 0.01978982353210449,
295
+ 0.019697664260864257,
296
+ 0.02059775924682617,
297
+ 0.019545087814331053,
298
+ 0.0194703369140625,
299
+ 0.01941094398498535,
300
+ 0.020025344848632814,
301
+ 0.019909631729125975,
302
+ 0.019458047866821288,
303
+ 0.01943654441833496,
304
+ 0.019449855804443358,
305
+ 0.019393535614013673,
306
+ 0.01944473648071289,
307
+ 0.019467264175415038,
308
+ 0.01960038375854492,
309
+ 0.019528703689575197,
310
+ 0.0194652156829834,
311
+ 0.019471359252929688,
312
+ 0.01943552017211914,
313
+ 0.01945395278930664,
314
+ 0.019482624053955077,
315
+ 0.019474431991577147,
316
+ 0.019579904556274414,
317
+ 0.019809280395507813,
318
+ 0.01967103958129883,
319
+ 0.019597312927246095,
320
+ 0.01943142318725586,
321
+ 0.019489791870117186,
322
+ 0.019478527069091797,
323
+ 0.020084735870361328,
324
+ 0.020929536819458007,
325
+ 0.020405344009399414,
326
+ 0.020119455337524413,
327
+ 0.020068351745605468,
328
+ 0.019509248733520508,
329
+ 0.019519487380981446,
330
+ 0.019514368057250975,
331
+ 0.019606527328491212,
332
+ 0.019701759338378907,
333
+ 0.02006425666809082,
334
+ 0.02021990394592285,
335
+ 0.01967820739746094,
336
+ 0.019529727935791014,
337
+ 0.02048307228088379,
338
+ 0.019725311279296876,
339
+ 0.019414016723632813,
340
+ 0.019594240188598632,
341
+ 0.020366336822509764,
342
+ 0.019535871505737306,
343
+ 0.01948876762390137,
344
+ 0.019491840362548828,
345
+ 0.019489791870117186,
346
+ 0.019547136306762695,
347
+ 0.020032512664794923,
348
+ 0.019783679962158202,
349
+ 0.019513343811035155,
350
+ 0.019543039321899415,
351
+ 0.019956735610961913,
352
+ 0.019937280654907227,
353
+ 0.019524608612060547,
354
+ 0.019505151748657225,
355
+ 0.01944576072692871,
356
+ 0.01946112060546875,
357
+ 0.0194467830657959
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 51.28188235665034
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020006303787231446,
7
+ "prefill.throughput.value": 349.8897184830106,
8
+ "decode.latency.mean": 2.476673583984375,
9
+ "decode.throughput.value": 51.27845704870296,
10
+ "per_token.latency.mean": 0.019500064234095296,
11
+ "per_token.throughput.value": 51.28188235665034
12
+ }
13
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: d806fa3e92289876e01ab19c9e19e9264ea1c1a1
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
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/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
88
+ - hydra.run.dir=_benchmark/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [ISOLATED-PROCESS][2024-08-23 02:37:27,075][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-08-23 02:37:29,478][process][ERROR] - + Received traceback from isolated process
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: d806fa3e92289876e01ab19c9e19e9264ea1c1a1
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
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/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
88
+ - hydra.run.dir=_benchmark/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1319.010304,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.4680869140625,
120
+ "mean": 11.4680869140625,
121
+ "stdev": 0.0,
122
+ "p50": 11.4680869140625,
123
+ "p90": 11.4680869140625,
124
+ "p95": 11.4680869140625,
125
+ "p99": 11.4680869140625,
126
+ "values": [
127
+ 11.4680869140625
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1756.086272,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5034.594816
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.043132991790771485,
147
+ "mean": 0.021566495895385743,
148
+ "stdev": 4.188728332519577e-05,
149
+ "p50": 0.021566495895385743,
150
+ "p90": 0.021600005722045897,
151
+ "p95": 0.02160419445037842,
152
+ "p99": 0.021607545433044432,
153
+ "values": [
154
+ 0.021608383178710937,
155
+ 0.021524608612060545
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 324.5775314615521
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1791.246336,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5036.937728
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 5.2087939453125,
178
+ "mean": 2.60439697265625,
179
+ "stdev": 0.00757177734375003,
180
+ "p50": 2.60439697265625,
181
+ "p90": 2.61045439453125,
182
+ "p95": 2.611211572265625,
183
+ "p99": 2.611817314453125,
184
+ "values": [
185
+ 2.5968251953125,
186
+ 2.61196875
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 48.763687461390134
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 5.208528909683229,
202
+ "mean": 0.020506019329461528,
203
+ "stdev": 0.00044100919564279165,
204
+ "p50": 0.02068940830230713,
205
+ "p90": 0.02089687099456787,
206
+ "p95": 0.02101437397003174,
207
+ "p99": 0.02142007369995117,
208
+ "values": [
209
+ 0.019934207916259765,
210
+ 0.019896320343017578,
211
+ 0.02089472007751465,
212
+ 0.021132287979125978,
213
+ 0.020767744064331056,
214
+ 0.020898815155029296,
215
+ 0.020690944671630858,
216
+ 0.019933183670043944,
217
+ 0.019896320343017578,
218
+ 0.020728832244873048,
219
+ 0.02067865562438965,
220
+ 0.02064896011352539,
221
+ 0.020677631378173827,
222
+ 0.02072985649108887,
223
+ 0.020760576248168947,
224
+ 0.020786176681518553,
225
+ 0.020770816802978515,
226
+ 0.020539392471313478,
227
+ 0.020760576248168947,
228
+ 0.020690944671630858,
229
+ 0.020800512313842775,
230
+ 0.021098495483398438,
231
+ 0.020801536560058592,
232
+ 0.020840448379516603,
233
+ 0.020686847686767578,
234
+ 0.02072985649108887,
235
+ 0.020716543197631835,
236
+ 0.01982156753540039,
237
+ 0.01984716796875,
238
+ 0.019885055541992186,
239
+ 0.02001408004760742,
240
+ 0.020945920944213867,
241
+ 0.019908607482910155,
242
+ 0.01985945510864258,
243
+ 0.019834880828857423,
244
+ 0.01984102439880371,
245
+ 0.020446207046508787,
246
+ 0.019854335784912108,
247
+ 0.019878911972045898,
248
+ 0.019985408782958985,
249
+ 0.020376575469970702,
250
+ 0.01985843276977539,
251
+ 0.019941375732421874,
252
+ 0.01984819221496582,
253
+ 0.019922943115234376,
254
+ 0.02083635139465332,
255
+ 0.02082918357849121,
256
+ 0.020708351135253905,
257
+ 0.020980735778808594,
258
+ 0.020792320251464845,
259
+ 0.020751359939575196,
260
+ 0.020777984619140624,
261
+ 0.020782079696655274,
262
+ 0.020794368743896483,
263
+ 0.021404672622680664,
264
+ 0.02085785675048828,
265
+ 0.02082713508605957,
266
+ 0.020751359939575196,
267
+ 0.020695039749145508,
268
+ 0.020674560546875,
269
+ 0.02063871955871582,
270
+ 0.020746240615844725,
271
+ 0.02065715217590332,
272
+ 0.02067046356201172,
273
+ 0.020703231811523438,
274
+ 0.020733951568603515,
275
+ 0.020668415069580077,
276
+ 0.020727807998657227,
277
+ 0.020742143630981445,
278
+ 0.020658176422119142,
279
+ 0.02088140869140625,
280
+ 0.019903488159179687,
281
+ 0.01986764717102051,
282
+ 0.019932159423828123,
283
+ 0.01985740852355957,
284
+ 0.019891199111938478,
285
+ 0.019802112579345704,
286
+ 0.01993011283874512,
287
+ 0.01984716796875,
288
+ 0.01988096046447754,
289
+ 0.01989017677307129,
290
+ 0.019919872283935547,
291
+ 0.019854335784912108,
292
+ 0.0198492488861084,
293
+ 0.019864543914794922,
294
+ 0.01985740852355957,
295
+ 0.019853311538696287,
296
+ 0.01987276840209961,
297
+ 0.01984921646118164,
298
+ 0.01991372871398926,
299
+ 0.01986355209350586,
300
+ 0.01982771110534668,
301
+ 0.019843072891235353,
302
+ 0.0198604793548584,
303
+ 0.02045644760131836,
304
+ 0.020784128189086915,
305
+ 0.02070528030395508,
306
+ 0.0208353271484375,
307
+ 0.020754432678222655,
308
+ 0.020710399627685547,
309
+ 0.020760576248168947,
310
+ 0.020718591690063477,
311
+ 0.020406272888183592,
312
+ 0.020575231552124023,
313
+ 0.020792320251464845,
314
+ 0.021131263732910157,
315
+ 0.02084864044189453,
316
+ 0.020100095748901366,
317
+ 0.019900415420532228,
318
+ 0.020297727584838866,
319
+ 0.020746240615844725,
320
+ 0.020642816543579103,
321
+ 0.020674560546875,
322
+ 0.020707328796386718,
323
+ 0.020731903076171874,
324
+ 0.02064896011352539,
325
+ 0.02068172836303711,
326
+ 0.02068889617919922,
327
+ 0.020940799713134766,
328
+ 0.02088652801513672,
329
+ 0.020642816543579103,
330
+ 0.02071244812011719,
331
+ 0.02063974380493164,
332
+ 0.02062233543395996,
333
+ 0.02065203285217285,
334
+ 0.020754432678222655,
335
+ 0.02066022491455078,
336
+ 0.019893247604370116,
337
+ 0.01988096046447754,
338
+ 0.019938304901123048,
339
+ 0.020754432678222655,
340
+ 0.02059775924682617,
341
+ 0.020746240615844725,
342
+ 0.02058956718444824,
343
+ 0.02063564872741699,
344
+ 0.0206561279296875,
345
+ 0.020632575988769532,
346
+ 0.02064691162109375,
347
+ 0.02069196891784668,
348
+ 0.020708351135253905,
349
+ 0.02064588737487793,
350
+ 0.020644863128662108,
351
+ 0.02127872085571289,
352
+ 0.020682752609252928,
353
+ 0.020766719818115235,
354
+ 0.020958208084106447,
355
+ 0.020706304550170897,
356
+ 0.0206561279296875,
357
+ 0.020709375381469726,
358
+ 0.020716543197631835,
359
+ 0.020719615936279297,
360
+ 0.02068377685546875,
361
+ 0.02065920066833496,
362
+ 0.020760576248168947,
363
+ 0.02149273681640625,
364
+ 0.020939775466918945,
365
+ 0.02066739273071289,
366
+ 0.02064793586730957,
367
+ 0.020743167877197266,
368
+ 0.02082713508605957,
369
+ 0.02066431999206543,
370
+ 0.02062950325012207,
371
+ 0.019854335784912108,
372
+ 0.019853311538696287,
373
+ 0.01986867141723633,
374
+ 0.01983078384399414,
375
+ 0.01981439971923828,
376
+ 0.01966080093383789,
377
+ 0.019739648818969727,
378
+ 0.01988096046447754,
379
+ 0.01984000015258789,
380
+ 0.01985536003112793,
381
+ 0.01983897590637207,
382
+ 0.019842048645019532,
383
+ 0.01985843276977539,
384
+ 0.01991372871398926,
385
+ 0.019851264953613282,
386
+ 0.01985945510864258,
387
+ 0.01988812828063965,
388
+ 0.01984716796875,
389
+ 0.01984000015258789,
390
+ 0.01980620765686035,
391
+ 0.019818496704101563,
392
+ 0.01982054328918457,
393
+ 0.019904512405395508,
394
+ 0.01984614372253418,
395
+ 0.01987481689453125,
396
+ 0.019825664520263672,
397
+ 0.01987276840209961,
398
+ 0.019876863479614256,
399
+ 0.020274175643920898,
400
+ 0.02022604751586914,
401
+ 0.020917247772216797,
402
+ 0.020723712921142577,
403
+ 0.02083737564086914,
404
+ 0.020793344497680662,
405
+ 0.02068992042541504,
406
+ 0.020762624740600585,
407
+ 0.020732927322387695,
408
+ 0.02072985649108887,
409
+ 0.020739072799682616,
410
+ 0.020786176681518553,
411
+ 0.020718591690063477,
412
+ 0.02087936019897461,
413
+ 0.020940799713134766,
414
+ 0.021296127319335938,
415
+ 0.020984832763671874,
416
+ 0.020784128189086915,
417
+ 0.020797439575195312,
418
+ 0.02067967987060547,
419
+ 0.0208035831451416,
420
+ 0.020737024307250978,
421
+ 0.020766719818115235,
422
+ 0.020753408432006838,
423
+ 0.02063871955871582,
424
+ 0.02087014389038086,
425
+ 0.02082815933227539,
426
+ 0.020743167877197266,
427
+ 0.020924415588378906,
428
+ 0.020813823699951172,
429
+ 0.020757503509521484,
430
+ 0.020781055450439453,
431
+ 0.02068377685546875,
432
+ 0.020715520858764647,
433
+ 0.021437440872192383,
434
+ 0.021560319900512694,
435
+ 0.021112831115722656,
436
+ 0.021021696090698243,
437
+ 0.02087936019897461,
438
+ 0.020777984619140624,
439
+ 0.02101043128967285,
440
+ 0.020800512313842775,
441
+ 0.020750335693359375,
442
+ 0.02068377685546875,
443
+ 0.02067967987060547,
444
+ 0.020702207565307617,
445
+ 0.02068172836303711,
446
+ 0.020818944931030273,
447
+ 0.02084659194946289,
448
+ 0.02089779281616211,
449
+ 0.021350400924682617,
450
+ 0.020748287200927733,
451
+ 0.021202943801879884,
452
+ 0.02079641532897949,
453
+ 0.02084147262573242,
454
+ 0.02085990333557129,
455
+ 0.020692991256713866,
456
+ 0.020732927322387695,
457
+ 0.02066739273071289,
458
+ 0.020824064254760744,
459
+ 0.020755456924438476,
460
+ 0.02077187156677246,
461
+ 0.02091209602355957,
462
+ 0.020749311447143554
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 48.76616879821595
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1319.010304,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.4680869140625,
15
+ "mean": 11.4680869140625,
16
+ "stdev": 0.0,
17
+ "p50": 11.4680869140625,
18
+ "p90": 11.4680869140625,
19
+ "p95": 11.4680869140625,
20
+ "p99": 11.4680869140625,
21
+ "values": [
22
+ 11.4680869140625
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1756.086272,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5034.594816
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.043132991790771485,
42
+ "mean": 0.021566495895385743,
43
+ "stdev": 4.188728332519577e-05,
44
+ "p50": 0.021566495895385743,
45
+ "p90": 0.021600005722045897,
46
+ "p95": 0.02160419445037842,
47
+ "p99": 0.021607545433044432,
48
+ "values": [
49
+ 0.021608383178710937,
50
+ 0.021524608612060545
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 324.5775314615521
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1791.246336,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5036.937728
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 5.2087939453125,
73
+ "mean": 2.60439697265625,
74
+ "stdev": 0.00757177734375003,
75
+ "p50": 2.60439697265625,
76
+ "p90": 2.61045439453125,
77
+ "p95": 2.611211572265625,
78
+ "p99": 2.611817314453125,
79
+ "values": [
80
+ 2.5968251953125,
81
+ 2.61196875
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 48.763687461390134
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 5.208528909683229,
97
+ "mean": 0.020506019329461528,
98
+ "stdev": 0.00044100919564279165,
99
+ "p50": 0.02068940830230713,
100
+ "p90": 0.02089687099456787,
101
+ "p95": 0.02101437397003174,
102
+ "p99": 0.02142007369995117,
103
+ "values": [
104
+ 0.019934207916259765,
105
+ 0.019896320343017578,
106
+ 0.02089472007751465,
107
+ 0.021132287979125978,
108
+ 0.020767744064331056,
109
+ 0.020898815155029296,
110
+ 0.020690944671630858,
111
+ 0.019933183670043944,
112
+ 0.019896320343017578,
113
+ 0.020728832244873048,
114
+ 0.02067865562438965,
115
+ 0.02064896011352539,
116
+ 0.020677631378173827,
117
+ 0.02072985649108887,
118
+ 0.020760576248168947,
119
+ 0.020786176681518553,
120
+ 0.020770816802978515,
121
+ 0.020539392471313478,
122
+ 0.020760576248168947,
123
+ 0.020690944671630858,
124
+ 0.020800512313842775,
125
+ 0.021098495483398438,
126
+ 0.020801536560058592,
127
+ 0.020840448379516603,
128
+ 0.020686847686767578,
129
+ 0.02072985649108887,
130
+ 0.020716543197631835,
131
+ 0.01982156753540039,
132
+ 0.01984716796875,
133
+ 0.019885055541992186,
134
+ 0.02001408004760742,
135
+ 0.020945920944213867,
136
+ 0.019908607482910155,
137
+ 0.01985945510864258,
138
+ 0.019834880828857423,
139
+ 0.01984102439880371,
140
+ 0.020446207046508787,
141
+ 0.019854335784912108,
142
+ 0.019878911972045898,
143
+ 0.019985408782958985,
144
+ 0.020376575469970702,
145
+ 0.01985843276977539,
146
+ 0.019941375732421874,
147
+ 0.01984819221496582,
148
+ 0.019922943115234376,
149
+ 0.02083635139465332,
150
+ 0.02082918357849121,
151
+ 0.020708351135253905,
152
+ 0.020980735778808594,
153
+ 0.020792320251464845,
154
+ 0.020751359939575196,
155
+ 0.020777984619140624,
156
+ 0.020782079696655274,
157
+ 0.020794368743896483,
158
+ 0.021404672622680664,
159
+ 0.02085785675048828,
160
+ 0.02082713508605957,
161
+ 0.020751359939575196,
162
+ 0.020695039749145508,
163
+ 0.020674560546875,
164
+ 0.02063871955871582,
165
+ 0.020746240615844725,
166
+ 0.02065715217590332,
167
+ 0.02067046356201172,
168
+ 0.020703231811523438,
169
+ 0.020733951568603515,
170
+ 0.020668415069580077,
171
+ 0.020727807998657227,
172
+ 0.020742143630981445,
173
+ 0.020658176422119142,
174
+ 0.02088140869140625,
175
+ 0.019903488159179687,
176
+ 0.01986764717102051,
177
+ 0.019932159423828123,
178
+ 0.01985740852355957,
179
+ 0.019891199111938478,
180
+ 0.019802112579345704,
181
+ 0.01993011283874512,
182
+ 0.01984716796875,
183
+ 0.01988096046447754,
184
+ 0.01989017677307129,
185
+ 0.019919872283935547,
186
+ 0.019854335784912108,
187
+ 0.0198492488861084,
188
+ 0.019864543914794922,
189
+ 0.01985740852355957,
190
+ 0.019853311538696287,
191
+ 0.01987276840209961,
192
+ 0.01984921646118164,
193
+ 0.01991372871398926,
194
+ 0.01986355209350586,
195
+ 0.01982771110534668,
196
+ 0.019843072891235353,
197
+ 0.0198604793548584,
198
+ 0.02045644760131836,
199
+ 0.020784128189086915,
200
+ 0.02070528030395508,
201
+ 0.0208353271484375,
202
+ 0.020754432678222655,
203
+ 0.020710399627685547,
204
+ 0.020760576248168947,
205
+ 0.020718591690063477,
206
+ 0.020406272888183592,
207
+ 0.020575231552124023,
208
+ 0.020792320251464845,
209
+ 0.021131263732910157,
210
+ 0.02084864044189453,
211
+ 0.020100095748901366,
212
+ 0.019900415420532228,
213
+ 0.020297727584838866,
214
+ 0.020746240615844725,
215
+ 0.020642816543579103,
216
+ 0.020674560546875,
217
+ 0.020707328796386718,
218
+ 0.020731903076171874,
219
+ 0.02064896011352539,
220
+ 0.02068172836303711,
221
+ 0.02068889617919922,
222
+ 0.020940799713134766,
223
+ 0.02088652801513672,
224
+ 0.020642816543579103,
225
+ 0.02071244812011719,
226
+ 0.02063974380493164,
227
+ 0.02062233543395996,
228
+ 0.02065203285217285,
229
+ 0.020754432678222655,
230
+ 0.02066022491455078,
231
+ 0.019893247604370116,
232
+ 0.01988096046447754,
233
+ 0.019938304901123048,
234
+ 0.020754432678222655,
235
+ 0.02059775924682617,
236
+ 0.020746240615844725,
237
+ 0.02058956718444824,
238
+ 0.02063564872741699,
239
+ 0.0206561279296875,
240
+ 0.020632575988769532,
241
+ 0.02064691162109375,
242
+ 0.02069196891784668,
243
+ 0.020708351135253905,
244
+ 0.02064588737487793,
245
+ 0.020644863128662108,
246
+ 0.02127872085571289,
247
+ 0.020682752609252928,
248
+ 0.020766719818115235,
249
+ 0.020958208084106447,
250
+ 0.020706304550170897,
251
+ 0.0206561279296875,
252
+ 0.020709375381469726,
253
+ 0.020716543197631835,
254
+ 0.020719615936279297,
255
+ 0.02068377685546875,
256
+ 0.02065920066833496,
257
+ 0.020760576248168947,
258
+ 0.02149273681640625,
259
+ 0.020939775466918945,
260
+ 0.02066739273071289,
261
+ 0.02064793586730957,
262
+ 0.020743167877197266,
263
+ 0.02082713508605957,
264
+ 0.02066431999206543,
265
+ 0.02062950325012207,
266
+ 0.019854335784912108,
267
+ 0.019853311538696287,
268
+ 0.01986867141723633,
269
+ 0.01983078384399414,
270
+ 0.01981439971923828,
271
+ 0.01966080093383789,
272
+ 0.019739648818969727,
273
+ 0.01988096046447754,
274
+ 0.01984000015258789,
275
+ 0.01985536003112793,
276
+ 0.01983897590637207,
277
+ 0.019842048645019532,
278
+ 0.01985843276977539,
279
+ 0.01991372871398926,
280
+ 0.019851264953613282,
281
+ 0.01985945510864258,
282
+ 0.01988812828063965,
283
+ 0.01984716796875,
284
+ 0.01984000015258789,
285
+ 0.01980620765686035,
286
+ 0.019818496704101563,
287
+ 0.01982054328918457,
288
+ 0.019904512405395508,
289
+ 0.01984614372253418,
290
+ 0.01987481689453125,
291
+ 0.019825664520263672,
292
+ 0.01987276840209961,
293
+ 0.019876863479614256,
294
+ 0.020274175643920898,
295
+ 0.02022604751586914,
296
+ 0.020917247772216797,
297
+ 0.020723712921142577,
298
+ 0.02083737564086914,
299
+ 0.020793344497680662,
300
+ 0.02068992042541504,
301
+ 0.020762624740600585,
302
+ 0.020732927322387695,
303
+ 0.02072985649108887,
304
+ 0.020739072799682616,
305
+ 0.020786176681518553,
306
+ 0.020718591690063477,
307
+ 0.02087936019897461,
308
+ 0.020940799713134766,
309
+ 0.021296127319335938,
310
+ 0.020984832763671874,
311
+ 0.020784128189086915,
312
+ 0.020797439575195312,
313
+ 0.02067967987060547,
314
+ 0.0208035831451416,
315
+ 0.020737024307250978,
316
+ 0.020766719818115235,
317
+ 0.020753408432006838,
318
+ 0.02063871955871582,
319
+ 0.02087014389038086,
320
+ 0.02082815933227539,
321
+ 0.020743167877197266,
322
+ 0.020924415588378906,
323
+ 0.020813823699951172,
324
+ 0.020757503509521484,
325
+ 0.020781055450439453,
326
+ 0.02068377685546875,
327
+ 0.020715520858764647,
328
+ 0.021437440872192383,
329
+ 0.021560319900512694,
330
+ 0.021112831115722656,
331
+ 0.021021696090698243,
332
+ 0.02087936019897461,
333
+ 0.020777984619140624,
334
+ 0.02101043128967285,
335
+ 0.020800512313842775,
336
+ 0.020750335693359375,
337
+ 0.02068377685546875,
338
+ 0.02067967987060547,
339
+ 0.020702207565307617,
340
+ 0.02068172836303711,
341
+ 0.020818944931030273,
342
+ 0.02084659194946289,
343
+ 0.02089779281616211,
344
+ 0.021350400924682617,
345
+ 0.020748287200927733,
346
+ 0.021202943801879884,
347
+ 0.02079641532897949,
348
+ 0.02084147262573242,
349
+ 0.02085990333557129,
350
+ 0.020692991256713866,
351
+ 0.020732927322387695,
352
+ 0.02066739273071289,
353
+ 0.020824064254760744,
354
+ 0.020755456924438476,
355
+ 0.02077187156677246,
356
+ 0.02091209602355957,
357
+ 0.020749311447143554
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 48.76616879821595
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.021566495895385743,
7
+ "prefill.throughput.value": 324.5775314615521,
8
+ "decode.latency.mean": 2.60439697265625,
9
+ "decode.throughput.value": 48.763687461390134,
10
+ "per_token.latency.mean": 0.020506019329461528,
11
+ "per_token.throughput.value": 48.76616879821595
12
+ }
13
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: d806fa3e92289876e01ab19c9e19e9264ea1c1a1
84
+ accelerate_version: 0.34.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
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/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
88
+ - hydra.run.dir=_benchmark/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${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/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
94
+ "accelerate_version": "0.34.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1339.203584,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 13.891625,
120
+ "mean": 13.891625,
121
+ "stdev": 0.0,
122
+ "p50": 13.891625,
123
+ "p90": 13.891625,
124
+ "p95": 13.891625,
125
+ "p99": 13.891625,
126
+ "values": [
127
+ 13.891625
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1843.298304,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6138.363904,
141
+ "max_allocated": 5287.812608
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.028187775611877443,
147
+ "mean": 0.014093887805938721,
148
+ "stdev": 0.0001757760047912593,
149
+ "p50": 0.014093887805938721,
150
+ "p90": 0.014234508609771728,
151
+ "p95": 0.014252086210250854,
152
+ "p99": 0.014266148290634155,
153
+ "values": [
154
+ 0.013918111801147461,
155
+ 0.01426966381072998
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 496.669201315085
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2023.34208,
169
+ "max_global_vram": 6071.779328,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 5381.292032,
172
+ "max_allocated": 5282.963456
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 3.1296978759765626,
178
+ "mean": 1.5648489379882813,
179
+ "stdev": 0.0009840698242187251,
180
+ "p50": 1.5648489379882813,
181
+ "p90": 1.5656361938476562,
182
+ "p95": 1.565734600830078,
183
+ "p99": 1.5658133264160157,
184
+ "values": [
185
+ 1.5658330078125,
186
+ 1.5638648681640626
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.15799353978989
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 3.129420797348025,
202
+ "mean": 0.012320554320267805,
203
+ "stdev": 8.355633958134549e-05,
204
+ "p50": 0.012303343772888184,
205
+ "p90": 0.01232353286743164,
206
+ "p95": 0.012345753908157349,
207
+ "p99": 0.01277578254699707,
208
+ "values": [
209
+ 0.012336128234863282,
210
+ 0.012316672325134278,
211
+ 0.012298239707946777,
212
+ 0.012297216415405274,
213
+ 0.012294143676757812,
214
+ 0.012294143676757812,
215
+ 0.012297216415405274,
216
+ 0.012296192169189453,
217
+ 0.012300288200378418,
218
+ 0.01229312038421631,
219
+ 0.012305407524108887,
220
+ 0.012303359985351562,
221
+ 0.012303359985351562,
222
+ 0.012320768356323243,
223
+ 0.012316672325134278,
224
+ 0.012295167922973632,
225
+ 0.012295167922973632,
226
+ 0.012300288200378418,
227
+ 0.012294143676757812,
228
+ 0.012289024353027344,
229
+ 0.012300288200378418,
230
+ 0.012301312446594239,
231
+ 0.012300288200378418,
232
+ 0.012302335739135742,
233
+ 0.012310527801513671,
234
+ 0.012308480262756348,
235
+ 0.01232588768005371,
236
+ 0.01233510398864746,
237
+ 0.012298239707946777,
238
+ 0.012290047645568849,
239
+ 0.012299263954162597,
240
+ 0.012297216415405274,
241
+ 0.012294143676757812,
242
+ 0.012289024353027344,
243
+ 0.012306431770324706,
244
+ 0.012311552047729492,
245
+ 0.012811264038085938,
246
+ 0.012744704246520995,
247
+ 0.012312576293945313,
248
+ 0.012304384231567383,
249
+ 0.012292096138000488,
250
+ 0.012302335739135742,
251
+ 0.012294143676757812,
252
+ 0.012307456016540527,
253
+ 0.012296192169189453,
254
+ 0.012305407524108887,
255
+ 0.012312576293945313,
256
+ 0.012310527801513671,
257
+ 0.012295167922973632,
258
+ 0.012298239707946777,
259
+ 0.012315648078918457,
260
+ 0.012304384231567383,
261
+ 0.012294143676757812,
262
+ 0.012290047645568849,
263
+ 0.012303359985351562,
264
+ 0.012289024353027344,
265
+ 0.012297216415405274,
266
+ 0.012289024353027344,
267
+ 0.012311552047729492,
268
+ 0.01229520034790039,
269
+ 0.012481504440307618,
270
+ 0.012891167640686036,
271
+ 0.01262384033203125,
272
+ 0.01235148811340332,
273
+ 0.012320768356323243,
274
+ 0.012313599586486817,
275
+ 0.012311552047729492,
276
+ 0.012344320297241211,
277
+ 0.012313599586486817,
278
+ 0.012302335739135742,
279
+ 0.012310527801513671,
280
+ 0.012309503555297852,
281
+ 0.01232588768005371,
282
+ 0.012299263954162597,
283
+ 0.012304384231567383,
284
+ 0.012300288200378418,
285
+ 0.012291071891784668,
286
+ 0.012304384231567383,
287
+ 0.012290047645568849,
288
+ 0.012295167922973632,
289
+ 0.012301312446594239,
290
+ 0.012303359985351562,
291
+ 0.012301312446594239,
292
+ 0.012295167922973632,
293
+ 0.012307456016540527,
294
+ 0.012322815895080566,
295
+ 0.012308480262756348,
296
+ 0.012298239707946777,
297
+ 0.012299263954162597,
298
+ 0.012308480262756348,
299
+ 0.012309503555297852,
300
+ 0.012300288200378418,
301
+ 0.012307456016540527,
302
+ 0.012314623832702636,
303
+ 0.012304384231567383,
304
+ 0.012303359985351562,
305
+ 0.012307456016540527,
306
+ 0.012307456016540527,
307
+ 0.012319744110107422,
308
+ 0.01234227180480957,
309
+ 0.012295167922973632,
310
+ 0.012300288200378418,
311
+ 0.012300288200378418,
312
+ 0.012305407524108887,
313
+ 0.012295167922973632,
314
+ 0.012291071891784668,
315
+ 0.012316672325134278,
316
+ 0.012299263954162597,
317
+ 0.012306431770324706,
318
+ 0.012294143676757812,
319
+ 0.012306431770324706,
320
+ 0.012296192169189453,
321
+ 0.012323840141296387,
322
+ 0.0123023681640625,
323
+ 0.012306431770324706,
324
+ 0.012303327560424805,
325
+ 0.012305407524108887,
326
+ 0.012301312446594239,
327
+ 0.012311552047729492,
328
+ 0.012307456016540527,
329
+ 0.012778495788574219,
330
+ 0.01275494384765625,
331
+ 0.01234329605102539,
332
+ 0.012306431770324706,
333
+ 0.012304384231567383,
334
+ 0.012299263954162597,
335
+ 0.012299263954162597,
336
+ 0.012340224266052247,
337
+ 0.012289024353027344,
338
+ 0.012304384231567383,
339
+ 0.012296192169189453,
340
+ 0.012302335739135742,
341
+ 0.012296192169189453,
342
+ 0.012286975860595703,
343
+ 0.012294143676757812,
344
+ 0.012296192169189453,
345
+ 0.012304384231567383,
346
+ 0.012306431770324706,
347
+ 0.012304384231567383,
348
+ 0.012294143676757812,
349
+ 0.012309503555297852,
350
+ 0.012307456016540527,
351
+ 0.012291071891784668,
352
+ 0.012289024353027344,
353
+ 0.012296192169189453,
354
+ 0.012348416328430176,
355
+ 0.012333056449890138,
356
+ 0.012315648078918457,
357
+ 0.012307456016540527,
358
+ 0.012323840141296387,
359
+ 0.012310527801513671,
360
+ 0.012294143676757812,
361
+ 0.012308480262756348,
362
+ 0.012320768356323243,
363
+ 0.012303359985351562,
364
+ 0.012292096138000488,
365
+ 0.012296192169189453,
366
+ 0.012303359985351562,
367
+ 0.012305407524108887,
368
+ 0.012302335739135742,
369
+ 0.012297216415405274,
370
+ 0.012295167922973632,
371
+ 0.012299263954162597,
372
+ 0.012305407524108887,
373
+ 0.012292096138000488,
374
+ 0.012297216415405274,
375
+ 0.012313599586486817,
376
+ 0.012316672325134278,
377
+ 0.012299263954162597,
378
+ 0.012306431770324706,
379
+ 0.012297216415405274,
380
+ 0.012294143676757812,
381
+ 0.012292096138000488,
382
+ 0.01228492832183838,
383
+ 0.012295167922973632,
384
+ 0.012299263954162597,
385
+ 0.012309503555297852,
386
+ 0.012294143676757812,
387
+ 0.012285951614379884,
388
+ 0.012321791648864745,
389
+ 0.012313599586486817,
390
+ 0.012299263954162597,
391
+ 0.012296192169189453,
392
+ 0.01237299156188965,
393
+ 0.012305407524108887,
394
+ 0.012299263954162597,
395
+ 0.012298239707946777,
396
+ 0.012295167922973632,
397
+ 0.012305407524108887,
398
+ 0.012308480262756348,
399
+ 0.012301312446594239,
400
+ 0.012301312446594239,
401
+ 0.012313599586486817,
402
+ 0.012313599586486817,
403
+ 0.012298239707946777,
404
+ 0.012298239707946777,
405
+ 0.012296192169189453,
406
+ 0.012306431770324706,
407
+ 0.01229312038421631,
408
+ 0.012295167922973632,
409
+ 0.012292096138000488,
410
+ 0.012317695617675782,
411
+ 0.012314623832702636,
412
+ 0.01277337646484375,
413
+ 0.012749823570251465,
414
+ 0.012318719863891601,
415
+ 0.012306431770324706,
416
+ 0.012309503555297852,
417
+ 0.012297216415405274,
418
+ 0.012299263954162597,
419
+ 0.012290047645568849,
420
+ 0.012300288200378418,
421
+ 0.012314623832702636,
422
+ 0.012308480262756348,
423
+ 0.012294143676757812,
424
+ 0.012295167922973632,
425
+ 0.012320768356323243,
426
+ 0.012302335739135742,
427
+ 0.012317695617675782,
428
+ 0.012302335739135742,
429
+ 0.012303359985351562,
430
+ 0.012305407524108887,
431
+ 0.012297216415405274,
432
+ 0.012309503555297852,
433
+ 0.012303359985351562,
434
+ 0.012310527801513671,
435
+ 0.012302335739135742,
436
+ 0.012302335739135742,
437
+ 0.012336128234863282,
438
+ 0.012332032203674317,
439
+ 0.012301312446594239,
440
+ 0.012292096138000488,
441
+ 0.012306431770324706,
442
+ 0.012294143676757812,
443
+ 0.012299263954162597,
444
+ 0.012301312446594239,
445
+ 0.012301312446594239,
446
+ 0.012311552047729492,
447
+ 0.012300288200378418,
448
+ 0.012307456016540527,
449
+ 0.012301312446594239,
450
+ 0.012292096138000488,
451
+ 0.012309503555297852,
452
+ 0.012305407524108887,
453
+ 0.012298239707946777,
454
+ 0.012297216415405274,
455
+ 0.012295167922973632,
456
+ 0.012296192169189453,
457
+ 0.01247436809539795,
458
+ 0.012310527801513671,
459
+ 0.012307456016540527,
460
+ 0.012308480262756348,
461
+ 0.012301312446594239,
462
+ 0.012305407524108887
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.16517926104672
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
93
+ "accelerate_version": "0.34.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1339.203584,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 13.891625,
15
+ "mean": 13.891625,
16
+ "stdev": 0.0,
17
+ "p50": 13.891625,
18
+ "p90": 13.891625,
19
+ "p95": 13.891625,
20
+ "p99": 13.891625,
21
+ "values": [
22
+ 13.891625
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1843.298304,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6138.363904,
36
+ "max_allocated": 5287.812608
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.028187775611877443,
42
+ "mean": 0.014093887805938721,
43
+ "stdev": 0.0001757760047912593,
44
+ "p50": 0.014093887805938721,
45
+ "p90": 0.014234508609771728,
46
+ "p95": 0.014252086210250854,
47
+ "p99": 0.014266148290634155,
48
+ "values": [
49
+ 0.013918111801147461,
50
+ 0.01426966381072998
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 496.669201315085
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2023.34208,
64
+ "max_global_vram": 6071.779328,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 5381.292032,
67
+ "max_allocated": 5282.963456
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 3.1296978759765626,
73
+ "mean": 1.5648489379882813,
74
+ "stdev": 0.0009840698242187251,
75
+ "p50": 1.5648489379882813,
76
+ "p90": 1.5656361938476562,
77
+ "p95": 1.565734600830078,
78
+ "p99": 1.5658133264160157,
79
+ "values": [
80
+ 1.5658330078125,
81
+ 1.5638648681640626
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.15799353978989
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 3.129420797348025,
97
+ "mean": 0.012320554320267805,
98
+ "stdev": 8.355633958134549e-05,
99
+ "p50": 0.012303343772888184,
100
+ "p90": 0.01232353286743164,
101
+ "p95": 0.012345753908157349,
102
+ "p99": 0.01277578254699707,
103
+ "values": [
104
+ 0.012336128234863282,
105
+ 0.012316672325134278,
106
+ 0.012298239707946777,
107
+ 0.012297216415405274,
108
+ 0.012294143676757812,
109
+ 0.012294143676757812,
110
+ 0.012297216415405274,
111
+ 0.012296192169189453,
112
+ 0.012300288200378418,
113
+ 0.01229312038421631,
114
+ 0.012305407524108887,
115
+ 0.012303359985351562,
116
+ 0.012303359985351562,
117
+ 0.012320768356323243,
118
+ 0.012316672325134278,
119
+ 0.012295167922973632,
120
+ 0.012295167922973632,
121
+ 0.012300288200378418,
122
+ 0.012294143676757812,
123
+ 0.012289024353027344,
124
+ 0.012300288200378418,
125
+ 0.012301312446594239,
126
+ 0.012300288200378418,
127
+ 0.012302335739135742,
128
+ 0.012310527801513671,
129
+ 0.012308480262756348,
130
+ 0.01232588768005371,
131
+ 0.01233510398864746,
132
+ 0.012298239707946777,
133
+ 0.012290047645568849,
134
+ 0.012299263954162597,
135
+ 0.012297216415405274,
136
+ 0.012294143676757812,
137
+ 0.012289024353027344,
138
+ 0.012306431770324706,
139
+ 0.012311552047729492,
140
+ 0.012811264038085938,
141
+ 0.012744704246520995,
142
+ 0.012312576293945313,
143
+ 0.012304384231567383,
144
+ 0.012292096138000488,
145
+ 0.012302335739135742,
146
+ 0.012294143676757812,
147
+ 0.012307456016540527,
148
+ 0.012296192169189453,
149
+ 0.012305407524108887,
150
+ 0.012312576293945313,
151
+ 0.012310527801513671,
152
+ 0.012295167922973632,
153
+ 0.012298239707946777,
154
+ 0.012315648078918457,
155
+ 0.012304384231567383,
156
+ 0.012294143676757812,
157
+ 0.012290047645568849,
158
+ 0.012303359985351562,
159
+ 0.012289024353027344,
160
+ 0.012297216415405274,
161
+ 0.012289024353027344,
162
+ 0.012311552047729492,
163
+ 0.01229520034790039,
164
+ 0.012481504440307618,
165
+ 0.012891167640686036,
166
+ 0.01262384033203125,
167
+ 0.01235148811340332,
168
+ 0.012320768356323243,
169
+ 0.012313599586486817,
170
+ 0.012311552047729492,
171
+ 0.012344320297241211,
172
+ 0.012313599586486817,
173
+ 0.012302335739135742,
174
+ 0.012310527801513671,
175
+ 0.012309503555297852,
176
+ 0.01232588768005371,
177
+ 0.012299263954162597,
178
+ 0.012304384231567383,
179
+ 0.012300288200378418,
180
+ 0.012291071891784668,
181
+ 0.012304384231567383,
182
+ 0.012290047645568849,
183
+ 0.012295167922973632,
184
+ 0.012301312446594239,
185
+ 0.012303359985351562,
186
+ 0.012301312446594239,
187
+ 0.012295167922973632,
188
+ 0.012307456016540527,
189
+ 0.012322815895080566,
190
+ 0.012308480262756348,
191
+ 0.012298239707946777,
192
+ 0.012299263954162597,
193
+ 0.012308480262756348,
194
+ 0.012309503555297852,
195
+ 0.012300288200378418,
196
+ 0.012307456016540527,
197
+ 0.012314623832702636,
198
+ 0.012304384231567383,
199
+ 0.012303359985351562,
200
+ 0.012307456016540527,
201
+ 0.012307456016540527,
202
+ 0.012319744110107422,
203
+ 0.01234227180480957,
204
+ 0.012295167922973632,
205
+ 0.012300288200378418,
206
+ 0.012300288200378418,
207
+ 0.012305407524108887,
208
+ 0.012295167922973632,
209
+ 0.012291071891784668,
210
+ 0.012316672325134278,
211
+ 0.012299263954162597,
212
+ 0.012306431770324706,
213
+ 0.012294143676757812,
214
+ 0.012306431770324706,
215
+ 0.012296192169189453,
216
+ 0.012323840141296387,
217
+ 0.0123023681640625,
218
+ 0.012306431770324706,
219
+ 0.012303327560424805,
220
+ 0.012305407524108887,
221
+ 0.012301312446594239,
222
+ 0.012311552047729492,
223
+ 0.012307456016540527,
224
+ 0.012778495788574219,
225
+ 0.01275494384765625,
226
+ 0.01234329605102539,
227
+ 0.012306431770324706,
228
+ 0.012304384231567383,
229
+ 0.012299263954162597,
230
+ 0.012299263954162597,
231
+ 0.012340224266052247,
232
+ 0.012289024353027344,
233
+ 0.012304384231567383,
234
+ 0.012296192169189453,
235
+ 0.012302335739135742,
236
+ 0.012296192169189453,
237
+ 0.012286975860595703,
238
+ 0.012294143676757812,
239
+ 0.012296192169189453,
240
+ 0.012304384231567383,
241
+ 0.012306431770324706,
242
+ 0.012304384231567383,
243
+ 0.012294143676757812,
244
+ 0.012309503555297852,
245
+ 0.012307456016540527,
246
+ 0.012291071891784668,
247
+ 0.012289024353027344,
248
+ 0.012296192169189453,
249
+ 0.012348416328430176,
250
+ 0.012333056449890138,
251
+ 0.012315648078918457,
252
+ 0.012307456016540527,
253
+ 0.012323840141296387,
254
+ 0.012310527801513671,
255
+ 0.012294143676757812,
256
+ 0.012308480262756348,
257
+ 0.012320768356323243,
258
+ 0.012303359985351562,
259
+ 0.012292096138000488,
260
+ 0.012296192169189453,
261
+ 0.012303359985351562,
262
+ 0.012305407524108887,
263
+ 0.012302335739135742,
264
+ 0.012297216415405274,
265
+ 0.012295167922973632,
266
+ 0.012299263954162597,
267
+ 0.012305407524108887,
268
+ 0.012292096138000488,
269
+ 0.012297216415405274,
270
+ 0.012313599586486817,
271
+ 0.012316672325134278,
272
+ 0.012299263954162597,
273
+ 0.012306431770324706,
274
+ 0.012297216415405274,
275
+ 0.012294143676757812,
276
+ 0.012292096138000488,
277
+ 0.01228492832183838,
278
+ 0.012295167922973632,
279
+ 0.012299263954162597,
280
+ 0.012309503555297852,
281
+ 0.012294143676757812,
282
+ 0.012285951614379884,
283
+ 0.012321791648864745,
284
+ 0.012313599586486817,
285
+ 0.012299263954162597,
286
+ 0.012296192169189453,
287
+ 0.01237299156188965,
288
+ 0.012305407524108887,
289
+ 0.012299263954162597,
290
+ 0.012298239707946777,
291
+ 0.012295167922973632,
292
+ 0.012305407524108887,
293
+ 0.012308480262756348,
294
+ 0.012301312446594239,
295
+ 0.012301312446594239,
296
+ 0.012313599586486817,
297
+ 0.012313599586486817,
298
+ 0.012298239707946777,
299
+ 0.012298239707946777,
300
+ 0.012296192169189453,
301
+ 0.012306431770324706,
302
+ 0.01229312038421631,
303
+ 0.012295167922973632,
304
+ 0.012292096138000488,
305
+ 0.012317695617675782,
306
+ 0.012314623832702636,
307
+ 0.01277337646484375,
308
+ 0.012749823570251465,
309
+ 0.012318719863891601,
310
+ 0.012306431770324706,
311
+ 0.012309503555297852,
312
+ 0.012297216415405274,
313
+ 0.012299263954162597,
314
+ 0.012290047645568849,
315
+ 0.012300288200378418,
316
+ 0.012314623832702636,
317
+ 0.012308480262756348,
318
+ 0.012294143676757812,
319
+ 0.012295167922973632,
320
+ 0.012320768356323243,
321
+ 0.012302335739135742,
322
+ 0.012317695617675782,
323
+ 0.012302335739135742,
324
+ 0.012303359985351562,
325
+ 0.012305407524108887,
326
+ 0.012297216415405274,
327
+ 0.012309503555297852,
328
+ 0.012303359985351562,
329
+ 0.012310527801513671,
330
+ 0.012302335739135742,
331
+ 0.012302335739135742,
332
+ 0.012336128234863282,
333
+ 0.012332032203674317,
334
+ 0.012301312446594239,
335
+ 0.012292096138000488,
336
+ 0.012306431770324706,
337
+ 0.012294143676757812,
338
+ 0.012299263954162597,
339
+ 0.012301312446594239,
340
+ 0.012301312446594239,
341
+ 0.012311552047729492,
342
+ 0.012300288200378418,
343
+ 0.012307456016540527,
344
+ 0.012301312446594239,
345
+ 0.012292096138000488,
346
+ 0.012309503555297852,
347
+ 0.012305407524108887,
348
+ 0.012298239707946777,
349
+ 0.012297216415405274,
350
+ 0.012295167922973632,
351
+ 0.012296192169189453,
352
+ 0.01247436809539795,
353
+ 0.012310527801513671,
354
+ 0.012307456016540527,
355
+ 0.012308480262756348,
356
+ 0.012301312446594239,
357
+ 0.012305407524108887
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.16517926104672
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/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": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014093887805938721,
7
+ "prefill.throughput.value": 496.669201315085,
8
+ "decode.latency.mean": 1.5648489379882813,
9
+ "decode.throughput.value": 81.15799353978989,
10
+ "per_token.latency.mean": 0.012320554320267805,
11
+ "per_token.throughput.value": 81.16517926104672
12
+ }
13
+ }
2024-08-23/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp8s70exus/commit=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
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/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1
88
+ - hydra.run.dir=_benchmark/tmp8s70exus/commit\=d806fa3e92289876e01ab19c9e19e9264ea1c1a1/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.4.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model_type: null
150
+ model: google/gemma-2b
151
+ processor: null
152
+ device: cuda
153
+ device_ids: '0'
154
+ seed: 42
155
+ inter_op_num_threads: null
156
+ intra_op_num_threads: null
157
+ model_kwargs: {}
158
+ processor_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ memory: true
192
+ latency: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ numactl: false
206
+ numactl_kwargs: {}
207
+ start_method: spawn
208
+ environment:
209
+ cpu: ' AMD EPYC 7R32'
210
+ cpu_count: 16
211
+ cpu_ram_mb: 66697.261056
212
+ system: Linux
213
+ machine: x86_64
214
+ platform: Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29
215
+ processor: x86_64
216
+ python_version: 3.8.10
217
+ gpu:
218
+ - NVIDIA A10G
219
+ gpu_count: 1
220
+ gpu_vram_mb: 24146608128
221
+ optimum_benchmark_version: 0.4.0
222
+ optimum_benchmark_commit: null
223
+ transformers_version: 4.45.0.dev0
224
+ transformers_commit: d806fa3e92289876e01ab19c9e19e9264ea1c1a1
225
+ accelerate_version: 0.34.0.dev0
226
+ accelerate_commit: null
227
+ diffusers_version: null
228
+ diffusers_commit: null
229
+ optimum_version: 1.22.0.dev0
230
+ optimum_commit: null
231
+ timm_version: 0.9.16
232
+ timm_commit: null
233
+ peft_version: 0.12.1.dev0
234
+ peft_commit: null
2024-08-23/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.020006303787231446,
8
+ "prefill.throughput.value": 349.8897184830106,
9
+ "decode.latency.mean": 2.476673583984375,
10
+ "decode.throughput.value": 51.27845704870296,
11
+ "per_token.latency.mean": 0.019500064234095296,
12
+ "per_token.throughput.value": 51.28188235665034
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.021566495895385743,
21
+ "prefill.throughput.value": 324.5775314615521,
22
+ "decode.latency.mean": 2.60439697265625,
23
+ "decode.throughput.value": 48.763687461390134,
24
+ "per_token.latency.mean": 0.020506019329461528,
25
+ "per_token.throughput.value": 48.76616879821595
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014093887805938721,
34
+ "prefill.throughput.value": 496.669201315085,
35
+ "decode.latency.mean": 1.5648489379882813,
36
+ "decode.throughput.value": 81.15799353978989,
37
+ "per_token.latency.mean": 0.012320554320267805,
38
+ "per_token.throughput.value": 81.16517926104672
39
+ }
40
+ }
41
+ ]
2024-08-23/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "d806fa3e92289876e01ab19c9e19e9264ea1c1a1": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020006303787231446,
7
+ "prefill.throughput.value": 349.8897184830106,
8
+ "decode.latency.mean": 2.476673583984375,
9
+ "decode.throughput.value": 51.27845704870296,
10
+ "per_token.latency.mean": 0.019500064234095296,
11
+ "per_token.throughput.value": 51.28188235665034
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "d806fa3e92289876e01ab19c9e19e9264ea1c1a1": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.021566495895385743,
19
+ "prefill.throughput.value": 324.5775314615521,
20
+ "decode.latency.mean": 2.60439697265625,
21
+ "decode.throughput.value": 48.763687461390134,
22
+ "per_token.latency.mean": 0.020506019329461528,
23
+ "per_token.throughput.value": 48.76616879821595
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "d806fa3e92289876e01ab19c9e19e9264ea1c1a1": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014093887805938721,
31
+ "prefill.throughput.value": 496.669201315085,
32
+ "decode.latency.mean": 1.5648489379882813,
33
+ "decode.throughput.value": 81.15799353978989,
34
+ "per_token.latency.mean": 0.012320554320267805,
35
+ "per_token.throughput.value": 81.16517926104672
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }