hf-transformers-bot commited on
Commit
554019b
1 Parent(s): b12aed7

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/multirun.yaml +234 -0
  31. 2024-09-08/summaries.json +41 -0
  32. 2024-09-08/summary.json +40 -0
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.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: 66bc4def9505fa7c7fe4aa7a248c34a026bb552b
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
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/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
88
+ - hydra.run.dir=_benchmark/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1334.882304,
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.4697255859375,
120
+ "mean": 11.4697255859375,
121
+ "stdev": 0.0,
122
+ "p50": 11.4697255859375,
123
+ "p90": 11.4697255859375,
124
+ "p95": 11.4697255859375,
125
+ "p99": 11.4697255859375,
126
+ "values": [
127
+ 11.4697255859375
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1768.46848,
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.04159295845031738,
147
+ "mean": 0.02079647922515869,
148
+ "stdev": 3.7856101989745816e-05,
149
+ "p50": 0.02079647922515869,
150
+ "p90": 0.020826764106750488,
151
+ "p95": 0.020830549716949462,
152
+ "p99": 0.02083357820510864,
153
+ "values": [
154
+ 0.020834335327148436,
155
+ 0.020758623123168944
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 336.59543638192855
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1826.443264,
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": 5.03159765625,
178
+ "mean": 2.515798828125,
179
+ "stdev": 0.007148193359374888,
180
+ "p50": 2.515798828125,
181
+ "p90": 2.5215173828125,
182
+ "p95": 2.5222322021484374,
183
+ "p99": 2.5228040576171873,
184
+ "values": [
185
+ 2.522947021484375,
186
+ 2.508650634765625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 50.4809838450604
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.031286792755129,
202
+ "mean": 0.019808215719508374,
203
+ "stdev": 0.0003891032057323679,
204
+ "p50": 0.0198287353515625,
205
+ "p90": 0.02026444778442383,
206
+ "p95": 0.020362086772918703,
207
+ "p99": 0.020712244091033935,
208
+ "values": [
209
+ 0.02044825553894043,
210
+ 0.02003660774230957,
211
+ 0.020171775817871093,
212
+ 0.020048896789550782,
213
+ 0.019801088333129883,
214
+ 0.019981311798095702,
215
+ 0.01942937660217285,
216
+ 0.0195020809173584,
217
+ 0.019513343811035155,
218
+ 0.020123647689819335,
219
+ 0.019885055541992186,
220
+ 0.02024345588684082,
221
+ 0.020148223876953125,
222
+ 0.020121599197387697,
223
+ 0.02022707176208496,
224
+ 0.020158464431762696,
225
+ 0.020131839752197265,
226
+ 0.02008166313171387,
227
+ 0.019564544677734375,
228
+ 0.02004684829711914,
229
+ 0.020147199630737304,
230
+ 0.02020249557495117,
231
+ 0.020121599197387697,
232
+ 0.019398656845092774,
233
+ 0.019467264175415038,
234
+ 0.019363840103149413,
235
+ 0.019497983932495116,
236
+ 0.019404800415039062,
237
+ 0.019898399353027344,
238
+ 0.01985532760620117,
239
+ 0.01983590316772461,
240
+ 0.020117504119873047,
241
+ 0.020057088851928712,
242
+ 0.020137983322143553,
243
+ 0.019960832595825196,
244
+ 0.019811328887939454,
245
+ 0.020063295364379882,
246
+ 0.01931360054016113,
247
+ 0.019338239669799806,
248
+ 0.019364864349365234,
249
+ 0.019417087554931642,
250
+ 0.019388416290283202,
251
+ 0.019376127243041993,
252
+ 0.019414016723632813,
253
+ 0.02000588798522949,
254
+ 0.019939327239990236,
255
+ 0.019757055282592775,
256
+ 0.019752960205078125,
257
+ 0.019878911972045898,
258
+ 0.020113407135009767,
259
+ 0.02002022361755371,
260
+ 0.02008883285522461,
261
+ 0.020411392211914063,
262
+ 0.020386816024780274,
263
+ 0.019357696533203125,
264
+ 0.019333120346069335,
265
+ 0.019373056411743163,
266
+ 0.01942527961730957,
267
+ 0.01944473648071289,
268
+ 0.01963929557800293,
269
+ 0.019532800674438477,
270
+ 0.020369407653808593,
271
+ 0.020296703338623046,
272
+ 0.020192256927490236,
273
+ 0.02022502326965332,
274
+ 0.02028646469116211,
275
+ 0.020210752487182616,
276
+ 0.02038265609741211,
277
+ 0.020256767272949217,
278
+ 0.02022502326965332,
279
+ 0.020296703338623046,
280
+ 0.020192256927490236,
281
+ 0.019958784103393554,
282
+ 0.020148223876953125,
283
+ 0.02030080032348633,
284
+ 0.020288511276245116,
285
+ 0.02020249557495117,
286
+ 0.020222976684570314,
287
+ 0.019946495056152345,
288
+ 0.019955711364746095,
289
+ 0.02023321533203125,
290
+ 0.02024448013305664,
291
+ 0.020314111709594726,
292
+ 0.019919872283935547,
293
+ 0.019979263305664064,
294
+ 0.019497983932495116,
295
+ 0.01960857582092285,
296
+ 0.019508224487304687,
297
+ 0.019466239929199217,
298
+ 0.019508256912231445,
299
+ 0.01952457618713379,
300
+ 0.01987174415588379,
301
+ 0.020239360809326173,
302
+ 0.019934207916259765,
303
+ 0.02001817512512207,
304
+ 0.01987276840209961,
305
+ 0.02005401611328125,
306
+ 0.02022400093078613,
307
+ 0.020265983581542968,
308
+ 0.020544511795043945,
309
+ 0.019957759857177734,
310
+ 0.019948543548583983,
311
+ 0.019877887725830077,
312
+ 0.02003046417236328,
313
+ 0.020354047775268554,
314
+ 0.019804159164428712,
315
+ 0.019321855545043946,
316
+ 0.0196945915222168,
317
+ 0.019805183410644533,
318
+ 0.0194334716796875,
319
+ 0.019306495666503908,
320
+ 0.019315711975097655,
321
+ 0.01942425537109375,
322
+ 0.019895296096801757,
323
+ 0.01998028755187988,
324
+ 0.02003763198852539,
325
+ 0.019886079788208007,
326
+ 0.0198922233581543,
327
+ 0.0200130558013916,
328
+ 0.019317760467529296,
329
+ 0.01929113578796387,
330
+ 0.01942937660217285,
331
+ 0.01927987289428711,
332
+ 0.019348480224609374,
333
+ 0.019318784713745117,
334
+ 0.019636224746704102,
335
+ 0.019325952529907226,
336
+ 0.019102720260620116,
337
+ 0.0191016960144043,
338
+ 0.019294208526611328,
339
+ 0.01947648048400879,
340
+ 0.020447231292724608,
341
+ 0.02000383949279785,
342
+ 0.01922355270385742,
343
+ 0.01923174476623535,
344
+ 0.01921843147277832,
345
+ 0.019146751403808594,
346
+ 0.019188735961914064,
347
+ 0.01927168083190918,
348
+ 0.021511167526245118,
349
+ 0.020178943634033202,
350
+ 0.01981644821166992,
351
+ 0.02026700782775879,
352
+ 0.020215808868408205,
353
+ 0.020136959075927736,
354
+ 0.019886079788208007,
355
+ 0.019910655975341796,
356
+ 0.02002227210998535,
357
+ 0.020144128799438478,
358
+ 0.020143104553222657,
359
+ 0.020083711624145507,
360
+ 0.019987455368041994,
361
+ 0.020254720687866212,
362
+ 0.019887104034423828,
363
+ 0.019943424224853516,
364
+ 0.020090879440307616,
365
+ 0.02084249687194824,
366
+ 0.0202926082611084,
367
+ 0.020187135696411132,
368
+ 0.02006425666809082,
369
+ 0.019175424575805664,
370
+ 0.020118528366088868,
371
+ 0.02007244873046875,
372
+ 0.019802112579345704,
373
+ 0.019788799285888673,
374
+ 0.019787776947021486,
375
+ 0.019953664779663087,
376
+ 0.019843072891235353,
377
+ 0.01985740852355957,
378
+ 0.020011007308959963,
379
+ 0.01982156753540039,
380
+ 0.019763200759887696,
381
+ 0.019785728454589844,
382
+ 0.019805183410644533,
383
+ 0.019970048904418947,
384
+ 0.019764223098754884,
385
+ 0.019745792388916016,
386
+ 0.019912704467773438,
387
+ 0.019788799285888673,
388
+ 0.019736576080322265,
389
+ 0.019809280395507813,
390
+ 0.019918848037719726,
391
+ 0.019810304641723633,
392
+ 0.019762176513671875,
393
+ 0.019895296096801757,
394
+ 0.019854335784912108,
395
+ 0.020039680480957032,
396
+ 0.01988198471069336,
397
+ 0.01988403129577637,
398
+ 0.01988403129577637,
399
+ 0.019353599548339845,
400
+ 0.019551231384277345,
401
+ 0.019531839370727538,
402
+ 0.019648448944091797,
403
+ 0.019677183151245118,
404
+ 0.02045849609375,
405
+ 0.020249599456787108,
406
+ 0.020221952438354493,
407
+ 0.020175872802734376,
408
+ 0.020337663650512695,
409
+ 0.020358144760131838,
410
+ 0.0202608642578125,
411
+ 0.020305919647216796,
412
+ 0.020405248641967775,
413
+ 0.019511295318603517,
414
+ 0.019631103515625,
415
+ 0.019382272720336914,
416
+ 0.01955027198791504,
417
+ 0.020047807693481447,
418
+ 0.021317632675170898,
419
+ 0.020596736907958983,
420
+ 0.019438592910766602,
421
+ 0.0196628475189209,
422
+ 0.019511295318603517,
423
+ 0.019537919998168944,
424
+ 0.01924403190612793,
425
+ 0.019308544158935546,
426
+ 0.01948467254638672,
427
+ 0.019604480743408204,
428
+ 0.01944371223449707,
429
+ 0.019405824661254883,
430
+ 0.019422271728515624,
431
+ 0.019510208129882814,
432
+ 0.019467264175415038,
433
+ 0.019507200241088866,
434
+ 0.019512319564819337,
435
+ 0.019568639755249022,
436
+ 0.019354623794555666,
437
+ 0.019316736221313476,
438
+ 0.019310592651367187,
439
+ 0.019392511367797852,
440
+ 0.019318784713745117,
441
+ 0.019323904037475585,
442
+ 0.019301376342773437,
443
+ 0.019567615509033204,
444
+ 0.019505151748657225,
445
+ 0.01945907211303711,
446
+ 0.019302400588989257,
447
+ 0.019519487380981446,
448
+ 0.019467264175415038,
449
+ 0.019316736221313476,
450
+ 0.019325952529907226,
451
+ 0.01946419143676758,
452
+ 0.019515392303466796,
453
+ 0.01949286460876465,
454
+ 0.019392511367797852,
455
+ 0.019479551315307618,
456
+ 0.019482624053955077,
457
+ 0.019508224487304687,
458
+ 0.019393535614013673,
459
+ 0.019589120864868165,
460
+ 0.019438592910766602,
461
+ 0.019479551315307618,
462
+ 0.01945395278930664
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 50.48410286723288
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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.882304,
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.4697255859375,
15
+ "mean": 11.4697255859375,
16
+ "stdev": 0.0,
17
+ "p50": 11.4697255859375,
18
+ "p90": 11.4697255859375,
19
+ "p95": 11.4697255859375,
20
+ "p99": 11.4697255859375,
21
+ "values": [
22
+ 11.4697255859375
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1768.46848,
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.04159295845031738,
42
+ "mean": 0.02079647922515869,
43
+ "stdev": 3.7856101989745816e-05,
44
+ "p50": 0.02079647922515869,
45
+ "p90": 0.020826764106750488,
46
+ "p95": 0.020830549716949462,
47
+ "p99": 0.02083357820510864,
48
+ "values": [
49
+ 0.020834335327148436,
50
+ 0.020758623123168944
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 336.59543638192855
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1826.443264,
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": 5.03159765625,
73
+ "mean": 2.515798828125,
74
+ "stdev": 0.007148193359374888,
75
+ "p50": 2.515798828125,
76
+ "p90": 2.5215173828125,
77
+ "p95": 2.5222322021484374,
78
+ "p99": 2.5228040576171873,
79
+ "values": [
80
+ 2.522947021484375,
81
+ 2.508650634765625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 50.4809838450604
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.031286792755129,
97
+ "mean": 0.019808215719508374,
98
+ "stdev": 0.0003891032057323679,
99
+ "p50": 0.0198287353515625,
100
+ "p90": 0.02026444778442383,
101
+ "p95": 0.020362086772918703,
102
+ "p99": 0.020712244091033935,
103
+ "values": [
104
+ 0.02044825553894043,
105
+ 0.02003660774230957,
106
+ 0.020171775817871093,
107
+ 0.020048896789550782,
108
+ 0.019801088333129883,
109
+ 0.019981311798095702,
110
+ 0.01942937660217285,
111
+ 0.0195020809173584,
112
+ 0.019513343811035155,
113
+ 0.020123647689819335,
114
+ 0.019885055541992186,
115
+ 0.02024345588684082,
116
+ 0.020148223876953125,
117
+ 0.020121599197387697,
118
+ 0.02022707176208496,
119
+ 0.020158464431762696,
120
+ 0.020131839752197265,
121
+ 0.02008166313171387,
122
+ 0.019564544677734375,
123
+ 0.02004684829711914,
124
+ 0.020147199630737304,
125
+ 0.02020249557495117,
126
+ 0.020121599197387697,
127
+ 0.019398656845092774,
128
+ 0.019467264175415038,
129
+ 0.019363840103149413,
130
+ 0.019497983932495116,
131
+ 0.019404800415039062,
132
+ 0.019898399353027344,
133
+ 0.01985532760620117,
134
+ 0.01983590316772461,
135
+ 0.020117504119873047,
136
+ 0.020057088851928712,
137
+ 0.020137983322143553,
138
+ 0.019960832595825196,
139
+ 0.019811328887939454,
140
+ 0.020063295364379882,
141
+ 0.01931360054016113,
142
+ 0.019338239669799806,
143
+ 0.019364864349365234,
144
+ 0.019417087554931642,
145
+ 0.019388416290283202,
146
+ 0.019376127243041993,
147
+ 0.019414016723632813,
148
+ 0.02000588798522949,
149
+ 0.019939327239990236,
150
+ 0.019757055282592775,
151
+ 0.019752960205078125,
152
+ 0.019878911972045898,
153
+ 0.020113407135009767,
154
+ 0.02002022361755371,
155
+ 0.02008883285522461,
156
+ 0.020411392211914063,
157
+ 0.020386816024780274,
158
+ 0.019357696533203125,
159
+ 0.019333120346069335,
160
+ 0.019373056411743163,
161
+ 0.01942527961730957,
162
+ 0.01944473648071289,
163
+ 0.01963929557800293,
164
+ 0.019532800674438477,
165
+ 0.020369407653808593,
166
+ 0.020296703338623046,
167
+ 0.020192256927490236,
168
+ 0.02022502326965332,
169
+ 0.02028646469116211,
170
+ 0.020210752487182616,
171
+ 0.02038265609741211,
172
+ 0.020256767272949217,
173
+ 0.02022502326965332,
174
+ 0.020296703338623046,
175
+ 0.020192256927490236,
176
+ 0.019958784103393554,
177
+ 0.020148223876953125,
178
+ 0.02030080032348633,
179
+ 0.020288511276245116,
180
+ 0.02020249557495117,
181
+ 0.020222976684570314,
182
+ 0.019946495056152345,
183
+ 0.019955711364746095,
184
+ 0.02023321533203125,
185
+ 0.02024448013305664,
186
+ 0.020314111709594726,
187
+ 0.019919872283935547,
188
+ 0.019979263305664064,
189
+ 0.019497983932495116,
190
+ 0.01960857582092285,
191
+ 0.019508224487304687,
192
+ 0.019466239929199217,
193
+ 0.019508256912231445,
194
+ 0.01952457618713379,
195
+ 0.01987174415588379,
196
+ 0.020239360809326173,
197
+ 0.019934207916259765,
198
+ 0.02001817512512207,
199
+ 0.01987276840209961,
200
+ 0.02005401611328125,
201
+ 0.02022400093078613,
202
+ 0.020265983581542968,
203
+ 0.020544511795043945,
204
+ 0.019957759857177734,
205
+ 0.019948543548583983,
206
+ 0.019877887725830077,
207
+ 0.02003046417236328,
208
+ 0.020354047775268554,
209
+ 0.019804159164428712,
210
+ 0.019321855545043946,
211
+ 0.0196945915222168,
212
+ 0.019805183410644533,
213
+ 0.0194334716796875,
214
+ 0.019306495666503908,
215
+ 0.019315711975097655,
216
+ 0.01942425537109375,
217
+ 0.019895296096801757,
218
+ 0.01998028755187988,
219
+ 0.02003763198852539,
220
+ 0.019886079788208007,
221
+ 0.0198922233581543,
222
+ 0.0200130558013916,
223
+ 0.019317760467529296,
224
+ 0.01929113578796387,
225
+ 0.01942937660217285,
226
+ 0.01927987289428711,
227
+ 0.019348480224609374,
228
+ 0.019318784713745117,
229
+ 0.019636224746704102,
230
+ 0.019325952529907226,
231
+ 0.019102720260620116,
232
+ 0.0191016960144043,
233
+ 0.019294208526611328,
234
+ 0.01947648048400879,
235
+ 0.020447231292724608,
236
+ 0.02000383949279785,
237
+ 0.01922355270385742,
238
+ 0.01923174476623535,
239
+ 0.01921843147277832,
240
+ 0.019146751403808594,
241
+ 0.019188735961914064,
242
+ 0.01927168083190918,
243
+ 0.021511167526245118,
244
+ 0.020178943634033202,
245
+ 0.01981644821166992,
246
+ 0.02026700782775879,
247
+ 0.020215808868408205,
248
+ 0.020136959075927736,
249
+ 0.019886079788208007,
250
+ 0.019910655975341796,
251
+ 0.02002227210998535,
252
+ 0.020144128799438478,
253
+ 0.020143104553222657,
254
+ 0.020083711624145507,
255
+ 0.019987455368041994,
256
+ 0.020254720687866212,
257
+ 0.019887104034423828,
258
+ 0.019943424224853516,
259
+ 0.020090879440307616,
260
+ 0.02084249687194824,
261
+ 0.0202926082611084,
262
+ 0.020187135696411132,
263
+ 0.02006425666809082,
264
+ 0.019175424575805664,
265
+ 0.020118528366088868,
266
+ 0.02007244873046875,
267
+ 0.019802112579345704,
268
+ 0.019788799285888673,
269
+ 0.019787776947021486,
270
+ 0.019953664779663087,
271
+ 0.019843072891235353,
272
+ 0.01985740852355957,
273
+ 0.020011007308959963,
274
+ 0.01982156753540039,
275
+ 0.019763200759887696,
276
+ 0.019785728454589844,
277
+ 0.019805183410644533,
278
+ 0.019970048904418947,
279
+ 0.019764223098754884,
280
+ 0.019745792388916016,
281
+ 0.019912704467773438,
282
+ 0.019788799285888673,
283
+ 0.019736576080322265,
284
+ 0.019809280395507813,
285
+ 0.019918848037719726,
286
+ 0.019810304641723633,
287
+ 0.019762176513671875,
288
+ 0.019895296096801757,
289
+ 0.019854335784912108,
290
+ 0.020039680480957032,
291
+ 0.01988198471069336,
292
+ 0.01988403129577637,
293
+ 0.01988403129577637,
294
+ 0.019353599548339845,
295
+ 0.019551231384277345,
296
+ 0.019531839370727538,
297
+ 0.019648448944091797,
298
+ 0.019677183151245118,
299
+ 0.02045849609375,
300
+ 0.020249599456787108,
301
+ 0.020221952438354493,
302
+ 0.020175872802734376,
303
+ 0.020337663650512695,
304
+ 0.020358144760131838,
305
+ 0.0202608642578125,
306
+ 0.020305919647216796,
307
+ 0.020405248641967775,
308
+ 0.019511295318603517,
309
+ 0.019631103515625,
310
+ 0.019382272720336914,
311
+ 0.01955027198791504,
312
+ 0.020047807693481447,
313
+ 0.021317632675170898,
314
+ 0.020596736907958983,
315
+ 0.019438592910766602,
316
+ 0.0196628475189209,
317
+ 0.019511295318603517,
318
+ 0.019537919998168944,
319
+ 0.01924403190612793,
320
+ 0.019308544158935546,
321
+ 0.01948467254638672,
322
+ 0.019604480743408204,
323
+ 0.01944371223449707,
324
+ 0.019405824661254883,
325
+ 0.019422271728515624,
326
+ 0.019510208129882814,
327
+ 0.019467264175415038,
328
+ 0.019507200241088866,
329
+ 0.019512319564819337,
330
+ 0.019568639755249022,
331
+ 0.019354623794555666,
332
+ 0.019316736221313476,
333
+ 0.019310592651367187,
334
+ 0.019392511367797852,
335
+ 0.019318784713745117,
336
+ 0.019323904037475585,
337
+ 0.019301376342773437,
338
+ 0.019567615509033204,
339
+ 0.019505151748657225,
340
+ 0.01945907211303711,
341
+ 0.019302400588989257,
342
+ 0.019519487380981446,
343
+ 0.019467264175415038,
344
+ 0.019316736221313476,
345
+ 0.019325952529907226,
346
+ 0.01946419143676758,
347
+ 0.019515392303466796,
348
+ 0.01949286460876465,
349
+ 0.019392511367797852,
350
+ 0.019479551315307618,
351
+ 0.019482624053955077,
352
+ 0.019508224487304687,
353
+ 0.019393535614013673,
354
+ 0.019589120864868165,
355
+ 0.019438592910766602,
356
+ 0.019479551315307618,
357
+ 0.01945395278930664
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 50.48410286723288
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02079647922515869,
7
+ "prefill.throughput.value": 336.59543638192855,
8
+ "decode.latency.mean": 2.515798828125,
9
+ "decode.throughput.value": 50.4809838450604,
10
+ "per_token.latency.mean": 0.019808215719508374,
11
+ "per_token.throughput.value": 50.48410286723288
12
+ }
13
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.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: 66bc4def9505fa7c7fe4aa7a248c34a026bb552b
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
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/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
88
+ - hydra.run.dir=_benchmark/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08 02:45:34,642][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-09-08 02:45:37,070][process][ERROR] - + Received traceback from isolated process
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.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: 66bc4def9505fa7c7fe4aa7a248c34a026bb552b
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
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/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
88
+ - hydra.run.dir=_benchmark/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1335.468032,
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.5399248046875,
120
+ "mean": 11.5399248046875,
121
+ "stdev": 0.0,
122
+ "p50": 11.5399248046875,
123
+ "p90": 11.5399248046875,
124
+ "p95": 11.5399248046875,
125
+ "p99": 11.5399248046875,
126
+ "values": [
127
+ 11.5399248046875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1805.90592,
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.045890432357788086,
147
+ "mean": 0.022945216178894043,
148
+ "stdev": 0.000178656578063964,
149
+ "p50": 0.022945216178894043,
150
+ "p90": 0.023088141441345213,
151
+ "p95": 0.023106007099151612,
152
+ "p99": 0.023120299625396728,
153
+ "values": [
154
+ 0.02276655960083008,
155
+ 0.023123872756958007
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 305.0744846082073
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1832.402944,
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.368739990234375,
178
+ "mean": 2.6843699951171875,
179
+ "stdev": 0.0015821533203124183,
180
+ "p50": 2.6843699951171875,
181
+ "p90": 2.6856357177734376,
182
+ "p95": 2.6857939331054688,
183
+ "p99": 2.6859205053710937,
184
+ "values": [
185
+ 2.6859521484375,
186
+ 2.682787841796875
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 47.31091475132352
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.368476690292361,
202
+ "mean": 0.02113573500115102,
203
+ "stdev": 0.0002265092683081507,
204
+ "p50": 0.02106060791015625,
205
+ "p90": 0.02135183353424072,
206
+ "p95": 0.02160952339172363,
207
+ "p99": 0.02202634204864502,
208
+ "values": [
209
+ 0.02145894432067871,
210
+ 0.021154815673828126,
211
+ 0.021111808776855468,
212
+ 0.021198848724365234,
213
+ 0.02106982421875,
214
+ 0.02100223922729492,
215
+ 0.02102272033691406,
216
+ 0.02103603172302246,
217
+ 0.021005311965942384,
218
+ 0.02103603172302246,
219
+ 0.021020671844482423,
220
+ 0.02123161506652832,
221
+ 0.021008384704589843,
222
+ 0.021046272277832033,
223
+ 0.02106879997253418,
224
+ 0.02103500747680664,
225
+ 0.021011455535888672,
226
+ 0.02101043128967285,
227
+ 0.021011455535888672,
228
+ 0.021180416107177736,
229
+ 0.020998144149780275,
230
+ 0.021179391860961915,
231
+ 0.02102783966064453,
232
+ 0.021128192901611328,
233
+ 0.0212674560546875,
234
+ 0.02147225570678711,
235
+ 0.022373376846313478,
236
+ 0.02251571273803711,
237
+ 0.021601280212402343,
238
+ 0.0212541446685791,
239
+ 0.021176319122314453,
240
+ 0.021120000839233398,
241
+ 0.021234687805175782,
242
+ 0.021061632156372072,
243
+ 0.020998144149780275,
244
+ 0.020959232330322267,
245
+ 0.021029888153076173,
246
+ 0.020988927841186524,
247
+ 0.02105753517150879,
248
+ 0.02108415985107422,
249
+ 0.021445632934570313,
250
+ 0.0215285758972168,
251
+ 0.021037055969238282,
252
+ 0.021242879867553712,
253
+ 0.021117952346801756,
254
+ 0.02104832077026367,
255
+ 0.02105548858642578,
256
+ 0.02103500747680664,
257
+ 0.02106982421875,
258
+ 0.021015552520751952,
259
+ 0.021111808776855468,
260
+ 0.02106879997253418,
261
+ 0.02106470489501953,
262
+ 0.02102783966064453,
263
+ 0.0210882568359375,
264
+ 0.021082111358642578,
265
+ 0.020989952087402345,
266
+ 0.02105855941772461,
267
+ 0.02106572723388672,
268
+ 0.021238784790039062,
269
+ 0.021072895050048827,
270
+ 0.021001216888427734,
271
+ 0.0210565128326416,
272
+ 0.020940799713134766,
273
+ 0.020951040267944337,
274
+ 0.02102272033691406,
275
+ 0.02127257537841797,
276
+ 0.022042623519897463,
277
+ 0.02162483215332031,
278
+ 0.021352447509765626,
279
+ 0.021115903854370118,
280
+ 0.02105446434020996,
281
+ 0.021161983489990235,
282
+ 0.02099404716491699,
283
+ 0.02105241584777832,
284
+ 0.021215232849121093,
285
+ 0.02169241523742676,
286
+ 0.02142207908630371,
287
+ 0.02106265640258789,
288
+ 0.02106060791015625,
289
+ 0.021061632156372072,
290
+ 0.02103603172302246,
291
+ 0.021024768829345702,
292
+ 0.02105446434020996,
293
+ 0.02101759910583496,
294
+ 0.02107904052734375,
295
+ 0.02106470489501953,
296
+ 0.02106777572631836,
297
+ 0.021372928619384765,
298
+ 0.021106687545776368,
299
+ 0.02106368064880371,
300
+ 0.021007360458374022,
301
+ 0.021006336212158205,
302
+ 0.021032960891723632,
303
+ 0.021170175552368165,
304
+ 0.021183488845825195,
305
+ 0.021102592468261717,
306
+ 0.021008384704589843,
307
+ 0.021094400405883788,
308
+ 0.021183488845825195,
309
+ 0.02130534362792969,
310
+ 0.021115903854370118,
311
+ 0.020997119903564454,
312
+ 0.020992000579833983,
313
+ 0.021046272277832033,
314
+ 0.020992000579833983,
315
+ 0.021163007736206055,
316
+ 0.02112512016296387,
317
+ 0.021082111358642578,
318
+ 0.021024768829345702,
319
+ 0.020967424392700194,
320
+ 0.020985855102539062,
321
+ 0.020980735778808594,
322
+ 0.020938751220703124,
323
+ 0.021167104721069335,
324
+ 0.02109951972961426,
325
+ 0.021121023178100586,
326
+ 0.02104729652404785,
327
+ 0.021201919555664063,
328
+ 0.021132287979125978,
329
+ 0.021000192642211913,
330
+ 0.020999168395996092,
331
+ 0.021300224304199217,
332
+ 0.021016576766967773,
333
+ 0.021144575119018554,
334
+ 0.021383167266845703,
335
+ 0.021936128616333008,
336
+ 0.021007360458374022,
337
+ 0.020999168395996092,
338
+ 0.021210111618041993,
339
+ 0.02107596778869629,
340
+ 0.020992000579833983,
341
+ 0.020966400146484376,
342
+ 0.02104319953918457,
343
+ 0.021242879867553712,
344
+ 0.021086208343505858,
345
+ 0.020981760025024415,
346
+ 0.021275648117065428,
347
+ 0.02100223922729492,
348
+ 0.020943872451782225,
349
+ 0.020996095657348633,
350
+ 0.021024768829345702,
351
+ 0.021016576766967773,
352
+ 0.021016576766967773,
353
+ 0.02103398323059082,
354
+ 0.021246976852416992,
355
+ 0.020977664947509765,
356
+ 0.02102272033691406,
357
+ 0.02103193664550781,
358
+ 0.020981760025024415,
359
+ 0.021016576766967773,
360
+ 0.021000192642211913,
361
+ 0.021113855361938477,
362
+ 0.02125004768371582,
363
+ 0.02104115104675293,
364
+ 0.02103603172302246,
365
+ 0.021045248031616212,
366
+ 0.02103193664550781,
367
+ 0.02102783966064453,
368
+ 0.021001216888427734,
369
+ 0.021014528274536134,
370
+ 0.021192703247070312,
371
+ 0.021180416107177736,
372
+ 0.02104422378540039,
373
+ 0.020981760025024415,
374
+ 0.020999168395996092,
375
+ 0.02107084846496582,
376
+ 0.021032960891723632,
377
+ 0.02100223922729492,
378
+ 0.021193727493286133,
379
+ 0.020976640701293944,
380
+ 0.021194751739501954,
381
+ 0.02109235191345215,
382
+ 0.021350400924682617,
383
+ 0.021952512741088868,
384
+ 0.021142528533935546,
385
+ 0.021015552520751952,
386
+ 0.021203968048095705,
387
+ 0.0210513916015625,
388
+ 0.020963327407836914,
389
+ 0.020960256576538085,
390
+ 0.021011455535888672,
391
+ 0.021394432067871092,
392
+ 0.02108518409729004,
393
+ 0.021363712310791014,
394
+ 0.021178367614746094,
395
+ 0.02103500747680664,
396
+ 0.02128998374938965,
397
+ 0.021529600143432616,
398
+ 0.021163007736206055,
399
+ 0.02109337615966797,
400
+ 0.02109235191345215,
401
+ 0.021014528274536134,
402
+ 0.02124595260620117,
403
+ 0.021139455795288087,
404
+ 0.02106470489501953,
405
+ 0.021028863906860353,
406
+ 0.02106060791015625,
407
+ 0.02109337615966797,
408
+ 0.021053440093994142,
409
+ 0.02201190376281738,
410
+ 0.02166476821899414,
411
+ 0.022009855270385743,
412
+ 0.02166579246520996,
413
+ 0.02131046485900879,
414
+ 0.02106982421875,
415
+ 0.021037055969238282,
416
+ 0.021045248031616212,
417
+ 0.02102681541442871,
418
+ 0.021163007736206055,
419
+ 0.021122047424316406,
420
+ 0.02102783966064453,
421
+ 0.021011455535888672,
422
+ 0.02109542465209961,
423
+ 0.020989952087402345,
424
+ 0.02110054397583008,
425
+ 0.02101862335205078,
426
+ 0.0210565128326416,
427
+ 0.021072895050048827,
428
+ 0.021073919296264648,
429
+ 0.02106470489501953,
430
+ 0.021144575119018554,
431
+ 0.021352447509765626,
432
+ 0.021729280471801758,
433
+ 0.02125209617614746,
434
+ 0.02104934310913086,
435
+ 0.020968448638916014,
436
+ 0.0210513916015625,
437
+ 0.021028863906860353,
438
+ 0.021086208343505858,
439
+ 0.020968448638916014,
440
+ 0.020968448638916014,
441
+ 0.02104422378540039,
442
+ 0.021014528274536134,
443
+ 0.021028863906860353,
444
+ 0.021999616622924805,
445
+ 0.021121023178100586,
446
+ 0.020993024826049804,
447
+ 0.02104934310913086,
448
+ 0.021131263732910157,
449
+ 0.021020671844482423,
450
+ 0.02102374458312988,
451
+ 0.02102374458312988,
452
+ 0.021028863906860353,
453
+ 0.020997119903564454,
454
+ 0.02105241584777832,
455
+ 0.02109644889831543,
456
+ 0.021126144409179686,
457
+ 0.02106368064880371,
458
+ 0.02104729652404785,
459
+ 0.021028863906860353,
460
+ 0.021194751739501954,
461
+ 0.020999168395996092,
462
+ 0.02104422378540039
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 47.31323514159983
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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": 1335.468032,
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.5399248046875,
15
+ "mean": 11.5399248046875,
16
+ "stdev": 0.0,
17
+ "p50": 11.5399248046875,
18
+ "p90": 11.5399248046875,
19
+ "p95": 11.5399248046875,
20
+ "p99": 11.5399248046875,
21
+ "values": [
22
+ 11.5399248046875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1805.90592,
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.045890432357788086,
42
+ "mean": 0.022945216178894043,
43
+ "stdev": 0.000178656578063964,
44
+ "p50": 0.022945216178894043,
45
+ "p90": 0.023088141441345213,
46
+ "p95": 0.023106007099151612,
47
+ "p99": 0.023120299625396728,
48
+ "values": [
49
+ 0.02276655960083008,
50
+ 0.023123872756958007
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 305.0744846082073
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1832.402944,
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.368739990234375,
73
+ "mean": 2.6843699951171875,
74
+ "stdev": 0.0015821533203124183,
75
+ "p50": 2.6843699951171875,
76
+ "p90": 2.6856357177734376,
77
+ "p95": 2.6857939331054688,
78
+ "p99": 2.6859205053710937,
79
+ "values": [
80
+ 2.6859521484375,
81
+ 2.682787841796875
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 47.31091475132352
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.368476690292361,
97
+ "mean": 0.02113573500115102,
98
+ "stdev": 0.0002265092683081507,
99
+ "p50": 0.02106060791015625,
100
+ "p90": 0.02135183353424072,
101
+ "p95": 0.02160952339172363,
102
+ "p99": 0.02202634204864502,
103
+ "values": [
104
+ 0.02145894432067871,
105
+ 0.021154815673828126,
106
+ 0.021111808776855468,
107
+ 0.021198848724365234,
108
+ 0.02106982421875,
109
+ 0.02100223922729492,
110
+ 0.02102272033691406,
111
+ 0.02103603172302246,
112
+ 0.021005311965942384,
113
+ 0.02103603172302246,
114
+ 0.021020671844482423,
115
+ 0.02123161506652832,
116
+ 0.021008384704589843,
117
+ 0.021046272277832033,
118
+ 0.02106879997253418,
119
+ 0.02103500747680664,
120
+ 0.021011455535888672,
121
+ 0.02101043128967285,
122
+ 0.021011455535888672,
123
+ 0.021180416107177736,
124
+ 0.020998144149780275,
125
+ 0.021179391860961915,
126
+ 0.02102783966064453,
127
+ 0.021128192901611328,
128
+ 0.0212674560546875,
129
+ 0.02147225570678711,
130
+ 0.022373376846313478,
131
+ 0.02251571273803711,
132
+ 0.021601280212402343,
133
+ 0.0212541446685791,
134
+ 0.021176319122314453,
135
+ 0.021120000839233398,
136
+ 0.021234687805175782,
137
+ 0.021061632156372072,
138
+ 0.020998144149780275,
139
+ 0.020959232330322267,
140
+ 0.021029888153076173,
141
+ 0.020988927841186524,
142
+ 0.02105753517150879,
143
+ 0.02108415985107422,
144
+ 0.021445632934570313,
145
+ 0.0215285758972168,
146
+ 0.021037055969238282,
147
+ 0.021242879867553712,
148
+ 0.021117952346801756,
149
+ 0.02104832077026367,
150
+ 0.02105548858642578,
151
+ 0.02103500747680664,
152
+ 0.02106982421875,
153
+ 0.021015552520751952,
154
+ 0.021111808776855468,
155
+ 0.02106879997253418,
156
+ 0.02106470489501953,
157
+ 0.02102783966064453,
158
+ 0.0210882568359375,
159
+ 0.021082111358642578,
160
+ 0.020989952087402345,
161
+ 0.02105855941772461,
162
+ 0.02106572723388672,
163
+ 0.021238784790039062,
164
+ 0.021072895050048827,
165
+ 0.021001216888427734,
166
+ 0.0210565128326416,
167
+ 0.020940799713134766,
168
+ 0.020951040267944337,
169
+ 0.02102272033691406,
170
+ 0.02127257537841797,
171
+ 0.022042623519897463,
172
+ 0.02162483215332031,
173
+ 0.021352447509765626,
174
+ 0.021115903854370118,
175
+ 0.02105446434020996,
176
+ 0.021161983489990235,
177
+ 0.02099404716491699,
178
+ 0.02105241584777832,
179
+ 0.021215232849121093,
180
+ 0.02169241523742676,
181
+ 0.02142207908630371,
182
+ 0.02106265640258789,
183
+ 0.02106060791015625,
184
+ 0.021061632156372072,
185
+ 0.02103603172302246,
186
+ 0.021024768829345702,
187
+ 0.02105446434020996,
188
+ 0.02101759910583496,
189
+ 0.02107904052734375,
190
+ 0.02106470489501953,
191
+ 0.02106777572631836,
192
+ 0.021372928619384765,
193
+ 0.021106687545776368,
194
+ 0.02106368064880371,
195
+ 0.021007360458374022,
196
+ 0.021006336212158205,
197
+ 0.021032960891723632,
198
+ 0.021170175552368165,
199
+ 0.021183488845825195,
200
+ 0.021102592468261717,
201
+ 0.021008384704589843,
202
+ 0.021094400405883788,
203
+ 0.021183488845825195,
204
+ 0.02130534362792969,
205
+ 0.021115903854370118,
206
+ 0.020997119903564454,
207
+ 0.020992000579833983,
208
+ 0.021046272277832033,
209
+ 0.020992000579833983,
210
+ 0.021163007736206055,
211
+ 0.02112512016296387,
212
+ 0.021082111358642578,
213
+ 0.021024768829345702,
214
+ 0.020967424392700194,
215
+ 0.020985855102539062,
216
+ 0.020980735778808594,
217
+ 0.020938751220703124,
218
+ 0.021167104721069335,
219
+ 0.02109951972961426,
220
+ 0.021121023178100586,
221
+ 0.02104729652404785,
222
+ 0.021201919555664063,
223
+ 0.021132287979125978,
224
+ 0.021000192642211913,
225
+ 0.020999168395996092,
226
+ 0.021300224304199217,
227
+ 0.021016576766967773,
228
+ 0.021144575119018554,
229
+ 0.021383167266845703,
230
+ 0.021936128616333008,
231
+ 0.021007360458374022,
232
+ 0.020999168395996092,
233
+ 0.021210111618041993,
234
+ 0.02107596778869629,
235
+ 0.020992000579833983,
236
+ 0.020966400146484376,
237
+ 0.02104319953918457,
238
+ 0.021242879867553712,
239
+ 0.021086208343505858,
240
+ 0.020981760025024415,
241
+ 0.021275648117065428,
242
+ 0.02100223922729492,
243
+ 0.020943872451782225,
244
+ 0.020996095657348633,
245
+ 0.021024768829345702,
246
+ 0.021016576766967773,
247
+ 0.021016576766967773,
248
+ 0.02103398323059082,
249
+ 0.021246976852416992,
250
+ 0.020977664947509765,
251
+ 0.02102272033691406,
252
+ 0.02103193664550781,
253
+ 0.020981760025024415,
254
+ 0.021016576766967773,
255
+ 0.021000192642211913,
256
+ 0.021113855361938477,
257
+ 0.02125004768371582,
258
+ 0.02104115104675293,
259
+ 0.02103603172302246,
260
+ 0.021045248031616212,
261
+ 0.02103193664550781,
262
+ 0.02102783966064453,
263
+ 0.021001216888427734,
264
+ 0.021014528274536134,
265
+ 0.021192703247070312,
266
+ 0.021180416107177736,
267
+ 0.02104422378540039,
268
+ 0.020981760025024415,
269
+ 0.020999168395996092,
270
+ 0.02107084846496582,
271
+ 0.021032960891723632,
272
+ 0.02100223922729492,
273
+ 0.021193727493286133,
274
+ 0.020976640701293944,
275
+ 0.021194751739501954,
276
+ 0.02109235191345215,
277
+ 0.021350400924682617,
278
+ 0.021952512741088868,
279
+ 0.021142528533935546,
280
+ 0.021015552520751952,
281
+ 0.021203968048095705,
282
+ 0.0210513916015625,
283
+ 0.020963327407836914,
284
+ 0.020960256576538085,
285
+ 0.021011455535888672,
286
+ 0.021394432067871092,
287
+ 0.02108518409729004,
288
+ 0.021363712310791014,
289
+ 0.021178367614746094,
290
+ 0.02103500747680664,
291
+ 0.02128998374938965,
292
+ 0.021529600143432616,
293
+ 0.021163007736206055,
294
+ 0.02109337615966797,
295
+ 0.02109235191345215,
296
+ 0.021014528274536134,
297
+ 0.02124595260620117,
298
+ 0.021139455795288087,
299
+ 0.02106470489501953,
300
+ 0.021028863906860353,
301
+ 0.02106060791015625,
302
+ 0.02109337615966797,
303
+ 0.021053440093994142,
304
+ 0.02201190376281738,
305
+ 0.02166476821899414,
306
+ 0.022009855270385743,
307
+ 0.02166579246520996,
308
+ 0.02131046485900879,
309
+ 0.02106982421875,
310
+ 0.021037055969238282,
311
+ 0.021045248031616212,
312
+ 0.02102681541442871,
313
+ 0.021163007736206055,
314
+ 0.021122047424316406,
315
+ 0.02102783966064453,
316
+ 0.021011455535888672,
317
+ 0.02109542465209961,
318
+ 0.020989952087402345,
319
+ 0.02110054397583008,
320
+ 0.02101862335205078,
321
+ 0.0210565128326416,
322
+ 0.021072895050048827,
323
+ 0.021073919296264648,
324
+ 0.02106470489501953,
325
+ 0.021144575119018554,
326
+ 0.021352447509765626,
327
+ 0.021729280471801758,
328
+ 0.02125209617614746,
329
+ 0.02104934310913086,
330
+ 0.020968448638916014,
331
+ 0.0210513916015625,
332
+ 0.021028863906860353,
333
+ 0.021086208343505858,
334
+ 0.020968448638916014,
335
+ 0.020968448638916014,
336
+ 0.02104422378540039,
337
+ 0.021014528274536134,
338
+ 0.021028863906860353,
339
+ 0.021999616622924805,
340
+ 0.021121023178100586,
341
+ 0.020993024826049804,
342
+ 0.02104934310913086,
343
+ 0.021131263732910157,
344
+ 0.021020671844482423,
345
+ 0.02102374458312988,
346
+ 0.02102374458312988,
347
+ 0.021028863906860353,
348
+ 0.020997119903564454,
349
+ 0.02105241584777832,
350
+ 0.02109644889831543,
351
+ 0.021126144409179686,
352
+ 0.02106368064880371,
353
+ 0.02104729652404785,
354
+ 0.021028863906860353,
355
+ 0.021194751739501954,
356
+ 0.020999168395996092,
357
+ 0.02104422378540039
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 47.31323514159983
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022945216178894043,
7
+ "prefill.throughput.value": 305.0744846082073,
8
+ "decode.latency.mean": 2.6843699951171875,
9
+ "decode.throughput.value": 47.31091475132352,
10
+ "per_token.latency.mean": 0.02113573500115102,
11
+ "per_token.throughput.value": 47.31323514159983
12
+ }
13
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.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: 66bc4def9505fa7c7fe4aa7a248c34a026bb552b
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
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/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
88
+ - hydra.run.dir=_benchmark/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${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/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1352.23296,
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": 13.3236796875,
120
+ "mean": 13.3236796875,
121
+ "stdev": 0.0,
122
+ "p50": 13.3236796875,
123
+ "p90": 13.3236796875,
124
+ "p95": 13.3236796875,
125
+ "p99": 13.3236796875,
126
+ "values": [
127
+ 13.3236796875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1925.300224,
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.02828015995025635,
147
+ "mean": 0.014140079975128174,
148
+ "stdev": 0.00019912004470825154,
149
+ "p50": 0.014140079975128174,
150
+ "p90": 0.014299376010894775,
151
+ "p95": 0.0143192880153656,
152
+ "p99": 0.014335217618942261,
153
+ "values": [
154
+ 0.013940959930419923,
155
+ 0.014339200019836426
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 495.0467049912529
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2098.917376,
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.127603271484375,
178
+ "mean": 1.5638016357421876,
179
+ "stdev": 0.0007906494140624831,
180
+ "p50": 1.5638016357421876,
181
+ "p90": 1.5644341552734375,
182
+ "p95": 1.5645132202148437,
183
+ "p99": 1.5645764721679687,
184
+ "values": [
185
+ 1.56459228515625,
186
+ 1.563010986328125
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.21234630869613
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.1273113613128674,
202
+ "mean": 0.01231224945398766,
203
+ "stdev": 3.8125105951386904e-05,
204
+ "p50": 0.012303359985351562,
205
+ "p90": 0.012331417655944824,
206
+ "p95": 0.01233996787071228,
207
+ "p99": 0.012517846765518188,
208
+ "values": [
209
+ 0.012301312446594239,
210
+ 0.012302335739135742,
211
+ 0.012317695617675782,
212
+ 0.012288000106811523,
213
+ 0.012354559898376465,
214
+ 0.012296192169189453,
215
+ 0.012329983711242675,
216
+ 0.012346367835998535,
217
+ 0.012337183952331543,
218
+ 0.01230128002166748,
219
+ 0.012305407524108887,
220
+ 0.012294143676757812,
221
+ 0.012297216415405274,
222
+ 0.012302335739135742,
223
+ 0.012302335739135742,
224
+ 0.012318719863891601,
225
+ 0.012305407524108887,
226
+ 0.012307456016540527,
227
+ 0.012312576293945313,
228
+ 0.012319744110107422,
229
+ 0.012337151527404786,
230
+ 0.01233510398864746,
231
+ 0.012308480262756348,
232
+ 0.012296192169189453,
233
+ 0.012295167922973632,
234
+ 0.012527615547180175,
235
+ 0.012509183883666992,
236
+ 0.012537856101989747,
237
+ 0.012697600364685058,
238
+ 0.012379136085510254,
239
+ 0.012397567749023437,
240
+ 0.012309503555297852,
241
+ 0.012308480262756348,
242
+ 0.012315648078918457,
243
+ 0.012315648078918457,
244
+ 0.012300288200378418,
245
+ 0.012304384231567383,
246
+ 0.012310527801513671,
247
+ 0.012300288200378418,
248
+ 0.012304384231567383,
249
+ 0.012304384231567383,
250
+ 0.012315648078918457,
251
+ 0.012337151527404786,
252
+ 0.012328960418701173,
253
+ 0.012301312446594239,
254
+ 0.012305407524108887,
255
+ 0.012303359985351562,
256
+ 0.012303359985351562,
257
+ 0.012295167922973632,
258
+ 0.012299263954162597,
259
+ 0.01244057559967041,
260
+ 0.012332032203674317,
261
+ 0.012309503555297852,
262
+ 0.012298239707946777,
263
+ 0.012311552047729492,
264
+ 0.012349439620971679,
265
+ 0.012292096138000488,
266
+ 0.012289024353027344,
267
+ 0.012296192169189453,
268
+ 0.012314623832702636,
269
+ 0.012299263954162597,
270
+ 0.012318719863891601,
271
+ 0.012295167922973632,
272
+ 0.012299263954162597,
273
+ 0.012307456016540527,
274
+ 0.01232588768005371,
275
+ 0.012307456016540527,
276
+ 0.012308480262756348,
277
+ 0.012329983711242675,
278
+ 0.012302335739135742,
279
+ 0.012298239707946777,
280
+ 0.012302335739135742,
281
+ 0.012301312446594239,
282
+ 0.012301312446594239,
283
+ 0.012312576293945313,
284
+ 0.012300288200378418,
285
+ 0.012300288200378418,
286
+ 0.012306431770324706,
287
+ 0.012306431770324706,
288
+ 0.012303359985351562,
289
+ 0.012308480262756348,
290
+ 0.012324864387512208,
291
+ 0.012306431770324706,
292
+ 0.012307456016540527,
293
+ 0.012302335739135742,
294
+ 0.012304384231567383,
295
+ 0.01229312038421631,
296
+ 0.012308480262756348,
297
+ 0.012294143676757812,
298
+ 0.012300288200378418,
299
+ 0.012312576293945313,
300
+ 0.012298239707946777,
301
+ 0.012291071891784668,
302
+ 0.012314623832702636,
303
+ 0.012338175773620605,
304
+ 0.012320768356323243,
305
+ 0.012296192169189453,
306
+ 0.012304384231567383,
307
+ 0.012299263954162597,
308
+ 0.01229312038421631,
309
+ 0.012298239707946777,
310
+ 0.012299263954162597,
311
+ 0.012290047645568849,
312
+ 0.012332032203674317,
313
+ 0.012304384231567383,
314
+ 0.012296192169189453,
315
+ 0.012312576293945313,
316
+ 0.012336128234863282,
317
+ 0.012313599586486817,
318
+ 0.012301312446594239,
319
+ 0.012295167922973632,
320
+ 0.012297216415405274,
321
+ 0.012298239707946777,
322
+ 0.012297216415405274,
323
+ 0.012297216415405274,
324
+ 0.012298239707946777,
325
+ 0.012296192169189453,
326
+ 0.012303359985351562,
327
+ 0.012304415702819824,
328
+ 0.012311519622802735,
329
+ 0.012332032203674317,
330
+ 0.012314623832702636,
331
+ 0.012304384231567383,
332
+ 0.012312576293945313,
333
+ 0.012303359985351562,
334
+ 0.012299263954162597,
335
+ 0.012296192169189453,
336
+ 0.012332032203674317,
337
+ 0.012297216415405274,
338
+ 0.01228492832183838,
339
+ 0.012292096138000488,
340
+ 0.012297216415405274,
341
+ 0.012294143676757812,
342
+ 0.012296192169189453,
343
+ 0.012298239707946777,
344
+ 0.012300288200378418,
345
+ 0.012294143676757812,
346
+ 0.012303359985351562,
347
+ 0.012363776206970215,
348
+ 0.012321791648864745,
349
+ 0.012289024353027344,
350
+ 0.012299263954162597,
351
+ 0.012303359985351562,
352
+ 0.012294143676757812,
353
+ 0.012299263954162597,
354
+ 0.012309503555297852,
355
+ 0.012306431770324706,
356
+ 0.012303359985351562,
357
+ 0.012306431770324706,
358
+ 0.012305407524108887,
359
+ 0.012316672325134278,
360
+ 0.012322815895080566,
361
+ 0.012317695617675782,
362
+ 0.012305407524108887,
363
+ 0.01229312038421631,
364
+ 0.012297216415405274,
365
+ 0.012291071891784668,
366
+ 0.012303359985351562,
367
+ 0.012308480262756348,
368
+ 0.012295167922973632,
369
+ 0.012290047645568849,
370
+ 0.012305407524108887,
371
+ 0.012305407524108887,
372
+ 0.012300288200378418,
373
+ 0.012328960418701173,
374
+ 0.012323840141296387,
375
+ 0.012305407524108887,
376
+ 0.012298239707946777,
377
+ 0.012295167922973632,
378
+ 0.012300288200378418,
379
+ 0.012321791648864745,
380
+ 0.012300288200378418,
381
+ 0.012289088249206543,
382
+ 0.012300224304199218,
383
+ 0.012302335739135742,
384
+ 0.012299263954162597,
385
+ 0.012291071891784668,
386
+ 0.012316672325134278,
387
+ 0.012311552047729492,
388
+ 0.012308480262756348,
389
+ 0.012304384231567383,
390
+ 0.012304384231567383,
391
+ 0.012300288200378418,
392
+ 0.012300288200378418,
393
+ 0.012305407524108887,
394
+ 0.012301312446594239,
395
+ 0.012296192169189453,
396
+ 0.012303359985351562,
397
+ 0.012308480262756348,
398
+ 0.012290047645568849,
399
+ 0.012303359985351562,
400
+ 0.012333056449890138,
401
+ 0.012283904075622559,
402
+ 0.012299263954162597,
403
+ 0.012302335739135742,
404
+ 0.012309503555297852,
405
+ 0.012302335739135742,
406
+ 0.01229312038421631,
407
+ 0.012292096138000488,
408
+ 0.012297216415405274,
409
+ 0.012302335739135742,
410
+ 0.012303359985351562,
411
+ 0.012298239707946777,
412
+ 0.012309503555297852,
413
+ 0.01234329605102539,
414
+ 0.012306431770324706,
415
+ 0.012300288200378418,
416
+ 0.012304384231567383,
417
+ 0.012302335739135742,
418
+ 0.012299263954162597,
419
+ 0.012321791648864745,
420
+ 0.012299263954162597,
421
+ 0.012396544456481933,
422
+ 0.01232588768005371,
423
+ 0.012313599586486817,
424
+ 0.012300288200378418,
425
+ 0.012315648078918457,
426
+ 0.012314623832702636,
427
+ 0.012305439949035645,
428
+ 0.012305376052856445,
429
+ 0.012301312446594239,
430
+ 0.012304384231567383,
431
+ 0.012299263954162597,
432
+ 0.01229312038421631,
433
+ 0.012308480262756348,
434
+ 0.012292096138000488,
435
+ 0.01229520034790039,
436
+ 0.012305376052856445,
437
+ 0.012312576293945313,
438
+ 0.012315648078918457,
439
+ 0.01233407974243164,
440
+ 0.012303359985351562,
441
+ 0.012295231819152833,
442
+ 0.012303296089172364,
443
+ 0.012313599586486817,
444
+ 0.012297216415405274,
445
+ 0.012297216415405274,
446
+ 0.012315648078918457,
447
+ 0.012294143676757812,
448
+ 0.012296192169189453,
449
+ 0.012328960418701173,
450
+ 0.012324864387512208,
451
+ 0.012329983711242675,
452
+ 0.012333056449890138,
453
+ 0.012305407524108887,
454
+ 0.012299263954162597,
455
+ 0.012298239707946777,
456
+ 0.012302335739135742,
457
+ 0.012301312446594239,
458
+ 0.012298239707946777,
459
+ 0.012292096138000488,
460
+ 0.012319744110107422,
461
+ 0.012303359985351562,
462
+ 0.012314623832702636
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.21992684903915
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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": 1352.23296,
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": 13.3236796875,
15
+ "mean": 13.3236796875,
16
+ "stdev": 0.0,
17
+ "p50": 13.3236796875,
18
+ "p90": 13.3236796875,
19
+ "p95": 13.3236796875,
20
+ "p99": 13.3236796875,
21
+ "values": [
22
+ 13.3236796875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1925.300224,
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.02828015995025635,
42
+ "mean": 0.014140079975128174,
43
+ "stdev": 0.00019912004470825154,
44
+ "p50": 0.014140079975128174,
45
+ "p90": 0.014299376010894775,
46
+ "p95": 0.0143192880153656,
47
+ "p99": 0.014335217618942261,
48
+ "values": [
49
+ 0.013940959930419923,
50
+ 0.014339200019836426
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 495.0467049912529
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2098.917376,
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.127603271484375,
73
+ "mean": 1.5638016357421876,
74
+ "stdev": 0.0007906494140624831,
75
+ "p50": 1.5638016357421876,
76
+ "p90": 1.5644341552734375,
77
+ "p95": 1.5645132202148437,
78
+ "p99": 1.5645764721679687,
79
+ "values": [
80
+ 1.56459228515625,
81
+ 1.563010986328125
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.21234630869613
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.1273113613128674,
97
+ "mean": 0.01231224945398766,
98
+ "stdev": 3.8125105951386904e-05,
99
+ "p50": 0.012303359985351562,
100
+ "p90": 0.012331417655944824,
101
+ "p95": 0.01233996787071228,
102
+ "p99": 0.012517846765518188,
103
+ "values": [
104
+ 0.012301312446594239,
105
+ 0.012302335739135742,
106
+ 0.012317695617675782,
107
+ 0.012288000106811523,
108
+ 0.012354559898376465,
109
+ 0.012296192169189453,
110
+ 0.012329983711242675,
111
+ 0.012346367835998535,
112
+ 0.012337183952331543,
113
+ 0.01230128002166748,
114
+ 0.012305407524108887,
115
+ 0.012294143676757812,
116
+ 0.012297216415405274,
117
+ 0.012302335739135742,
118
+ 0.012302335739135742,
119
+ 0.012318719863891601,
120
+ 0.012305407524108887,
121
+ 0.012307456016540527,
122
+ 0.012312576293945313,
123
+ 0.012319744110107422,
124
+ 0.012337151527404786,
125
+ 0.01233510398864746,
126
+ 0.012308480262756348,
127
+ 0.012296192169189453,
128
+ 0.012295167922973632,
129
+ 0.012527615547180175,
130
+ 0.012509183883666992,
131
+ 0.012537856101989747,
132
+ 0.012697600364685058,
133
+ 0.012379136085510254,
134
+ 0.012397567749023437,
135
+ 0.012309503555297852,
136
+ 0.012308480262756348,
137
+ 0.012315648078918457,
138
+ 0.012315648078918457,
139
+ 0.012300288200378418,
140
+ 0.012304384231567383,
141
+ 0.012310527801513671,
142
+ 0.012300288200378418,
143
+ 0.012304384231567383,
144
+ 0.012304384231567383,
145
+ 0.012315648078918457,
146
+ 0.012337151527404786,
147
+ 0.012328960418701173,
148
+ 0.012301312446594239,
149
+ 0.012305407524108887,
150
+ 0.012303359985351562,
151
+ 0.012303359985351562,
152
+ 0.012295167922973632,
153
+ 0.012299263954162597,
154
+ 0.01244057559967041,
155
+ 0.012332032203674317,
156
+ 0.012309503555297852,
157
+ 0.012298239707946777,
158
+ 0.012311552047729492,
159
+ 0.012349439620971679,
160
+ 0.012292096138000488,
161
+ 0.012289024353027344,
162
+ 0.012296192169189453,
163
+ 0.012314623832702636,
164
+ 0.012299263954162597,
165
+ 0.012318719863891601,
166
+ 0.012295167922973632,
167
+ 0.012299263954162597,
168
+ 0.012307456016540527,
169
+ 0.01232588768005371,
170
+ 0.012307456016540527,
171
+ 0.012308480262756348,
172
+ 0.012329983711242675,
173
+ 0.012302335739135742,
174
+ 0.012298239707946777,
175
+ 0.012302335739135742,
176
+ 0.012301312446594239,
177
+ 0.012301312446594239,
178
+ 0.012312576293945313,
179
+ 0.012300288200378418,
180
+ 0.012300288200378418,
181
+ 0.012306431770324706,
182
+ 0.012306431770324706,
183
+ 0.012303359985351562,
184
+ 0.012308480262756348,
185
+ 0.012324864387512208,
186
+ 0.012306431770324706,
187
+ 0.012307456016540527,
188
+ 0.012302335739135742,
189
+ 0.012304384231567383,
190
+ 0.01229312038421631,
191
+ 0.012308480262756348,
192
+ 0.012294143676757812,
193
+ 0.012300288200378418,
194
+ 0.012312576293945313,
195
+ 0.012298239707946777,
196
+ 0.012291071891784668,
197
+ 0.012314623832702636,
198
+ 0.012338175773620605,
199
+ 0.012320768356323243,
200
+ 0.012296192169189453,
201
+ 0.012304384231567383,
202
+ 0.012299263954162597,
203
+ 0.01229312038421631,
204
+ 0.012298239707946777,
205
+ 0.012299263954162597,
206
+ 0.012290047645568849,
207
+ 0.012332032203674317,
208
+ 0.012304384231567383,
209
+ 0.012296192169189453,
210
+ 0.012312576293945313,
211
+ 0.012336128234863282,
212
+ 0.012313599586486817,
213
+ 0.012301312446594239,
214
+ 0.012295167922973632,
215
+ 0.012297216415405274,
216
+ 0.012298239707946777,
217
+ 0.012297216415405274,
218
+ 0.012297216415405274,
219
+ 0.012298239707946777,
220
+ 0.012296192169189453,
221
+ 0.012303359985351562,
222
+ 0.012304415702819824,
223
+ 0.012311519622802735,
224
+ 0.012332032203674317,
225
+ 0.012314623832702636,
226
+ 0.012304384231567383,
227
+ 0.012312576293945313,
228
+ 0.012303359985351562,
229
+ 0.012299263954162597,
230
+ 0.012296192169189453,
231
+ 0.012332032203674317,
232
+ 0.012297216415405274,
233
+ 0.01228492832183838,
234
+ 0.012292096138000488,
235
+ 0.012297216415405274,
236
+ 0.012294143676757812,
237
+ 0.012296192169189453,
238
+ 0.012298239707946777,
239
+ 0.012300288200378418,
240
+ 0.012294143676757812,
241
+ 0.012303359985351562,
242
+ 0.012363776206970215,
243
+ 0.012321791648864745,
244
+ 0.012289024353027344,
245
+ 0.012299263954162597,
246
+ 0.012303359985351562,
247
+ 0.012294143676757812,
248
+ 0.012299263954162597,
249
+ 0.012309503555297852,
250
+ 0.012306431770324706,
251
+ 0.012303359985351562,
252
+ 0.012306431770324706,
253
+ 0.012305407524108887,
254
+ 0.012316672325134278,
255
+ 0.012322815895080566,
256
+ 0.012317695617675782,
257
+ 0.012305407524108887,
258
+ 0.01229312038421631,
259
+ 0.012297216415405274,
260
+ 0.012291071891784668,
261
+ 0.012303359985351562,
262
+ 0.012308480262756348,
263
+ 0.012295167922973632,
264
+ 0.012290047645568849,
265
+ 0.012305407524108887,
266
+ 0.012305407524108887,
267
+ 0.012300288200378418,
268
+ 0.012328960418701173,
269
+ 0.012323840141296387,
270
+ 0.012305407524108887,
271
+ 0.012298239707946777,
272
+ 0.012295167922973632,
273
+ 0.012300288200378418,
274
+ 0.012321791648864745,
275
+ 0.012300288200378418,
276
+ 0.012289088249206543,
277
+ 0.012300224304199218,
278
+ 0.012302335739135742,
279
+ 0.012299263954162597,
280
+ 0.012291071891784668,
281
+ 0.012316672325134278,
282
+ 0.012311552047729492,
283
+ 0.012308480262756348,
284
+ 0.012304384231567383,
285
+ 0.012304384231567383,
286
+ 0.012300288200378418,
287
+ 0.012300288200378418,
288
+ 0.012305407524108887,
289
+ 0.012301312446594239,
290
+ 0.012296192169189453,
291
+ 0.012303359985351562,
292
+ 0.012308480262756348,
293
+ 0.012290047645568849,
294
+ 0.012303359985351562,
295
+ 0.012333056449890138,
296
+ 0.012283904075622559,
297
+ 0.012299263954162597,
298
+ 0.012302335739135742,
299
+ 0.012309503555297852,
300
+ 0.012302335739135742,
301
+ 0.01229312038421631,
302
+ 0.012292096138000488,
303
+ 0.012297216415405274,
304
+ 0.012302335739135742,
305
+ 0.012303359985351562,
306
+ 0.012298239707946777,
307
+ 0.012309503555297852,
308
+ 0.01234329605102539,
309
+ 0.012306431770324706,
310
+ 0.012300288200378418,
311
+ 0.012304384231567383,
312
+ 0.012302335739135742,
313
+ 0.012299263954162597,
314
+ 0.012321791648864745,
315
+ 0.012299263954162597,
316
+ 0.012396544456481933,
317
+ 0.01232588768005371,
318
+ 0.012313599586486817,
319
+ 0.012300288200378418,
320
+ 0.012315648078918457,
321
+ 0.012314623832702636,
322
+ 0.012305439949035645,
323
+ 0.012305376052856445,
324
+ 0.012301312446594239,
325
+ 0.012304384231567383,
326
+ 0.012299263954162597,
327
+ 0.01229312038421631,
328
+ 0.012308480262756348,
329
+ 0.012292096138000488,
330
+ 0.01229520034790039,
331
+ 0.012305376052856445,
332
+ 0.012312576293945313,
333
+ 0.012315648078918457,
334
+ 0.01233407974243164,
335
+ 0.012303359985351562,
336
+ 0.012295231819152833,
337
+ 0.012303296089172364,
338
+ 0.012313599586486817,
339
+ 0.012297216415405274,
340
+ 0.012297216415405274,
341
+ 0.012315648078918457,
342
+ 0.012294143676757812,
343
+ 0.012296192169189453,
344
+ 0.012328960418701173,
345
+ 0.012324864387512208,
346
+ 0.012329983711242675,
347
+ 0.012333056449890138,
348
+ 0.012305407524108887,
349
+ 0.012299263954162597,
350
+ 0.012298239707946777,
351
+ 0.012302335739135742,
352
+ 0.012301312446594239,
353
+ 0.012298239707946777,
354
+ 0.012292096138000488,
355
+ 0.012319744110107422,
356
+ 0.012303359985351562,
357
+ 0.012314623832702636
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.21992684903915
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014140079975128174,
7
+ "prefill.throughput.value": 495.0467049912529,
8
+ "decode.latency.mean": 1.5638016357421876,
9
+ "decode.throughput.value": 81.21234630869613,
10
+ "per_token.latency.mean": 0.01231224945398766,
11
+ "per_token.throughput.value": 81.21992684903915
12
+ }
13
+ }
2024-09-08/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpbw7ndvc2/commit=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
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/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b
88
+ - hydra.run.dir=_benchmark/tmpbw7ndvc2/commit\=66bc4def9505fa7c7fe4aa7a248c34a026bb552b/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.4.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model_type: null
150
+ model: google/gemma-2b
151
+ processor: null
152
+ device: cuda
153
+ device_ids: '0'
154
+ seed: 42
155
+ inter_op_num_threads: null
156
+ intra_op_num_threads: null
157
+ model_kwargs: {}
158
+ processor_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ memory: true
192
+ latency: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ numactl: false
206
+ numactl_kwargs: {}
207
+ start_method: spawn
208
+ environment:
209
+ cpu: ' AMD EPYC 7R32'
210
+ cpu_count: 16
211
+ cpu_ram_mb: 66697.261056
212
+ system: Linux
213
+ machine: x86_64
214
+ platform: Linux-5.10.223-212.873.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: 66bc4def9505fa7c7fe4aa7a248c34a026bb552b
225
+ accelerate_version: 0.35.0.dev0
226
+ accelerate_commit: null
227
+ diffusers_version: null
228
+ diffusers_commit: null
229
+ optimum_version: 1.22.0.dev0
230
+ optimum_commit: null
231
+ timm_version: 0.9.16
232
+ timm_commit: null
233
+ peft_version: 0.12.1.dev0
234
+ peft_commit: null
2024-09-08/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.02079647922515869,
8
+ "prefill.throughput.value": 336.59543638192855,
9
+ "decode.latency.mean": 2.515798828125,
10
+ "decode.throughput.value": 50.4809838450604,
11
+ "per_token.latency.mean": 0.019808215719508374,
12
+ "per_token.throughput.value": 50.48410286723288
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022945216178894043,
21
+ "prefill.throughput.value": 305.0744846082073,
22
+ "decode.latency.mean": 2.6843699951171875,
23
+ "decode.throughput.value": 47.31091475132352,
24
+ "per_token.latency.mean": 0.02113573500115102,
25
+ "per_token.throughput.value": 47.31323514159983
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014140079975128174,
34
+ "prefill.throughput.value": 495.0467049912529,
35
+ "decode.latency.mean": 1.5638016357421876,
36
+ "decode.throughput.value": 81.21234630869613,
37
+ "per_token.latency.mean": 0.01231224945398766,
38
+ "per_token.throughput.value": 81.21992684903915
39
+ }
40
+ }
41
+ ]
2024-09-08/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "66bc4def9505fa7c7fe4aa7a248c34a026bb552b": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02079647922515869,
7
+ "prefill.throughput.value": 336.59543638192855,
8
+ "decode.latency.mean": 2.515798828125,
9
+ "decode.throughput.value": 50.4809838450604,
10
+ "per_token.latency.mean": 0.019808215719508374,
11
+ "per_token.throughput.value": 50.48410286723288
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "66bc4def9505fa7c7fe4aa7a248c34a026bb552b": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022945216178894043,
19
+ "prefill.throughput.value": 305.0744846082073,
20
+ "decode.latency.mean": 2.6843699951171875,
21
+ "decode.throughput.value": 47.31091475132352,
22
+ "per_token.latency.mean": 0.02113573500115102,
23
+ "per_token.throughput.value": 47.31323514159983
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "66bc4def9505fa7c7fe4aa7a248c34a026bb552b": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014140079975128174,
31
+ "prefill.throughput.value": 495.0467049912529,
32
+ "decode.latency.mean": 1.5638016357421876,
33
+ "decode.throughput.value": 81.21234630869613,
34
+ "per_token.latency.mean": 0.01231224945398766,
35
+ "per_token.throughput.value": 81.21992684903915
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }