hf-transformers-bot commited on
Commit
678c93b
·
verified ·
1 Parent(s): 858927e

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/multirun.yaml +232 -0
  31. 2024-06-05/summaries.json +41 -0
  32. 2024-06-05/summary.json +40 -0
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: f14d06e0bcaecb02c9a0075ce0c7379345d718bc
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
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/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
88
+ - hydra.run.dir=_benchmark/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=False
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1729.7408,
109
+ "max_global_vram": 6795.296768,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6148.849664,
112
+ "max_allocated": 5033.552896
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.045553567886352536,
118
+ "mean": 0.022776783943176268,
119
+ "stdev": 0.003128495216369629,
120
+ "p50": 0.022776783943176268,
121
+ "p90": 0.02527958011627197,
122
+ "p95": 0.025592429637908934,
123
+ "p99": 0.025842709255218504,
124
+ "values": [
125
+ 0.025905279159545897,
126
+ 0.01964828872680664
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 307.3304825415065
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1729.744896,
140
+ "max_global_vram": 6795.296768,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6148.849664,
143
+ "max_allocated": 5033.553408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 4.88733642578125,
149
+ "mean": 2.443668212890625,
150
+ "stdev": 0.019393310546875098,
151
+ "p50": 2.443668212890625,
152
+ "p90": 2.459182861328125,
153
+ "p95": 2.461122192382813,
154
+ "p99": 2.4626736572265626,
155
+ "values": [
156
+ 2.4630615234375,
157
+ 2.42427490234375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 51.97104882326525
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 4.887493631362914,
173
+ "mean": 0.01931815664570322,
174
+ "stdev": 0.0012882141005614624,
175
+ "p50": 0.019092479705810548,
176
+ "p90": 0.019662233734130858,
177
+ "p95": 0.019725722122192382,
178
+ "p99": 0.021103371047973624,
179
+ "values": [
180
+ 0.020802560806274413,
181
+ 0.019288063049316406,
182
+ 0.018953216552734374,
183
+ 0.018933759689331055,
184
+ 0.018852863311767578,
185
+ 0.01922559928894043,
186
+ 0.019887104034423828,
187
+ 0.01964851188659668,
188
+ 0.019538944244384765,
189
+ 0.019540992736816407,
190
+ 0.01948876762390137,
191
+ 0.019384319305419923,
192
+ 0.019553279876708983,
193
+ 0.019504127502441407,
194
+ 0.019512319564819337,
195
+ 0.018891775131225585,
196
+ 0.018716672897338867,
197
+ 0.018765823364257812,
198
+ 0.018928640365600585,
199
+ 0.018906112670898437,
200
+ 0.018932735443115235,
201
+ 0.019721216201782226,
202
+ 0.019696640014648437,
203
+ 0.019723264694213868,
204
+ 0.01967820739746094,
205
+ 0.019688447952270507,
206
+ 0.019588096618652344,
207
+ 0.01963827133178711,
208
+ 0.01963315200805664,
209
+ 0.019586048126220702,
210
+ 0.01965158462524414,
211
+ 0.01957683181762695,
212
+ 0.01963212776184082,
213
+ 0.019644416809082032,
214
+ 0.019598335266113282,
215
+ 0.019744768142700195,
216
+ 0.019561471939086913,
217
+ 0.019687423706054686,
218
+ 0.019588096618652344,
219
+ 0.01961881637573242,
220
+ 0.01969254493713379,
221
+ 0.01941606330871582,
222
+ 0.019351551055908203,
223
+ 0.01960857582092285,
224
+ 0.019729408264160156,
225
+ 0.01887539291381836,
226
+ 0.018997247695922852,
227
+ 0.01901158332824707,
228
+ 0.019054592132568358,
229
+ 0.0190248966217041,
230
+ 0.021429248809814453,
231
+ 0.022788095474243163,
232
+ 0.01982156753540039,
233
+ 0.019389440536499023,
234
+ 0.019203071594238282,
235
+ 0.01901055908203125,
236
+ 0.01919385528564453,
237
+ 0.019165184020996092,
238
+ 0.019331071853637697,
239
+ 0.019703807830810546,
240
+ 0.019604480743408204,
241
+ 0.019581951141357423,
242
+ 0.019569664001464843,
243
+ 0.019075071334838867,
244
+ 0.019876863479614256,
245
+ 0.019106815338134766,
246
+ 0.01907711982727051,
247
+ 0.019075071334838867,
248
+ 0.01906483268737793,
249
+ 0.019082239151000976,
250
+ 0.019084287643432618,
251
+ 0.019017728805541992,
252
+ 0.01907302474975586,
253
+ 0.01905356788635254,
254
+ 0.019107839584350587,
255
+ 0.01923174476623535,
256
+ 0.019079168319702147,
257
+ 0.019091487884521485,
258
+ 0.019316703796386718,
259
+ 0.01987379264831543,
260
+ 0.02060492706298828,
261
+ 0.019927040100097656,
262
+ 0.019704832077026366,
263
+ 0.01968435287475586,
264
+ 0.019664896011352538,
265
+ 0.01963315200805664,
266
+ 0.01960140800476074,
267
+ 0.01964646339416504,
268
+ 0.01968639945983887,
269
+ 0.01965056037902832,
270
+ 0.01965158462524414,
271
+ 0.019109888076782225,
272
+ 0.01908940887451172,
273
+ 0.01903718376159668,
274
+ 0.019058687210083008,
275
+ 0.019122175216674805,
276
+ 0.01904742431640625,
277
+ 0.019172351837158205,
278
+ 0.01966796875,
279
+ 0.019107839584350587,
280
+ 0.019042303085327148,
281
+ 0.01903104019165039,
282
+ 0.01909350395202637,
283
+ 0.019110912322998046,
284
+ 0.01921331214904785,
285
+ 0.019131391525268555,
286
+ 0.01906790351867676,
287
+ 0.01904947280883789,
288
+ 0.01903718376159668,
289
+ 0.01906073570251465,
290
+ 0.019120128631591796,
291
+ 0.019132415771484376,
292
+ 0.019150848388671874,
293
+ 0.0190515193939209,
294
+ 0.01944063949584961,
295
+ 0.019599359512329103,
296
+ 0.019597312927246095,
297
+ 0.01905766487121582,
298
+ 0.01904537582397461,
299
+ 0.01923072052001953,
300
+ 0.019058687210083008,
301
+ 0.01909760093688965,
302
+ 0.019072000503540038,
303
+ 0.01906175994873047,
304
+ 0.019156991958618166,
305
+ 0.019604480743408204,
306
+ 0.03873996734619141,
307
+ 0.018929664611816405,
308
+ 0.019483648300170898,
309
+ 0.018967552185058592,
310
+ 0.018936832427978514,
311
+ 0.019517440795898438,
312
+ 0.01946214485168457,
313
+ 0.019108863830566408,
314
+ 0.01922867202758789,
315
+ 0.019478527069091797,
316
+ 0.0192993278503418,
317
+ 0.018980863571166993,
318
+ 0.018962432861328125,
319
+ 0.018950143814086915,
320
+ 0.0194703369140625,
321
+ 0.020105215072631837,
322
+ 0.019553279876708983,
323
+ 0.019187711715698243,
324
+ 0.019412992477416992,
325
+ 0.01942937660217285,
326
+ 0.019494911193847657,
327
+ 0.018980863571166993,
328
+ 0.018964479446411133,
329
+ 0.01900339126586914,
330
+ 0.018950143814086915,
331
+ 0.018974720001220705,
332
+ 0.018964479446411133,
333
+ 0.01904537582397461,
334
+ 0.018942975997924806,
335
+ 0.018965503692626954,
336
+ 0.018976768493652343,
337
+ 0.018929664611816405,
338
+ 0.018966527938842775,
339
+ 0.018942975997924806,
340
+ 0.018928640365600585,
341
+ 0.018972671508789063,
342
+ 0.018937856674194335,
343
+ 0.018922496795654296,
344
+ 0.018891775131225585,
345
+ 0.018890752792358398,
346
+ 0.018914304733276367,
347
+ 0.019288063049316406,
348
+ 0.01901260757446289,
349
+ 0.018977792739868164,
350
+ 0.018942975997924806,
351
+ 0.018968576431274413,
352
+ 0.018906112670898437,
353
+ 0.018928640365600585,
354
+ 0.018937856674194335,
355
+ 0.018916351318359375,
356
+ 0.018932735443115235,
357
+ 0.01898700714111328,
358
+ 0.018910207748413087,
359
+ 0.018959360122680666,
360
+ 0.018916351318359375,
361
+ 0.018913280487060546,
362
+ 0.018910207748413087,
363
+ 0.0190515193939209,
364
+ 0.0190515193939209,
365
+ 0.019129344940185547,
366
+ 0.01902899169921875,
367
+ 0.01904844856262207,
368
+ 0.019070976257324217,
369
+ 0.0190699520111084,
370
+ 0.019127296447753905,
371
+ 0.01904640007019043,
372
+ 0.019072000503540038,
373
+ 0.019088384628295898,
374
+ 0.019144704818725586,
375
+ 0.019412992477416992,
376
+ 0.019058687210083008,
377
+ 0.019127296447753905,
378
+ 0.019150848388671874,
379
+ 0.019120128631591796,
380
+ 0.01904640007019043,
381
+ 0.0190382080078125,
382
+ 0.01903615951538086,
383
+ 0.01904537582397461,
384
+ 0.01903411293029785,
385
+ 0.019092479705810548,
386
+ 0.01906483268737793,
387
+ 0.0191345272064209,
388
+ 0.019331008911132812,
389
+ 0.019131391525268555,
390
+ 0.01903308868408203,
391
+ 0.01905254364013672,
392
+ 0.019001344680786132,
393
+ 0.019092479705810548,
394
+ 0.019098623275756836,
395
+ 0.019042303085327148,
396
+ 0.01906073570251465,
397
+ 0.019094528198242186,
398
+ 0.019076095581054688,
399
+ 0.019112960815429687,
400
+ 0.019095552444458007,
401
+ 0.01906175994873047,
402
+ 0.019013631820678712,
403
+ 0.01902284812927246,
404
+ 0.01902284812927246,
405
+ 0.018885631561279297,
406
+ 0.01880985641479492,
407
+ 0.01902796745300293,
408
+ 0.019121152877807617,
409
+ 0.0190515193939209,
410
+ 0.01908531188964844,
411
+ 0.019072000503540038,
412
+ 0.01900441551208496,
413
+ 0.01902284812927246,
414
+ 0.019070976257324217,
415
+ 0.019572736740112305,
416
+ 0.019180543899536134,
417
+ 0.019111936569213867,
418
+ 0.019121152877807617,
419
+ 0.019106815338134766,
420
+ 0.01908531188964844,
421
+ 0.019327999114990235,
422
+ 0.019305471420288087,
423
+ 0.01909350395202637,
424
+ 0.018852863311767578,
425
+ 0.018877439498901367,
426
+ 0.019347455978393553,
427
+ 0.01963212776184082,
428
+ 0.019179519653320314,
429
+ 0.01906380844116211,
430
+ 0.01903308868408203,
431
+ 0.01905971145629883,
432
+ 0.019042303085327148
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 51.764773334231236
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1729.7408,
6
+ "max_global_vram": 6795.296768,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6148.849664,
9
+ "max_allocated": 5033.552896
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.045553567886352536,
15
+ "mean": 0.022776783943176268,
16
+ "stdev": 0.003128495216369629,
17
+ "p50": 0.022776783943176268,
18
+ "p90": 0.02527958011627197,
19
+ "p95": 0.025592429637908934,
20
+ "p99": 0.025842709255218504,
21
+ "values": [
22
+ 0.025905279159545897,
23
+ 0.01964828872680664
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 307.3304825415065
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1729.744896,
37
+ "max_global_vram": 6795.296768,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6148.849664,
40
+ "max_allocated": 5033.553408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 4.88733642578125,
46
+ "mean": 2.443668212890625,
47
+ "stdev": 0.019393310546875098,
48
+ "p50": 2.443668212890625,
49
+ "p90": 2.459182861328125,
50
+ "p95": 2.461122192382813,
51
+ "p99": 2.4626736572265626,
52
+ "values": [
53
+ 2.4630615234375,
54
+ 2.42427490234375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 51.97104882326525
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 4.887493631362914,
70
+ "mean": 0.01931815664570322,
71
+ "stdev": 0.0012882141005614624,
72
+ "p50": 0.019092479705810548,
73
+ "p90": 0.019662233734130858,
74
+ "p95": 0.019725722122192382,
75
+ "p99": 0.021103371047973624,
76
+ "values": [
77
+ 0.020802560806274413,
78
+ 0.019288063049316406,
79
+ 0.018953216552734374,
80
+ 0.018933759689331055,
81
+ 0.018852863311767578,
82
+ 0.01922559928894043,
83
+ 0.019887104034423828,
84
+ 0.01964851188659668,
85
+ 0.019538944244384765,
86
+ 0.019540992736816407,
87
+ 0.01948876762390137,
88
+ 0.019384319305419923,
89
+ 0.019553279876708983,
90
+ 0.019504127502441407,
91
+ 0.019512319564819337,
92
+ 0.018891775131225585,
93
+ 0.018716672897338867,
94
+ 0.018765823364257812,
95
+ 0.018928640365600585,
96
+ 0.018906112670898437,
97
+ 0.018932735443115235,
98
+ 0.019721216201782226,
99
+ 0.019696640014648437,
100
+ 0.019723264694213868,
101
+ 0.01967820739746094,
102
+ 0.019688447952270507,
103
+ 0.019588096618652344,
104
+ 0.01963827133178711,
105
+ 0.01963315200805664,
106
+ 0.019586048126220702,
107
+ 0.01965158462524414,
108
+ 0.01957683181762695,
109
+ 0.01963212776184082,
110
+ 0.019644416809082032,
111
+ 0.019598335266113282,
112
+ 0.019744768142700195,
113
+ 0.019561471939086913,
114
+ 0.019687423706054686,
115
+ 0.019588096618652344,
116
+ 0.01961881637573242,
117
+ 0.01969254493713379,
118
+ 0.01941606330871582,
119
+ 0.019351551055908203,
120
+ 0.01960857582092285,
121
+ 0.019729408264160156,
122
+ 0.01887539291381836,
123
+ 0.018997247695922852,
124
+ 0.01901158332824707,
125
+ 0.019054592132568358,
126
+ 0.0190248966217041,
127
+ 0.021429248809814453,
128
+ 0.022788095474243163,
129
+ 0.01982156753540039,
130
+ 0.019389440536499023,
131
+ 0.019203071594238282,
132
+ 0.01901055908203125,
133
+ 0.01919385528564453,
134
+ 0.019165184020996092,
135
+ 0.019331071853637697,
136
+ 0.019703807830810546,
137
+ 0.019604480743408204,
138
+ 0.019581951141357423,
139
+ 0.019569664001464843,
140
+ 0.019075071334838867,
141
+ 0.019876863479614256,
142
+ 0.019106815338134766,
143
+ 0.01907711982727051,
144
+ 0.019075071334838867,
145
+ 0.01906483268737793,
146
+ 0.019082239151000976,
147
+ 0.019084287643432618,
148
+ 0.019017728805541992,
149
+ 0.01907302474975586,
150
+ 0.01905356788635254,
151
+ 0.019107839584350587,
152
+ 0.01923174476623535,
153
+ 0.019079168319702147,
154
+ 0.019091487884521485,
155
+ 0.019316703796386718,
156
+ 0.01987379264831543,
157
+ 0.02060492706298828,
158
+ 0.019927040100097656,
159
+ 0.019704832077026366,
160
+ 0.01968435287475586,
161
+ 0.019664896011352538,
162
+ 0.01963315200805664,
163
+ 0.01960140800476074,
164
+ 0.01964646339416504,
165
+ 0.01968639945983887,
166
+ 0.01965056037902832,
167
+ 0.01965158462524414,
168
+ 0.019109888076782225,
169
+ 0.01908940887451172,
170
+ 0.01903718376159668,
171
+ 0.019058687210083008,
172
+ 0.019122175216674805,
173
+ 0.01904742431640625,
174
+ 0.019172351837158205,
175
+ 0.01966796875,
176
+ 0.019107839584350587,
177
+ 0.019042303085327148,
178
+ 0.01903104019165039,
179
+ 0.01909350395202637,
180
+ 0.019110912322998046,
181
+ 0.01921331214904785,
182
+ 0.019131391525268555,
183
+ 0.01906790351867676,
184
+ 0.01904947280883789,
185
+ 0.01903718376159668,
186
+ 0.01906073570251465,
187
+ 0.019120128631591796,
188
+ 0.019132415771484376,
189
+ 0.019150848388671874,
190
+ 0.0190515193939209,
191
+ 0.01944063949584961,
192
+ 0.019599359512329103,
193
+ 0.019597312927246095,
194
+ 0.01905766487121582,
195
+ 0.01904537582397461,
196
+ 0.01923072052001953,
197
+ 0.019058687210083008,
198
+ 0.01909760093688965,
199
+ 0.019072000503540038,
200
+ 0.01906175994873047,
201
+ 0.019156991958618166,
202
+ 0.019604480743408204,
203
+ 0.03873996734619141,
204
+ 0.018929664611816405,
205
+ 0.019483648300170898,
206
+ 0.018967552185058592,
207
+ 0.018936832427978514,
208
+ 0.019517440795898438,
209
+ 0.01946214485168457,
210
+ 0.019108863830566408,
211
+ 0.01922867202758789,
212
+ 0.019478527069091797,
213
+ 0.0192993278503418,
214
+ 0.018980863571166993,
215
+ 0.018962432861328125,
216
+ 0.018950143814086915,
217
+ 0.0194703369140625,
218
+ 0.020105215072631837,
219
+ 0.019553279876708983,
220
+ 0.019187711715698243,
221
+ 0.019412992477416992,
222
+ 0.01942937660217285,
223
+ 0.019494911193847657,
224
+ 0.018980863571166993,
225
+ 0.018964479446411133,
226
+ 0.01900339126586914,
227
+ 0.018950143814086915,
228
+ 0.018974720001220705,
229
+ 0.018964479446411133,
230
+ 0.01904537582397461,
231
+ 0.018942975997924806,
232
+ 0.018965503692626954,
233
+ 0.018976768493652343,
234
+ 0.018929664611816405,
235
+ 0.018966527938842775,
236
+ 0.018942975997924806,
237
+ 0.018928640365600585,
238
+ 0.018972671508789063,
239
+ 0.018937856674194335,
240
+ 0.018922496795654296,
241
+ 0.018891775131225585,
242
+ 0.018890752792358398,
243
+ 0.018914304733276367,
244
+ 0.019288063049316406,
245
+ 0.01901260757446289,
246
+ 0.018977792739868164,
247
+ 0.018942975997924806,
248
+ 0.018968576431274413,
249
+ 0.018906112670898437,
250
+ 0.018928640365600585,
251
+ 0.018937856674194335,
252
+ 0.018916351318359375,
253
+ 0.018932735443115235,
254
+ 0.01898700714111328,
255
+ 0.018910207748413087,
256
+ 0.018959360122680666,
257
+ 0.018916351318359375,
258
+ 0.018913280487060546,
259
+ 0.018910207748413087,
260
+ 0.0190515193939209,
261
+ 0.0190515193939209,
262
+ 0.019129344940185547,
263
+ 0.01902899169921875,
264
+ 0.01904844856262207,
265
+ 0.019070976257324217,
266
+ 0.0190699520111084,
267
+ 0.019127296447753905,
268
+ 0.01904640007019043,
269
+ 0.019072000503540038,
270
+ 0.019088384628295898,
271
+ 0.019144704818725586,
272
+ 0.019412992477416992,
273
+ 0.019058687210083008,
274
+ 0.019127296447753905,
275
+ 0.019150848388671874,
276
+ 0.019120128631591796,
277
+ 0.01904640007019043,
278
+ 0.0190382080078125,
279
+ 0.01903615951538086,
280
+ 0.01904537582397461,
281
+ 0.01903411293029785,
282
+ 0.019092479705810548,
283
+ 0.01906483268737793,
284
+ 0.0191345272064209,
285
+ 0.019331008911132812,
286
+ 0.019131391525268555,
287
+ 0.01903308868408203,
288
+ 0.01905254364013672,
289
+ 0.019001344680786132,
290
+ 0.019092479705810548,
291
+ 0.019098623275756836,
292
+ 0.019042303085327148,
293
+ 0.01906073570251465,
294
+ 0.019094528198242186,
295
+ 0.019076095581054688,
296
+ 0.019112960815429687,
297
+ 0.019095552444458007,
298
+ 0.01906175994873047,
299
+ 0.019013631820678712,
300
+ 0.01902284812927246,
301
+ 0.01902284812927246,
302
+ 0.018885631561279297,
303
+ 0.01880985641479492,
304
+ 0.01902796745300293,
305
+ 0.019121152877807617,
306
+ 0.0190515193939209,
307
+ 0.01908531188964844,
308
+ 0.019072000503540038,
309
+ 0.01900441551208496,
310
+ 0.01902284812927246,
311
+ 0.019070976257324217,
312
+ 0.019572736740112305,
313
+ 0.019180543899536134,
314
+ 0.019111936569213867,
315
+ 0.019121152877807617,
316
+ 0.019106815338134766,
317
+ 0.01908531188964844,
318
+ 0.019327999114990235,
319
+ 0.019305471420288087,
320
+ 0.01909350395202637,
321
+ 0.018852863311767578,
322
+ 0.018877439498901367,
323
+ 0.019347455978393553,
324
+ 0.01963212776184082,
325
+ 0.019179519653320314,
326
+ 0.01906380844116211,
327
+ 0.01903308868408203,
328
+ 0.01905971145629883,
329
+ 0.019042303085327148
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 51.764773334231236
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/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": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022776783943176268,
7
+ "prefill.throughput.value": 307.3304825415065,
8
+ "decode.latency.mean": 2.443668212890625,
9
+ "decode.throughput.value": 51.97104882326525,
10
+ "per_token.latency.mean": 0.01931815664570322,
11
+ "per_token.throughput.value": 51.764773334231236
12
+ }
13
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: f14d06e0bcaecb02c9a0075ce0c7379345d718bc
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
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/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
88
+ - hydra.run.dir=_benchmark/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=True
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-05 12:24:41,257][process][ERROR] - + Sending traceback to main process
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: f14d06e0bcaecb02c9a0075ce0c7379345d718bc
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
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/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
88
+ - hydra.run.dir=_benchmark/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=False
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1784.610816,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5035.912192
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.0441366081237793,
118
+ "mean": 0.02206830406188965,
119
+ "stdev": 0.00018231964111328249,
120
+ "p50": 0.02206830406188965,
121
+ "p90": 0.022214159774780275,
122
+ "p95": 0.0222323917388916,
123
+ "p99": 0.022246977310180664,
124
+ "values": [
125
+ 0.02225062370300293,
126
+ 0.021885984420776366
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 317.1970070907483
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1784.631296,
140
+ "max_global_vram": 6793.199616,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6146.752512,
143
+ "max_allocated": 5035.912704
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 5.1918076171875,
149
+ "mean": 2.59590380859375,
150
+ "stdev": 0.004708984375000114,
151
+ "p50": 2.59590380859375,
152
+ "p90": 2.5996709960937503,
153
+ "p95": 2.60014189453125,
154
+ "p99": 2.6005186132812503,
155
+ "values": [
156
+ 2.60061279296875,
157
+ 2.59119482421875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 48.92323035220565
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 5.192771648406984,
173
+ "mean": 0.02052478912413827,
174
+ "stdev": 0.001407221328466503,
175
+ "p50": 0.020376575469970702,
176
+ "p90": 0.020831436920166018,
177
+ "p95": 0.021082336044311523,
178
+ "p99": 0.02178912239074707,
179
+ "values": [
180
+ 0.021817344665527344,
181
+ 0.020774911880493165,
182
+ 0.020577280044555665,
183
+ 0.02084249687194824,
184
+ 0.020867071151733398,
185
+ 0.02082815933227539,
186
+ 0.02079641532897949,
187
+ 0.020767744064331056,
188
+ 0.020800512313842775,
189
+ 0.020760576248168947,
190
+ 0.020702207565307617,
191
+ 0.02044108772277832,
192
+ 0.020782079696655274,
193
+ 0.020736000061035157,
194
+ 0.02080460739135742,
195
+ 0.020810752868652343,
196
+ 0.02087014389038086,
197
+ 0.020761600494384767,
198
+ 0.020774911880493165,
199
+ 0.02107187271118164,
200
+ 0.020444160461425782,
201
+ 0.02012876892089844,
202
+ 0.020174848556518556,
203
+ 0.020135936737060548,
204
+ 0.02025574493408203,
205
+ 0.02090188789367676,
206
+ 0.0208721923828125,
207
+ 0.02069708824157715,
208
+ 0.020771839141845702,
209
+ 0.020661247253417968,
210
+ 0.020708351135253905,
211
+ 0.020150272369384766,
212
+ 0.02046771240234375,
213
+ 0.02109337615966797,
214
+ 0.021763071060180664,
215
+ 0.020762624740600585,
216
+ 0.020762624740600585,
217
+ 0.020694015502929687,
218
+ 0.020751359939575196,
219
+ 0.02067967987060547,
220
+ 0.02021785545349121,
221
+ 0.020180992126464844,
222
+ 0.020182016372680665,
223
+ 0.020139007568359374,
224
+ 0.02016972732543945,
225
+ 0.020511743545532226,
226
+ 0.02044211196899414,
227
+ 0.020708351135253905,
228
+ 0.02110361671447754,
229
+ 0.021187583923339845,
230
+ 0.02110054397583008,
231
+ 0.020406272888183592,
232
+ 0.020246528625488282,
233
+ 0.020090879440307616,
234
+ 0.020091903686523437,
235
+ 0.020110336303710938,
236
+ 0.02011238479614258,
237
+ 0.02016972732543945,
238
+ 0.020179967880249023,
239
+ 0.020157440185546875,
240
+ 0.020101119995117187,
241
+ 0.020125696182250977,
242
+ 0.020098047256469728,
243
+ 0.020105215072631837,
244
+ 0.02009600067138672,
245
+ 0.020160512924194338,
246
+ 0.02007347106933594,
247
+ 0.02064384078979492,
248
+ 0.020130815505981444,
249
+ 0.020135936737060548,
250
+ 0.020106239318847655,
251
+ 0.020113407135009767,
252
+ 0.020126720428466797,
253
+ 0.02008678436279297,
254
+ 0.020164608001708984,
255
+ 0.02067148780822754,
256
+ 0.02066534423828125,
257
+ 0.020653055191040038,
258
+ 0.02066022491455078,
259
+ 0.020720640182495118,
260
+ 0.020256767272949217,
261
+ 0.02068377685546875,
262
+ 0.020632575988769532,
263
+ 0.02059878349304199,
264
+ 0.021301248550415038,
265
+ 0.021074975967407227,
266
+ 0.021224416732788087,
267
+ 0.02107084846496582,
268
+ 0.02147123146057129,
269
+ 0.02183065605163574,
270
+ 0.02026393508911133,
271
+ 0.019948543548583983,
272
+ 0.01987583923339844,
273
+ 0.020382720947265624,
274
+ 0.020122623443603514,
275
+ 0.020145151138305666,
276
+ 0.02007859230041504,
277
+ 0.020145151138305666,
278
+ 0.020108287811279296,
279
+ 0.02019327926635742,
280
+ 0.02010316848754883,
281
+ 0.020093952178955078,
282
+ 0.020102144241333008,
283
+ 0.020101119995117187,
284
+ 0.02064691162109375,
285
+ 0.020101119995117187,
286
+ 0.020068351745605468,
287
+ 0.020080671310424805,
288
+ 0.02005193519592285,
289
+ 0.02008576011657715,
290
+ 0.020117504119873047,
291
+ 0.020082687377929686,
292
+ 0.020092927932739257,
293
+ 0.020142080307006836,
294
+ 0.020102144241333008,
295
+ 0.02008780860900879,
296
+ 0.020065280914306642,
297
+ 0.02109951972961426,
298
+ 0.020725759506225586,
299
+ 0.02067967987060547,
300
+ 0.02012057685852051,
301
+ 0.02011955261230469,
302
+ 0.020109312057495117,
303
+ 0.020132863998413086,
304
+ 0.02004582405090332,
305
+ 0.020479999542236327,
306
+ 0.04211916732788086,
307
+ 0.020145151138305666,
308
+ 0.020090879440307616,
309
+ 0.020106239318847655,
310
+ 0.020126720428466797,
311
+ 0.02007961654663086,
312
+ 0.020130815505981444,
313
+ 0.02019430351257324,
314
+ 0.020167680740356447,
315
+ 0.020148223876953125,
316
+ 0.020157440185546875,
317
+ 0.020161535263061522,
318
+ 0.020185087203979494,
319
+ 0.020155391693115234,
320
+ 0.02016972732543945,
321
+ 0.020520959854125977,
322
+ 0.020162559509277343,
323
+ 0.020191232681274415,
324
+ 0.02013804817199707,
325
+ 0.020139968872070313,
326
+ 0.020376575469970702,
327
+ 0.020620288848876952,
328
+ 0.020197376251220703,
329
+ 0.02067148780822754,
330
+ 0.020612096786499022,
331
+ 0.02081177520751953,
332
+ 0.020545536041259766,
333
+ 0.02054153633117676,
334
+ 0.02065500831604004,
335
+ 0.02008678436279297,
336
+ 0.02007859230041504,
337
+ 0.020733951568603515,
338
+ 0.020115455627441405,
339
+ 0.020299776077270508,
340
+ 0.020686847686767578,
341
+ 0.020578304290771485,
342
+ 0.020724735260009765,
343
+ 0.020746240615844725,
344
+ 0.020190208435058594,
345
+ 0.02048204803466797,
346
+ 0.020200447082519533,
347
+ 0.02020147132873535,
348
+ 0.020720640182495118,
349
+ 0.020682752609252928,
350
+ 0.02065715217590332,
351
+ 0.02067558479309082,
352
+ 0.020098047256469728,
353
+ 0.020486143112182616,
354
+ 0.020700159072875975,
355
+ 0.020129791259765627,
356
+ 0.02065920066833496,
357
+ 0.02068070411682129,
358
+ 0.020711423873901368,
359
+ 0.020793344497680662,
360
+ 0.020212736129760742,
361
+ 0.020377599716186523,
362
+ 0.020717567443847656,
363
+ 0.020155391693115234,
364
+ 0.020338687896728515,
365
+ 0.02067148780822754,
366
+ 0.020658176422119142,
367
+ 0.02062745666503906,
368
+ 0.020690944671630858,
369
+ 0.020147199630737304,
370
+ 0.0211015682220459,
371
+ 0.02044211196899414,
372
+ 0.02068992042541504,
373
+ 0.020158464431762696,
374
+ 0.020171775817871093,
375
+ 0.020603904724121092,
376
+ 0.020775936126708985,
377
+ 0.020100095748901366,
378
+ 0.020759552001953126,
379
+ 0.020504575729370117,
380
+ 0.020818944931030273,
381
+ 0.020700159072875975,
382
+ 0.020728832244873048,
383
+ 0.020758527755737305,
384
+ 0.020720640182495118,
385
+ 0.02063974380493164,
386
+ 0.020703231811523438,
387
+ 0.020619264602661135,
388
+ 0.020694015502929687,
389
+ 0.02065920066833496,
390
+ 0.020118528366088868,
391
+ 0.020231168746948244,
392
+ 0.020204544067382812,
393
+ 0.020126720428466797,
394
+ 0.02087731170654297,
395
+ 0.020624383926391602,
396
+ 0.02067967987060547,
397
+ 0.020642816543579103,
398
+ 0.02011136054992676,
399
+ 0.02083430480957031,
400
+ 0.020682752609252928,
401
+ 0.02060492706298828,
402
+ 0.02064384078979492,
403
+ 0.020101119995117187,
404
+ 0.020136959075927736,
405
+ 0.020093952178955078,
406
+ 0.020134944915771485,
407
+ 0.020037599563598633,
408
+ 0.020083711624145507,
409
+ 0.02004377555847168,
410
+ 0.02010425567626953,
411
+ 0.020036544799804688,
412
+ 0.020057088851928712,
413
+ 0.02004684829711914,
414
+ 0.020090879440307616,
415
+ 0.020032512664794923,
416
+ 0.020090879440307616,
417
+ 0.0200263671875,
418
+ 0.02005504035949707,
419
+ 0.02007961654663086,
420
+ 0.020462591171264647,
421
+ 0.020116479873657226,
422
+ 0.020091903686523437,
423
+ 0.020065280914306642,
424
+ 0.02007859230041504,
425
+ 0.02006220817565918,
426
+ 0.020281343460083007,
427
+ 0.020710399627685547,
428
+ 0.02100534439086914,
429
+ 0.02087727928161621,
430
+ 0.020832256317138673,
431
+ 0.020808704376220705,
432
+ 0.020694080352783202
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 48.72157243379156
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1784.610816,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5035.912192
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.0441366081237793,
15
+ "mean": 0.02206830406188965,
16
+ "stdev": 0.00018231964111328249,
17
+ "p50": 0.02206830406188965,
18
+ "p90": 0.022214159774780275,
19
+ "p95": 0.0222323917388916,
20
+ "p99": 0.022246977310180664,
21
+ "values": [
22
+ 0.02225062370300293,
23
+ 0.021885984420776366
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 317.1970070907483
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1784.631296,
37
+ "max_global_vram": 6793.199616,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6146.752512,
40
+ "max_allocated": 5035.912704
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 5.1918076171875,
46
+ "mean": 2.59590380859375,
47
+ "stdev": 0.004708984375000114,
48
+ "p50": 2.59590380859375,
49
+ "p90": 2.5996709960937503,
50
+ "p95": 2.60014189453125,
51
+ "p99": 2.6005186132812503,
52
+ "values": [
53
+ 2.60061279296875,
54
+ 2.59119482421875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 48.92323035220565
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 5.192771648406984,
70
+ "mean": 0.02052478912413827,
71
+ "stdev": 0.001407221328466503,
72
+ "p50": 0.020376575469970702,
73
+ "p90": 0.020831436920166018,
74
+ "p95": 0.021082336044311523,
75
+ "p99": 0.02178912239074707,
76
+ "values": [
77
+ 0.021817344665527344,
78
+ 0.020774911880493165,
79
+ 0.020577280044555665,
80
+ 0.02084249687194824,
81
+ 0.020867071151733398,
82
+ 0.02082815933227539,
83
+ 0.02079641532897949,
84
+ 0.020767744064331056,
85
+ 0.020800512313842775,
86
+ 0.020760576248168947,
87
+ 0.020702207565307617,
88
+ 0.02044108772277832,
89
+ 0.020782079696655274,
90
+ 0.020736000061035157,
91
+ 0.02080460739135742,
92
+ 0.020810752868652343,
93
+ 0.02087014389038086,
94
+ 0.020761600494384767,
95
+ 0.020774911880493165,
96
+ 0.02107187271118164,
97
+ 0.020444160461425782,
98
+ 0.02012876892089844,
99
+ 0.020174848556518556,
100
+ 0.020135936737060548,
101
+ 0.02025574493408203,
102
+ 0.02090188789367676,
103
+ 0.0208721923828125,
104
+ 0.02069708824157715,
105
+ 0.020771839141845702,
106
+ 0.020661247253417968,
107
+ 0.020708351135253905,
108
+ 0.020150272369384766,
109
+ 0.02046771240234375,
110
+ 0.02109337615966797,
111
+ 0.021763071060180664,
112
+ 0.020762624740600585,
113
+ 0.020762624740600585,
114
+ 0.020694015502929687,
115
+ 0.020751359939575196,
116
+ 0.02067967987060547,
117
+ 0.02021785545349121,
118
+ 0.020180992126464844,
119
+ 0.020182016372680665,
120
+ 0.020139007568359374,
121
+ 0.02016972732543945,
122
+ 0.020511743545532226,
123
+ 0.02044211196899414,
124
+ 0.020708351135253905,
125
+ 0.02110361671447754,
126
+ 0.021187583923339845,
127
+ 0.02110054397583008,
128
+ 0.020406272888183592,
129
+ 0.020246528625488282,
130
+ 0.020090879440307616,
131
+ 0.020091903686523437,
132
+ 0.020110336303710938,
133
+ 0.02011238479614258,
134
+ 0.02016972732543945,
135
+ 0.020179967880249023,
136
+ 0.020157440185546875,
137
+ 0.020101119995117187,
138
+ 0.020125696182250977,
139
+ 0.020098047256469728,
140
+ 0.020105215072631837,
141
+ 0.02009600067138672,
142
+ 0.020160512924194338,
143
+ 0.02007347106933594,
144
+ 0.02064384078979492,
145
+ 0.020130815505981444,
146
+ 0.020135936737060548,
147
+ 0.020106239318847655,
148
+ 0.020113407135009767,
149
+ 0.020126720428466797,
150
+ 0.02008678436279297,
151
+ 0.020164608001708984,
152
+ 0.02067148780822754,
153
+ 0.02066534423828125,
154
+ 0.020653055191040038,
155
+ 0.02066022491455078,
156
+ 0.020720640182495118,
157
+ 0.020256767272949217,
158
+ 0.02068377685546875,
159
+ 0.020632575988769532,
160
+ 0.02059878349304199,
161
+ 0.021301248550415038,
162
+ 0.021074975967407227,
163
+ 0.021224416732788087,
164
+ 0.02107084846496582,
165
+ 0.02147123146057129,
166
+ 0.02183065605163574,
167
+ 0.02026393508911133,
168
+ 0.019948543548583983,
169
+ 0.01987583923339844,
170
+ 0.020382720947265624,
171
+ 0.020122623443603514,
172
+ 0.020145151138305666,
173
+ 0.02007859230041504,
174
+ 0.020145151138305666,
175
+ 0.020108287811279296,
176
+ 0.02019327926635742,
177
+ 0.02010316848754883,
178
+ 0.020093952178955078,
179
+ 0.020102144241333008,
180
+ 0.020101119995117187,
181
+ 0.02064691162109375,
182
+ 0.020101119995117187,
183
+ 0.020068351745605468,
184
+ 0.020080671310424805,
185
+ 0.02005193519592285,
186
+ 0.02008576011657715,
187
+ 0.020117504119873047,
188
+ 0.020082687377929686,
189
+ 0.020092927932739257,
190
+ 0.020142080307006836,
191
+ 0.020102144241333008,
192
+ 0.02008780860900879,
193
+ 0.020065280914306642,
194
+ 0.02109951972961426,
195
+ 0.020725759506225586,
196
+ 0.02067967987060547,
197
+ 0.02012057685852051,
198
+ 0.02011955261230469,
199
+ 0.020109312057495117,
200
+ 0.020132863998413086,
201
+ 0.02004582405090332,
202
+ 0.020479999542236327,
203
+ 0.04211916732788086,
204
+ 0.020145151138305666,
205
+ 0.020090879440307616,
206
+ 0.020106239318847655,
207
+ 0.020126720428466797,
208
+ 0.02007961654663086,
209
+ 0.020130815505981444,
210
+ 0.02019430351257324,
211
+ 0.020167680740356447,
212
+ 0.020148223876953125,
213
+ 0.020157440185546875,
214
+ 0.020161535263061522,
215
+ 0.020185087203979494,
216
+ 0.020155391693115234,
217
+ 0.02016972732543945,
218
+ 0.020520959854125977,
219
+ 0.020162559509277343,
220
+ 0.020191232681274415,
221
+ 0.02013804817199707,
222
+ 0.020139968872070313,
223
+ 0.020376575469970702,
224
+ 0.020620288848876952,
225
+ 0.020197376251220703,
226
+ 0.02067148780822754,
227
+ 0.020612096786499022,
228
+ 0.02081177520751953,
229
+ 0.020545536041259766,
230
+ 0.02054153633117676,
231
+ 0.02065500831604004,
232
+ 0.02008678436279297,
233
+ 0.02007859230041504,
234
+ 0.020733951568603515,
235
+ 0.020115455627441405,
236
+ 0.020299776077270508,
237
+ 0.020686847686767578,
238
+ 0.020578304290771485,
239
+ 0.020724735260009765,
240
+ 0.020746240615844725,
241
+ 0.020190208435058594,
242
+ 0.02048204803466797,
243
+ 0.020200447082519533,
244
+ 0.02020147132873535,
245
+ 0.020720640182495118,
246
+ 0.020682752609252928,
247
+ 0.02065715217590332,
248
+ 0.02067558479309082,
249
+ 0.020098047256469728,
250
+ 0.020486143112182616,
251
+ 0.020700159072875975,
252
+ 0.020129791259765627,
253
+ 0.02065920066833496,
254
+ 0.02068070411682129,
255
+ 0.020711423873901368,
256
+ 0.020793344497680662,
257
+ 0.020212736129760742,
258
+ 0.020377599716186523,
259
+ 0.020717567443847656,
260
+ 0.020155391693115234,
261
+ 0.020338687896728515,
262
+ 0.02067148780822754,
263
+ 0.020658176422119142,
264
+ 0.02062745666503906,
265
+ 0.020690944671630858,
266
+ 0.020147199630737304,
267
+ 0.0211015682220459,
268
+ 0.02044211196899414,
269
+ 0.02068992042541504,
270
+ 0.020158464431762696,
271
+ 0.020171775817871093,
272
+ 0.020603904724121092,
273
+ 0.020775936126708985,
274
+ 0.020100095748901366,
275
+ 0.020759552001953126,
276
+ 0.020504575729370117,
277
+ 0.020818944931030273,
278
+ 0.020700159072875975,
279
+ 0.020728832244873048,
280
+ 0.020758527755737305,
281
+ 0.020720640182495118,
282
+ 0.02063974380493164,
283
+ 0.020703231811523438,
284
+ 0.020619264602661135,
285
+ 0.020694015502929687,
286
+ 0.02065920066833496,
287
+ 0.020118528366088868,
288
+ 0.020231168746948244,
289
+ 0.020204544067382812,
290
+ 0.020126720428466797,
291
+ 0.02087731170654297,
292
+ 0.020624383926391602,
293
+ 0.02067967987060547,
294
+ 0.020642816543579103,
295
+ 0.02011136054992676,
296
+ 0.02083430480957031,
297
+ 0.020682752609252928,
298
+ 0.02060492706298828,
299
+ 0.02064384078979492,
300
+ 0.020101119995117187,
301
+ 0.020136959075927736,
302
+ 0.020093952178955078,
303
+ 0.020134944915771485,
304
+ 0.020037599563598633,
305
+ 0.020083711624145507,
306
+ 0.02004377555847168,
307
+ 0.02010425567626953,
308
+ 0.020036544799804688,
309
+ 0.020057088851928712,
310
+ 0.02004684829711914,
311
+ 0.020090879440307616,
312
+ 0.020032512664794923,
313
+ 0.020090879440307616,
314
+ 0.0200263671875,
315
+ 0.02005504035949707,
316
+ 0.02007961654663086,
317
+ 0.020462591171264647,
318
+ 0.020116479873657226,
319
+ 0.020091903686523437,
320
+ 0.020065280914306642,
321
+ 0.02007859230041504,
322
+ 0.02006220817565918,
323
+ 0.020281343460083007,
324
+ 0.020710399627685547,
325
+ 0.02100534439086914,
326
+ 0.02087727928161621,
327
+ 0.020832256317138673,
328
+ 0.020808704376220705,
329
+ 0.020694080352783202
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 48.72157243379156
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/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": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02206830406188965,
7
+ "prefill.throughput.value": 317.1970070907483,
8
+ "decode.latency.mean": 2.59590380859375,
9
+ "decode.throughput.value": 48.92323035220565,
10
+ "per_token.latency.mean": 0.02052478912413827,
11
+ "per_token.throughput.value": 48.72157243379156
12
+ }
13
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: f14d06e0bcaecb02c9a0075ce0c7379345d718bc
82
+ accelerate_version: 0.31.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
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/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
88
+ - hydra.run.dir=_benchmark/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${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/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=True
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
92
+ "accelerate_version": "0.31.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1916.53888,
109
+ "max_global_vram": 6094.848,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 5379.19488,
112
+ "max_allocated": 5020.227584
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.027971135139465333,
118
+ "mean": 0.013985567569732666,
119
+ "stdev": 0.00010992002487182628,
120
+ "p50": 0.013985567569732666,
121
+ "p90": 0.014073503589630127,
122
+ "p95": 0.01408449559211731,
123
+ "p99": 0.014093289194107057,
124
+ "values": [
125
+ 0.014095487594604493,
126
+ 0.01387564754486084
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 500.51597585136864
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2260.447232,
140
+ "max_global_vram": 8902.934528,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 5379.19488,
143
+ "max_allocated": 5026.065408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 3.1192700195312497,
149
+ "mean": 1.5596350097656249,
150
+ "stdev": 0.0018950195312500417,
151
+ "p50": 1.5596350097656249,
152
+ "p90": 1.5611510253906251,
153
+ "p95": 1.56134052734375,
154
+ "p99": 1.56149212890625,
155
+ "values": [
156
+ 1.561530029296875,
157
+ 1.557739990234375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 81.42930827071201
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 3.1202191410064715,
173
+ "mean": 0.012332881980262724,
174
+ "stdev": 0.0008860411652513156,
175
+ "p50": 0.012272640228271485,
176
+ "p90": 0.012302131080627441,
177
+ "p95": 0.012337414360046386,
178
+ "p99": 0.012755878448486328,
179
+ "values": [
180
+ 0.012702719688415527,
181
+ 0.012759039878845215,
182
+ 0.012752960205078125,
183
+ 0.012806079864501952,
184
+ 0.01226035213470459,
185
+ 0.012319744110107422,
186
+ 0.012295167922973632,
187
+ 0.012294143676757812,
188
+ 0.012254207611083985,
189
+ 0.012306431770324706,
190
+ 0.012237824440002442,
191
+ 0.012288000106811523,
192
+ 0.012241920471191407,
193
+ 0.012289024353027344,
194
+ 0.012241920471191407,
195
+ 0.012274687767028808,
196
+ 0.01224294376373291,
197
+ 0.012298239707946777,
198
+ 0.01224396800994873,
199
+ 0.01228492832183838,
200
+ 0.01228492832183838,
201
+ 0.012329983711242675,
202
+ 0.012248064041137695,
203
+ 0.012278783798217773,
204
+ 0.012239871978759765,
205
+ 0.012294143676757812,
206
+ 0.012237824440002442,
207
+ 0.012295167922973632,
208
+ 0.012249088287353516,
209
+ 0.012277824401855469,
210
+ 0.012237759590148925,
211
+ 0.012283904075622559,
212
+ 0.012240896224975586,
213
+ 0.01227673625946045,
214
+ 0.012247039794921874,
215
+ 0.012311552047729492,
216
+ 0.01225830364227295,
217
+ 0.012285951614379884,
218
+ 0.01223475170135498,
219
+ 0.012288000106811523,
220
+ 0.012256256103515625,
221
+ 0.012280832290649414,
222
+ 0.012248064041137695,
223
+ 0.012291071891784668,
224
+ 0.012246015548706055,
225
+ 0.012282879829406738,
226
+ 0.012237824440002442,
227
+ 0.012265472412109376,
228
+ 0.012239871978759765,
229
+ 0.012274720191955567,
230
+ 0.012258272171020507,
231
+ 0.012308480262756348,
232
+ 0.01224396800994873,
233
+ 0.012294143676757812,
234
+ 0.012231679916381836,
235
+ 0.012280832290649414,
236
+ 0.012231679916381836,
237
+ 0.012286975860595703,
238
+ 0.01237299156188965,
239
+ 0.012298239707946777,
240
+ 0.01224294376373291,
241
+ 0.012288000106811523,
242
+ 0.012236800193786621,
243
+ 0.012282879829406738,
244
+ 0.012240896224975586,
245
+ 0.012292096138000488,
246
+ 0.012240896224975586,
247
+ 0.01227673625946045,
248
+ 0.012239871978759765,
249
+ 0.012295167922973632,
250
+ 0.012241920471191407,
251
+ 0.01228492832183838,
252
+ 0.012254207611083985,
253
+ 0.012291071891784668,
254
+ 0.01223475170135498,
255
+ 0.012291071891784668,
256
+ 0.012244992256164551,
257
+ 0.012285951614379884,
258
+ 0.012233728408813477,
259
+ 0.012285951614379884,
260
+ 0.012303359985351562,
261
+ 0.012318719863891601,
262
+ 0.012275775909423829,
263
+ 0.01239852809906006,
264
+ 0.012292096138000488,
265
+ 0.012363776206970215,
266
+ 0.012301312446594239,
267
+ 0.012299327850341797,
268
+ 0.012234687805175781,
269
+ 0.012289024353027344,
270
+ 0.01223475170135498,
271
+ 0.012283904075622559,
272
+ 0.0122357759475708,
273
+ 0.012297216415405274,
274
+ 0.012246015548706055,
275
+ 0.012282879829406738,
276
+ 0.012231679916381836,
277
+ 0.012289024353027344,
278
+ 0.012244992256164551,
279
+ 0.01226956844329834,
280
+ 0.0122357759475708,
281
+ 0.012298239707946777,
282
+ 0.012239871978759765,
283
+ 0.012302335739135742,
284
+ 0.012280832290649414,
285
+ 0.012455936431884765,
286
+ 0.012292096138000488,
287
+ 0.012365823745727538,
288
+ 0.012279808044433594,
289
+ 0.012274687767028808,
290
+ 0.012231679916381836,
291
+ 0.012274687767028808,
292
+ 0.012246015548706055,
293
+ 0.012273664474487305,
294
+ 0.012229632377624512,
295
+ 0.012289024353027344,
296
+ 0.012237824440002442,
297
+ 0.01228492832183838,
298
+ 0.012253184318542481,
299
+ 0.012282879829406738,
300
+ 0.012232704162597656,
301
+ 0.01228492832183838,
302
+ 0.01226854419708252,
303
+ 0.012416000366210938,
304
+ 0.012241920471191407,
305
+ 0.012299263954162597,
306
+ 0.026355712890625,
307
+ 0.01225830364227295,
308
+ 0.012300288200378418,
309
+ 0.012264448165893555,
310
+ 0.012290047645568849,
311
+ 0.012231679916381836,
312
+ 0.012285984039306641,
313
+ 0.012245984077453613,
314
+ 0.01227673625946045,
315
+ 0.012236800193786621,
316
+ 0.012278783798217773,
317
+ 0.012246015548706055,
318
+ 0.01229312038421631,
319
+ 0.012238847732543945,
320
+ 0.01229312038421631,
321
+ 0.012249088287353516,
322
+ 0.012349439620971679,
323
+ 0.01224396800994873,
324
+ 0.012299263954162597,
325
+ 0.0122357759475708,
326
+ 0.012280832290649414,
327
+ 0.01223475170135498,
328
+ 0.012274687767028808,
329
+ 0.01222758388519287,
330
+ 0.012279808044433594,
331
+ 0.012238847732543945,
332
+ 0.01228492832183838,
333
+ 0.012246015548706055,
334
+ 0.012295167922973632,
335
+ 0.012239871978759765,
336
+ 0.012282879829406738,
337
+ 0.012240896224975586,
338
+ 0.012290047645568849,
339
+ 0.012255231857299804,
340
+ 0.012296192169189453,
341
+ 0.012232704162597656,
342
+ 0.012285951614379884,
343
+ 0.01224294376373291,
344
+ 0.012275712013244629,
345
+ 0.012236800193786621,
346
+ 0.012279808044433594,
347
+ 0.01224294376373291,
348
+ 0.01228492832183838,
349
+ 0.012232704162597656,
350
+ 0.012272640228271485,
351
+ 0.012239871978759765,
352
+ 0.012280832290649414,
353
+ 0.012253184318542481,
354
+ 0.012304384231567383,
355
+ 0.012253184318542481,
356
+ 0.012272640228271485,
357
+ 0.012230655670166016,
358
+ 0.012273664474487305,
359
+ 0.01223583984375,
360
+ 0.012269503593444824,
361
+ 0.012233728408813477,
362
+ 0.012285951614379884,
363
+ 0.012239871978759765,
364
+ 0.012283904075622559,
365
+ 0.012236800193786621,
366
+ 0.012275712013244629,
367
+ 0.012226559638977052,
368
+ 0.012282879829406738,
369
+ 0.012231679916381836,
370
+ 0.012303359985351562,
371
+ 0.012231679916381836,
372
+ 0.012274687767028808,
373
+ 0.012236800193786621,
374
+ 0.012274687767028808,
375
+ 0.01224396800994873,
376
+ 0.012280832290649414,
377
+ 0.01224294376373291,
378
+ 0.012290047645568849,
379
+ 0.012240896224975586,
380
+ 0.012268608093261718,
381
+ 0.012232640266418456,
382
+ 0.012294143676757812,
383
+ 0.012254207611083985,
384
+ 0.012264448165893555,
385
+ 0.012254207611083985,
386
+ 0.012316672325134278,
387
+ 0.0122357759475708,
388
+ 0.012271615982055664,
389
+ 0.012236800193786621,
390
+ 0.012281855583190919,
391
+ 0.012238847732543945,
392
+ 0.012274687767028808,
393
+ 0.012267519950866699,
394
+ 0.012283904075622559,
395
+ 0.01224396800994873,
396
+ 0.012285951614379884,
397
+ 0.012257280349731446,
398
+ 0.012279808044433594,
399
+ 0.012221440315246582,
400
+ 0.012305407524108887,
401
+ 0.012253184318542481,
402
+ 0.012274687767028808,
403
+ 0.012223487854003906,
404
+ 0.012265472412109376,
405
+ 0.012238847732543945,
406
+ 0.01226956844329834,
407
+ 0.012247039794921874,
408
+ 0.012299296379089355,
409
+ 0.012243935585021973,
410
+ 0.01226956844329834,
411
+ 0.01222758388519287,
412
+ 0.012271615982055664,
413
+ 0.012222463607788087,
414
+ 0.01227676773071289,
415
+ 0.01222755241394043,
416
+ 0.012334176063537598,
417
+ 0.01224182415008545,
418
+ 0.012272640228271485,
419
+ 0.012247039794921874,
420
+ 0.012285951614379884,
421
+ 0.012237824440002442,
422
+ 0.01234227180480957,
423
+ 0.012271615982055664,
424
+ 0.012292096138000488,
425
+ 0.012244992256164551,
426
+ 0.012285951614379884,
427
+ 0.01224396800994873,
428
+ 0.012289024353027344,
429
+ 0.012272640228271485,
430
+ 0.012297216415405274,
431
+ 0.012257280349731446,
432
+ 0.012288000106811523
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 81.08404844872256
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
91
+ "accelerate_version": "0.31.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1916.53888,
6
+ "max_global_vram": 6094.848,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 5379.19488,
9
+ "max_allocated": 5020.227584
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.027971135139465333,
15
+ "mean": 0.013985567569732666,
16
+ "stdev": 0.00010992002487182628,
17
+ "p50": 0.013985567569732666,
18
+ "p90": 0.014073503589630127,
19
+ "p95": 0.01408449559211731,
20
+ "p99": 0.014093289194107057,
21
+ "values": [
22
+ 0.014095487594604493,
23
+ 0.01387564754486084
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 500.51597585136864
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2260.447232,
37
+ "max_global_vram": 8902.934528,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 5379.19488,
40
+ "max_allocated": 5026.065408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 3.1192700195312497,
46
+ "mean": 1.5596350097656249,
47
+ "stdev": 0.0018950195312500417,
48
+ "p50": 1.5596350097656249,
49
+ "p90": 1.5611510253906251,
50
+ "p95": 1.56134052734375,
51
+ "p99": 1.56149212890625,
52
+ "values": [
53
+ 1.561530029296875,
54
+ 1.557739990234375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 81.42930827071201
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 3.1202191410064715,
70
+ "mean": 0.012332881980262724,
71
+ "stdev": 0.0008860411652513156,
72
+ "p50": 0.012272640228271485,
73
+ "p90": 0.012302131080627441,
74
+ "p95": 0.012337414360046386,
75
+ "p99": 0.012755878448486328,
76
+ "values": [
77
+ 0.012702719688415527,
78
+ 0.012759039878845215,
79
+ 0.012752960205078125,
80
+ 0.012806079864501952,
81
+ 0.01226035213470459,
82
+ 0.012319744110107422,
83
+ 0.012295167922973632,
84
+ 0.012294143676757812,
85
+ 0.012254207611083985,
86
+ 0.012306431770324706,
87
+ 0.012237824440002442,
88
+ 0.012288000106811523,
89
+ 0.012241920471191407,
90
+ 0.012289024353027344,
91
+ 0.012241920471191407,
92
+ 0.012274687767028808,
93
+ 0.01224294376373291,
94
+ 0.012298239707946777,
95
+ 0.01224396800994873,
96
+ 0.01228492832183838,
97
+ 0.01228492832183838,
98
+ 0.012329983711242675,
99
+ 0.012248064041137695,
100
+ 0.012278783798217773,
101
+ 0.012239871978759765,
102
+ 0.012294143676757812,
103
+ 0.012237824440002442,
104
+ 0.012295167922973632,
105
+ 0.012249088287353516,
106
+ 0.012277824401855469,
107
+ 0.012237759590148925,
108
+ 0.012283904075622559,
109
+ 0.012240896224975586,
110
+ 0.01227673625946045,
111
+ 0.012247039794921874,
112
+ 0.012311552047729492,
113
+ 0.01225830364227295,
114
+ 0.012285951614379884,
115
+ 0.01223475170135498,
116
+ 0.012288000106811523,
117
+ 0.012256256103515625,
118
+ 0.012280832290649414,
119
+ 0.012248064041137695,
120
+ 0.012291071891784668,
121
+ 0.012246015548706055,
122
+ 0.012282879829406738,
123
+ 0.012237824440002442,
124
+ 0.012265472412109376,
125
+ 0.012239871978759765,
126
+ 0.012274720191955567,
127
+ 0.012258272171020507,
128
+ 0.012308480262756348,
129
+ 0.01224396800994873,
130
+ 0.012294143676757812,
131
+ 0.012231679916381836,
132
+ 0.012280832290649414,
133
+ 0.012231679916381836,
134
+ 0.012286975860595703,
135
+ 0.01237299156188965,
136
+ 0.012298239707946777,
137
+ 0.01224294376373291,
138
+ 0.012288000106811523,
139
+ 0.012236800193786621,
140
+ 0.012282879829406738,
141
+ 0.012240896224975586,
142
+ 0.012292096138000488,
143
+ 0.012240896224975586,
144
+ 0.01227673625946045,
145
+ 0.012239871978759765,
146
+ 0.012295167922973632,
147
+ 0.012241920471191407,
148
+ 0.01228492832183838,
149
+ 0.012254207611083985,
150
+ 0.012291071891784668,
151
+ 0.01223475170135498,
152
+ 0.012291071891784668,
153
+ 0.012244992256164551,
154
+ 0.012285951614379884,
155
+ 0.012233728408813477,
156
+ 0.012285951614379884,
157
+ 0.012303359985351562,
158
+ 0.012318719863891601,
159
+ 0.012275775909423829,
160
+ 0.01239852809906006,
161
+ 0.012292096138000488,
162
+ 0.012363776206970215,
163
+ 0.012301312446594239,
164
+ 0.012299327850341797,
165
+ 0.012234687805175781,
166
+ 0.012289024353027344,
167
+ 0.01223475170135498,
168
+ 0.012283904075622559,
169
+ 0.0122357759475708,
170
+ 0.012297216415405274,
171
+ 0.012246015548706055,
172
+ 0.012282879829406738,
173
+ 0.012231679916381836,
174
+ 0.012289024353027344,
175
+ 0.012244992256164551,
176
+ 0.01226956844329834,
177
+ 0.0122357759475708,
178
+ 0.012298239707946777,
179
+ 0.012239871978759765,
180
+ 0.012302335739135742,
181
+ 0.012280832290649414,
182
+ 0.012455936431884765,
183
+ 0.012292096138000488,
184
+ 0.012365823745727538,
185
+ 0.012279808044433594,
186
+ 0.012274687767028808,
187
+ 0.012231679916381836,
188
+ 0.012274687767028808,
189
+ 0.012246015548706055,
190
+ 0.012273664474487305,
191
+ 0.012229632377624512,
192
+ 0.012289024353027344,
193
+ 0.012237824440002442,
194
+ 0.01228492832183838,
195
+ 0.012253184318542481,
196
+ 0.012282879829406738,
197
+ 0.012232704162597656,
198
+ 0.01228492832183838,
199
+ 0.01226854419708252,
200
+ 0.012416000366210938,
201
+ 0.012241920471191407,
202
+ 0.012299263954162597,
203
+ 0.026355712890625,
204
+ 0.01225830364227295,
205
+ 0.012300288200378418,
206
+ 0.012264448165893555,
207
+ 0.012290047645568849,
208
+ 0.012231679916381836,
209
+ 0.012285984039306641,
210
+ 0.012245984077453613,
211
+ 0.01227673625946045,
212
+ 0.012236800193786621,
213
+ 0.012278783798217773,
214
+ 0.012246015548706055,
215
+ 0.01229312038421631,
216
+ 0.012238847732543945,
217
+ 0.01229312038421631,
218
+ 0.012249088287353516,
219
+ 0.012349439620971679,
220
+ 0.01224396800994873,
221
+ 0.012299263954162597,
222
+ 0.0122357759475708,
223
+ 0.012280832290649414,
224
+ 0.01223475170135498,
225
+ 0.012274687767028808,
226
+ 0.01222758388519287,
227
+ 0.012279808044433594,
228
+ 0.012238847732543945,
229
+ 0.01228492832183838,
230
+ 0.012246015548706055,
231
+ 0.012295167922973632,
232
+ 0.012239871978759765,
233
+ 0.012282879829406738,
234
+ 0.012240896224975586,
235
+ 0.012290047645568849,
236
+ 0.012255231857299804,
237
+ 0.012296192169189453,
238
+ 0.012232704162597656,
239
+ 0.012285951614379884,
240
+ 0.01224294376373291,
241
+ 0.012275712013244629,
242
+ 0.012236800193786621,
243
+ 0.012279808044433594,
244
+ 0.01224294376373291,
245
+ 0.01228492832183838,
246
+ 0.012232704162597656,
247
+ 0.012272640228271485,
248
+ 0.012239871978759765,
249
+ 0.012280832290649414,
250
+ 0.012253184318542481,
251
+ 0.012304384231567383,
252
+ 0.012253184318542481,
253
+ 0.012272640228271485,
254
+ 0.012230655670166016,
255
+ 0.012273664474487305,
256
+ 0.01223583984375,
257
+ 0.012269503593444824,
258
+ 0.012233728408813477,
259
+ 0.012285951614379884,
260
+ 0.012239871978759765,
261
+ 0.012283904075622559,
262
+ 0.012236800193786621,
263
+ 0.012275712013244629,
264
+ 0.012226559638977052,
265
+ 0.012282879829406738,
266
+ 0.012231679916381836,
267
+ 0.012303359985351562,
268
+ 0.012231679916381836,
269
+ 0.012274687767028808,
270
+ 0.012236800193786621,
271
+ 0.012274687767028808,
272
+ 0.01224396800994873,
273
+ 0.012280832290649414,
274
+ 0.01224294376373291,
275
+ 0.012290047645568849,
276
+ 0.012240896224975586,
277
+ 0.012268608093261718,
278
+ 0.012232640266418456,
279
+ 0.012294143676757812,
280
+ 0.012254207611083985,
281
+ 0.012264448165893555,
282
+ 0.012254207611083985,
283
+ 0.012316672325134278,
284
+ 0.0122357759475708,
285
+ 0.012271615982055664,
286
+ 0.012236800193786621,
287
+ 0.012281855583190919,
288
+ 0.012238847732543945,
289
+ 0.012274687767028808,
290
+ 0.012267519950866699,
291
+ 0.012283904075622559,
292
+ 0.01224396800994873,
293
+ 0.012285951614379884,
294
+ 0.012257280349731446,
295
+ 0.012279808044433594,
296
+ 0.012221440315246582,
297
+ 0.012305407524108887,
298
+ 0.012253184318542481,
299
+ 0.012274687767028808,
300
+ 0.012223487854003906,
301
+ 0.012265472412109376,
302
+ 0.012238847732543945,
303
+ 0.01226956844329834,
304
+ 0.012247039794921874,
305
+ 0.012299296379089355,
306
+ 0.012243935585021973,
307
+ 0.01226956844329834,
308
+ 0.01222758388519287,
309
+ 0.012271615982055664,
310
+ 0.012222463607788087,
311
+ 0.01227676773071289,
312
+ 0.01222755241394043,
313
+ 0.012334176063537598,
314
+ 0.01224182415008545,
315
+ 0.012272640228271485,
316
+ 0.012247039794921874,
317
+ 0.012285951614379884,
318
+ 0.012237824440002442,
319
+ 0.01234227180480957,
320
+ 0.012271615982055664,
321
+ 0.012292096138000488,
322
+ 0.012244992256164551,
323
+ 0.012285951614379884,
324
+ 0.01224396800994873,
325
+ 0.012289024353027344,
326
+ 0.012272640228271485,
327
+ 0.012297216415405274,
328
+ 0.012257280349731446,
329
+ 0.012288000106811523
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 81.08404844872256
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/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": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.013985567569732666,
7
+ "prefill.throughput.value": 500.51597585136864,
8
+ "decode.latency.mean": 1.5596350097656249,
9
+ "decode.throughput.value": 81.42930827071201,
10
+ "per_token.latency.mean": 0.012332881980262724,
11
+ "per_token.throughput.value": 81.08404844872256
12
+ }
13
+ }
2024-06-05/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpm3jqzvro/commit=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
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/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc
88
+ - hydra.run.dir=_benchmark/tmpm3jqzvro/commit\=f14d06e0bcaecb02c9a0075ce0c7379345d718bc/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.3.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model: google/gemma-2b
150
+ processor: null
151
+ device: cuda
152
+ device_ids: '0'
153
+ seed: 42
154
+ inter_op_num_threads: null
155
+ intra_op_num_threads: null
156
+ model_kwargs: {}
157
+ processor_kwargs: {}
158
+ hub_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ latency: true
192
+ memory: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ start_method: spawn
206
+ environment:
207
+ cpu: ' AMD EPYC 7R32'
208
+ cpu_count: 16
209
+ cpu_ram_mb: 66697.29792
210
+ system: Linux
211
+ machine: x86_64
212
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
213
+ processor: x86_64
214
+ python_version: 3.8.10
215
+ gpu:
216
+ - NVIDIA A10G
217
+ gpu_count: 1
218
+ gpu_vram_mb: 24146608128
219
+ optimum_benchmark_version: 0.2.1
220
+ optimum_benchmark_commit: null
221
+ transformers_version: 4.42.0.dev0
222
+ transformers_commit: f14d06e0bcaecb02c9a0075ce0c7379345d718bc
223
+ accelerate_version: 0.31.0.dev0
224
+ accelerate_commit: null
225
+ diffusers_version: null
226
+ diffusers_commit: null
227
+ optimum_version: 1.21.0.dev0
228
+ optimum_commit: null
229
+ timm_version: 0.9.16
230
+ timm_commit: null
231
+ peft_version: 0.11.2.dev0
232
+ peft_commit: null
2024-06-05/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.022776783943176268,
8
+ "prefill.throughput.value": 307.3304825415065,
9
+ "decode.latency.mean": 2.443668212890625,
10
+ "decode.throughput.value": 51.97104882326525,
11
+ "per_token.latency.mean": 0.01931815664570322,
12
+ "per_token.throughput.value": 51.764773334231236
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.02206830406188965,
21
+ "prefill.throughput.value": 317.1970070907483,
22
+ "decode.latency.mean": 2.59590380859375,
23
+ "decode.throughput.value": 48.92323035220565,
24
+ "per_token.latency.mean": 0.02052478912413827,
25
+ "per_token.throughput.value": 48.72157243379156
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "f14d06e0bcaecb02c9a0075ce0c7379345d718bc",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.013985567569732666,
34
+ "prefill.throughput.value": 500.51597585136864,
35
+ "decode.latency.mean": 1.5596350097656249,
36
+ "decode.throughput.value": 81.42930827071201,
37
+ "per_token.latency.mean": 0.012332881980262724,
38
+ "per_token.throughput.value": 81.08404844872256
39
+ }
40
+ }
41
+ ]
2024-06-05/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "f14d06e0bcaecb02c9a0075ce0c7379345d718bc": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022776783943176268,
7
+ "prefill.throughput.value": 307.3304825415065,
8
+ "decode.latency.mean": 2.443668212890625,
9
+ "decode.throughput.value": 51.97104882326525,
10
+ "per_token.latency.mean": 0.01931815664570322,
11
+ "per_token.throughput.value": 51.764773334231236
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "f14d06e0bcaecb02c9a0075ce0c7379345d718bc": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.02206830406188965,
19
+ "prefill.throughput.value": 317.1970070907483,
20
+ "decode.latency.mean": 2.59590380859375,
21
+ "decode.throughput.value": 48.92323035220565,
22
+ "per_token.latency.mean": 0.02052478912413827,
23
+ "per_token.throughput.value": 48.72157243379156
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "f14d06e0bcaecb02c9a0075ce0c7379345d718bc": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.013985567569732666,
31
+ "prefill.throughput.value": 500.51597585136864,
32
+ "decode.latency.mean": 1.5596350097656249,
33
+ "decode.throughput.value": 81.42930827071201,
34
+ "per_token.latency.mean": 0.012332881980262724,
35
+ "per_token.throughput.value": 81.08404844872256
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }