hf-transformers-bot commited on
Commit
1f29019
1 Parent(s): dba3bd4

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/multirun.yaml +234 -0
  31. 2024-09-17/summaries.json +41 -0
  32. 2024-09-17/summary.json +40 -0
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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: 9f196ef2e084c53c01f8e754b7c29153bd9a626a
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a
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/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a
88
+ - hydra.run.dir=_benchmark/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.23.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": 1334.185984,
111
+ "max_global_vram": 6775.373824,
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.3562314453125,
120
+ "mean": 11.3562314453125,
121
+ "stdev": 0.0,
122
+ "p50": 11.3562314453125,
123
+ "p90": 11.3562314453125,
124
+ "p95": 11.3562314453125,
125
+ "p99": 11.3562314453125,
126
+ "values": [
127
+ 11.3562314453125
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1771.384832,
138
+ "max_global_vram": 6796.345344,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.431872
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.041174528121948245,
147
+ "mean": 0.020587264060974123,
148
+ "stdev": 6.751918792724694e-05,
149
+ "p50": 0.020587264060974123,
150
+ "p90": 0.020641279411315917,
151
+ "p95": 0.020648031330108643,
152
+ "p99": 0.02065343286514282,
153
+ "values": [
154
+ 0.020519744873046874,
155
+ 0.020654783248901368
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 340.01603997830017
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1829.593088,
169
+ "max_global_vram": 6800.539648,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.801344
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 4.869658935546875,
178
+ "mean": 2.4348294677734375,
179
+ "stdev": 0.0012042236328124734,
180
+ "p50": 2.4348294677734375,
181
+ "p90": 2.435792846679688,
182
+ "p95": 2.435913269042969,
183
+ "p99": 2.436009606933594,
184
+ "values": [
185
+ 2.433625244140625,
186
+ 2.43603369140625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 52.159710435957905
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.869341203689575,
202
+ "mean": 0.019170634660195175,
203
+ "stdev": 0.00012257672969144965,
204
+ "p50": 0.01917283248901367,
205
+ "p90": 0.019268095970153807,
206
+ "p95": 0.01941288938522339,
207
+ "p99": 0.01956323320388794,
208
+ "values": [
209
+ 0.01904640007019043,
210
+ 0.019190784454345702,
211
+ 0.019118080139160155,
212
+ 0.019110912322998046,
213
+ 0.01943449592590332,
214
+ 0.019349504470825195,
215
+ 0.019115007400512696,
216
+ 0.01903718376159668,
217
+ 0.019087360382080077,
218
+ 0.019106815338134766,
219
+ 0.019086336135864256,
220
+ 0.018908159255981445,
221
+ 0.01906483268737793,
222
+ 0.01909350395202637,
223
+ 0.01905971145629883,
224
+ 0.019103744506835937,
225
+ 0.0190699520111084,
226
+ 0.01908940887451172,
227
+ 0.019120128631591796,
228
+ 0.019117055892944337,
229
+ 0.01908940887451172,
230
+ 0.019109888076782225,
231
+ 0.019079168319702147,
232
+ 0.01908531188964844,
233
+ 0.019087360382080077,
234
+ 0.019066879272460938,
235
+ 0.019096576690673828,
236
+ 0.019076095581054688,
237
+ 0.019050495147705078,
238
+ 0.019056640625,
239
+ 0.01904947280883789,
240
+ 0.019070976257324217,
241
+ 0.019095552444458007,
242
+ 0.019091455459594727,
243
+ 0.019115007400512696,
244
+ 0.019070976257324217,
245
+ 0.019086336135864256,
246
+ 0.01903923225402832,
247
+ 0.01908940887451172,
248
+ 0.01908531188964844,
249
+ 0.01903513526916504,
250
+ 0.01906073570251465,
251
+ 0.019083263397216797,
252
+ 0.01908940887451172,
253
+ 0.01904844856262207,
254
+ 0.019056640625,
255
+ 0.019058687210083008,
256
+ 0.0190515193939209,
257
+ 0.019021823883056642,
258
+ 0.019054592132568358,
259
+ 0.01904640007019043,
260
+ 0.019084287643432618,
261
+ 0.01903718376159668,
262
+ 0.0190515193939209,
263
+ 0.01905254364013672,
264
+ 0.01903923225402832,
265
+ 0.01904332733154297,
266
+ 0.019269632339477538,
267
+ 0.019474431991577147,
268
+ 0.019604480743408204,
269
+ 0.01919692802429199,
270
+ 0.01922867202758789,
271
+ 0.019192832946777344,
272
+ 0.019179519653320314,
273
+ 0.01920102310180664,
274
+ 0.019144704818725586,
275
+ 0.019198976516723632,
276
+ 0.019208192825317383,
277
+ 0.0192225284576416,
278
+ 0.019187711715698243,
279
+ 0.01919795227050781,
280
+ 0.019166208267211913,
281
+ 0.019165184020996092,
282
+ 0.019211263656616212,
283
+ 0.01922662353515625,
284
+ 0.019166208267211913,
285
+ 0.019170303344726563,
286
+ 0.01920512008666992,
287
+ 0.01916729545593262,
288
+ 0.0191712646484375,
289
+ 0.019207168579101562,
290
+ 0.019203071594238282,
291
+ 0.019156991958618166,
292
+ 0.019191808700561523,
293
+ 0.01918156814575195,
294
+ 0.019219455718994142,
295
+ 0.01921433639526367,
296
+ 0.019190784454345702,
297
+ 0.019147775650024415,
298
+ 0.01918976020812988,
299
+ 0.01945702362060547,
300
+ 0.019290111541748048,
301
+ 0.019200000762939453,
302
+ 0.01926348876953125,
303
+ 0.01920512008666992,
304
+ 0.01919692802429199,
305
+ 0.01920512008666992,
306
+ 0.019144704818725586,
307
+ 0.019192832946777344,
308
+ 0.019336191177368164,
309
+ 0.019190784454345702,
310
+ 0.019184640884399414,
311
+ 0.019192832946777344,
312
+ 0.0192542724609375,
313
+ 0.019204095840454103,
314
+ 0.019174400329589843,
315
+ 0.01920614433288574,
316
+ 0.019141632080078123,
317
+ 0.01928704071044922,
318
+ 0.01924505615234375,
319
+ 0.019161088943481445,
320
+ 0.019256383895874023,
321
+ 0.019427263259887695,
322
+ 0.01945292854309082,
323
+ 0.01919385528564453,
324
+ 0.01923788833618164,
325
+ 0.0192491512298584,
326
+ 0.01924095916748047,
327
+ 0.019182592391967773,
328
+ 0.01920204734802246,
329
+ 0.019212287902832033,
330
+ 0.019211263656616212,
331
+ 0.01918976020812988,
332
+ 0.019185663223266602,
333
+ 0.019188735961914064,
334
+ 0.019215360641479492,
335
+ 0.01921023941040039,
336
+ 0.019094528198242186,
337
+ 0.018984960556030273,
338
+ 0.01904640007019043,
339
+ 0.019066879272460938,
340
+ 0.019087360382080077,
341
+ 0.01905254364013672,
342
+ 0.019119104385375976,
343
+ 0.019149824142456053,
344
+ 0.019021823883056642,
345
+ 0.019013631820678712,
346
+ 0.019054592132568358,
347
+ 0.019422208786010742,
348
+ 0.019152896881103516,
349
+ 0.019103744506835937,
350
+ 0.01907302474975586,
351
+ 0.01905971145629883,
352
+ 0.019021823883056642,
353
+ 0.019109888076782225,
354
+ 0.019096576690673828,
355
+ 0.01903718376159668,
356
+ 0.0190248966217041,
357
+ 0.019094528198242186,
358
+ 0.019111936569213867,
359
+ 0.01904537582397461,
360
+ 0.01904025650024414,
361
+ 0.01904947280883789,
362
+ 0.019104768753051758,
363
+ 0.0190248966217041,
364
+ 0.01905356788635254,
365
+ 0.019087360382080077,
366
+ 0.0190382080078125,
367
+ 0.019062784194946288,
368
+ 0.01903206443786621,
369
+ 0.01906073570251465,
370
+ 0.019074047088623047,
371
+ 0.019100671768188478,
372
+ 0.01903513526916504,
373
+ 0.019009536743164062,
374
+ 0.01925632095336914,
375
+ 0.0194467830657959,
376
+ 0.0192542724609375,
377
+ 0.01946112060546875,
378
+ 0.01927065658569336,
379
+ 0.019088384628295898,
380
+ 0.01902079963684082,
381
+ 0.01904742431640625,
382
+ 0.01903718376159668,
383
+ 0.019111936569213867,
384
+ 0.019091455459594727,
385
+ 0.01904947280883789,
386
+ 0.019177471160888672,
387
+ 0.019309568405151366,
388
+ 0.01906483268737793,
389
+ 0.01908940887451172,
390
+ 0.019159040451049804,
391
+ 0.01907711982727051,
392
+ 0.019112960815429687,
393
+ 0.01921232032775879,
394
+ 0.019156959533691405,
395
+ 0.019184640884399414,
396
+ 0.01922355270385742,
397
+ 0.01925836753845215,
398
+ 0.01919795227050781,
399
+ 0.01923072052001953,
400
+ 0.01924812889099121,
401
+ 0.01924608039855957,
402
+ 0.01925632095336914,
403
+ 0.019345407485961915,
404
+ 0.01922662353515625,
405
+ 0.019264511108398438,
406
+ 0.019164159774780275,
407
+ 0.019176448822021484,
408
+ 0.01921331214904785,
409
+ 0.019188735961914064,
410
+ 0.019179519653320314,
411
+ 0.01924505615234375,
412
+ 0.019373056411743163,
413
+ 0.019195903778076173,
414
+ 0.01920204734802246,
415
+ 0.01923788833618164,
416
+ 0.019195903778076173,
417
+ 0.019190784454345702,
418
+ 0.01923583984375,
419
+ 0.019159040451049804,
420
+ 0.019122175216674805,
421
+ 0.019526655197143555,
422
+ 0.01923891258239746,
423
+ 0.019362815856933592,
424
+ 0.019284992218017577,
425
+ 0.01940787124633789,
426
+ 0.019769344329833984,
427
+ 0.019319807052612305,
428
+ 0.01999564743041992,
429
+ 0.01942527961730957,
430
+ 0.019164159774780275,
431
+ 0.019178495407104493,
432
+ 0.019160064697265625,
433
+ 0.01901158332824707,
434
+ 0.019092479705810548,
435
+ 0.01924403190612793,
436
+ 0.019194879531860352,
437
+ 0.01923583984375,
438
+ 0.01926246452331543,
439
+ 0.01921023941040039,
440
+ 0.019211263656616212,
441
+ 0.01923686408996582,
442
+ 0.01921023941040039,
443
+ 0.01924198341369629,
444
+ 0.019200000762939453,
445
+ 0.019150848388671874,
446
+ 0.01924095916748047,
447
+ 0.01923379135131836,
448
+ 0.019211263656616212,
449
+ 0.01920204734802246,
450
+ 0.01918976020812988,
451
+ 0.01918156814575195,
452
+ 0.01924812889099121,
453
+ 0.01923993682861328,
454
+ 0.019176448822021484,
455
+ 0.019164159774780275,
456
+ 0.01922150421142578,
457
+ 0.01919692802429199,
458
+ 0.01920102310180664,
459
+ 0.019211263656616212,
460
+ 0.019168256759643554,
461
+ 0.019168256759643554,
462
+ 0.019207168579101562
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 52.16311393572919
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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": 1334.185984,
6
+ "max_global_vram": 6775.373824,
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.3562314453125,
15
+ "mean": 11.3562314453125,
16
+ "stdev": 0.0,
17
+ "p50": 11.3562314453125,
18
+ "p90": 11.3562314453125,
19
+ "p95": 11.3562314453125,
20
+ "p99": 11.3562314453125,
21
+ "values": [
22
+ 11.3562314453125
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1771.384832,
33
+ "max_global_vram": 6796.345344,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.431872
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.041174528121948245,
42
+ "mean": 0.020587264060974123,
43
+ "stdev": 6.751918792724694e-05,
44
+ "p50": 0.020587264060974123,
45
+ "p90": 0.020641279411315917,
46
+ "p95": 0.020648031330108643,
47
+ "p99": 0.02065343286514282,
48
+ "values": [
49
+ 0.020519744873046874,
50
+ 0.020654783248901368
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 340.01603997830017
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1829.593088,
64
+ "max_global_vram": 6800.539648,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.801344
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 4.869658935546875,
73
+ "mean": 2.4348294677734375,
74
+ "stdev": 0.0012042236328124734,
75
+ "p50": 2.4348294677734375,
76
+ "p90": 2.435792846679688,
77
+ "p95": 2.435913269042969,
78
+ "p99": 2.436009606933594,
79
+ "values": [
80
+ 2.433625244140625,
81
+ 2.43603369140625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 52.159710435957905
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.869341203689575,
97
+ "mean": 0.019170634660195175,
98
+ "stdev": 0.00012257672969144965,
99
+ "p50": 0.01917283248901367,
100
+ "p90": 0.019268095970153807,
101
+ "p95": 0.01941288938522339,
102
+ "p99": 0.01956323320388794,
103
+ "values": [
104
+ 0.01904640007019043,
105
+ 0.019190784454345702,
106
+ 0.019118080139160155,
107
+ 0.019110912322998046,
108
+ 0.01943449592590332,
109
+ 0.019349504470825195,
110
+ 0.019115007400512696,
111
+ 0.01903718376159668,
112
+ 0.019087360382080077,
113
+ 0.019106815338134766,
114
+ 0.019086336135864256,
115
+ 0.018908159255981445,
116
+ 0.01906483268737793,
117
+ 0.01909350395202637,
118
+ 0.01905971145629883,
119
+ 0.019103744506835937,
120
+ 0.0190699520111084,
121
+ 0.01908940887451172,
122
+ 0.019120128631591796,
123
+ 0.019117055892944337,
124
+ 0.01908940887451172,
125
+ 0.019109888076782225,
126
+ 0.019079168319702147,
127
+ 0.01908531188964844,
128
+ 0.019087360382080077,
129
+ 0.019066879272460938,
130
+ 0.019096576690673828,
131
+ 0.019076095581054688,
132
+ 0.019050495147705078,
133
+ 0.019056640625,
134
+ 0.01904947280883789,
135
+ 0.019070976257324217,
136
+ 0.019095552444458007,
137
+ 0.019091455459594727,
138
+ 0.019115007400512696,
139
+ 0.019070976257324217,
140
+ 0.019086336135864256,
141
+ 0.01903923225402832,
142
+ 0.01908940887451172,
143
+ 0.01908531188964844,
144
+ 0.01903513526916504,
145
+ 0.01906073570251465,
146
+ 0.019083263397216797,
147
+ 0.01908940887451172,
148
+ 0.01904844856262207,
149
+ 0.019056640625,
150
+ 0.019058687210083008,
151
+ 0.0190515193939209,
152
+ 0.019021823883056642,
153
+ 0.019054592132568358,
154
+ 0.01904640007019043,
155
+ 0.019084287643432618,
156
+ 0.01903718376159668,
157
+ 0.0190515193939209,
158
+ 0.01905254364013672,
159
+ 0.01903923225402832,
160
+ 0.01904332733154297,
161
+ 0.019269632339477538,
162
+ 0.019474431991577147,
163
+ 0.019604480743408204,
164
+ 0.01919692802429199,
165
+ 0.01922867202758789,
166
+ 0.019192832946777344,
167
+ 0.019179519653320314,
168
+ 0.01920102310180664,
169
+ 0.019144704818725586,
170
+ 0.019198976516723632,
171
+ 0.019208192825317383,
172
+ 0.0192225284576416,
173
+ 0.019187711715698243,
174
+ 0.01919795227050781,
175
+ 0.019166208267211913,
176
+ 0.019165184020996092,
177
+ 0.019211263656616212,
178
+ 0.01922662353515625,
179
+ 0.019166208267211913,
180
+ 0.019170303344726563,
181
+ 0.01920512008666992,
182
+ 0.01916729545593262,
183
+ 0.0191712646484375,
184
+ 0.019207168579101562,
185
+ 0.019203071594238282,
186
+ 0.019156991958618166,
187
+ 0.019191808700561523,
188
+ 0.01918156814575195,
189
+ 0.019219455718994142,
190
+ 0.01921433639526367,
191
+ 0.019190784454345702,
192
+ 0.019147775650024415,
193
+ 0.01918976020812988,
194
+ 0.01945702362060547,
195
+ 0.019290111541748048,
196
+ 0.019200000762939453,
197
+ 0.01926348876953125,
198
+ 0.01920512008666992,
199
+ 0.01919692802429199,
200
+ 0.01920512008666992,
201
+ 0.019144704818725586,
202
+ 0.019192832946777344,
203
+ 0.019336191177368164,
204
+ 0.019190784454345702,
205
+ 0.019184640884399414,
206
+ 0.019192832946777344,
207
+ 0.0192542724609375,
208
+ 0.019204095840454103,
209
+ 0.019174400329589843,
210
+ 0.01920614433288574,
211
+ 0.019141632080078123,
212
+ 0.01928704071044922,
213
+ 0.01924505615234375,
214
+ 0.019161088943481445,
215
+ 0.019256383895874023,
216
+ 0.019427263259887695,
217
+ 0.01945292854309082,
218
+ 0.01919385528564453,
219
+ 0.01923788833618164,
220
+ 0.0192491512298584,
221
+ 0.01924095916748047,
222
+ 0.019182592391967773,
223
+ 0.01920204734802246,
224
+ 0.019212287902832033,
225
+ 0.019211263656616212,
226
+ 0.01918976020812988,
227
+ 0.019185663223266602,
228
+ 0.019188735961914064,
229
+ 0.019215360641479492,
230
+ 0.01921023941040039,
231
+ 0.019094528198242186,
232
+ 0.018984960556030273,
233
+ 0.01904640007019043,
234
+ 0.019066879272460938,
235
+ 0.019087360382080077,
236
+ 0.01905254364013672,
237
+ 0.019119104385375976,
238
+ 0.019149824142456053,
239
+ 0.019021823883056642,
240
+ 0.019013631820678712,
241
+ 0.019054592132568358,
242
+ 0.019422208786010742,
243
+ 0.019152896881103516,
244
+ 0.019103744506835937,
245
+ 0.01907302474975586,
246
+ 0.01905971145629883,
247
+ 0.019021823883056642,
248
+ 0.019109888076782225,
249
+ 0.019096576690673828,
250
+ 0.01903718376159668,
251
+ 0.0190248966217041,
252
+ 0.019094528198242186,
253
+ 0.019111936569213867,
254
+ 0.01904537582397461,
255
+ 0.01904025650024414,
256
+ 0.01904947280883789,
257
+ 0.019104768753051758,
258
+ 0.0190248966217041,
259
+ 0.01905356788635254,
260
+ 0.019087360382080077,
261
+ 0.0190382080078125,
262
+ 0.019062784194946288,
263
+ 0.01903206443786621,
264
+ 0.01906073570251465,
265
+ 0.019074047088623047,
266
+ 0.019100671768188478,
267
+ 0.01903513526916504,
268
+ 0.019009536743164062,
269
+ 0.01925632095336914,
270
+ 0.0194467830657959,
271
+ 0.0192542724609375,
272
+ 0.01946112060546875,
273
+ 0.01927065658569336,
274
+ 0.019088384628295898,
275
+ 0.01902079963684082,
276
+ 0.01904742431640625,
277
+ 0.01903718376159668,
278
+ 0.019111936569213867,
279
+ 0.019091455459594727,
280
+ 0.01904947280883789,
281
+ 0.019177471160888672,
282
+ 0.019309568405151366,
283
+ 0.01906483268737793,
284
+ 0.01908940887451172,
285
+ 0.019159040451049804,
286
+ 0.01907711982727051,
287
+ 0.019112960815429687,
288
+ 0.01921232032775879,
289
+ 0.019156959533691405,
290
+ 0.019184640884399414,
291
+ 0.01922355270385742,
292
+ 0.01925836753845215,
293
+ 0.01919795227050781,
294
+ 0.01923072052001953,
295
+ 0.01924812889099121,
296
+ 0.01924608039855957,
297
+ 0.01925632095336914,
298
+ 0.019345407485961915,
299
+ 0.01922662353515625,
300
+ 0.019264511108398438,
301
+ 0.019164159774780275,
302
+ 0.019176448822021484,
303
+ 0.01921331214904785,
304
+ 0.019188735961914064,
305
+ 0.019179519653320314,
306
+ 0.01924505615234375,
307
+ 0.019373056411743163,
308
+ 0.019195903778076173,
309
+ 0.01920204734802246,
310
+ 0.01923788833618164,
311
+ 0.019195903778076173,
312
+ 0.019190784454345702,
313
+ 0.01923583984375,
314
+ 0.019159040451049804,
315
+ 0.019122175216674805,
316
+ 0.019526655197143555,
317
+ 0.01923891258239746,
318
+ 0.019362815856933592,
319
+ 0.019284992218017577,
320
+ 0.01940787124633789,
321
+ 0.019769344329833984,
322
+ 0.019319807052612305,
323
+ 0.01999564743041992,
324
+ 0.01942527961730957,
325
+ 0.019164159774780275,
326
+ 0.019178495407104493,
327
+ 0.019160064697265625,
328
+ 0.01901158332824707,
329
+ 0.019092479705810548,
330
+ 0.01924403190612793,
331
+ 0.019194879531860352,
332
+ 0.01923583984375,
333
+ 0.01926246452331543,
334
+ 0.01921023941040039,
335
+ 0.019211263656616212,
336
+ 0.01923686408996582,
337
+ 0.01921023941040039,
338
+ 0.01924198341369629,
339
+ 0.019200000762939453,
340
+ 0.019150848388671874,
341
+ 0.01924095916748047,
342
+ 0.01923379135131836,
343
+ 0.019211263656616212,
344
+ 0.01920204734802246,
345
+ 0.01918976020812988,
346
+ 0.01918156814575195,
347
+ 0.01924812889099121,
348
+ 0.01923993682861328,
349
+ 0.019176448822021484,
350
+ 0.019164159774780275,
351
+ 0.01922150421142578,
352
+ 0.01919692802429199,
353
+ 0.01920102310180664,
354
+ 0.019211263656616212,
355
+ 0.019168256759643554,
356
+ 0.019168256759643554,
357
+ 0.019207168579101562
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 52.16311393572919
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020587264060974123,
7
+ "prefill.throughput.value": 340.01603997830017,
8
+ "decode.latency.mean": 2.4348294677734375,
9
+ "decode.throughput.value": 52.159710435957905,
10
+ "per_token.latency.mean": 0.019170634660195175,
11
+ "per_token.throughput.value": 52.16311393572919
12
+ }
13
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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: 9f196ef2e084c53c01f8e754b7c29153bd9a626a
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a
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/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a
88
+ - hydra.run.dir=_benchmark/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [ISOLATED-PROCESS][2024-09-17 02:32:46,866][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-09-17 02:32:49,271][process][ERROR] - + Received traceback from isolated process
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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: 9f196ef2e084c53c01f8e754b7c29153bd9a626a
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a
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/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a
88
+ - hydra.run.dir=_benchmark/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.23.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": 1334.841344,
111
+ "max_global_vram": 6775.373824,
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.3230439453125,
120
+ "mean": 11.3230439453125,
121
+ "stdev": 0.0,
122
+ "p50": 11.3230439453125,
123
+ "p90": 11.3230439453125,
124
+ "p95": 11.3230439453125,
125
+ "p99": 11.3230439453125,
126
+ "values": [
127
+ 11.3230439453125
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1803.800576,
138
+ "max_global_vram": 6796.345344,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.450816
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.04440156745910645,
147
+ "mean": 0.022200783729553225,
148
+ "stdev": 9.871482849121635e-06,
149
+ "p50": 0.022200783729553225,
150
+ "p90": 0.022208680915832522,
151
+ "p95": 0.022209668064117432,
152
+ "p99": 0.02221045778274536,
153
+ "values": [
154
+ 0.022210655212402345,
155
+ 0.0221909122467041
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 315.30418408976004
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1830.473728,
169
+ "max_global_vram": 6800.539648,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.820288
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 5.197191650390625,
178
+ "mean": 2.5985958251953125,
179
+ "stdev": 0.0020955810546876563,
180
+ "p50": 2.5985958251953125,
181
+ "p90": 2.6002722900390625,
182
+ "p95": 2.6004818481445313,
183
+ "p99": 2.6006494946289065,
184
+ "values": [
185
+ 2.596500244140625,
186
+ 2.60069140625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 48.87254830806733
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.196930044174192,
202
+ "mean": 0.020460354504622816,
203
+ "stdev": 0.00018569132449114813,
204
+ "p50": 0.02041651153564453,
205
+ "p90": 0.02075279312133789,
206
+ "p95": 0.020882176208496094,
207
+ "p99": 0.0210933962059021,
208
+ "values": [
209
+ 0.02037555122375488,
210
+ 0.020257791519165038,
211
+ 0.02027622413635254,
212
+ 0.02030899238586426,
213
+ 0.02050048065185547,
214
+ 0.02050662422180176,
215
+ 0.02083328056335449,
216
+ 0.020758527755737305,
217
+ 0.020434944152832032,
218
+ 0.02038374328613281,
219
+ 0.02039193534851074,
220
+ 0.02038374328613281,
221
+ 0.020392959594726562,
222
+ 0.020410367965698242,
223
+ 0.020444160461425782,
224
+ 0.020368383407592772,
225
+ 0.020428800582885744,
226
+ 0.020434944152832032,
227
+ 0.02043187141418457,
228
+ 0.02042265510559082,
229
+ 0.02042163276672363,
230
+ 0.0204400634765625,
231
+ 0.020418560028076172,
232
+ 0.020358144760131838,
233
+ 0.020411392211914063,
234
+ 0.020447231292724608,
235
+ 0.02047385597229004,
236
+ 0.020468736648559572,
237
+ 0.02049228858947754,
238
+ 0.020387840270996094,
239
+ 0.02043801689147949,
240
+ 0.020406272888183592,
241
+ 0.02041651153564453,
242
+ 0.020389888763427736,
243
+ 0.020362239837646484,
244
+ 0.020371456146240235,
245
+ 0.02043395233154297,
246
+ 0.02030486488342285,
247
+ 0.021336063385009766,
248
+ 0.021129215240478515,
249
+ 0.02041651153564453,
250
+ 0.02025062370300293,
251
+ 0.02041548728942871,
252
+ 0.020916223526000977,
253
+ 0.020537343978881836,
254
+ 0.020372480392456056,
255
+ 0.020436992645263673,
256
+ 0.02041548728942871,
257
+ 0.020231168746948244,
258
+ 0.02022707176208496,
259
+ 0.020376575469970702,
260
+ 0.020382720947265624,
261
+ 0.02042572784423828,
262
+ 0.020427776336669923,
263
+ 0.02043289566040039,
264
+ 0.020412416458129884,
265
+ 0.02043187141418457,
266
+ 0.021194751739501954,
267
+ 0.020822015762329102,
268
+ 0.02043391990661621,
269
+ 0.020215808868408205,
270
+ 0.020182016372680665,
271
+ 0.020229120254516602,
272
+ 0.020397056579589845,
273
+ 0.02033459281921387,
274
+ 0.02067046356201172,
275
+ 0.020426752090454102,
276
+ 0.02042265510559082,
277
+ 0.02046668815612793,
278
+ 0.02031001663208008,
279
+ 0.02023423957824707,
280
+ 0.020494335174560546,
281
+ 0.020434944152832032,
282
+ 0.020366336822509764,
283
+ 0.02064588737487793,
284
+ 0.02040934371948242,
285
+ 0.02043187141418457,
286
+ 0.020396032333374024,
287
+ 0.02021887969970703,
288
+ 0.02067558479309082,
289
+ 0.020880384445190428,
290
+ 0.02043084716796875,
291
+ 0.020452352523803712,
292
+ 0.02044211196899414,
293
+ 0.020377599716186523,
294
+ 0.020237312316894532,
295
+ 0.02044108772277832,
296
+ 0.02065203285217285,
297
+ 0.02046156883239746,
298
+ 0.02029363250732422,
299
+ 0.02048102378845215,
300
+ 0.020385791778564453,
301
+ 0.020350976943969725,
302
+ 0.02022707176208496,
303
+ 0.02021785545349121,
304
+ 0.020297727584838866,
305
+ 0.020165632247924805,
306
+ 0.02022400093078613,
307
+ 0.02025984001159668,
308
+ 0.02020249557495117,
309
+ 0.020204544067382812,
310
+ 0.020329471588134765,
311
+ 0.020376575469970702,
312
+ 0.0202106876373291,
313
+ 0.02043187141418457,
314
+ 0.020413440704345705,
315
+ 0.020600831985473633,
316
+ 0.020497407913208008,
317
+ 0.020824064254760744,
318
+ 0.020676607131958007,
319
+ 0.020527103424072265,
320
+ 0.02023628807067871,
321
+ 0.02036025619506836,
322
+ 0.020271039962768553,
323
+ 0.020387840270996094,
324
+ 0.02039091110229492,
325
+ 0.020376575469970702,
326
+ 0.021007360458374022,
327
+ 0.020447231292724608,
328
+ 0.020445184707641603,
329
+ 0.02046771240234375,
330
+ 0.02038374328613281,
331
+ 0.020349952697753908,
332
+ 0.020700159072875975,
333
+ 0.02086092758178711,
334
+ 0.020454399108886717,
335
+ 0.020471807479858398,
336
+ 0.020460544586181642,
337
+ 0.020426752090454102,
338
+ 0.02038374328613281,
339
+ 0.020587520599365236,
340
+ 0.020350976943969725,
341
+ 0.020323328018188477,
342
+ 0.020374528884887694,
343
+ 0.02047283172607422,
344
+ 0.020354047775268554,
345
+ 0.020324352264404297,
346
+ 0.020387840270996094,
347
+ 0.020397056579589845,
348
+ 0.020379648208618165,
349
+ 0.020332544326782227,
350
+ 0.02039910316467285,
351
+ 0.020337663650512695,
352
+ 0.020389888763427736,
353
+ 0.020262912750244142,
354
+ 0.020205568313598633,
355
+ 0.020159488677978517,
356
+ 0.020361215591430663,
357
+ 0.020427776336669923,
358
+ 0.020434944152832032,
359
+ 0.020488191604614257,
360
+ 0.020357120513916017,
361
+ 0.020677631378173827,
362
+ 0.020418560028076172,
363
+ 0.020404224395751954,
364
+ 0.02039910316467285,
365
+ 0.02036735916137695,
366
+ 0.02086502456665039,
367
+ 0.020744192123413087,
368
+ 0.020389888763427736,
369
+ 0.020798463821411133,
370
+ 0.020327423095703127,
371
+ 0.020320255279541014,
372
+ 0.020366336822509764,
373
+ 0.020319232940673827,
374
+ 0.020331520080566406,
375
+ 0.02040012741088867,
376
+ 0.020368383407592772,
377
+ 0.020566015243530272,
378
+ 0.020642816543579103,
379
+ 0.02038374328613281,
380
+ 0.020732927322387695,
381
+ 0.02041753578186035,
382
+ 0.020406272888183592,
383
+ 0.02066739273071289,
384
+ 0.020404224395751954,
385
+ 0.020406272888183592,
386
+ 0.02042265510559082,
387
+ 0.02039910316467285,
388
+ 0.020398080825805662,
389
+ 0.020392959594726562,
390
+ 0.020348928451538087,
391
+ 0.020389888763427736,
392
+ 0.020351999282836913,
393
+ 0.02041651153564453,
394
+ 0.020410367965698242,
395
+ 0.020376575469970702,
396
+ 0.02039910316467285,
397
+ 0.020397056579589845,
398
+ 0.020396032333374024,
399
+ 0.020396032333374024,
400
+ 0.020392959594726562,
401
+ 0.021061632156372072,
402
+ 0.020933631896972657,
403
+ 0.020940799713134766,
404
+ 0.02088960075378418,
405
+ 0.020925439834594727,
406
+ 0.020943872451782225,
407
+ 0.020779008865356444,
408
+ 0.02045337677001953,
409
+ 0.02039193534851074,
410
+ 0.02044927978515625,
411
+ 0.02046566390991211,
412
+ 0.020487167358398437,
413
+ 0.020855808258056642,
414
+ 0.02042572784423828,
415
+ 0.020454399108886717,
416
+ 0.020279296875,
417
+ 0.0208855037689209,
418
+ 0.020612096786499022,
419
+ 0.02043903923034668,
420
+ 0.020511743545532226,
421
+ 0.02046156883239746,
422
+ 0.02041651153564453,
423
+ 0.02036735916137695,
424
+ 0.02043391990661621,
425
+ 0.020412416458129884,
426
+ 0.02039910316467285,
427
+ 0.02043391990661621,
428
+ 0.020385791778564453,
429
+ 0.020470783233642577,
430
+ 0.02048409652709961,
431
+ 0.020446207046508787,
432
+ 0.02045747184753418,
433
+ 0.02040012741088867,
434
+ 0.020379648208618165,
435
+ 0.020404224395751954,
436
+ 0.02040729522705078,
437
+ 0.020405248641967775,
438
+ 0.02045132827758789,
439
+ 0.02042982482910156,
440
+ 0.020487167358398437,
441
+ 0.02048102378845215,
442
+ 0.020370431900024414,
443
+ 0.020298751831054687,
444
+ 0.020387840270996094,
445
+ 0.020382720947265624,
446
+ 0.020436992645263673,
447
+ 0.020404224395751954,
448
+ 0.020427776336669923,
449
+ 0.020427776336669923,
450
+ 0.02045337677001953,
451
+ 0.02062131118774414,
452
+ 0.020504575729370117,
453
+ 0.02043903923034668,
454
+ 0.02063155174255371,
455
+ 0.020756479263305663,
456
+ 0.02065407943725586,
457
+ 0.020917247772216797,
458
+ 0.02043084716796875,
459
+ 0.020418560028076172,
460
+ 0.0204083194732666,
461
+ 0.020790271759033203,
462
+ 0.02081279945373535
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 48.875008484044585
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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": 1334.841344,
6
+ "max_global_vram": 6775.373824,
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.3230439453125,
15
+ "mean": 11.3230439453125,
16
+ "stdev": 0.0,
17
+ "p50": 11.3230439453125,
18
+ "p90": 11.3230439453125,
19
+ "p95": 11.3230439453125,
20
+ "p99": 11.3230439453125,
21
+ "values": [
22
+ 11.3230439453125
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1803.800576,
33
+ "max_global_vram": 6796.345344,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.450816
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.04440156745910645,
42
+ "mean": 0.022200783729553225,
43
+ "stdev": 9.871482849121635e-06,
44
+ "p50": 0.022200783729553225,
45
+ "p90": 0.022208680915832522,
46
+ "p95": 0.022209668064117432,
47
+ "p99": 0.02221045778274536,
48
+ "values": [
49
+ 0.022210655212402345,
50
+ 0.0221909122467041
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 315.30418408976004
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1830.473728,
64
+ "max_global_vram": 6800.539648,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.820288
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 5.197191650390625,
73
+ "mean": 2.5985958251953125,
74
+ "stdev": 0.0020955810546876563,
75
+ "p50": 2.5985958251953125,
76
+ "p90": 2.6002722900390625,
77
+ "p95": 2.6004818481445313,
78
+ "p99": 2.6006494946289065,
79
+ "values": [
80
+ 2.596500244140625,
81
+ 2.60069140625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 48.87254830806733
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.196930044174192,
97
+ "mean": 0.020460354504622816,
98
+ "stdev": 0.00018569132449114813,
99
+ "p50": 0.02041651153564453,
100
+ "p90": 0.02075279312133789,
101
+ "p95": 0.020882176208496094,
102
+ "p99": 0.0210933962059021,
103
+ "values": [
104
+ 0.02037555122375488,
105
+ 0.020257791519165038,
106
+ 0.02027622413635254,
107
+ 0.02030899238586426,
108
+ 0.02050048065185547,
109
+ 0.02050662422180176,
110
+ 0.02083328056335449,
111
+ 0.020758527755737305,
112
+ 0.020434944152832032,
113
+ 0.02038374328613281,
114
+ 0.02039193534851074,
115
+ 0.02038374328613281,
116
+ 0.020392959594726562,
117
+ 0.020410367965698242,
118
+ 0.020444160461425782,
119
+ 0.020368383407592772,
120
+ 0.020428800582885744,
121
+ 0.020434944152832032,
122
+ 0.02043187141418457,
123
+ 0.02042265510559082,
124
+ 0.02042163276672363,
125
+ 0.0204400634765625,
126
+ 0.020418560028076172,
127
+ 0.020358144760131838,
128
+ 0.020411392211914063,
129
+ 0.020447231292724608,
130
+ 0.02047385597229004,
131
+ 0.020468736648559572,
132
+ 0.02049228858947754,
133
+ 0.020387840270996094,
134
+ 0.02043801689147949,
135
+ 0.020406272888183592,
136
+ 0.02041651153564453,
137
+ 0.020389888763427736,
138
+ 0.020362239837646484,
139
+ 0.020371456146240235,
140
+ 0.02043395233154297,
141
+ 0.02030486488342285,
142
+ 0.021336063385009766,
143
+ 0.021129215240478515,
144
+ 0.02041651153564453,
145
+ 0.02025062370300293,
146
+ 0.02041548728942871,
147
+ 0.020916223526000977,
148
+ 0.020537343978881836,
149
+ 0.020372480392456056,
150
+ 0.020436992645263673,
151
+ 0.02041548728942871,
152
+ 0.020231168746948244,
153
+ 0.02022707176208496,
154
+ 0.020376575469970702,
155
+ 0.020382720947265624,
156
+ 0.02042572784423828,
157
+ 0.020427776336669923,
158
+ 0.02043289566040039,
159
+ 0.020412416458129884,
160
+ 0.02043187141418457,
161
+ 0.021194751739501954,
162
+ 0.020822015762329102,
163
+ 0.02043391990661621,
164
+ 0.020215808868408205,
165
+ 0.020182016372680665,
166
+ 0.020229120254516602,
167
+ 0.020397056579589845,
168
+ 0.02033459281921387,
169
+ 0.02067046356201172,
170
+ 0.020426752090454102,
171
+ 0.02042265510559082,
172
+ 0.02046668815612793,
173
+ 0.02031001663208008,
174
+ 0.02023423957824707,
175
+ 0.020494335174560546,
176
+ 0.020434944152832032,
177
+ 0.020366336822509764,
178
+ 0.02064588737487793,
179
+ 0.02040934371948242,
180
+ 0.02043187141418457,
181
+ 0.020396032333374024,
182
+ 0.02021887969970703,
183
+ 0.02067558479309082,
184
+ 0.020880384445190428,
185
+ 0.02043084716796875,
186
+ 0.020452352523803712,
187
+ 0.02044211196899414,
188
+ 0.020377599716186523,
189
+ 0.020237312316894532,
190
+ 0.02044108772277832,
191
+ 0.02065203285217285,
192
+ 0.02046156883239746,
193
+ 0.02029363250732422,
194
+ 0.02048102378845215,
195
+ 0.020385791778564453,
196
+ 0.020350976943969725,
197
+ 0.02022707176208496,
198
+ 0.02021785545349121,
199
+ 0.020297727584838866,
200
+ 0.020165632247924805,
201
+ 0.02022400093078613,
202
+ 0.02025984001159668,
203
+ 0.02020249557495117,
204
+ 0.020204544067382812,
205
+ 0.020329471588134765,
206
+ 0.020376575469970702,
207
+ 0.0202106876373291,
208
+ 0.02043187141418457,
209
+ 0.020413440704345705,
210
+ 0.020600831985473633,
211
+ 0.020497407913208008,
212
+ 0.020824064254760744,
213
+ 0.020676607131958007,
214
+ 0.020527103424072265,
215
+ 0.02023628807067871,
216
+ 0.02036025619506836,
217
+ 0.020271039962768553,
218
+ 0.020387840270996094,
219
+ 0.02039091110229492,
220
+ 0.020376575469970702,
221
+ 0.021007360458374022,
222
+ 0.020447231292724608,
223
+ 0.020445184707641603,
224
+ 0.02046771240234375,
225
+ 0.02038374328613281,
226
+ 0.020349952697753908,
227
+ 0.020700159072875975,
228
+ 0.02086092758178711,
229
+ 0.020454399108886717,
230
+ 0.020471807479858398,
231
+ 0.020460544586181642,
232
+ 0.020426752090454102,
233
+ 0.02038374328613281,
234
+ 0.020587520599365236,
235
+ 0.020350976943969725,
236
+ 0.020323328018188477,
237
+ 0.020374528884887694,
238
+ 0.02047283172607422,
239
+ 0.020354047775268554,
240
+ 0.020324352264404297,
241
+ 0.020387840270996094,
242
+ 0.020397056579589845,
243
+ 0.020379648208618165,
244
+ 0.020332544326782227,
245
+ 0.02039910316467285,
246
+ 0.020337663650512695,
247
+ 0.020389888763427736,
248
+ 0.020262912750244142,
249
+ 0.020205568313598633,
250
+ 0.020159488677978517,
251
+ 0.020361215591430663,
252
+ 0.020427776336669923,
253
+ 0.020434944152832032,
254
+ 0.020488191604614257,
255
+ 0.020357120513916017,
256
+ 0.020677631378173827,
257
+ 0.020418560028076172,
258
+ 0.020404224395751954,
259
+ 0.02039910316467285,
260
+ 0.02036735916137695,
261
+ 0.02086502456665039,
262
+ 0.020744192123413087,
263
+ 0.020389888763427736,
264
+ 0.020798463821411133,
265
+ 0.020327423095703127,
266
+ 0.020320255279541014,
267
+ 0.020366336822509764,
268
+ 0.020319232940673827,
269
+ 0.020331520080566406,
270
+ 0.02040012741088867,
271
+ 0.020368383407592772,
272
+ 0.020566015243530272,
273
+ 0.020642816543579103,
274
+ 0.02038374328613281,
275
+ 0.020732927322387695,
276
+ 0.02041753578186035,
277
+ 0.020406272888183592,
278
+ 0.02066739273071289,
279
+ 0.020404224395751954,
280
+ 0.020406272888183592,
281
+ 0.02042265510559082,
282
+ 0.02039910316467285,
283
+ 0.020398080825805662,
284
+ 0.020392959594726562,
285
+ 0.020348928451538087,
286
+ 0.020389888763427736,
287
+ 0.020351999282836913,
288
+ 0.02041651153564453,
289
+ 0.020410367965698242,
290
+ 0.020376575469970702,
291
+ 0.02039910316467285,
292
+ 0.020397056579589845,
293
+ 0.020396032333374024,
294
+ 0.020396032333374024,
295
+ 0.020392959594726562,
296
+ 0.021061632156372072,
297
+ 0.020933631896972657,
298
+ 0.020940799713134766,
299
+ 0.02088960075378418,
300
+ 0.020925439834594727,
301
+ 0.020943872451782225,
302
+ 0.020779008865356444,
303
+ 0.02045337677001953,
304
+ 0.02039193534851074,
305
+ 0.02044927978515625,
306
+ 0.02046566390991211,
307
+ 0.020487167358398437,
308
+ 0.020855808258056642,
309
+ 0.02042572784423828,
310
+ 0.020454399108886717,
311
+ 0.020279296875,
312
+ 0.0208855037689209,
313
+ 0.020612096786499022,
314
+ 0.02043903923034668,
315
+ 0.020511743545532226,
316
+ 0.02046156883239746,
317
+ 0.02041651153564453,
318
+ 0.02036735916137695,
319
+ 0.02043391990661621,
320
+ 0.020412416458129884,
321
+ 0.02039910316467285,
322
+ 0.02043391990661621,
323
+ 0.020385791778564453,
324
+ 0.020470783233642577,
325
+ 0.02048409652709961,
326
+ 0.020446207046508787,
327
+ 0.02045747184753418,
328
+ 0.02040012741088867,
329
+ 0.020379648208618165,
330
+ 0.020404224395751954,
331
+ 0.02040729522705078,
332
+ 0.020405248641967775,
333
+ 0.02045132827758789,
334
+ 0.02042982482910156,
335
+ 0.020487167358398437,
336
+ 0.02048102378845215,
337
+ 0.020370431900024414,
338
+ 0.020298751831054687,
339
+ 0.020387840270996094,
340
+ 0.020382720947265624,
341
+ 0.020436992645263673,
342
+ 0.020404224395751954,
343
+ 0.020427776336669923,
344
+ 0.020427776336669923,
345
+ 0.02045337677001953,
346
+ 0.02062131118774414,
347
+ 0.020504575729370117,
348
+ 0.02043903923034668,
349
+ 0.02063155174255371,
350
+ 0.020756479263305663,
351
+ 0.02065407943725586,
352
+ 0.020917247772216797,
353
+ 0.02043084716796875,
354
+ 0.020418560028076172,
355
+ 0.0204083194732666,
356
+ 0.020790271759033203,
357
+ 0.02081279945373535
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 48.875008484044585
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022200783729553225,
7
+ "prefill.throughput.value": 315.30418408976004,
8
+ "decode.latency.mean": 2.5985958251953125,
9
+ "decode.throughput.value": 48.87254830806733,
10
+ "per_token.latency.mean": 0.020460354504622816,
11
+ "per_token.throughput.value": 48.875008484044585
12
+ }
13
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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: 9f196ef2e084c53c01f8e754b7c29153bd9a626a
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a
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/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a
88
+ - hydra.run.dir=_benchmark/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${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/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.23.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": 1353.216,
111
+ "max_global_vram": 6775.373824,
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": 12.6601044921875,
120
+ "mean": 12.6601044921875,
121
+ "stdev": 0.0,
122
+ "p50": 12.6601044921875,
123
+ "p90": 12.6601044921875,
124
+ "p95": 12.6601044921875,
125
+ "p99": 12.6601044921875,
126
+ "values": [
127
+ 12.6601044921875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1949.114368,
138
+ "max_global_vram": 6796.345344,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6138.363904,
141
+ "max_allocated": 5278.596608
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.028348128318786622,
147
+ "mean": 0.014174064159393311,
148
+ "stdev": 0.00018193578720092796,
149
+ "p50": 0.014174064159393311,
150
+ "p90": 0.014319612789154054,
151
+ "p95": 0.014337806367874146,
152
+ "p99": 0.01435236123085022,
153
+ "values": [
154
+ 0.013992128372192382,
155
+ 0.014355999946594238
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 493.85976536313484
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2122.584064,
169
+ "max_global_vram": 6060.244992,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 5381.292032,
172
+ "max_allocated": 5282.647552
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 3.1255233154296875,
178
+ "mean": 1.5627616577148438,
179
+ "stdev": 0.0003087768554688175,
180
+ "p50": 1.5627616577148438,
181
+ "p90": 1.5630086791992188,
182
+ "p95": 1.5630395568847657,
183
+ "p99": 1.5630642590332031,
184
+ "values": [
185
+ 1.562452880859375,
186
+ 1.5630704345703126
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.26639105396686
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.125238778114318,
202
+ "mean": 0.012304089677615428,
203
+ "stdev": 4.845333203579275e-05,
204
+ "p50": 0.012296192169189453,
205
+ "p90": 0.012321791648864745,
206
+ "p95": 0.01233172492980957,
207
+ "p99": 0.012450375957489015,
208
+ "values": [
209
+ 0.01232588768005371,
210
+ 0.012377087593078612,
211
+ 0.012294143676757812,
212
+ 0.012294143676757812,
213
+ 0.012284992218017578,
214
+ 0.012297151565551757,
215
+ 0.012294143676757812,
216
+ 0.012283904075622559,
217
+ 0.012291071891784668,
218
+ 0.012296192169189453,
219
+ 0.012290047645568849,
220
+ 0.012282879829406738,
221
+ 0.01232588768005371,
222
+ 0.012306431770324706,
223
+ 0.012301312446594239,
224
+ 0.012288000106811523,
225
+ 0.012298239707946777,
226
+ 0.012289024353027344,
227
+ 0.012302335739135742,
228
+ 0.012290047645568849,
229
+ 0.012302335739135742,
230
+ 0.012298239707946777,
231
+ 0.012300288200378418,
232
+ 0.012292096138000488,
233
+ 0.01228492832183838,
234
+ 0.012303359985351562,
235
+ 0.012308480262756348,
236
+ 0.012292096138000488,
237
+ 0.012300288200378418,
238
+ 0.012288000106811523,
239
+ 0.012280832290649414,
240
+ 0.01246720027923584,
241
+ 0.012339200019836426,
242
+ 0.012294143676757812,
243
+ 0.012297216415405274,
244
+ 0.012290047645568849,
245
+ 0.012294143676757812,
246
+ 0.012292096138000488,
247
+ 0.012323840141296387,
248
+ 0.012304384231567383,
249
+ 0.012319744110107422,
250
+ 0.012299263954162597,
251
+ 0.012297216415405274,
252
+ 0.012291071891784668,
253
+ 0.012303359985351562,
254
+ 0.012277759552001954,
255
+ 0.012308480262756348,
256
+ 0.012294143676757812,
257
+ 0.012321791648864745,
258
+ 0.012297216415405274,
259
+ 0.012299263954162597,
260
+ 0.012333056449890138,
261
+ 0.01232588768005371,
262
+ 0.012301312446594239,
263
+ 0.012313599586486817,
264
+ 0.012298239707946777,
265
+ 0.012309503555297852,
266
+ 0.012291071891784668,
267
+ 0.012338175773620605,
268
+ 0.012294143676757812,
269
+ 0.012292096138000488,
270
+ 0.012306431770324706,
271
+ 0.012282879829406738,
272
+ 0.012308480262756348,
273
+ 0.012314623832702636,
274
+ 0.012313599586486817,
275
+ 0.012301312446594239,
276
+ 0.012306431770324706,
277
+ 0.012292096138000488,
278
+ 0.012281855583190919,
279
+ 0.012280832290649414,
280
+ 0.0123504638671875,
281
+ 0.012283904075622559,
282
+ 0.012290047645568849,
283
+ 0.012288000106811523,
284
+ 0.012295167922973632,
285
+ 0.012292096138000488,
286
+ 0.012300288200378418,
287
+ 0.012317695617675782,
288
+ 0.012304384231567383,
289
+ 0.012314623832702636,
290
+ 0.012289024353027344,
291
+ 0.012290047645568849,
292
+ 0.012281855583190919,
293
+ 0.012277759552001954,
294
+ 0.012294143676757812,
295
+ 0.012280832290649414,
296
+ 0.012283904075622559,
297
+ 0.012291071891784668,
298
+ 0.012298239707946777,
299
+ 0.012298239707946777,
300
+ 0.012314623832702636,
301
+ 0.012310527801513671,
302
+ 0.012299263954162597,
303
+ 0.012303359985351562,
304
+ 0.012283904075622559,
305
+ 0.012296192169189453,
306
+ 0.012291071891784668,
307
+ 0.012291071891784668,
308
+ 0.012301312446594239,
309
+ 0.012294143676757812,
310
+ 0.01239244842529297,
311
+ 0.012326911926269531,
312
+ 0.012300288200378418,
313
+ 0.012311552047729492,
314
+ 0.012312576293945313,
315
+ 0.012310527801513671,
316
+ 0.012296192169189453,
317
+ 0.01228492832183838,
318
+ 0.012297216415405274,
319
+ 0.012296192169189453,
320
+ 0.012285951614379884,
321
+ 0.012298239707946777,
322
+ 0.012286975860595703,
323
+ 0.012285951614379884,
324
+ 0.01229312038421631,
325
+ 0.012289024353027344,
326
+ 0.012297216415405274,
327
+ 0.012296192169189453,
328
+ 0.012303359985351562,
329
+ 0.012305407524108887,
330
+ 0.012295167922973632,
331
+ 0.012294143676757812,
332
+ 0.012290047645568849,
333
+ 0.012281855583190919,
334
+ 0.012281855583190919,
335
+ 0.012331007957458496,
336
+ 0.012349439620971679,
337
+ 0.012290047645568849,
338
+ 0.012297216415405274,
339
+ 0.012301312446594239,
340
+ 0.012286975860595703,
341
+ 0.012291071891784668,
342
+ 0.012303359985351562,
343
+ 0.012294143676757812,
344
+ 0.012286975860595703,
345
+ 0.012308480262756348,
346
+ 0.012315648078918457,
347
+ 0.01229312038421631,
348
+ 0.012288000106811523,
349
+ 0.012285951614379884,
350
+ 0.012285951614379884,
351
+ 0.012288000106811523,
352
+ 0.01228492832183838,
353
+ 0.012288000106811523,
354
+ 0.012292096138000488,
355
+ 0.012290047645568849,
356
+ 0.012299263954162597,
357
+ 0.012289024353027344,
358
+ 0.012292096138000488,
359
+ 0.012354559898376465,
360
+ 0.012299263954162597,
361
+ 0.012291071891784668,
362
+ 0.012302335739135742,
363
+ 0.012279808044433594,
364
+ 0.012291071891784668,
365
+ 0.012282879829406738,
366
+ 0.01229312038421631,
367
+ 0.012299263954162597,
368
+ 0.012292096138000488,
369
+ 0.01229312038421631,
370
+ 0.012288000106811523,
371
+ 0.012283904075622559,
372
+ 0.012307456016540527,
373
+ 0.012308480262756348,
374
+ 0.012311552047729492,
375
+ 0.012286975860595703,
376
+ 0.01228492832183838,
377
+ 0.01229312038421631,
378
+ 0.012295167922973632,
379
+ 0.01229312038421631,
380
+ 0.012298239707946777,
381
+ 0.012282879829406738,
382
+ 0.012297216415405274,
383
+ 0.012281855583190919,
384
+ 0.012283904075622559,
385
+ 0.012280832290649414,
386
+ 0.012309503555297852,
387
+ 0.012310527801513671,
388
+ 0.012305407524108887,
389
+ 0.012291071891784668,
390
+ 0.01228492832183838,
391
+ 0.012281855583190919,
392
+ 0.012294143676757812,
393
+ 0.012297216415405274,
394
+ 0.012296192169189453,
395
+ 0.01228492832183838,
396
+ 0.012290047645568849,
397
+ 0.012283904075622559,
398
+ 0.012288000106811523,
399
+ 0.01229312038421631,
400
+ 0.012322815895080566,
401
+ 0.012303359985351562,
402
+ 0.012435456275939942,
403
+ 0.012317695617675782,
404
+ 0.012302335739135742,
405
+ 0.012317695617675782,
406
+ 0.012315648078918457,
407
+ 0.012292096138000488,
408
+ 0.012289024353027344,
409
+ 0.012295167922973632,
410
+ 0.012285951614379884,
411
+ 0.012298239707946777,
412
+ 0.012311552047729492,
413
+ 0.012316672325134278,
414
+ 0.012304384231567383,
415
+ 0.0123023681640625,
416
+ 0.012296159744262696,
417
+ 0.012294143676757812,
418
+ 0.012288000106811523,
419
+ 0.012288000106811523,
420
+ 0.012300288200378418,
421
+ 0.012288031578063964,
422
+ 0.012290016174316406,
423
+ 0.012294143676757812,
424
+ 0.012286975860595703,
425
+ 0.012286975860595703,
426
+ 0.012326911926269531,
427
+ 0.012329983711242675,
428
+ 0.012305407524108887,
429
+ 0.012299263954162597,
430
+ 0.012297216415405274,
431
+ 0.012290047645568849,
432
+ 0.012290047645568849,
433
+ 0.012289024353027344,
434
+ 0.012305407524108887,
435
+ 0.012289024353027344,
436
+ 0.012298239707946777,
437
+ 0.012290047645568849,
438
+ 0.012291071891784668,
439
+ 0.012301312446594239,
440
+ 0.012307456016540527,
441
+ 0.012349439620971679,
442
+ 0.012321791648864745,
443
+ 0.012299263954162597,
444
+ 0.012302335739135742,
445
+ 0.012289024353027344,
446
+ 0.012289024353027344,
447
+ 0.012291071891784668,
448
+ 0.012288000106811523,
449
+ 0.01229312038421631,
450
+ 0.012282879829406738,
451
+ 0.012299263954162597,
452
+ 0.012312576293945313,
453
+ 0.012324864387512208,
454
+ 0.012300288200378418,
455
+ 0.012950528144836425,
456
+ 0.012562432289123536,
457
+ 0.012328960418701173,
458
+ 0.012308480262756348,
459
+ 0.012308480262756348,
460
+ 0.012298239707946777,
461
+ 0.012302335739135742,
462
+ 0.012321791648864745
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.2737899512614
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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.224-212.876.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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.23.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-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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": 1353.216,
6
+ "max_global_vram": 6775.373824,
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": 12.6601044921875,
15
+ "mean": 12.6601044921875,
16
+ "stdev": 0.0,
17
+ "p50": 12.6601044921875,
18
+ "p90": 12.6601044921875,
19
+ "p95": 12.6601044921875,
20
+ "p99": 12.6601044921875,
21
+ "values": [
22
+ 12.6601044921875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1949.114368,
33
+ "max_global_vram": 6796.345344,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6138.363904,
36
+ "max_allocated": 5278.596608
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.028348128318786622,
42
+ "mean": 0.014174064159393311,
43
+ "stdev": 0.00018193578720092796,
44
+ "p50": 0.014174064159393311,
45
+ "p90": 0.014319612789154054,
46
+ "p95": 0.014337806367874146,
47
+ "p99": 0.01435236123085022,
48
+ "values": [
49
+ 0.013992128372192382,
50
+ 0.014355999946594238
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 493.85976536313484
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2122.584064,
64
+ "max_global_vram": 6060.244992,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 5381.292032,
67
+ "max_allocated": 5282.647552
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 3.1255233154296875,
73
+ "mean": 1.5627616577148438,
74
+ "stdev": 0.0003087768554688175,
75
+ "p50": 1.5627616577148438,
76
+ "p90": 1.5630086791992188,
77
+ "p95": 1.5630395568847657,
78
+ "p99": 1.5630642590332031,
79
+ "values": [
80
+ 1.562452880859375,
81
+ 1.5630704345703126
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.26639105396686
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.125238778114318,
97
+ "mean": 0.012304089677615428,
98
+ "stdev": 4.845333203579275e-05,
99
+ "p50": 0.012296192169189453,
100
+ "p90": 0.012321791648864745,
101
+ "p95": 0.01233172492980957,
102
+ "p99": 0.012450375957489015,
103
+ "values": [
104
+ 0.01232588768005371,
105
+ 0.012377087593078612,
106
+ 0.012294143676757812,
107
+ 0.012294143676757812,
108
+ 0.012284992218017578,
109
+ 0.012297151565551757,
110
+ 0.012294143676757812,
111
+ 0.012283904075622559,
112
+ 0.012291071891784668,
113
+ 0.012296192169189453,
114
+ 0.012290047645568849,
115
+ 0.012282879829406738,
116
+ 0.01232588768005371,
117
+ 0.012306431770324706,
118
+ 0.012301312446594239,
119
+ 0.012288000106811523,
120
+ 0.012298239707946777,
121
+ 0.012289024353027344,
122
+ 0.012302335739135742,
123
+ 0.012290047645568849,
124
+ 0.012302335739135742,
125
+ 0.012298239707946777,
126
+ 0.012300288200378418,
127
+ 0.012292096138000488,
128
+ 0.01228492832183838,
129
+ 0.012303359985351562,
130
+ 0.012308480262756348,
131
+ 0.012292096138000488,
132
+ 0.012300288200378418,
133
+ 0.012288000106811523,
134
+ 0.012280832290649414,
135
+ 0.01246720027923584,
136
+ 0.012339200019836426,
137
+ 0.012294143676757812,
138
+ 0.012297216415405274,
139
+ 0.012290047645568849,
140
+ 0.012294143676757812,
141
+ 0.012292096138000488,
142
+ 0.012323840141296387,
143
+ 0.012304384231567383,
144
+ 0.012319744110107422,
145
+ 0.012299263954162597,
146
+ 0.012297216415405274,
147
+ 0.012291071891784668,
148
+ 0.012303359985351562,
149
+ 0.012277759552001954,
150
+ 0.012308480262756348,
151
+ 0.012294143676757812,
152
+ 0.012321791648864745,
153
+ 0.012297216415405274,
154
+ 0.012299263954162597,
155
+ 0.012333056449890138,
156
+ 0.01232588768005371,
157
+ 0.012301312446594239,
158
+ 0.012313599586486817,
159
+ 0.012298239707946777,
160
+ 0.012309503555297852,
161
+ 0.012291071891784668,
162
+ 0.012338175773620605,
163
+ 0.012294143676757812,
164
+ 0.012292096138000488,
165
+ 0.012306431770324706,
166
+ 0.012282879829406738,
167
+ 0.012308480262756348,
168
+ 0.012314623832702636,
169
+ 0.012313599586486817,
170
+ 0.012301312446594239,
171
+ 0.012306431770324706,
172
+ 0.012292096138000488,
173
+ 0.012281855583190919,
174
+ 0.012280832290649414,
175
+ 0.0123504638671875,
176
+ 0.012283904075622559,
177
+ 0.012290047645568849,
178
+ 0.012288000106811523,
179
+ 0.012295167922973632,
180
+ 0.012292096138000488,
181
+ 0.012300288200378418,
182
+ 0.012317695617675782,
183
+ 0.012304384231567383,
184
+ 0.012314623832702636,
185
+ 0.012289024353027344,
186
+ 0.012290047645568849,
187
+ 0.012281855583190919,
188
+ 0.012277759552001954,
189
+ 0.012294143676757812,
190
+ 0.012280832290649414,
191
+ 0.012283904075622559,
192
+ 0.012291071891784668,
193
+ 0.012298239707946777,
194
+ 0.012298239707946777,
195
+ 0.012314623832702636,
196
+ 0.012310527801513671,
197
+ 0.012299263954162597,
198
+ 0.012303359985351562,
199
+ 0.012283904075622559,
200
+ 0.012296192169189453,
201
+ 0.012291071891784668,
202
+ 0.012291071891784668,
203
+ 0.012301312446594239,
204
+ 0.012294143676757812,
205
+ 0.01239244842529297,
206
+ 0.012326911926269531,
207
+ 0.012300288200378418,
208
+ 0.012311552047729492,
209
+ 0.012312576293945313,
210
+ 0.012310527801513671,
211
+ 0.012296192169189453,
212
+ 0.01228492832183838,
213
+ 0.012297216415405274,
214
+ 0.012296192169189453,
215
+ 0.012285951614379884,
216
+ 0.012298239707946777,
217
+ 0.012286975860595703,
218
+ 0.012285951614379884,
219
+ 0.01229312038421631,
220
+ 0.012289024353027344,
221
+ 0.012297216415405274,
222
+ 0.012296192169189453,
223
+ 0.012303359985351562,
224
+ 0.012305407524108887,
225
+ 0.012295167922973632,
226
+ 0.012294143676757812,
227
+ 0.012290047645568849,
228
+ 0.012281855583190919,
229
+ 0.012281855583190919,
230
+ 0.012331007957458496,
231
+ 0.012349439620971679,
232
+ 0.012290047645568849,
233
+ 0.012297216415405274,
234
+ 0.012301312446594239,
235
+ 0.012286975860595703,
236
+ 0.012291071891784668,
237
+ 0.012303359985351562,
238
+ 0.012294143676757812,
239
+ 0.012286975860595703,
240
+ 0.012308480262756348,
241
+ 0.012315648078918457,
242
+ 0.01229312038421631,
243
+ 0.012288000106811523,
244
+ 0.012285951614379884,
245
+ 0.012285951614379884,
246
+ 0.012288000106811523,
247
+ 0.01228492832183838,
248
+ 0.012288000106811523,
249
+ 0.012292096138000488,
250
+ 0.012290047645568849,
251
+ 0.012299263954162597,
252
+ 0.012289024353027344,
253
+ 0.012292096138000488,
254
+ 0.012354559898376465,
255
+ 0.012299263954162597,
256
+ 0.012291071891784668,
257
+ 0.012302335739135742,
258
+ 0.012279808044433594,
259
+ 0.012291071891784668,
260
+ 0.012282879829406738,
261
+ 0.01229312038421631,
262
+ 0.012299263954162597,
263
+ 0.012292096138000488,
264
+ 0.01229312038421631,
265
+ 0.012288000106811523,
266
+ 0.012283904075622559,
267
+ 0.012307456016540527,
268
+ 0.012308480262756348,
269
+ 0.012311552047729492,
270
+ 0.012286975860595703,
271
+ 0.01228492832183838,
272
+ 0.01229312038421631,
273
+ 0.012295167922973632,
274
+ 0.01229312038421631,
275
+ 0.012298239707946777,
276
+ 0.012282879829406738,
277
+ 0.012297216415405274,
278
+ 0.012281855583190919,
279
+ 0.012283904075622559,
280
+ 0.012280832290649414,
281
+ 0.012309503555297852,
282
+ 0.012310527801513671,
283
+ 0.012305407524108887,
284
+ 0.012291071891784668,
285
+ 0.01228492832183838,
286
+ 0.012281855583190919,
287
+ 0.012294143676757812,
288
+ 0.012297216415405274,
289
+ 0.012296192169189453,
290
+ 0.01228492832183838,
291
+ 0.012290047645568849,
292
+ 0.012283904075622559,
293
+ 0.012288000106811523,
294
+ 0.01229312038421631,
295
+ 0.012322815895080566,
296
+ 0.012303359985351562,
297
+ 0.012435456275939942,
298
+ 0.012317695617675782,
299
+ 0.012302335739135742,
300
+ 0.012317695617675782,
301
+ 0.012315648078918457,
302
+ 0.012292096138000488,
303
+ 0.012289024353027344,
304
+ 0.012295167922973632,
305
+ 0.012285951614379884,
306
+ 0.012298239707946777,
307
+ 0.012311552047729492,
308
+ 0.012316672325134278,
309
+ 0.012304384231567383,
310
+ 0.0123023681640625,
311
+ 0.012296159744262696,
312
+ 0.012294143676757812,
313
+ 0.012288000106811523,
314
+ 0.012288000106811523,
315
+ 0.012300288200378418,
316
+ 0.012288031578063964,
317
+ 0.012290016174316406,
318
+ 0.012294143676757812,
319
+ 0.012286975860595703,
320
+ 0.012286975860595703,
321
+ 0.012326911926269531,
322
+ 0.012329983711242675,
323
+ 0.012305407524108887,
324
+ 0.012299263954162597,
325
+ 0.012297216415405274,
326
+ 0.012290047645568849,
327
+ 0.012290047645568849,
328
+ 0.012289024353027344,
329
+ 0.012305407524108887,
330
+ 0.012289024353027344,
331
+ 0.012298239707946777,
332
+ 0.012290047645568849,
333
+ 0.012291071891784668,
334
+ 0.012301312446594239,
335
+ 0.012307456016540527,
336
+ 0.012349439620971679,
337
+ 0.012321791648864745,
338
+ 0.012299263954162597,
339
+ 0.012302335739135742,
340
+ 0.012289024353027344,
341
+ 0.012289024353027344,
342
+ 0.012291071891784668,
343
+ 0.012288000106811523,
344
+ 0.01229312038421631,
345
+ 0.012282879829406738,
346
+ 0.012299263954162597,
347
+ 0.012312576293945313,
348
+ 0.012324864387512208,
349
+ 0.012300288200378418,
350
+ 0.012950528144836425,
351
+ 0.012562432289123536,
352
+ 0.012328960418701173,
353
+ 0.012308480262756348,
354
+ 0.012308480262756348,
355
+ 0.012298239707946777,
356
+ 0.012302335739135742,
357
+ 0.012321791648864745
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.2737899512614
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/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": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014174064159393311,
7
+ "prefill.throughput.value": 493.85976536313484,
8
+ "decode.latency.mean": 1.5627616577148438,
9
+ "decode.throughput.value": 81.26639105396686,
10
+ "per_token.latency.mean": 0.012304089677615428,
11
+ "per_token.throughput.value": 81.2737899512614
12
+ }
13
+ }
2024-09-17/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpsmajyje5/commit=9f196ef2e084c53c01f8e754b7c29153bd9a626a
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/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a
88
+ - hydra.run.dir=_benchmark/tmpsmajyje5/commit\=9f196ef2e084c53c01f8e754b7c29153bd9a626a/${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.224-212.876.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: 9f196ef2e084c53c01f8e754b7c29153bd9a626a
225
+ accelerate_version: 0.35.0.dev0
226
+ accelerate_commit: null
227
+ diffusers_version: null
228
+ diffusers_commit: null
229
+ optimum_version: 1.23.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-09-17/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.020587264060974123,
8
+ "prefill.throughput.value": 340.01603997830017,
9
+ "decode.latency.mean": 2.4348294677734375,
10
+ "decode.throughput.value": 52.159710435957905,
11
+ "per_token.latency.mean": 0.019170634660195175,
12
+ "per_token.throughput.value": 52.16311393572919
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022200783729553225,
21
+ "prefill.throughput.value": 315.30418408976004,
22
+ "decode.latency.mean": 2.5985958251953125,
23
+ "decode.throughput.value": 48.87254830806733,
24
+ "per_token.latency.mean": 0.020460354504622816,
25
+ "per_token.throughput.value": 48.875008484044585
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "9f196ef2e084c53c01f8e754b7c29153bd9a626a",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014174064159393311,
34
+ "prefill.throughput.value": 493.85976536313484,
35
+ "decode.latency.mean": 1.5627616577148438,
36
+ "decode.throughput.value": 81.26639105396686,
37
+ "per_token.latency.mean": 0.012304089677615428,
38
+ "per_token.throughput.value": 81.2737899512614
39
+ }
40
+ }
41
+ ]
2024-09-17/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "9f196ef2e084c53c01f8e754b7c29153bd9a626a": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020587264060974123,
7
+ "prefill.throughput.value": 340.01603997830017,
8
+ "decode.latency.mean": 2.4348294677734375,
9
+ "decode.throughput.value": 52.159710435957905,
10
+ "per_token.latency.mean": 0.019170634660195175,
11
+ "per_token.throughput.value": 52.16311393572919
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "9f196ef2e084c53c01f8e754b7c29153bd9a626a": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022200783729553225,
19
+ "prefill.throughput.value": 315.30418408976004,
20
+ "decode.latency.mean": 2.5985958251953125,
21
+ "decode.throughput.value": 48.87254830806733,
22
+ "per_token.latency.mean": 0.020460354504622816,
23
+ "per_token.throughput.value": 48.875008484044585
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "9f196ef2e084c53c01f8e754b7c29153bd9a626a": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014174064159393311,
31
+ "prefill.throughput.value": 493.85976536313484,
32
+ "decode.latency.mean": 1.5627616577148438,
33
+ "decode.throughput.value": 81.26639105396686,
34
+ "per_token.latency.mean": 0.012304089677615428,
35
+ "per_token.throughput.value": 81.2737899512614
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }