hf-transformers-bot commited on
Commit
b4003e7
1 Parent(s): 7f828b2

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/multirun.yaml +234 -0
  31. 2024-09-06/summaries.json +41 -0
  32. 2024-09-06/summary.json +40 -0
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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: 21fac7abba2a37fae86106f87fcf9974fd1e3830
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830
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/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830
88
+ - hydra.run.dir=_benchmark/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830/${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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
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": 1320.177664,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.47491796875,
120
+ "mean": 11.47491796875,
121
+ "stdev": 0.0,
122
+ "p50": 11.47491796875,
123
+ "p90": 11.47491796875,
124
+ "p95": 11.47491796875,
125
+ "p99": 11.47491796875,
126
+ "values": [
127
+ 11.47491796875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1714.552832,
138
+ "max_global_vram": 6789.005312,
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.041583614349365236,
147
+ "mean": 0.020791807174682618,
148
+ "stdev": 9.632110595703472e-06,
149
+ "p50": 0.020791807174682618,
150
+ "p90": 0.02079951286315918,
151
+ "p95": 0.02080047607421875,
152
+ "p99": 0.020801246643066405,
153
+ "values": [
154
+ 0.02080143928527832,
155
+ 0.020782175064086913
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 336.6710715037618
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1769.005056,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.801344
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 4.9354223632812495,
178
+ "mean": 2.4677111816406248,
179
+ "stdev": 0.0018029785156248312,
180
+ "p50": 2.4677111816406248,
181
+ "p90": 2.469153564453125,
182
+ "p95": 2.4693338623046874,
183
+ "p99": 2.4694781005859374,
184
+ "values": [
185
+ 2.46951416015625,
186
+ 2.465908203125
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 51.46469365817995
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 4.935103500366212,
202
+ "mean": 0.01942954134002445,
203
+ "stdev": 0.00040601325824417495,
204
+ "p50": 0.019390975952148438,
205
+ "p90": 0.01957969970703125,
206
+ "p95": 0.019771494579315187,
207
+ "p99": 0.02045730752944946,
208
+ "values": [
209
+ 0.01927987289428711,
210
+ 0.01927577590942383,
211
+ 0.019339263916015623,
212
+ 0.01928704071044922,
213
+ 0.019339263916015623,
214
+ 0.019305471420288087,
215
+ 0.019323904037475585,
216
+ 0.019334144592285156,
217
+ 0.019438592910766602,
218
+ 0.019389471054077147,
219
+ 0.019461088180541992,
220
+ 0.019200031280517577,
221
+ 0.019382240295410157,
222
+ 0.01939148712158203,
223
+ 0.019400703430175782,
224
+ 0.019358720779418945,
225
+ 0.019349504470825195,
226
+ 0.01946931266784668,
227
+ 0.01940377616882324,
228
+ 0.019975168228149414,
229
+ 0.019332096099853514,
230
+ 0.01942118453979492,
231
+ 0.01942937660217285,
232
+ 0.019388416290283202,
233
+ 0.019359743118286133,
234
+ 0.019518463134765626,
235
+ 0.01944576072692871,
236
+ 0.019376127243041993,
237
+ 0.019364864349365234,
238
+ 0.019173376083374022,
239
+ 0.01927987289428711,
240
+ 0.019689472198486328,
241
+ 0.019364864349365234,
242
+ 0.019335168838500977,
243
+ 0.019393535614013673,
244
+ 0.019340288162231444,
245
+ 0.019318784713745117,
246
+ 0.01923481559753418,
247
+ 0.019353599548339845,
248
+ 0.019342336654663086,
249
+ 0.01938739204406738,
250
+ 0.019289087295532227,
251
+ 0.019397632598876953,
252
+ 0.02042265510559082,
253
+ 0.020082687377929686,
254
+ 0.0196945915222168,
255
+ 0.019384319305419923,
256
+ 0.019323904037475585,
257
+ 0.019277824401855468,
258
+ 0.019357696533203125,
259
+ 0.019380224227905272,
260
+ 0.019309568405151366,
261
+ 0.0194150390625,
262
+ 0.0192225284576416,
263
+ 0.0190248966217041,
264
+ 0.019142656326293944,
265
+ 0.019376127243041993,
266
+ 0.01943449592590332,
267
+ 0.01942630386352539,
268
+ 0.019787776947021486,
269
+ 0.019549184799194336,
270
+ 0.019298303604125978,
271
+ 0.019414016723632813,
272
+ 0.019327999114990235,
273
+ 0.01926655960083008,
274
+ 0.01945497512817383,
275
+ 0.01945395278930664,
276
+ 0.019559423446655275,
277
+ 0.019398656845092774,
278
+ 0.019571712493896484,
279
+ 0.019482624053955077,
280
+ 0.019494911193847657,
281
+ 0.01957683181762695,
282
+ 0.01946214485168457,
283
+ 0.019467264175415038,
284
+ 0.019499008178710937,
285
+ 0.019364864349365234,
286
+ 0.019517440795898438,
287
+ 0.019481599807739256,
288
+ 0.01945292854309082,
289
+ 0.01959219169616699,
290
+ 0.019563583374023436,
291
+ 0.019453887939453126,
292
+ 0.020048896789550782,
293
+ 0.019561471939086913,
294
+ 0.019525632858276368,
295
+ 0.019482624053955077,
296
+ 0.019322879791259767,
297
+ 0.019482624053955077,
298
+ 0.019514368057250975,
299
+ 0.019417087554931642,
300
+ 0.019451904296875,
301
+ 0.01942118453979492,
302
+ 0.019487743377685548,
303
+ 0.019486719131469727,
304
+ 0.01945702362060547,
305
+ 0.019580928802490235,
306
+ 0.0194467830657959,
307
+ 0.019561471939086913,
308
+ 0.019775487899780272,
309
+ 0.019508224487304687,
310
+ 0.019422208786010742,
311
+ 0.019360767364501954,
312
+ 0.019509248733520508,
313
+ 0.019551231384277345,
314
+ 0.019537919998168944,
315
+ 0.01944268798828125,
316
+ 0.019396608352661132,
317
+ 0.019514368057250975,
318
+ 0.019522560119628905,
319
+ 0.01960140800476074,
320
+ 0.019779584884643556,
321
+ 0.019315711975097655,
322
+ 0.01909350395202637,
323
+ 0.01925324821472168,
324
+ 0.019375104904174805,
325
+ 0.01926348876953125,
326
+ 0.019547136306762695,
327
+ 0.019466239929199217,
328
+ 0.019371007919311522,
329
+ 0.019501056671142578,
330
+ 0.01941913604736328,
331
+ 0.01946316719055176,
332
+ 0.01944166374206543,
333
+ 0.019525632858276368,
334
+ 0.019560447692871095,
335
+ 0.019571712493896484,
336
+ 0.01963007926940918,
337
+ 0.019304447174072266,
338
+ 0.019324928283691405,
339
+ 0.019353599548339845,
340
+ 0.01948876762390137,
341
+ 0.019277824401855468,
342
+ 0.019325952529907226,
343
+ 0.019312639236450196,
344
+ 0.019364864349365234,
345
+ 0.019302400588989257,
346
+ 0.019017728805541992,
347
+ 0.02058137512207031,
348
+ 0.019372032165527343,
349
+ 0.019318784713745117,
350
+ 0.01943244743347168,
351
+ 0.01942937660217285,
352
+ 0.019398656845092774,
353
+ 0.019390464782714844,
354
+ 0.019170303344726563,
355
+ 0.01941196823120117,
356
+ 0.01921023941040039,
357
+ 0.01942527961730957,
358
+ 0.019389440536499023,
359
+ 0.01940377616882324,
360
+ 0.019382272720336914,
361
+ 0.019389440536499023,
362
+ 0.01923583984375,
363
+ 0.01925017547607422,
364
+ 0.019323904037475585,
365
+ 0.019381248474121093,
366
+ 0.019323904037475585,
367
+ 0.019364864349365234,
368
+ 0.019178495407104493,
369
+ 0.01924198341369629,
370
+ 0.019510271072387696,
371
+ 0.019430400848388672,
372
+ 0.01927987289428711,
373
+ 0.019219455718994142,
374
+ 0.020339712142944336,
375
+ 0.019894271850585937,
376
+ 0.01946419143676758,
377
+ 0.019359743118286133,
378
+ 0.01942835235595703,
379
+ 0.019075071334838867,
380
+ 0.01928704071044922,
381
+ 0.019280895233154297,
382
+ 0.019281919479370118,
383
+ 0.019345407485961915,
384
+ 0.019300352096557616,
385
+ 0.01941196823120117,
386
+ 0.019288063049316406,
387
+ 0.019355648040771483,
388
+ 0.01922764778137207,
389
+ 0.019322879791259767,
390
+ 0.01939558410644531,
391
+ 0.019341312408447265,
392
+ 0.019339263916015623,
393
+ 0.019536895751953123,
394
+ 0.019769344329833984,
395
+ 0.019591167449951173,
396
+ 0.01922355270385742,
397
+ 0.019132415771484376,
398
+ 0.01925734329223633,
399
+ 0.019982336044311523,
400
+ 0.020496383666992187,
401
+ 0.024896511077880858,
402
+ 0.019718143463134767,
403
+ 0.019195903778076173,
404
+ 0.019147775650024415,
405
+ 0.019135488510131835,
406
+ 0.01909760093688965,
407
+ 0.019112960815429687,
408
+ 0.01904332733154297,
409
+ 0.019082239151000976,
410
+ 0.019112960815429687,
411
+ 0.019170303344726563,
412
+ 0.019125247955322267,
413
+ 0.019106815338134766,
414
+ 0.01965977668762207,
415
+ 0.019198976516723632,
416
+ 0.019104768753051758,
417
+ 0.019183616638183593,
418
+ 0.019212287902832033,
419
+ 0.01920921516418457,
420
+ 0.01948467254638672,
421
+ 0.01945395278930664,
422
+ 0.019563520431518554,
423
+ 0.01946214485168457,
424
+ 0.019390464782714844,
425
+ 0.0194201602935791,
426
+ 0.0194703369140625,
427
+ 0.019323904037475585,
428
+ 0.019152896881103516,
429
+ 0.019164159774780275,
430
+ 0.019329023361206055,
431
+ 0.019119104385375976,
432
+ 0.019174400329589843,
433
+ 0.0194150390625,
434
+ 0.019526655197143555,
435
+ 0.019503103256225587,
436
+ 0.01944473648071289,
437
+ 0.01945395278930664,
438
+ 0.01918156814575195,
439
+ 0.019611648559570313,
440
+ 0.019512319564819337,
441
+ 0.01962188720703125,
442
+ 0.019582975387573243,
443
+ 0.019528703689575197,
444
+ 0.019475456237792968,
445
+ 0.0194201602935791,
446
+ 0.019557376861572266,
447
+ 0.019501056671142578,
448
+ 0.019341312408447265,
449
+ 0.019519487380981446,
450
+ 0.019548160552978516,
451
+ 0.019511295318603517,
452
+ 0.019514368057250975,
453
+ 0.01947238349914551,
454
+ 0.01945292854309082,
455
+ 0.01924608039855957,
456
+ 0.019148799896240236,
457
+ 0.019129344940185547,
458
+ 0.019133440017700197,
459
+ 0.019136512756347656,
460
+ 0.019115007400512696,
461
+ 0.019142656326293944,
462
+ 0.019105791091918945
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 51.46801885333345
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": 1320.177664,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.47491796875,
15
+ "mean": 11.47491796875,
16
+ "stdev": 0.0,
17
+ "p50": 11.47491796875,
18
+ "p90": 11.47491796875,
19
+ "p95": 11.47491796875,
20
+ "p99": 11.47491796875,
21
+ "values": [
22
+ 11.47491796875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1714.552832,
33
+ "max_global_vram": 6789.005312,
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.041583614349365236,
42
+ "mean": 0.020791807174682618,
43
+ "stdev": 9.632110595703472e-06,
44
+ "p50": 0.020791807174682618,
45
+ "p90": 0.02079951286315918,
46
+ "p95": 0.02080047607421875,
47
+ "p99": 0.020801246643066405,
48
+ "values": [
49
+ 0.02080143928527832,
50
+ 0.020782175064086913
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 336.6710715037618
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1769.005056,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.801344
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 4.9354223632812495,
73
+ "mean": 2.4677111816406248,
74
+ "stdev": 0.0018029785156248312,
75
+ "p50": 2.4677111816406248,
76
+ "p90": 2.469153564453125,
77
+ "p95": 2.4693338623046874,
78
+ "p99": 2.4694781005859374,
79
+ "values": [
80
+ 2.46951416015625,
81
+ 2.465908203125
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 51.46469365817995
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 4.935103500366212,
97
+ "mean": 0.01942954134002445,
98
+ "stdev": 0.00040601325824417495,
99
+ "p50": 0.019390975952148438,
100
+ "p90": 0.01957969970703125,
101
+ "p95": 0.019771494579315187,
102
+ "p99": 0.02045730752944946,
103
+ "values": [
104
+ 0.01927987289428711,
105
+ 0.01927577590942383,
106
+ 0.019339263916015623,
107
+ 0.01928704071044922,
108
+ 0.019339263916015623,
109
+ 0.019305471420288087,
110
+ 0.019323904037475585,
111
+ 0.019334144592285156,
112
+ 0.019438592910766602,
113
+ 0.019389471054077147,
114
+ 0.019461088180541992,
115
+ 0.019200031280517577,
116
+ 0.019382240295410157,
117
+ 0.01939148712158203,
118
+ 0.019400703430175782,
119
+ 0.019358720779418945,
120
+ 0.019349504470825195,
121
+ 0.01946931266784668,
122
+ 0.01940377616882324,
123
+ 0.019975168228149414,
124
+ 0.019332096099853514,
125
+ 0.01942118453979492,
126
+ 0.01942937660217285,
127
+ 0.019388416290283202,
128
+ 0.019359743118286133,
129
+ 0.019518463134765626,
130
+ 0.01944576072692871,
131
+ 0.019376127243041993,
132
+ 0.019364864349365234,
133
+ 0.019173376083374022,
134
+ 0.01927987289428711,
135
+ 0.019689472198486328,
136
+ 0.019364864349365234,
137
+ 0.019335168838500977,
138
+ 0.019393535614013673,
139
+ 0.019340288162231444,
140
+ 0.019318784713745117,
141
+ 0.01923481559753418,
142
+ 0.019353599548339845,
143
+ 0.019342336654663086,
144
+ 0.01938739204406738,
145
+ 0.019289087295532227,
146
+ 0.019397632598876953,
147
+ 0.02042265510559082,
148
+ 0.020082687377929686,
149
+ 0.0196945915222168,
150
+ 0.019384319305419923,
151
+ 0.019323904037475585,
152
+ 0.019277824401855468,
153
+ 0.019357696533203125,
154
+ 0.019380224227905272,
155
+ 0.019309568405151366,
156
+ 0.0194150390625,
157
+ 0.0192225284576416,
158
+ 0.0190248966217041,
159
+ 0.019142656326293944,
160
+ 0.019376127243041993,
161
+ 0.01943449592590332,
162
+ 0.01942630386352539,
163
+ 0.019787776947021486,
164
+ 0.019549184799194336,
165
+ 0.019298303604125978,
166
+ 0.019414016723632813,
167
+ 0.019327999114990235,
168
+ 0.01926655960083008,
169
+ 0.01945497512817383,
170
+ 0.01945395278930664,
171
+ 0.019559423446655275,
172
+ 0.019398656845092774,
173
+ 0.019571712493896484,
174
+ 0.019482624053955077,
175
+ 0.019494911193847657,
176
+ 0.01957683181762695,
177
+ 0.01946214485168457,
178
+ 0.019467264175415038,
179
+ 0.019499008178710937,
180
+ 0.019364864349365234,
181
+ 0.019517440795898438,
182
+ 0.019481599807739256,
183
+ 0.01945292854309082,
184
+ 0.01959219169616699,
185
+ 0.019563583374023436,
186
+ 0.019453887939453126,
187
+ 0.020048896789550782,
188
+ 0.019561471939086913,
189
+ 0.019525632858276368,
190
+ 0.019482624053955077,
191
+ 0.019322879791259767,
192
+ 0.019482624053955077,
193
+ 0.019514368057250975,
194
+ 0.019417087554931642,
195
+ 0.019451904296875,
196
+ 0.01942118453979492,
197
+ 0.019487743377685548,
198
+ 0.019486719131469727,
199
+ 0.01945702362060547,
200
+ 0.019580928802490235,
201
+ 0.0194467830657959,
202
+ 0.019561471939086913,
203
+ 0.019775487899780272,
204
+ 0.019508224487304687,
205
+ 0.019422208786010742,
206
+ 0.019360767364501954,
207
+ 0.019509248733520508,
208
+ 0.019551231384277345,
209
+ 0.019537919998168944,
210
+ 0.01944268798828125,
211
+ 0.019396608352661132,
212
+ 0.019514368057250975,
213
+ 0.019522560119628905,
214
+ 0.01960140800476074,
215
+ 0.019779584884643556,
216
+ 0.019315711975097655,
217
+ 0.01909350395202637,
218
+ 0.01925324821472168,
219
+ 0.019375104904174805,
220
+ 0.01926348876953125,
221
+ 0.019547136306762695,
222
+ 0.019466239929199217,
223
+ 0.019371007919311522,
224
+ 0.019501056671142578,
225
+ 0.01941913604736328,
226
+ 0.01946316719055176,
227
+ 0.01944166374206543,
228
+ 0.019525632858276368,
229
+ 0.019560447692871095,
230
+ 0.019571712493896484,
231
+ 0.01963007926940918,
232
+ 0.019304447174072266,
233
+ 0.019324928283691405,
234
+ 0.019353599548339845,
235
+ 0.01948876762390137,
236
+ 0.019277824401855468,
237
+ 0.019325952529907226,
238
+ 0.019312639236450196,
239
+ 0.019364864349365234,
240
+ 0.019302400588989257,
241
+ 0.019017728805541992,
242
+ 0.02058137512207031,
243
+ 0.019372032165527343,
244
+ 0.019318784713745117,
245
+ 0.01943244743347168,
246
+ 0.01942937660217285,
247
+ 0.019398656845092774,
248
+ 0.019390464782714844,
249
+ 0.019170303344726563,
250
+ 0.01941196823120117,
251
+ 0.01921023941040039,
252
+ 0.01942527961730957,
253
+ 0.019389440536499023,
254
+ 0.01940377616882324,
255
+ 0.019382272720336914,
256
+ 0.019389440536499023,
257
+ 0.01923583984375,
258
+ 0.01925017547607422,
259
+ 0.019323904037475585,
260
+ 0.019381248474121093,
261
+ 0.019323904037475585,
262
+ 0.019364864349365234,
263
+ 0.019178495407104493,
264
+ 0.01924198341369629,
265
+ 0.019510271072387696,
266
+ 0.019430400848388672,
267
+ 0.01927987289428711,
268
+ 0.019219455718994142,
269
+ 0.020339712142944336,
270
+ 0.019894271850585937,
271
+ 0.01946419143676758,
272
+ 0.019359743118286133,
273
+ 0.01942835235595703,
274
+ 0.019075071334838867,
275
+ 0.01928704071044922,
276
+ 0.019280895233154297,
277
+ 0.019281919479370118,
278
+ 0.019345407485961915,
279
+ 0.019300352096557616,
280
+ 0.01941196823120117,
281
+ 0.019288063049316406,
282
+ 0.019355648040771483,
283
+ 0.01922764778137207,
284
+ 0.019322879791259767,
285
+ 0.01939558410644531,
286
+ 0.019341312408447265,
287
+ 0.019339263916015623,
288
+ 0.019536895751953123,
289
+ 0.019769344329833984,
290
+ 0.019591167449951173,
291
+ 0.01922355270385742,
292
+ 0.019132415771484376,
293
+ 0.01925734329223633,
294
+ 0.019982336044311523,
295
+ 0.020496383666992187,
296
+ 0.024896511077880858,
297
+ 0.019718143463134767,
298
+ 0.019195903778076173,
299
+ 0.019147775650024415,
300
+ 0.019135488510131835,
301
+ 0.01909760093688965,
302
+ 0.019112960815429687,
303
+ 0.01904332733154297,
304
+ 0.019082239151000976,
305
+ 0.019112960815429687,
306
+ 0.019170303344726563,
307
+ 0.019125247955322267,
308
+ 0.019106815338134766,
309
+ 0.01965977668762207,
310
+ 0.019198976516723632,
311
+ 0.019104768753051758,
312
+ 0.019183616638183593,
313
+ 0.019212287902832033,
314
+ 0.01920921516418457,
315
+ 0.01948467254638672,
316
+ 0.01945395278930664,
317
+ 0.019563520431518554,
318
+ 0.01946214485168457,
319
+ 0.019390464782714844,
320
+ 0.0194201602935791,
321
+ 0.0194703369140625,
322
+ 0.019323904037475585,
323
+ 0.019152896881103516,
324
+ 0.019164159774780275,
325
+ 0.019329023361206055,
326
+ 0.019119104385375976,
327
+ 0.019174400329589843,
328
+ 0.0194150390625,
329
+ 0.019526655197143555,
330
+ 0.019503103256225587,
331
+ 0.01944473648071289,
332
+ 0.01945395278930664,
333
+ 0.01918156814575195,
334
+ 0.019611648559570313,
335
+ 0.019512319564819337,
336
+ 0.01962188720703125,
337
+ 0.019582975387573243,
338
+ 0.019528703689575197,
339
+ 0.019475456237792968,
340
+ 0.0194201602935791,
341
+ 0.019557376861572266,
342
+ 0.019501056671142578,
343
+ 0.019341312408447265,
344
+ 0.019519487380981446,
345
+ 0.019548160552978516,
346
+ 0.019511295318603517,
347
+ 0.019514368057250975,
348
+ 0.01947238349914551,
349
+ 0.01945292854309082,
350
+ 0.01924608039855957,
351
+ 0.019148799896240236,
352
+ 0.019129344940185547,
353
+ 0.019133440017700197,
354
+ 0.019136512756347656,
355
+ 0.019115007400512696,
356
+ 0.019142656326293944,
357
+ 0.019105791091918945
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 51.46801885333345
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020791807174682618,
7
+ "prefill.throughput.value": 336.6710715037618,
8
+ "decode.latency.mean": 2.4677111816406248,
9
+ "decode.throughput.value": 51.46469365817995,
10
+ "per_token.latency.mean": 0.01942954134002445,
11
+ "per_token.throughput.value": 51.46801885333345
12
+ }
13
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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: 21fac7abba2a37fae86106f87fcf9974fd1e3830
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830
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/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830
88
+ - hydra.run.dir=_benchmark/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830/${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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06 02:42:19,965][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-09-06 02:42:22,355][process][ERROR] - + Received traceback from isolated process
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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: 21fac7abba2a37fae86106f87fcf9974fd1e3830
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830
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/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830
88
+ - hydra.run.dir=_benchmark/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830/${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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
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": 1320.558592,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.6163466796875,
120
+ "mean": 11.6163466796875,
121
+ "stdev": 0.0,
122
+ "p50": 11.6163466796875,
123
+ "p90": 11.6163466796875,
124
+ "p95": 11.6163466796875,
125
+ "p99": 11.6163466796875,
126
+ "values": [
127
+ 11.6163466796875
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1771.589632,
138
+ "max_global_vram": 6789.005312,
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.04353465461730957,
147
+ "mean": 0.021767327308654785,
148
+ "stdev": 2.950382232666006e-05,
149
+ "p50": 0.021767327308654785,
150
+ "p90": 0.021790930366516113,
151
+ "p95": 0.021793880748748776,
152
+ "p99": 0.02179624105453491,
153
+ "values": [
154
+ 0.021737823486328123,
155
+ 0.021796831130981444
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 321.582888920716
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1796.149248,
169
+ "max_global_vram": 6793.199616,
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.2549873046875,
178
+ "mean": 2.62749365234375,
179
+ "stdev": 0.007569091796875149,
180
+ "p50": 2.62749365234375,
181
+ "p90": 2.63354892578125,
182
+ "p95": 2.6343058349609376,
183
+ "p99": 2.634911362304688,
184
+ "values": [
185
+ 2.635062744140625,
186
+ 2.619924560546875
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 48.33503589503052
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.254720504760744,
202
+ "mean": 0.02068787600299505,
203
+ "stdev": 0.0005377315890624552,
204
+ "p50": 0.020782591819763184,
205
+ "p90": 0.021212877082824707,
206
+ "p95": 0.021294458389282227,
207
+ "p99": 0.021822361125946047,
208
+ "values": [
209
+ 0.021082111358642578,
210
+ 0.021223424911499023,
211
+ 0.021294111251831054,
212
+ 0.021081056594848633,
213
+ 0.02128895950317383,
214
+ 0.02127359962463379,
215
+ 0.02022502326965332,
216
+ 0.020192256927490236,
217
+ 0.02068992042541504,
218
+ 0.02127052879333496,
219
+ 0.021301248550415038,
220
+ 0.020213760375976563,
221
+ 0.021161983489990235,
222
+ 0.020229120254516602,
223
+ 0.020523008346557618,
224
+ 0.021145599365234375,
225
+ 0.02106572723388672,
226
+ 0.020142080307006836,
227
+ 0.02011238479614258,
228
+ 0.020130815505981444,
229
+ 0.02052403259277344,
230
+ 0.02107596778869629,
231
+ 0.021128192901611328,
232
+ 0.021195775985717775,
233
+ 0.021142528533935546,
234
+ 0.02106777572631836,
235
+ 0.021151744842529296,
236
+ 0.020143104553222657,
237
+ 0.021142528533935546,
238
+ 0.02105036735534668,
239
+ 0.02107904052734375,
240
+ 0.02109337615966797,
241
+ 0.020188159942626953,
242
+ 0.021160959243774414,
243
+ 0.021158912658691405,
244
+ 0.021121023178100586,
245
+ 0.021248031616210937,
246
+ 0.02111280059814453,
247
+ 0.021114879608154297,
248
+ 0.02091110420227051,
249
+ 0.020133888244628906,
250
+ 0.020184064865112306,
251
+ 0.02085171127319336,
252
+ 0.021149696350097655,
253
+ 0.021188608169555666,
254
+ 0.02110054397583008,
255
+ 0.020494335174560546,
256
+ 0.021073919296264648,
257
+ 0.021121023178100586,
258
+ 0.021081087112426757,
259
+ 0.02104934310913086,
260
+ 0.0210882568359375,
261
+ 0.02107494354248047,
262
+ 0.02089574432373047,
263
+ 0.021110784530639647,
264
+ 0.0210831356048584,
265
+ 0.02107699203491211,
266
+ 0.020160512924194338,
267
+ 0.021158912658691405,
268
+ 0.0218603515625,
269
+ 0.021295103073120117,
270
+ 0.020752384185791017,
271
+ 0.02110054397583008,
272
+ 0.021073919296264648,
273
+ 0.021046335220336915,
274
+ 0.02014201545715332,
275
+ 0.020121599197387697,
276
+ 0.020113407135009767,
277
+ 0.020537343978881836,
278
+ 0.02111692810058594,
279
+ 0.021046272277832033,
280
+ 0.020847616195678712,
281
+ 0.020133888244628906,
282
+ 0.02012876892089844,
283
+ 0.020593664169311524,
284
+ 0.021081087112426757,
285
+ 0.021158912658691405,
286
+ 0.02010316848754883,
287
+ 0.020134912490844727,
288
+ 0.020147199630737304,
289
+ 0.02007961654663086,
290
+ 0.02010419273376465,
291
+ 0.020590591430664062,
292
+ 0.021788671493530275,
293
+ 0.021339136123657225,
294
+ 0.02025881576538086,
295
+ 0.020563968658447264,
296
+ 0.021327871322631836,
297
+ 0.021329919815063478,
298
+ 0.021163007736206055,
299
+ 0.020199424743652345,
300
+ 0.020172800064086914,
301
+ 0.020171775817871093,
302
+ 0.020105215072631837,
303
+ 0.02110054397583008,
304
+ 0.02107084846496582,
305
+ 0.0211015682220459,
306
+ 0.02088140869140625,
307
+ 0.02126643180847168,
308
+ 0.021086208343505858,
309
+ 0.021157888412475585,
310
+ 0.020180992126464844,
311
+ 0.020915199279785156,
312
+ 0.021153791427612305,
313
+ 0.021104639053344726,
314
+ 0.020165632247924805,
315
+ 0.02020147132873535,
316
+ 0.02021683120727539,
317
+ 0.020756479263305663,
318
+ 0.021215232849121093,
319
+ 0.02109337615966797,
320
+ 0.02020147132873535,
321
+ 0.020156415939331054,
322
+ 0.020152320861816408,
323
+ 0.020113407135009767,
324
+ 0.020178943634033202,
325
+ 0.02018611145019531,
326
+ 0.020083711624145507,
327
+ 0.020170751571655272,
328
+ 0.02016972732543945,
329
+ 0.020162559509277343,
330
+ 0.02007756805419922,
331
+ 0.020082687377929686,
332
+ 0.02112512016296387,
333
+ 0.020989952087402345,
334
+ 0.020068351745605468,
335
+ 0.020076543807983398,
336
+ 0.020035648345947267,
337
+ 0.020082624435424804,
338
+ 0.020099071502685546,
339
+ 0.020813823699951172,
340
+ 0.021120000839233398,
341
+ 0.021212160110473634,
342
+ 0.020105215072631837,
343
+ 0.020122623443603514,
344
+ 0.020099071502685546,
345
+ 0.02008678436279297,
346
+ 0.02004172706604004,
347
+ 0.02004684829711914,
348
+ 0.0200581111907959,
349
+ 0.020115455627441405,
350
+ 0.020024320602416993,
351
+ 0.02003660774230957,
352
+ 0.020122623443603514,
353
+ 0.020143104553222657,
354
+ 0.020132863998413086,
355
+ 0.02042163276672363,
356
+ 0.02106879997253418,
357
+ 0.020117504119873047,
358
+ 0.02007040023803711,
359
+ 0.02090291213989258,
360
+ 0.020178943634033202,
361
+ 0.020102144241333008,
362
+ 0.0200898551940918,
363
+ 0.020082687377929686,
364
+ 0.020105215072631837,
365
+ 0.020311040878295897,
366
+ 0.021150720596313476,
367
+ 0.021105663299560547,
368
+ 0.020108287811279296,
369
+ 0.020150272369384766,
370
+ 0.020320255279541014,
371
+ 0.020200447082519533,
372
+ 0.020113407135009767,
373
+ 0.02008166313171387,
374
+ 0.020884479522705078,
375
+ 0.021167104721069335,
376
+ 0.02107904052734375,
377
+ 0.020967424392700194,
378
+ 0.02108518409729004,
379
+ 0.020144128799438478,
380
+ 0.021213184356689452,
381
+ 0.021122047424316406,
382
+ 0.021204992294311522,
383
+ 0.021138431549072266,
384
+ 0.021090303421020508,
385
+ 0.021646335601806642,
386
+ 0.021090368270874023,
387
+ 0.021075904846191405,
388
+ 0.021123071670532227,
389
+ 0.020757503509521484,
390
+ 0.021136383056640624,
391
+ 0.021104639053344726,
392
+ 0.021128192901611328,
393
+ 0.021194751739501954,
394
+ 0.02109337615966797,
395
+ 0.021173248291015623,
396
+ 0.020984832763671874,
397
+ 0.021141504287719725,
398
+ 0.021147647857666017,
399
+ 0.021113855361938477,
400
+ 0.020136959075927736,
401
+ 0.02027622413635254,
402
+ 0.020149248123168945,
403
+ 0.020237312316894532,
404
+ 0.021173248291015623,
405
+ 0.021279743194580078,
406
+ 0.02171392059326172,
407
+ 0.021529600143432616,
408
+ 0.021142528533935546,
409
+ 0.020144128799438478,
410
+ 0.020124671936035156,
411
+ 0.020197376251220703,
412
+ 0.020174848556518556,
413
+ 0.02019327926635742,
414
+ 0.0204769287109375,
415
+ 0.021118976593017577,
416
+ 0.021113855361938477,
417
+ 0.021178367614746094,
418
+ 0.021161983489990235,
419
+ 0.021142528533935546,
420
+ 0.020125696182250977,
421
+ 0.02009600067138672,
422
+ 0.020130815505981444,
423
+ 0.02006937599182129,
424
+ 0.02011238479614258,
425
+ 0.020230144500732423,
426
+ 0.020807680130004884,
427
+ 0.021145599365234375,
428
+ 0.02125209617614746,
429
+ 0.020737024307250978,
430
+ 0.020156415939331054,
431
+ 0.02038374328613281,
432
+ 0.020180992126464844,
433
+ 0.020185087203979494,
434
+ 0.020141056060791016,
435
+ 0.020182016372680665,
436
+ 0.02064588737487793,
437
+ 0.02110361671447754,
438
+ 0.021213184356689452,
439
+ 0.020144128799438478,
440
+ 0.020238336563110353,
441
+ 0.020180992126464844,
442
+ 0.02017791938781738,
443
+ 0.020163583755493163,
444
+ 0.020158464431762696,
445
+ 0.020130815505981444,
446
+ 0.02091929626464844,
447
+ 0.021139455795288087,
448
+ 0.020164608001708984,
449
+ 0.02011136054992676,
450
+ 0.020204544067382812,
451
+ 0.020566015243530272,
452
+ 0.021160959243774414,
453
+ 0.021195775985717775,
454
+ 0.02349875259399414,
455
+ 0.022443008422851563,
456
+ 0.02149171257019043,
457
+ 0.021213184356689452,
458
+ 0.02011238479614258,
459
+ 0.020142080307006836,
460
+ 0.020164608001708984,
461
+ 0.020107263565063475,
462
+ 0.021209087371826172
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 48.33749002822846
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": 1320.558592,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.6163466796875,
15
+ "mean": 11.6163466796875,
16
+ "stdev": 0.0,
17
+ "p50": 11.6163466796875,
18
+ "p90": 11.6163466796875,
19
+ "p95": 11.6163466796875,
20
+ "p99": 11.6163466796875,
21
+ "values": [
22
+ 11.6163466796875
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1771.589632,
33
+ "max_global_vram": 6789.005312,
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.04353465461730957,
42
+ "mean": 0.021767327308654785,
43
+ "stdev": 2.950382232666006e-05,
44
+ "p50": 0.021767327308654785,
45
+ "p90": 0.021790930366516113,
46
+ "p95": 0.021793880748748776,
47
+ "p99": 0.02179624105453491,
48
+ "values": [
49
+ 0.021737823486328123,
50
+ 0.021796831130981444
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 321.582888920716
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1796.149248,
64
+ "max_global_vram": 6793.199616,
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.2549873046875,
73
+ "mean": 2.62749365234375,
74
+ "stdev": 0.007569091796875149,
75
+ "p50": 2.62749365234375,
76
+ "p90": 2.63354892578125,
77
+ "p95": 2.6343058349609376,
78
+ "p99": 2.634911362304688,
79
+ "values": [
80
+ 2.635062744140625,
81
+ 2.619924560546875
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 48.33503589503052
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.254720504760744,
97
+ "mean": 0.02068787600299505,
98
+ "stdev": 0.0005377315890624552,
99
+ "p50": 0.020782591819763184,
100
+ "p90": 0.021212877082824707,
101
+ "p95": 0.021294458389282227,
102
+ "p99": 0.021822361125946047,
103
+ "values": [
104
+ 0.021082111358642578,
105
+ 0.021223424911499023,
106
+ 0.021294111251831054,
107
+ 0.021081056594848633,
108
+ 0.02128895950317383,
109
+ 0.02127359962463379,
110
+ 0.02022502326965332,
111
+ 0.020192256927490236,
112
+ 0.02068992042541504,
113
+ 0.02127052879333496,
114
+ 0.021301248550415038,
115
+ 0.020213760375976563,
116
+ 0.021161983489990235,
117
+ 0.020229120254516602,
118
+ 0.020523008346557618,
119
+ 0.021145599365234375,
120
+ 0.02106572723388672,
121
+ 0.020142080307006836,
122
+ 0.02011238479614258,
123
+ 0.020130815505981444,
124
+ 0.02052403259277344,
125
+ 0.02107596778869629,
126
+ 0.021128192901611328,
127
+ 0.021195775985717775,
128
+ 0.021142528533935546,
129
+ 0.02106777572631836,
130
+ 0.021151744842529296,
131
+ 0.020143104553222657,
132
+ 0.021142528533935546,
133
+ 0.02105036735534668,
134
+ 0.02107904052734375,
135
+ 0.02109337615966797,
136
+ 0.020188159942626953,
137
+ 0.021160959243774414,
138
+ 0.021158912658691405,
139
+ 0.021121023178100586,
140
+ 0.021248031616210937,
141
+ 0.02111280059814453,
142
+ 0.021114879608154297,
143
+ 0.02091110420227051,
144
+ 0.020133888244628906,
145
+ 0.020184064865112306,
146
+ 0.02085171127319336,
147
+ 0.021149696350097655,
148
+ 0.021188608169555666,
149
+ 0.02110054397583008,
150
+ 0.020494335174560546,
151
+ 0.021073919296264648,
152
+ 0.021121023178100586,
153
+ 0.021081087112426757,
154
+ 0.02104934310913086,
155
+ 0.0210882568359375,
156
+ 0.02107494354248047,
157
+ 0.02089574432373047,
158
+ 0.021110784530639647,
159
+ 0.0210831356048584,
160
+ 0.02107699203491211,
161
+ 0.020160512924194338,
162
+ 0.021158912658691405,
163
+ 0.0218603515625,
164
+ 0.021295103073120117,
165
+ 0.020752384185791017,
166
+ 0.02110054397583008,
167
+ 0.021073919296264648,
168
+ 0.021046335220336915,
169
+ 0.02014201545715332,
170
+ 0.020121599197387697,
171
+ 0.020113407135009767,
172
+ 0.020537343978881836,
173
+ 0.02111692810058594,
174
+ 0.021046272277832033,
175
+ 0.020847616195678712,
176
+ 0.020133888244628906,
177
+ 0.02012876892089844,
178
+ 0.020593664169311524,
179
+ 0.021081087112426757,
180
+ 0.021158912658691405,
181
+ 0.02010316848754883,
182
+ 0.020134912490844727,
183
+ 0.020147199630737304,
184
+ 0.02007961654663086,
185
+ 0.02010419273376465,
186
+ 0.020590591430664062,
187
+ 0.021788671493530275,
188
+ 0.021339136123657225,
189
+ 0.02025881576538086,
190
+ 0.020563968658447264,
191
+ 0.021327871322631836,
192
+ 0.021329919815063478,
193
+ 0.021163007736206055,
194
+ 0.020199424743652345,
195
+ 0.020172800064086914,
196
+ 0.020171775817871093,
197
+ 0.020105215072631837,
198
+ 0.02110054397583008,
199
+ 0.02107084846496582,
200
+ 0.0211015682220459,
201
+ 0.02088140869140625,
202
+ 0.02126643180847168,
203
+ 0.021086208343505858,
204
+ 0.021157888412475585,
205
+ 0.020180992126464844,
206
+ 0.020915199279785156,
207
+ 0.021153791427612305,
208
+ 0.021104639053344726,
209
+ 0.020165632247924805,
210
+ 0.02020147132873535,
211
+ 0.02021683120727539,
212
+ 0.020756479263305663,
213
+ 0.021215232849121093,
214
+ 0.02109337615966797,
215
+ 0.02020147132873535,
216
+ 0.020156415939331054,
217
+ 0.020152320861816408,
218
+ 0.020113407135009767,
219
+ 0.020178943634033202,
220
+ 0.02018611145019531,
221
+ 0.020083711624145507,
222
+ 0.020170751571655272,
223
+ 0.02016972732543945,
224
+ 0.020162559509277343,
225
+ 0.02007756805419922,
226
+ 0.020082687377929686,
227
+ 0.02112512016296387,
228
+ 0.020989952087402345,
229
+ 0.020068351745605468,
230
+ 0.020076543807983398,
231
+ 0.020035648345947267,
232
+ 0.020082624435424804,
233
+ 0.020099071502685546,
234
+ 0.020813823699951172,
235
+ 0.021120000839233398,
236
+ 0.021212160110473634,
237
+ 0.020105215072631837,
238
+ 0.020122623443603514,
239
+ 0.020099071502685546,
240
+ 0.02008678436279297,
241
+ 0.02004172706604004,
242
+ 0.02004684829711914,
243
+ 0.0200581111907959,
244
+ 0.020115455627441405,
245
+ 0.020024320602416993,
246
+ 0.02003660774230957,
247
+ 0.020122623443603514,
248
+ 0.020143104553222657,
249
+ 0.020132863998413086,
250
+ 0.02042163276672363,
251
+ 0.02106879997253418,
252
+ 0.020117504119873047,
253
+ 0.02007040023803711,
254
+ 0.02090291213989258,
255
+ 0.020178943634033202,
256
+ 0.020102144241333008,
257
+ 0.0200898551940918,
258
+ 0.020082687377929686,
259
+ 0.020105215072631837,
260
+ 0.020311040878295897,
261
+ 0.021150720596313476,
262
+ 0.021105663299560547,
263
+ 0.020108287811279296,
264
+ 0.020150272369384766,
265
+ 0.020320255279541014,
266
+ 0.020200447082519533,
267
+ 0.020113407135009767,
268
+ 0.02008166313171387,
269
+ 0.020884479522705078,
270
+ 0.021167104721069335,
271
+ 0.02107904052734375,
272
+ 0.020967424392700194,
273
+ 0.02108518409729004,
274
+ 0.020144128799438478,
275
+ 0.021213184356689452,
276
+ 0.021122047424316406,
277
+ 0.021204992294311522,
278
+ 0.021138431549072266,
279
+ 0.021090303421020508,
280
+ 0.021646335601806642,
281
+ 0.021090368270874023,
282
+ 0.021075904846191405,
283
+ 0.021123071670532227,
284
+ 0.020757503509521484,
285
+ 0.021136383056640624,
286
+ 0.021104639053344726,
287
+ 0.021128192901611328,
288
+ 0.021194751739501954,
289
+ 0.02109337615966797,
290
+ 0.021173248291015623,
291
+ 0.020984832763671874,
292
+ 0.021141504287719725,
293
+ 0.021147647857666017,
294
+ 0.021113855361938477,
295
+ 0.020136959075927736,
296
+ 0.02027622413635254,
297
+ 0.020149248123168945,
298
+ 0.020237312316894532,
299
+ 0.021173248291015623,
300
+ 0.021279743194580078,
301
+ 0.02171392059326172,
302
+ 0.021529600143432616,
303
+ 0.021142528533935546,
304
+ 0.020144128799438478,
305
+ 0.020124671936035156,
306
+ 0.020197376251220703,
307
+ 0.020174848556518556,
308
+ 0.02019327926635742,
309
+ 0.0204769287109375,
310
+ 0.021118976593017577,
311
+ 0.021113855361938477,
312
+ 0.021178367614746094,
313
+ 0.021161983489990235,
314
+ 0.021142528533935546,
315
+ 0.020125696182250977,
316
+ 0.02009600067138672,
317
+ 0.020130815505981444,
318
+ 0.02006937599182129,
319
+ 0.02011238479614258,
320
+ 0.020230144500732423,
321
+ 0.020807680130004884,
322
+ 0.021145599365234375,
323
+ 0.02125209617614746,
324
+ 0.020737024307250978,
325
+ 0.020156415939331054,
326
+ 0.02038374328613281,
327
+ 0.020180992126464844,
328
+ 0.020185087203979494,
329
+ 0.020141056060791016,
330
+ 0.020182016372680665,
331
+ 0.02064588737487793,
332
+ 0.02110361671447754,
333
+ 0.021213184356689452,
334
+ 0.020144128799438478,
335
+ 0.020238336563110353,
336
+ 0.020180992126464844,
337
+ 0.02017791938781738,
338
+ 0.020163583755493163,
339
+ 0.020158464431762696,
340
+ 0.020130815505981444,
341
+ 0.02091929626464844,
342
+ 0.021139455795288087,
343
+ 0.020164608001708984,
344
+ 0.02011136054992676,
345
+ 0.020204544067382812,
346
+ 0.020566015243530272,
347
+ 0.021160959243774414,
348
+ 0.021195775985717775,
349
+ 0.02349875259399414,
350
+ 0.022443008422851563,
351
+ 0.02149171257019043,
352
+ 0.021213184356689452,
353
+ 0.02011238479614258,
354
+ 0.020142080307006836,
355
+ 0.020164608001708984,
356
+ 0.020107263565063475,
357
+ 0.021209087371826172
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 48.33749002822846
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.021767327308654785,
7
+ "prefill.throughput.value": 321.582888920716,
8
+ "decode.latency.mean": 2.62749365234375,
9
+ "decode.throughput.value": 48.33503589503052,
10
+ "per_token.latency.mean": 0.02068787600299505,
11
+ "per_token.throughput.value": 48.33749002822846
12
+ }
13
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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: 21fac7abba2a37fae86106f87fcf9974fd1e3830
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830
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/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830
88
+ - hydra.run.dir=_benchmark/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830/${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/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
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": 1338.195968,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 12.598423828125,
120
+ "mean": 12.598423828125,
121
+ "stdev": 0.0,
122
+ "p50": 12.598423828125,
123
+ "p90": 12.598423828125,
124
+ "p95": 12.598423828125,
125
+ "p99": 12.598423828125,
126
+ "values": [
127
+ 12.598423828125
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1868.722176,
138
+ "max_global_vram": 6789.005312,
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.028350751876831056,
147
+ "mean": 0.014175375938415528,
148
+ "stdev": 0.000168527603149414,
149
+ "p50": 0.014175375938415528,
150
+ "p90": 0.014310198020935059,
151
+ "p95": 0.014327050781250001,
152
+ "p99": 0.014340532989501954,
153
+ "values": [
154
+ 0.014006848335266114,
155
+ 0.014343903541564942
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 493.8140639381473
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2038.325248,
169
+ "max_global_vram": 6071.779328,
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.13422509765625,
178
+ "mean": 1.567112548828125,
179
+ "stdev": 0.0010578613281249094,
180
+ "p50": 1.567112548828125,
181
+ "p90": 1.5679588378906248,
182
+ "p95": 1.5680646240234375,
183
+ "p99": 1.5681492529296874,
184
+ "values": [
185
+ 1.5660546875,
186
+ 1.56817041015625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.04076512881582
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.1339376611709624,
202
+ "mean": 0.012338337248704563,
203
+ "stdev": 5.936671891165477e-05,
204
+ "p50": 0.012323840141296387,
205
+ "p90": 0.012357631683349609,
206
+ "p95": 0.012379903936386109,
207
+ "p99": 0.012672911186218262,
208
+ "values": [
209
+ 0.012360704421997071,
210
+ 0.012326911926269531,
211
+ 0.012333056449890138,
212
+ 0.012333056449890138,
213
+ 0.012322815895080566,
214
+ 0.012336128234863282,
215
+ 0.012324864387512208,
216
+ 0.012336128234863282,
217
+ 0.012337151527404786,
218
+ 0.01235148811340332,
219
+ 0.012327936172485352,
220
+ 0.012345343589782716,
221
+ 0.012336128234863282,
222
+ 0.012321791648864745,
223
+ 0.01235968017578125,
224
+ 0.012320768356323243,
225
+ 0.012323840141296387,
226
+ 0.012311552047729492,
227
+ 0.012327936172485352,
228
+ 0.012311552047729492,
229
+ 0.012319744110107422,
230
+ 0.012352512359619141,
231
+ 0.012346367835998535,
232
+ 0.012338175773620605,
233
+ 0.012309503555297852,
234
+ 0.01237299156188965,
235
+ 0.012309503555297852,
236
+ 0.012319744110107422,
237
+ 0.012323840141296387,
238
+ 0.012317695617675782,
239
+ 0.012327936172485352,
240
+ 0.012322815895080566,
241
+ 0.012345343589782716,
242
+ 0.012353535652160644,
243
+ 0.012357631683349609,
244
+ 0.01231984043121338,
245
+ 0.012317600250244141,
246
+ 0.012320768356323243,
247
+ 0.012339200019836426,
248
+ 0.012344320297241211,
249
+ 0.012324864387512208,
250
+ 0.01233407974243164,
251
+ 0.012321791648864745,
252
+ 0.012332032203674317,
253
+ 0.012321791648864745,
254
+ 0.012362751960754394,
255
+ 0.012354559898376465,
256
+ 0.012318719863891601,
257
+ 0.01232588768005371,
258
+ 0.012317695617675782,
259
+ 0.012349439620971679,
260
+ 0.012325984001159668,
261
+ 0.01232374382019043,
262
+ 0.012344320297241211,
263
+ 0.01233414363861084,
264
+ 0.012339200019836426,
265
+ 0.012325823783874512,
266
+ 0.012353535652160644,
267
+ 0.012357631683349609,
268
+ 0.01232588768005371,
269
+ 0.012328960418701173,
270
+ 0.012324864387512208,
271
+ 0.012318719863891601,
272
+ 0.012315648078918457,
273
+ 0.012318719863891601,
274
+ 0.012321791648864745,
275
+ 0.012318719863891601,
276
+ 0.012347392082214356,
277
+ 0.012323840141296387,
278
+ 0.012349439620971679,
279
+ 0.012347392082214356,
280
+ 0.012322815895080566,
281
+ 0.012332032203674317,
282
+ 0.012319744110107422,
283
+ 0.012316672325134278,
284
+ 0.012326911926269531,
285
+ 0.012313599586486817,
286
+ 0.012323840141296387,
287
+ 0.012327936172485352,
288
+ 0.012320768356323243,
289
+ 0.012317695617675782,
290
+ 0.012378111839294433,
291
+ 0.012354559898376465,
292
+ 0.012323840141296387,
293
+ 0.012337151527404786,
294
+ 0.012316672325134278,
295
+ 0.012322815895080566,
296
+ 0.012308480262756348,
297
+ 0.012333056449890138,
298
+ 0.012322815895080566,
299
+ 0.012316703796386719,
300
+ 0.0123156156539917,
301
+ 0.012327936172485352,
302
+ 0.012336128234863282,
303
+ 0.01235148811340332,
304
+ 0.01234227180480957,
305
+ 0.012317695617675782,
306
+ 0.012317695617675782,
307
+ 0.012317695617675782,
308
+ 0.01232588768005371,
309
+ 0.012319744110107422,
310
+ 0.012313599586486817,
311
+ 0.012321791648864745,
312
+ 0.012314623832702636,
313
+ 0.012310527801513671,
314
+ 0.012320768356323243,
315
+ 0.01234329605102539,
316
+ 0.012337151527404786,
317
+ 0.012321791648864745,
318
+ 0.012337151527404786,
319
+ 0.012310527801513671,
320
+ 0.012320768356323243,
321
+ 0.012313599586486817,
322
+ 0.012312576293945313,
323
+ 0.012315648078918457,
324
+ 0.012322815895080566,
325
+ 0.012323840141296387,
326
+ 0.012321791648864745,
327
+ 0.012357631683349609,
328
+ 0.012413951873779297,
329
+ 0.012327936172485352,
330
+ 0.012320768356323243,
331
+ 0.012317695617675782,
332
+ 0.012326911926269531,
333
+ 0.012315648078918457,
334
+ 0.012326911926269531,
335
+ 0.012311552047729492,
336
+ 0.012375040054321289,
337
+ 0.012323840141296387,
338
+ 0.012320768356323243,
339
+ 0.012314623832702636,
340
+ 0.012327936172485352,
341
+ 0.012318719863891601,
342
+ 0.012307488441467285,
343
+ 0.012765151977539062,
344
+ 0.012424192428588866,
345
+ 0.01253990364074707,
346
+ 0.012431360244750977,
347
+ 0.01239244842529297,
348
+ 0.0124334077835083,
349
+ 0.012336128234863282,
350
+ 0.012327936172485352,
351
+ 0.012329983711242675,
352
+ 0.012313599586486817,
353
+ 0.012345343589782716,
354
+ 0.012319744110107422,
355
+ 0.012307456016540527,
356
+ 0.012316672325134278,
357
+ 0.012316672325134278,
358
+ 0.012332032203674317,
359
+ 0.012317695617675782,
360
+ 0.012316672325134278,
361
+ 0.012312576293945313,
362
+ 0.012323840141296387,
363
+ 0.012316672325134278,
364
+ 0.012305472373962402,
365
+ 0.012338111877441407,
366
+ 0.012378111839294433,
367
+ 0.012316672325134278,
368
+ 0.012321791648864745,
369
+ 0.012314623832702636,
370
+ 0.012314623832702636,
371
+ 0.012309503555297852,
372
+ 0.012333056449890138,
373
+ 0.01234329605102539,
374
+ 0.012313599586486817,
375
+ 0.012317695617675782,
376
+ 0.012328960418701173,
377
+ 0.012374015808105468,
378
+ 0.012383232116699219,
379
+ 0.012322815895080566,
380
+ 0.012312576293945313,
381
+ 0.012316672325134278,
382
+ 0.012327936172485352,
383
+ 0.012318719863891601,
384
+ 0.012331007957458496,
385
+ 0.012313599586486817,
386
+ 0.012331007957458496,
387
+ 0.012337151527404786,
388
+ 0.012322815895080566,
389
+ 0.012326911926269531,
390
+ 0.012357631683349609,
391
+ 0.012321791648864745,
392
+ 0.012324864387512208,
393
+ 0.012319744110107422,
394
+ 0.012328960418701173,
395
+ 0.012324864387512208,
396
+ 0.012319744110107422,
397
+ 0.012317695617675782,
398
+ 0.012321791648864745,
399
+ 0.012313599586486817,
400
+ 0.012326911926269531,
401
+ 0.012317695617675782,
402
+ 0.012357631683349609,
403
+ 0.012322879791259766,
404
+ 0.012311488151550294,
405
+ 0.012329983711242675,
406
+ 0.012344320297241211,
407
+ 0.012323840141296387,
408
+ 0.012321791648864745,
409
+ 0.012320768356323243,
410
+ 0.012323840141296387,
411
+ 0.012324864387512208,
412
+ 0.012311552047729492,
413
+ 0.012313599586486817,
414
+ 0.012720128059387208,
415
+ 0.0126310396194458,
416
+ 0.012898303985595704,
417
+ 0.0124334077835083,
418
+ 0.012328960418701173,
419
+ 0.012323840141296387,
420
+ 0.012323840141296387,
421
+ 0.012321791648864745,
422
+ 0.012395520210266114,
423
+ 0.012371968269348145,
424
+ 0.012323840141296387,
425
+ 0.012336128234863282,
426
+ 0.012364800453186036,
427
+ 0.012333056449890138,
428
+ 0.012323840141296387,
429
+ 0.012315648078918457,
430
+ 0.012316672325134278,
431
+ 0.012314623832702636,
432
+ 0.012318719863891601,
433
+ 0.012314623832702636,
434
+ 0.0123504638671875,
435
+ 0.01236684799194336,
436
+ 0.01232588768005371,
437
+ 0.012324864387512208,
438
+ 0.01233510398864746,
439
+ 0.012327936172485352,
440
+ 0.012338175773620605,
441
+ 0.012331007957458496,
442
+ 0.012320768356323243,
443
+ 0.012311552047729492,
444
+ 0.012316672325134278,
445
+ 0.012316672325134278,
446
+ 0.012337151527404786,
447
+ 0.012374015808105468,
448
+ 0.012318719863891601,
449
+ 0.012322815895080566,
450
+ 0.012314623832702636,
451
+ 0.01233510398864746,
452
+ 0.012333056449890138,
453
+ 0.012311552047729492,
454
+ 0.01233407974243164,
455
+ 0.012311552047729492,
456
+ 0.012311552047729492,
457
+ 0.012331007957458496,
458
+ 0.012348416328430176,
459
+ 0.0123504638671875,
460
+ 0.012320768356323243,
461
+ 0.012318719863891601,
462
+ 0.012316672325134278
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.048197973758
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
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-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": 1338.195968,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 12.598423828125,
15
+ "mean": 12.598423828125,
16
+ "stdev": 0.0,
17
+ "p50": 12.598423828125,
18
+ "p90": 12.598423828125,
19
+ "p95": 12.598423828125,
20
+ "p99": 12.598423828125,
21
+ "values": [
22
+ 12.598423828125
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1868.722176,
33
+ "max_global_vram": 6789.005312,
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.028350751876831056,
42
+ "mean": 0.014175375938415528,
43
+ "stdev": 0.000168527603149414,
44
+ "p50": 0.014175375938415528,
45
+ "p90": 0.014310198020935059,
46
+ "p95": 0.014327050781250001,
47
+ "p99": 0.014340532989501954,
48
+ "values": [
49
+ 0.014006848335266114,
50
+ 0.014343903541564942
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 493.8140639381473
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2038.325248,
64
+ "max_global_vram": 6071.779328,
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.13422509765625,
73
+ "mean": 1.567112548828125,
74
+ "stdev": 0.0010578613281249094,
75
+ "p50": 1.567112548828125,
76
+ "p90": 1.5679588378906248,
77
+ "p95": 1.5680646240234375,
78
+ "p99": 1.5681492529296874,
79
+ "values": [
80
+ 1.5660546875,
81
+ 1.56817041015625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.04076512881582
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.1339376611709624,
97
+ "mean": 0.012338337248704563,
98
+ "stdev": 5.936671891165477e-05,
99
+ "p50": 0.012323840141296387,
100
+ "p90": 0.012357631683349609,
101
+ "p95": 0.012379903936386109,
102
+ "p99": 0.012672911186218262,
103
+ "values": [
104
+ 0.012360704421997071,
105
+ 0.012326911926269531,
106
+ 0.012333056449890138,
107
+ 0.012333056449890138,
108
+ 0.012322815895080566,
109
+ 0.012336128234863282,
110
+ 0.012324864387512208,
111
+ 0.012336128234863282,
112
+ 0.012337151527404786,
113
+ 0.01235148811340332,
114
+ 0.012327936172485352,
115
+ 0.012345343589782716,
116
+ 0.012336128234863282,
117
+ 0.012321791648864745,
118
+ 0.01235968017578125,
119
+ 0.012320768356323243,
120
+ 0.012323840141296387,
121
+ 0.012311552047729492,
122
+ 0.012327936172485352,
123
+ 0.012311552047729492,
124
+ 0.012319744110107422,
125
+ 0.012352512359619141,
126
+ 0.012346367835998535,
127
+ 0.012338175773620605,
128
+ 0.012309503555297852,
129
+ 0.01237299156188965,
130
+ 0.012309503555297852,
131
+ 0.012319744110107422,
132
+ 0.012323840141296387,
133
+ 0.012317695617675782,
134
+ 0.012327936172485352,
135
+ 0.012322815895080566,
136
+ 0.012345343589782716,
137
+ 0.012353535652160644,
138
+ 0.012357631683349609,
139
+ 0.01231984043121338,
140
+ 0.012317600250244141,
141
+ 0.012320768356323243,
142
+ 0.012339200019836426,
143
+ 0.012344320297241211,
144
+ 0.012324864387512208,
145
+ 0.01233407974243164,
146
+ 0.012321791648864745,
147
+ 0.012332032203674317,
148
+ 0.012321791648864745,
149
+ 0.012362751960754394,
150
+ 0.012354559898376465,
151
+ 0.012318719863891601,
152
+ 0.01232588768005371,
153
+ 0.012317695617675782,
154
+ 0.012349439620971679,
155
+ 0.012325984001159668,
156
+ 0.01232374382019043,
157
+ 0.012344320297241211,
158
+ 0.01233414363861084,
159
+ 0.012339200019836426,
160
+ 0.012325823783874512,
161
+ 0.012353535652160644,
162
+ 0.012357631683349609,
163
+ 0.01232588768005371,
164
+ 0.012328960418701173,
165
+ 0.012324864387512208,
166
+ 0.012318719863891601,
167
+ 0.012315648078918457,
168
+ 0.012318719863891601,
169
+ 0.012321791648864745,
170
+ 0.012318719863891601,
171
+ 0.012347392082214356,
172
+ 0.012323840141296387,
173
+ 0.012349439620971679,
174
+ 0.012347392082214356,
175
+ 0.012322815895080566,
176
+ 0.012332032203674317,
177
+ 0.012319744110107422,
178
+ 0.012316672325134278,
179
+ 0.012326911926269531,
180
+ 0.012313599586486817,
181
+ 0.012323840141296387,
182
+ 0.012327936172485352,
183
+ 0.012320768356323243,
184
+ 0.012317695617675782,
185
+ 0.012378111839294433,
186
+ 0.012354559898376465,
187
+ 0.012323840141296387,
188
+ 0.012337151527404786,
189
+ 0.012316672325134278,
190
+ 0.012322815895080566,
191
+ 0.012308480262756348,
192
+ 0.012333056449890138,
193
+ 0.012322815895080566,
194
+ 0.012316703796386719,
195
+ 0.0123156156539917,
196
+ 0.012327936172485352,
197
+ 0.012336128234863282,
198
+ 0.01235148811340332,
199
+ 0.01234227180480957,
200
+ 0.012317695617675782,
201
+ 0.012317695617675782,
202
+ 0.012317695617675782,
203
+ 0.01232588768005371,
204
+ 0.012319744110107422,
205
+ 0.012313599586486817,
206
+ 0.012321791648864745,
207
+ 0.012314623832702636,
208
+ 0.012310527801513671,
209
+ 0.012320768356323243,
210
+ 0.01234329605102539,
211
+ 0.012337151527404786,
212
+ 0.012321791648864745,
213
+ 0.012337151527404786,
214
+ 0.012310527801513671,
215
+ 0.012320768356323243,
216
+ 0.012313599586486817,
217
+ 0.012312576293945313,
218
+ 0.012315648078918457,
219
+ 0.012322815895080566,
220
+ 0.012323840141296387,
221
+ 0.012321791648864745,
222
+ 0.012357631683349609,
223
+ 0.012413951873779297,
224
+ 0.012327936172485352,
225
+ 0.012320768356323243,
226
+ 0.012317695617675782,
227
+ 0.012326911926269531,
228
+ 0.012315648078918457,
229
+ 0.012326911926269531,
230
+ 0.012311552047729492,
231
+ 0.012375040054321289,
232
+ 0.012323840141296387,
233
+ 0.012320768356323243,
234
+ 0.012314623832702636,
235
+ 0.012327936172485352,
236
+ 0.012318719863891601,
237
+ 0.012307488441467285,
238
+ 0.012765151977539062,
239
+ 0.012424192428588866,
240
+ 0.01253990364074707,
241
+ 0.012431360244750977,
242
+ 0.01239244842529297,
243
+ 0.0124334077835083,
244
+ 0.012336128234863282,
245
+ 0.012327936172485352,
246
+ 0.012329983711242675,
247
+ 0.012313599586486817,
248
+ 0.012345343589782716,
249
+ 0.012319744110107422,
250
+ 0.012307456016540527,
251
+ 0.012316672325134278,
252
+ 0.012316672325134278,
253
+ 0.012332032203674317,
254
+ 0.012317695617675782,
255
+ 0.012316672325134278,
256
+ 0.012312576293945313,
257
+ 0.012323840141296387,
258
+ 0.012316672325134278,
259
+ 0.012305472373962402,
260
+ 0.012338111877441407,
261
+ 0.012378111839294433,
262
+ 0.012316672325134278,
263
+ 0.012321791648864745,
264
+ 0.012314623832702636,
265
+ 0.012314623832702636,
266
+ 0.012309503555297852,
267
+ 0.012333056449890138,
268
+ 0.01234329605102539,
269
+ 0.012313599586486817,
270
+ 0.012317695617675782,
271
+ 0.012328960418701173,
272
+ 0.012374015808105468,
273
+ 0.012383232116699219,
274
+ 0.012322815895080566,
275
+ 0.012312576293945313,
276
+ 0.012316672325134278,
277
+ 0.012327936172485352,
278
+ 0.012318719863891601,
279
+ 0.012331007957458496,
280
+ 0.012313599586486817,
281
+ 0.012331007957458496,
282
+ 0.012337151527404786,
283
+ 0.012322815895080566,
284
+ 0.012326911926269531,
285
+ 0.012357631683349609,
286
+ 0.012321791648864745,
287
+ 0.012324864387512208,
288
+ 0.012319744110107422,
289
+ 0.012328960418701173,
290
+ 0.012324864387512208,
291
+ 0.012319744110107422,
292
+ 0.012317695617675782,
293
+ 0.012321791648864745,
294
+ 0.012313599586486817,
295
+ 0.012326911926269531,
296
+ 0.012317695617675782,
297
+ 0.012357631683349609,
298
+ 0.012322879791259766,
299
+ 0.012311488151550294,
300
+ 0.012329983711242675,
301
+ 0.012344320297241211,
302
+ 0.012323840141296387,
303
+ 0.012321791648864745,
304
+ 0.012320768356323243,
305
+ 0.012323840141296387,
306
+ 0.012324864387512208,
307
+ 0.012311552047729492,
308
+ 0.012313599586486817,
309
+ 0.012720128059387208,
310
+ 0.0126310396194458,
311
+ 0.012898303985595704,
312
+ 0.0124334077835083,
313
+ 0.012328960418701173,
314
+ 0.012323840141296387,
315
+ 0.012323840141296387,
316
+ 0.012321791648864745,
317
+ 0.012395520210266114,
318
+ 0.012371968269348145,
319
+ 0.012323840141296387,
320
+ 0.012336128234863282,
321
+ 0.012364800453186036,
322
+ 0.012333056449890138,
323
+ 0.012323840141296387,
324
+ 0.012315648078918457,
325
+ 0.012316672325134278,
326
+ 0.012314623832702636,
327
+ 0.012318719863891601,
328
+ 0.012314623832702636,
329
+ 0.0123504638671875,
330
+ 0.01236684799194336,
331
+ 0.01232588768005371,
332
+ 0.012324864387512208,
333
+ 0.01233510398864746,
334
+ 0.012327936172485352,
335
+ 0.012338175773620605,
336
+ 0.012331007957458496,
337
+ 0.012320768356323243,
338
+ 0.012311552047729492,
339
+ 0.012316672325134278,
340
+ 0.012316672325134278,
341
+ 0.012337151527404786,
342
+ 0.012374015808105468,
343
+ 0.012318719863891601,
344
+ 0.012322815895080566,
345
+ 0.012314623832702636,
346
+ 0.01233510398864746,
347
+ 0.012333056449890138,
348
+ 0.012311552047729492,
349
+ 0.01233407974243164,
350
+ 0.012311552047729492,
351
+ 0.012311552047729492,
352
+ 0.012331007957458496,
353
+ 0.012348416328430176,
354
+ 0.0123504638671875,
355
+ 0.012320768356323243,
356
+ 0.012318719863891601,
357
+ 0.012316672325134278
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.048197973758
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/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": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014175375938415528,
7
+ "prefill.throughput.value": 493.8140639381473,
8
+ "decode.latency.mean": 1.567112548828125,
9
+ "decode.throughput.value": 81.04076512881582,
10
+ "per_token.latency.mean": 0.012338337248704563,
11
+ "per_token.throughput.value": 81.048197973758
12
+ }
13
+ }
2024-09-06/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpe38jqhsp/commit=21fac7abba2a37fae86106f87fcf9974fd1e3830
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/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830
88
+ - hydra.run.dir=_benchmark/tmpe38jqhsp/commit\=21fac7abba2a37fae86106f87fcf9974fd1e3830/${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: 21fac7abba2a37fae86106f87fcf9974fd1e3830
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-06/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.020791807174682618,
8
+ "prefill.throughput.value": 336.6710715037618,
9
+ "decode.latency.mean": 2.4677111816406248,
10
+ "decode.throughput.value": 51.46469365817995,
11
+ "per_token.latency.mean": 0.01942954134002445,
12
+ "per_token.throughput.value": 51.46801885333345
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.021767327308654785,
21
+ "prefill.throughput.value": 321.582888920716,
22
+ "decode.latency.mean": 2.62749365234375,
23
+ "decode.throughput.value": 48.33503589503052,
24
+ "per_token.latency.mean": 0.02068787600299505,
25
+ "per_token.throughput.value": 48.33749002822846
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "21fac7abba2a37fae86106f87fcf9974fd1e3830",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014175375938415528,
34
+ "prefill.throughput.value": 493.8140639381473,
35
+ "decode.latency.mean": 1.567112548828125,
36
+ "decode.throughput.value": 81.04076512881582,
37
+ "per_token.latency.mean": 0.012338337248704563,
38
+ "per_token.throughput.value": 81.048197973758
39
+ }
40
+ }
41
+ ]
2024-09-06/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "21fac7abba2a37fae86106f87fcf9974fd1e3830": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.020791807174682618,
7
+ "prefill.throughput.value": 336.6710715037618,
8
+ "decode.latency.mean": 2.4677111816406248,
9
+ "decode.throughput.value": 51.46469365817995,
10
+ "per_token.latency.mean": 0.01942954134002445,
11
+ "per_token.throughput.value": 51.46801885333345
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "21fac7abba2a37fae86106f87fcf9974fd1e3830": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.021767327308654785,
19
+ "prefill.throughput.value": 321.582888920716,
20
+ "decode.latency.mean": 2.62749365234375,
21
+ "decode.throughput.value": 48.33503589503052,
22
+ "per_token.latency.mean": 0.02068787600299505,
23
+ "per_token.throughput.value": 48.33749002822846
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "21fac7abba2a37fae86106f87fcf9974fd1e3830": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014175375938415528,
31
+ "prefill.throughput.value": 493.8140639381473,
32
+ "decode.latency.mean": 1.567112548828125,
33
+ "decode.throughput.value": 81.04076512881582,
34
+ "per_token.latency.mean": 0.012338337248704563,
35
+ "per_token.throughput.value": 81.048197973758
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }