hf-transformers-bot commited on
Commit
1811f08
1 Parent(s): ad801ff

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/multirun.yaml +232 -0
  31. 2024-06-22/summaries.json +41 -0
  32. 2024-06-22/summary.json +40 -0
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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: 74a207404e8d4524d1fdc4aa23789694f9eef347
82
+ accelerate_version: 0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347
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/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347
88
+ - hydra.run.dir=_benchmark/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347/${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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
92
+ "accelerate_version": "0.32.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": 1714.745344,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5034.576896
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.03993619155883789,
118
+ "mean": 0.019968095779418944,
119
+ "stdev": 1.8558502197264792e-06,
120
+ "p50": 0.019968095779418944,
121
+ "p90": 0.019969580459594724,
122
+ "p95": 0.0199697660446167,
123
+ "p99": 0.019969914512634277,
124
+ "values": [
125
+ 0.019966239929199218,
126
+ 0.01996995162963867
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 350.5592159275838
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1714.823168,
140
+ "max_global_vram": 6795.296768,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6148.849664,
143
+ "max_allocated": 5034.577408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 4.84307666015625,
149
+ "mean": 2.421538330078125,
150
+ "stdev": 0.01126391601562493,
151
+ "p50": 2.421538330078125,
152
+ "p90": 2.430549462890625,
153
+ "p95": 2.4316758544921875,
154
+ "p99": 2.4325769677734375,
155
+ "values": [
156
+ 2.43280224609375,
157
+ 2.4102744140625
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 52.4460003058893
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.843678731918333,
173
+ "mean": 0.019144975224973656,
174
+ "stdev": 0.0013170653778996192,
175
+ "p50": 0.018968576431274413,
176
+ "p90": 0.01956864013671875,
177
+ "p95": 0.019677183532714845,
178
+ "p99": 0.020216299362182614,
179
+ "values": [
180
+ 0.020296703338623046,
181
+ 0.019074047088623047,
182
+ 0.018840639114379883,
183
+ 0.018873279571533202,
184
+ 0.018808832168579103,
185
+ 0.018795520782470702,
186
+ 0.020510719299316405,
187
+ 0.019917823791503905,
188
+ 0.019533824920654298,
189
+ 0.019507200241088866,
190
+ 0.0194703369140625,
191
+ 0.019526655197143555,
192
+ 0.01944268798828125,
193
+ 0.019506175994873046,
194
+ 0.01941606330871582,
195
+ 0.01920512008666992,
196
+ 0.019578880310058593,
197
+ 0.01944371223449707,
198
+ 0.01930342483520508,
199
+ 0.01941196823120117,
200
+ 0.01944371223449707,
201
+ 0.01948467254638672,
202
+ 0.01947340774536133,
203
+ 0.019478527069091797,
204
+ 0.01947340774536133,
205
+ 0.019602432250976562,
206
+ 0.019510271072387696,
207
+ 0.01944883155822754,
208
+ 0.01948876762390137,
209
+ 0.01985536003112793,
210
+ 0.01967103958129883,
211
+ 0.019564544677734375,
212
+ 0.019508224487304687,
213
+ 0.019546112060546874,
214
+ 0.01947238349914551,
215
+ 0.01947750473022461,
216
+ 0.019401727676391603,
217
+ 0.019363840103149413,
218
+ 0.01919795227050781,
219
+ 0.019268608093261717,
220
+ 0.019481599807739256,
221
+ 0.0194201602935791,
222
+ 0.01943449592590332,
223
+ 0.019458047866821288,
224
+ 0.019512319564819337,
225
+ 0.019471359252929688,
226
+ 0.01944473648071289,
227
+ 0.019374080657958984,
228
+ 0.019414016723632813,
229
+ 0.019182592391967773,
230
+ 0.019375104904174805,
231
+ 0.019715072631835938,
232
+ 0.019272703170776367,
233
+ 0.01904537582397461,
234
+ 0.01898192024230957,
235
+ 0.018815967559814455,
236
+ 0.018991104125976564,
237
+ 0.018937856674194335,
238
+ 0.01902899169921875,
239
+ 0.018961408615112304,
240
+ 0.018940927505493164,
241
+ 0.01878937530517578,
242
+ 0.018739200592041014,
243
+ 0.018714624404907225,
244
+ 0.018787328720092773,
245
+ 0.018774015426635742,
246
+ 0.018743295669555664,
247
+ 0.018739200592041014,
248
+ 0.018708480834960937,
249
+ 0.018824192047119142,
250
+ 0.018694143295288086,
251
+ 0.018712575912475587,
252
+ 0.018811904907226562,
253
+ 0.018717695236206054,
254
+ 0.018751487731933594,
255
+ 0.018739200592041014,
256
+ 0.018743295669555664,
257
+ 0.018930688858032226,
258
+ 0.018981887817382814,
259
+ 0.018929664611816405,
260
+ 0.01884979248046875,
261
+ 0.018761728286743166,
262
+ 0.01885491180419922,
263
+ 0.01986764717102051,
264
+ 0.019664896011352538,
265
+ 0.01960140800476074,
266
+ 0.019500064849853515,
267
+ 0.019470304489135743,
268
+ 0.019302400588989257,
269
+ 0.01879859161376953,
270
+ 0.018778112411499022,
271
+ 0.018776063919067384,
272
+ 0.018782207489013672,
273
+ 0.01921331214904785,
274
+ 0.019381248474121093,
275
+ 0.019005439758300782,
276
+ 0.018694143295288086,
277
+ 0.018785280227661134,
278
+ 0.018968576431274413,
279
+ 0.019280895233154297,
280
+ 0.018799615859985352,
281
+ 0.018786304473876952,
282
+ 0.018747392654418944,
283
+ 0.019120128631591796,
284
+ 0.018880512237548826,
285
+ 0.01903001594543457,
286
+ 0.018779232025146485,
287
+ 0.019077024459838866,
288
+ 0.019187711715698243,
289
+ 0.019183616638183593,
290
+ 0.01905971145629883,
291
+ 0.018892799377441406,
292
+ 0.018768896102905275,
293
+ 0.019019775390625,
294
+ 0.019135488510131835,
295
+ 0.019096576690673828,
296
+ 0.019104768753051758,
297
+ 0.018679807662963867,
298
+ 0.019141632080078123,
299
+ 0.01888768005371094,
300
+ 0.018783231735229493,
301
+ 0.018716672897338867,
302
+ 0.018661376953125,
303
+ 0.018729984283447267,
304
+ 0.018700288772583007,
305
+ 0.01881907272338867,
306
+ 0.0392171516418457,
307
+ 0.019110912322998046,
308
+ 0.01909350395202637,
309
+ 0.01948057556152344,
310
+ 0.018998271942138673,
311
+ 0.01903615951538086,
312
+ 0.01930342483520508,
313
+ 0.019479551315307618,
314
+ 0.018960384368896483,
315
+ 0.01942425537109375,
316
+ 0.018844671249389648,
317
+ 0.018771968841552734,
318
+ 0.01880985641479492,
319
+ 0.018815999984741212,
320
+ 0.01866035270690918,
321
+ 0.01867366409301758,
322
+ 0.0185743350982666,
323
+ 0.018716672897338867,
324
+ 0.018745344161987306,
325
+ 0.018712575912475587,
326
+ 0.01861631965637207,
327
+ 0.018701311111450195,
328
+ 0.018868223190307617,
329
+ 0.018824192047119142,
330
+ 0.01862860870361328,
331
+ 0.018973695755004884,
332
+ 0.01889587211608887,
333
+ 0.018979839324951172,
334
+ 0.019104768753051758,
335
+ 0.0196945915222168,
336
+ 0.01946112060546875,
337
+ 0.018928640365600585,
338
+ 0.01860812759399414,
339
+ 0.01884364891052246,
340
+ 0.018702335357666015,
341
+ 0.018626560211181642,
342
+ 0.018570240020751954,
343
+ 0.01859891128540039,
344
+ 0.01863884735107422,
345
+ 0.01860710334777832,
346
+ 0.01863372802734375,
347
+ 0.018556928634643553,
348
+ 0.018589696884155273,
349
+ 0.018571264266967775,
350
+ 0.018592767715454102,
351
+ 0.0186060791015625,
352
+ 0.018662399291992187,
353
+ 0.01882624053955078,
354
+ 0.01865727996826172,
355
+ 0.01863680076599121,
356
+ 0.01862246322631836,
357
+ 0.01862553596496582,
358
+ 0.01862348747253418,
359
+ 0.01862144088745117,
360
+ 0.01863884735107422,
361
+ 0.018588672637939452,
362
+ 0.018774015426635742,
363
+ 0.018982912063598634,
364
+ 0.019340288162231444,
365
+ 0.01902592086791992,
366
+ 0.018958335876464845,
367
+ 0.019596288681030274,
368
+ 0.0194201602935791,
369
+ 0.019109888076782225,
370
+ 0.019109888076782225,
371
+ 0.019166208267211913,
372
+ 0.018976768493652343,
373
+ 0.018947071075439453,
374
+ 0.018883583068847656,
375
+ 0.018970624923706055,
376
+ 0.018985984802246093,
377
+ 0.018754560470581053,
378
+ 0.01879449653625488,
379
+ 0.018771968841552734,
380
+ 0.018763776779174804,
381
+ 0.01879449653625488,
382
+ 0.018972671508789063,
383
+ 0.01966080093383789,
384
+ 0.019591167449951173,
385
+ 0.019597312927246095,
386
+ 0.020142080307006836,
387
+ 0.019853311538696287,
388
+ 0.01945497512817383,
389
+ 0.019062784194946288,
390
+ 0.01924095916748047,
391
+ 0.019042303085327148,
392
+ 0.01876479911804199,
393
+ 0.01883443260192871,
394
+ 0.018787328720092773,
395
+ 0.018907136917114258,
396
+ 0.019162111282348633,
397
+ 0.01924095916748047,
398
+ 0.01921331214904785,
399
+ 0.018933759689331055,
400
+ 0.018916351318359375,
401
+ 0.01901055908203125,
402
+ 0.01906073570251465,
403
+ 0.018962432861328125,
404
+ 0.01879449653625488,
405
+ 0.01878835105895996,
406
+ 0.01875660705566406,
407
+ 0.01869824028015137,
408
+ 0.018779136657714843,
409
+ 0.018791423797607423,
410
+ 0.018676736831665038,
411
+ 0.018754560470581053,
412
+ 0.01878937530517578,
413
+ 0.018700288772583007,
414
+ 0.01876479911804199,
415
+ 0.018953216552734374,
416
+ 0.018937856674194335,
417
+ 0.018937856674194335,
418
+ 0.018770944595336913,
419
+ 0.018695167541503906,
420
+ 0.018720767974853517,
421
+ 0.01904640007019043,
422
+ 0.019494911193847657,
423
+ 0.01966796875,
424
+ 0.01968639945983887,
425
+ 0.019314687728881837,
426
+ 0.019562496185302734,
427
+ 0.019802112579345704,
428
+ 0.019705856323242187,
429
+ 0.019619840621948242,
430
+ 0.019569664001464843,
431
+ 0.018952192306518553,
432
+ 0.01963724708557129
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 52.23302659047322
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
91
+ "accelerate_version": "0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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": 1714.745344,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5034.576896
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.03993619155883789,
15
+ "mean": 0.019968095779418944,
16
+ "stdev": 1.8558502197264792e-06,
17
+ "p50": 0.019968095779418944,
18
+ "p90": 0.019969580459594724,
19
+ "p95": 0.0199697660446167,
20
+ "p99": 0.019969914512634277,
21
+ "values": [
22
+ 0.019966239929199218,
23
+ 0.01996995162963867
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 350.5592159275838
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1714.823168,
37
+ "max_global_vram": 6795.296768,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6148.849664,
40
+ "max_allocated": 5034.577408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 4.84307666015625,
46
+ "mean": 2.421538330078125,
47
+ "stdev": 0.01126391601562493,
48
+ "p50": 2.421538330078125,
49
+ "p90": 2.430549462890625,
50
+ "p95": 2.4316758544921875,
51
+ "p99": 2.4325769677734375,
52
+ "values": [
53
+ 2.43280224609375,
54
+ 2.4102744140625
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 52.4460003058893
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.843678731918333,
70
+ "mean": 0.019144975224973656,
71
+ "stdev": 0.0013170653778996192,
72
+ "p50": 0.018968576431274413,
73
+ "p90": 0.01956864013671875,
74
+ "p95": 0.019677183532714845,
75
+ "p99": 0.020216299362182614,
76
+ "values": [
77
+ 0.020296703338623046,
78
+ 0.019074047088623047,
79
+ 0.018840639114379883,
80
+ 0.018873279571533202,
81
+ 0.018808832168579103,
82
+ 0.018795520782470702,
83
+ 0.020510719299316405,
84
+ 0.019917823791503905,
85
+ 0.019533824920654298,
86
+ 0.019507200241088866,
87
+ 0.0194703369140625,
88
+ 0.019526655197143555,
89
+ 0.01944268798828125,
90
+ 0.019506175994873046,
91
+ 0.01941606330871582,
92
+ 0.01920512008666992,
93
+ 0.019578880310058593,
94
+ 0.01944371223449707,
95
+ 0.01930342483520508,
96
+ 0.01941196823120117,
97
+ 0.01944371223449707,
98
+ 0.01948467254638672,
99
+ 0.01947340774536133,
100
+ 0.019478527069091797,
101
+ 0.01947340774536133,
102
+ 0.019602432250976562,
103
+ 0.019510271072387696,
104
+ 0.01944883155822754,
105
+ 0.01948876762390137,
106
+ 0.01985536003112793,
107
+ 0.01967103958129883,
108
+ 0.019564544677734375,
109
+ 0.019508224487304687,
110
+ 0.019546112060546874,
111
+ 0.01947238349914551,
112
+ 0.01947750473022461,
113
+ 0.019401727676391603,
114
+ 0.019363840103149413,
115
+ 0.01919795227050781,
116
+ 0.019268608093261717,
117
+ 0.019481599807739256,
118
+ 0.0194201602935791,
119
+ 0.01943449592590332,
120
+ 0.019458047866821288,
121
+ 0.019512319564819337,
122
+ 0.019471359252929688,
123
+ 0.01944473648071289,
124
+ 0.019374080657958984,
125
+ 0.019414016723632813,
126
+ 0.019182592391967773,
127
+ 0.019375104904174805,
128
+ 0.019715072631835938,
129
+ 0.019272703170776367,
130
+ 0.01904537582397461,
131
+ 0.01898192024230957,
132
+ 0.018815967559814455,
133
+ 0.018991104125976564,
134
+ 0.018937856674194335,
135
+ 0.01902899169921875,
136
+ 0.018961408615112304,
137
+ 0.018940927505493164,
138
+ 0.01878937530517578,
139
+ 0.018739200592041014,
140
+ 0.018714624404907225,
141
+ 0.018787328720092773,
142
+ 0.018774015426635742,
143
+ 0.018743295669555664,
144
+ 0.018739200592041014,
145
+ 0.018708480834960937,
146
+ 0.018824192047119142,
147
+ 0.018694143295288086,
148
+ 0.018712575912475587,
149
+ 0.018811904907226562,
150
+ 0.018717695236206054,
151
+ 0.018751487731933594,
152
+ 0.018739200592041014,
153
+ 0.018743295669555664,
154
+ 0.018930688858032226,
155
+ 0.018981887817382814,
156
+ 0.018929664611816405,
157
+ 0.01884979248046875,
158
+ 0.018761728286743166,
159
+ 0.01885491180419922,
160
+ 0.01986764717102051,
161
+ 0.019664896011352538,
162
+ 0.01960140800476074,
163
+ 0.019500064849853515,
164
+ 0.019470304489135743,
165
+ 0.019302400588989257,
166
+ 0.01879859161376953,
167
+ 0.018778112411499022,
168
+ 0.018776063919067384,
169
+ 0.018782207489013672,
170
+ 0.01921331214904785,
171
+ 0.019381248474121093,
172
+ 0.019005439758300782,
173
+ 0.018694143295288086,
174
+ 0.018785280227661134,
175
+ 0.018968576431274413,
176
+ 0.019280895233154297,
177
+ 0.018799615859985352,
178
+ 0.018786304473876952,
179
+ 0.018747392654418944,
180
+ 0.019120128631591796,
181
+ 0.018880512237548826,
182
+ 0.01903001594543457,
183
+ 0.018779232025146485,
184
+ 0.019077024459838866,
185
+ 0.019187711715698243,
186
+ 0.019183616638183593,
187
+ 0.01905971145629883,
188
+ 0.018892799377441406,
189
+ 0.018768896102905275,
190
+ 0.019019775390625,
191
+ 0.019135488510131835,
192
+ 0.019096576690673828,
193
+ 0.019104768753051758,
194
+ 0.018679807662963867,
195
+ 0.019141632080078123,
196
+ 0.01888768005371094,
197
+ 0.018783231735229493,
198
+ 0.018716672897338867,
199
+ 0.018661376953125,
200
+ 0.018729984283447267,
201
+ 0.018700288772583007,
202
+ 0.01881907272338867,
203
+ 0.0392171516418457,
204
+ 0.019110912322998046,
205
+ 0.01909350395202637,
206
+ 0.01948057556152344,
207
+ 0.018998271942138673,
208
+ 0.01903615951538086,
209
+ 0.01930342483520508,
210
+ 0.019479551315307618,
211
+ 0.018960384368896483,
212
+ 0.01942425537109375,
213
+ 0.018844671249389648,
214
+ 0.018771968841552734,
215
+ 0.01880985641479492,
216
+ 0.018815999984741212,
217
+ 0.01866035270690918,
218
+ 0.01867366409301758,
219
+ 0.0185743350982666,
220
+ 0.018716672897338867,
221
+ 0.018745344161987306,
222
+ 0.018712575912475587,
223
+ 0.01861631965637207,
224
+ 0.018701311111450195,
225
+ 0.018868223190307617,
226
+ 0.018824192047119142,
227
+ 0.01862860870361328,
228
+ 0.018973695755004884,
229
+ 0.01889587211608887,
230
+ 0.018979839324951172,
231
+ 0.019104768753051758,
232
+ 0.0196945915222168,
233
+ 0.01946112060546875,
234
+ 0.018928640365600585,
235
+ 0.01860812759399414,
236
+ 0.01884364891052246,
237
+ 0.018702335357666015,
238
+ 0.018626560211181642,
239
+ 0.018570240020751954,
240
+ 0.01859891128540039,
241
+ 0.01863884735107422,
242
+ 0.01860710334777832,
243
+ 0.01863372802734375,
244
+ 0.018556928634643553,
245
+ 0.018589696884155273,
246
+ 0.018571264266967775,
247
+ 0.018592767715454102,
248
+ 0.0186060791015625,
249
+ 0.018662399291992187,
250
+ 0.01882624053955078,
251
+ 0.01865727996826172,
252
+ 0.01863680076599121,
253
+ 0.01862246322631836,
254
+ 0.01862553596496582,
255
+ 0.01862348747253418,
256
+ 0.01862144088745117,
257
+ 0.01863884735107422,
258
+ 0.018588672637939452,
259
+ 0.018774015426635742,
260
+ 0.018982912063598634,
261
+ 0.019340288162231444,
262
+ 0.01902592086791992,
263
+ 0.018958335876464845,
264
+ 0.019596288681030274,
265
+ 0.0194201602935791,
266
+ 0.019109888076782225,
267
+ 0.019109888076782225,
268
+ 0.019166208267211913,
269
+ 0.018976768493652343,
270
+ 0.018947071075439453,
271
+ 0.018883583068847656,
272
+ 0.018970624923706055,
273
+ 0.018985984802246093,
274
+ 0.018754560470581053,
275
+ 0.01879449653625488,
276
+ 0.018771968841552734,
277
+ 0.018763776779174804,
278
+ 0.01879449653625488,
279
+ 0.018972671508789063,
280
+ 0.01966080093383789,
281
+ 0.019591167449951173,
282
+ 0.019597312927246095,
283
+ 0.020142080307006836,
284
+ 0.019853311538696287,
285
+ 0.01945497512817383,
286
+ 0.019062784194946288,
287
+ 0.01924095916748047,
288
+ 0.019042303085327148,
289
+ 0.01876479911804199,
290
+ 0.01883443260192871,
291
+ 0.018787328720092773,
292
+ 0.018907136917114258,
293
+ 0.019162111282348633,
294
+ 0.01924095916748047,
295
+ 0.01921331214904785,
296
+ 0.018933759689331055,
297
+ 0.018916351318359375,
298
+ 0.01901055908203125,
299
+ 0.01906073570251465,
300
+ 0.018962432861328125,
301
+ 0.01879449653625488,
302
+ 0.01878835105895996,
303
+ 0.01875660705566406,
304
+ 0.01869824028015137,
305
+ 0.018779136657714843,
306
+ 0.018791423797607423,
307
+ 0.018676736831665038,
308
+ 0.018754560470581053,
309
+ 0.01878937530517578,
310
+ 0.018700288772583007,
311
+ 0.01876479911804199,
312
+ 0.018953216552734374,
313
+ 0.018937856674194335,
314
+ 0.018937856674194335,
315
+ 0.018770944595336913,
316
+ 0.018695167541503906,
317
+ 0.018720767974853517,
318
+ 0.01904640007019043,
319
+ 0.019494911193847657,
320
+ 0.01966796875,
321
+ 0.01968639945983887,
322
+ 0.019314687728881837,
323
+ 0.019562496185302734,
324
+ 0.019802112579345704,
325
+ 0.019705856323242187,
326
+ 0.019619840621948242,
327
+ 0.019569664001464843,
328
+ 0.018952192306518553,
329
+ 0.01963724708557129
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 52.23302659047322
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019968095779418944,
7
+ "prefill.throughput.value": 350.5592159275838,
8
+ "decode.latency.mean": 2.421538330078125,
9
+ "decode.throughput.value": 52.4460003058893,
10
+ "per_token.latency.mean": 0.019144975224973656,
11
+ "per_token.throughput.value": 52.23302659047322
12
+ }
13
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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: 74a207404e8d4524d1fdc4aa23789694f9eef347
82
+ accelerate_version: 0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347
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/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347
88
+ - hydra.run.dir=_benchmark/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347/${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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-22 02:33:41,493][process][ERROR] - + Sending traceback to main process
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
91
+ "accelerate_version": "0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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: 74a207404e8d4524d1fdc4aa23789694f9eef347
82
+ accelerate_version: 0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347
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/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347
88
+ - hydra.run.dir=_benchmark/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347/${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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
92
+ "accelerate_version": "0.32.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": 1752.522752,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5036.936192
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04439481544494629,
118
+ "mean": 0.022197407722473146,
119
+ "stdev": 0.00029267215728759864,
120
+ "p50": 0.022197407722473146,
121
+ "p90": 0.022431545448303225,
122
+ "p95": 0.022460812664031982,
123
+ "p99": 0.02248422643661499,
124
+ "values": [
125
+ 0.022490079879760743,
126
+ 0.021904735565185546
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 315.35213875055535
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1752.543232,
140
+ "max_global_vram": 6793.199616,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6146.752512,
143
+ "max_allocated": 5036.936704
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 5.280656494140625,
149
+ "mean": 2.6403282470703124,
150
+ "stdev": 0.04216296386718765,
151
+ "p50": 2.6403282470703124,
152
+ "p90": 2.6740586181640627,
153
+ "p95": 2.6782749145507814,
154
+ "p99": 2.6816479516601563,
155
+ "values": [
156
+ 2.6824912109375,
157
+ 2.598165283203125
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 48.10008003395722
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.281769475936887,
173
+ "mean": 0.020876559193426444,
174
+ "stdev": 0.001445373343673314,
175
+ "p50": 0.02108518409729004,
176
+ "p90": 0.021297561264038086,
177
+ "p95": 0.02150215606689453,
178
+ "p99": 0.02222014518737793,
179
+ "values": [
180
+ 0.0220446720123291,
181
+ 0.0224716796875,
182
+ 0.020788223266601562,
183
+ 0.021120000839233398,
184
+ 0.021188608169555666,
185
+ 0.02000383949279785,
186
+ 0.020098047256469728,
187
+ 0.020535295486450195,
188
+ 0.02087116813659668,
189
+ 0.020767744064331056,
190
+ 0.02084147262573242,
191
+ 0.019929088592529298,
192
+ 0.020725759506225586,
193
+ 0.02108415985107422,
194
+ 0.021147647857666017,
195
+ 0.0210882568359375,
196
+ 0.020091903686523437,
197
+ 0.02091007995605469,
198
+ 0.021163007736206055,
199
+ 0.020847616195678712,
200
+ 0.02081996726989746,
201
+ 0.020290559768676757,
202
+ 0.021184511184692383,
203
+ 0.02106982421875,
204
+ 0.021173248291015623,
205
+ 0.020530176162719727,
206
+ 0.02209382438659668,
207
+ 0.021541887283325196,
208
+ 0.021295103073120117,
209
+ 0.0210882568359375,
210
+ 0.021163007736206055,
211
+ 0.02235699272155762,
212
+ 0.021408767700195314,
213
+ 0.02145484733581543,
214
+ 0.021158912658691405,
215
+ 0.0210882568359375,
216
+ 0.021599231719970705,
217
+ 0.021396480560302734,
218
+ 0.02126438331604004,
219
+ 0.02110771179199219,
220
+ 0.021098495483398438,
221
+ 0.021547008514404296,
222
+ 0.021166080474853514,
223
+ 0.02109951972961426,
224
+ 0.021143552780151367,
225
+ 0.02108518409729004,
226
+ 0.021115903854370118,
227
+ 0.021109760284423826,
228
+ 0.021226495742797852,
229
+ 0.021147647857666017,
230
+ 0.02122035217285156,
231
+ 0.021123071670532227,
232
+ 0.020794368743896483,
233
+ 0.020744192123413087,
234
+ 0.021183488845825195,
235
+ 0.021081087112426757,
236
+ 0.021200895309448242,
237
+ 0.021137407302856445,
238
+ 0.021271551132202148,
239
+ 0.02123673629760742,
240
+ 0.021187583923339845,
241
+ 0.021138431549072266,
242
+ 0.021197824478149413,
243
+ 0.021014528274536134,
244
+ 0.020799488067626954,
245
+ 0.020765695571899414,
246
+ 0.020807680130004884,
247
+ 0.021109760284423826,
248
+ 0.021117952346801756,
249
+ 0.021124095916748048,
250
+ 0.02111692810058594,
251
+ 0.021121023178100586,
252
+ 0.02129817581176758,
253
+ 0.021061632156372072,
254
+ 0.020784128189086915,
255
+ 0.020990976333618162,
256
+ 0.02110873603820801,
257
+ 0.02110054397583008,
258
+ 0.021214208602905273,
259
+ 0.021143552780151367,
260
+ 0.021153791427612305,
261
+ 0.021227519989013673,
262
+ 0.02083430480957031,
263
+ 0.02106470489501953,
264
+ 0.02164735984802246,
265
+ 0.02128691291809082,
266
+ 0.021259263992309572,
267
+ 0.021242879867553712,
268
+ 0.021575679779052736,
269
+ 0.02111692810058594,
270
+ 0.021309440612792968,
271
+ 0.02123161506652832,
272
+ 0.02148659133911133,
273
+ 0.021324800491333007,
274
+ 0.02147123146057129,
275
+ 0.021114879608154297,
276
+ 0.021110784530639647,
277
+ 0.021331968307495116,
278
+ 0.021339136123657225,
279
+ 0.021121023178100586,
280
+ 0.021152767181396484,
281
+ 0.02110054397583008,
282
+ 0.021136383056640624,
283
+ 0.021169151306152344,
284
+ 0.021211135864257814,
285
+ 0.021134336471557616,
286
+ 0.021207040786743164,
287
+ 0.021130239486694336,
288
+ 0.021180416107177736,
289
+ 0.021190656661987304,
290
+ 0.021167104721069335,
291
+ 0.021195775985717775,
292
+ 0.021226495742797852,
293
+ 0.02109337615966797,
294
+ 0.021143552780151367,
295
+ 0.021133312225341795,
296
+ 0.021127168655395507,
297
+ 0.021106687545776368,
298
+ 0.021133312225341795,
299
+ 0.021102592468261717,
300
+ 0.021139455795288087,
301
+ 0.021105663299560547,
302
+ 0.02109951972961426,
303
+ 0.02108006477355957,
304
+ 0.02107699203491211,
305
+ 0.021129215240478515,
306
+ 0.04216524887084961,
307
+ 0.02009600067138672,
308
+ 0.02011136054992676,
309
+ 0.02022809600830078,
310
+ 0.020197376251220703,
311
+ 0.02109951972961426,
312
+ 0.02109235191345215,
313
+ 0.020832256317138673,
314
+ 0.020768768310546876,
315
+ 0.021525503158569336,
316
+ 0.020917280197143555,
317
+ 0.020830175399780274,
318
+ 0.02105958366394043,
319
+ 0.021164031982421876,
320
+ 0.021323776245117186,
321
+ 0.021327871322631836,
322
+ 0.02122854423522949,
323
+ 0.021212160110473634,
324
+ 0.02014316749572754,
325
+ 0.020436927795410155,
326
+ 0.02039193534851074,
327
+ 0.020156415939331054,
328
+ 0.020125696182250977,
329
+ 0.020121599197387697,
330
+ 0.02008883285522461,
331
+ 0.020106271743774416,
332
+ 0.02012771224975586,
333
+ 0.020076543807983398,
334
+ 0.020100095748901366,
335
+ 0.02011136054992676,
336
+ 0.02012057685852051,
337
+ 0.020125696182250977,
338
+ 0.020065280914306642,
339
+ 0.02007961654663086,
340
+ 0.0200949764251709,
341
+ 0.020105215072631837,
342
+ 0.02007244873046875,
343
+ 0.020067327499389647,
344
+ 0.02008064079284668,
345
+ 0.02008883285522461,
346
+ 0.021046335220336915,
347
+ 0.021389280319213867,
348
+ 0.020848608016967772,
349
+ 0.021185535430908203,
350
+ 0.021111808776855468,
351
+ 0.02110771179199219,
352
+ 0.021171199798583985,
353
+ 0.021167104721069335,
354
+ 0.02109132766723633,
355
+ 0.021275648117065428,
356
+ 0.02171392059326172,
357
+ 0.020213760375976563,
358
+ 0.019920896530151368,
359
+ 0.019940351486206053,
360
+ 0.020024320602416993,
361
+ 0.019983360290527344,
362
+ 0.020154367446899413,
363
+ 0.020519935607910156,
364
+ 0.02061516761779785,
365
+ 0.020140031814575195,
366
+ 0.020107263565063475,
367
+ 0.020130815505981444,
368
+ 0.020118528366088868,
369
+ 0.020091903686523437,
370
+ 0.02004991912841797,
371
+ 0.020076543807983398,
372
+ 0.020167680740356447,
373
+ 0.020159488677978517,
374
+ 0.0200898551940918,
375
+ 0.020122623443603514,
376
+ 0.02008780860900879,
377
+ 0.020031488418579102,
378
+ 0.019918848037719726,
379
+ 0.019928064346313477,
380
+ 0.020115455627441405,
381
+ 0.02021683120727539,
382
+ 0.020351999282836913,
383
+ 0.020114431381225584,
384
+ 0.020142080307006836,
385
+ 0.020139007568359374,
386
+ 0.020149248123168945,
387
+ 0.02006937599182129,
388
+ 0.02023219108581543,
389
+ 0.02008883285522461,
390
+ 0.020076543807983398,
391
+ 0.020139007568359374,
392
+ 0.020092927932739257,
393
+ 0.02011136054992676,
394
+ 0.020188159942626953,
395
+ 0.021800960540771484,
396
+ 0.021174272537231444,
397
+ 0.019992576599121094,
398
+ 0.020163583755493163,
399
+ 0.020199424743652345,
400
+ 0.020115455627441405,
401
+ 0.020114431381225584,
402
+ 0.020160512924194338,
403
+ 0.020118528366088868,
404
+ 0.020084735870361328,
405
+ 0.0208035831451416,
406
+ 0.021136383056640624,
407
+ 0.021183488845825195,
408
+ 0.021139455795288087,
409
+ 0.021130239486694336,
410
+ 0.021190656661987304,
411
+ 0.020806655883789063,
412
+ 0.020751359939575196,
413
+ 0.02008883285522461,
414
+ 0.02006630325317383,
415
+ 0.02006937599182129,
416
+ 0.02005401611328125,
417
+ 0.020488191604614257,
418
+ 0.02110771179199219,
419
+ 0.021120000839233398,
420
+ 0.021129215240478515,
421
+ 0.021150720596313476,
422
+ 0.021111808776855468,
423
+ 0.021143552780151367,
424
+ 0.021132287979125978,
425
+ 0.020147199630737304,
426
+ 0.02012774467468262,
427
+ 0.020147199630737304,
428
+ 0.020092927932739257,
429
+ 0.02011238479614258,
430
+ 0.020406272888183592,
431
+ 0.02023219108581543,
432
+ 0.020115455627441405
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 47.90061382887642
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
91
+ "accelerate_version": "0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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": 1752.522752,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5036.936192
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04439481544494629,
15
+ "mean": 0.022197407722473146,
16
+ "stdev": 0.00029267215728759864,
17
+ "p50": 0.022197407722473146,
18
+ "p90": 0.022431545448303225,
19
+ "p95": 0.022460812664031982,
20
+ "p99": 0.02248422643661499,
21
+ "values": [
22
+ 0.022490079879760743,
23
+ 0.021904735565185546
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 315.35213875055535
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1752.543232,
37
+ "max_global_vram": 6793.199616,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6146.752512,
40
+ "max_allocated": 5036.936704
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 5.280656494140625,
46
+ "mean": 2.6403282470703124,
47
+ "stdev": 0.04216296386718765,
48
+ "p50": 2.6403282470703124,
49
+ "p90": 2.6740586181640627,
50
+ "p95": 2.6782749145507814,
51
+ "p99": 2.6816479516601563,
52
+ "values": [
53
+ 2.6824912109375,
54
+ 2.598165283203125
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 48.10008003395722
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.281769475936887,
70
+ "mean": 0.020876559193426444,
71
+ "stdev": 0.001445373343673314,
72
+ "p50": 0.02108518409729004,
73
+ "p90": 0.021297561264038086,
74
+ "p95": 0.02150215606689453,
75
+ "p99": 0.02222014518737793,
76
+ "values": [
77
+ 0.0220446720123291,
78
+ 0.0224716796875,
79
+ 0.020788223266601562,
80
+ 0.021120000839233398,
81
+ 0.021188608169555666,
82
+ 0.02000383949279785,
83
+ 0.020098047256469728,
84
+ 0.020535295486450195,
85
+ 0.02087116813659668,
86
+ 0.020767744064331056,
87
+ 0.02084147262573242,
88
+ 0.019929088592529298,
89
+ 0.020725759506225586,
90
+ 0.02108415985107422,
91
+ 0.021147647857666017,
92
+ 0.0210882568359375,
93
+ 0.020091903686523437,
94
+ 0.02091007995605469,
95
+ 0.021163007736206055,
96
+ 0.020847616195678712,
97
+ 0.02081996726989746,
98
+ 0.020290559768676757,
99
+ 0.021184511184692383,
100
+ 0.02106982421875,
101
+ 0.021173248291015623,
102
+ 0.020530176162719727,
103
+ 0.02209382438659668,
104
+ 0.021541887283325196,
105
+ 0.021295103073120117,
106
+ 0.0210882568359375,
107
+ 0.021163007736206055,
108
+ 0.02235699272155762,
109
+ 0.021408767700195314,
110
+ 0.02145484733581543,
111
+ 0.021158912658691405,
112
+ 0.0210882568359375,
113
+ 0.021599231719970705,
114
+ 0.021396480560302734,
115
+ 0.02126438331604004,
116
+ 0.02110771179199219,
117
+ 0.021098495483398438,
118
+ 0.021547008514404296,
119
+ 0.021166080474853514,
120
+ 0.02109951972961426,
121
+ 0.021143552780151367,
122
+ 0.02108518409729004,
123
+ 0.021115903854370118,
124
+ 0.021109760284423826,
125
+ 0.021226495742797852,
126
+ 0.021147647857666017,
127
+ 0.02122035217285156,
128
+ 0.021123071670532227,
129
+ 0.020794368743896483,
130
+ 0.020744192123413087,
131
+ 0.021183488845825195,
132
+ 0.021081087112426757,
133
+ 0.021200895309448242,
134
+ 0.021137407302856445,
135
+ 0.021271551132202148,
136
+ 0.02123673629760742,
137
+ 0.021187583923339845,
138
+ 0.021138431549072266,
139
+ 0.021197824478149413,
140
+ 0.021014528274536134,
141
+ 0.020799488067626954,
142
+ 0.020765695571899414,
143
+ 0.020807680130004884,
144
+ 0.021109760284423826,
145
+ 0.021117952346801756,
146
+ 0.021124095916748048,
147
+ 0.02111692810058594,
148
+ 0.021121023178100586,
149
+ 0.02129817581176758,
150
+ 0.021061632156372072,
151
+ 0.020784128189086915,
152
+ 0.020990976333618162,
153
+ 0.02110873603820801,
154
+ 0.02110054397583008,
155
+ 0.021214208602905273,
156
+ 0.021143552780151367,
157
+ 0.021153791427612305,
158
+ 0.021227519989013673,
159
+ 0.02083430480957031,
160
+ 0.02106470489501953,
161
+ 0.02164735984802246,
162
+ 0.02128691291809082,
163
+ 0.021259263992309572,
164
+ 0.021242879867553712,
165
+ 0.021575679779052736,
166
+ 0.02111692810058594,
167
+ 0.021309440612792968,
168
+ 0.02123161506652832,
169
+ 0.02148659133911133,
170
+ 0.021324800491333007,
171
+ 0.02147123146057129,
172
+ 0.021114879608154297,
173
+ 0.021110784530639647,
174
+ 0.021331968307495116,
175
+ 0.021339136123657225,
176
+ 0.021121023178100586,
177
+ 0.021152767181396484,
178
+ 0.02110054397583008,
179
+ 0.021136383056640624,
180
+ 0.021169151306152344,
181
+ 0.021211135864257814,
182
+ 0.021134336471557616,
183
+ 0.021207040786743164,
184
+ 0.021130239486694336,
185
+ 0.021180416107177736,
186
+ 0.021190656661987304,
187
+ 0.021167104721069335,
188
+ 0.021195775985717775,
189
+ 0.021226495742797852,
190
+ 0.02109337615966797,
191
+ 0.021143552780151367,
192
+ 0.021133312225341795,
193
+ 0.021127168655395507,
194
+ 0.021106687545776368,
195
+ 0.021133312225341795,
196
+ 0.021102592468261717,
197
+ 0.021139455795288087,
198
+ 0.021105663299560547,
199
+ 0.02109951972961426,
200
+ 0.02108006477355957,
201
+ 0.02107699203491211,
202
+ 0.021129215240478515,
203
+ 0.04216524887084961,
204
+ 0.02009600067138672,
205
+ 0.02011136054992676,
206
+ 0.02022809600830078,
207
+ 0.020197376251220703,
208
+ 0.02109951972961426,
209
+ 0.02109235191345215,
210
+ 0.020832256317138673,
211
+ 0.020768768310546876,
212
+ 0.021525503158569336,
213
+ 0.020917280197143555,
214
+ 0.020830175399780274,
215
+ 0.02105958366394043,
216
+ 0.021164031982421876,
217
+ 0.021323776245117186,
218
+ 0.021327871322631836,
219
+ 0.02122854423522949,
220
+ 0.021212160110473634,
221
+ 0.02014316749572754,
222
+ 0.020436927795410155,
223
+ 0.02039193534851074,
224
+ 0.020156415939331054,
225
+ 0.020125696182250977,
226
+ 0.020121599197387697,
227
+ 0.02008883285522461,
228
+ 0.020106271743774416,
229
+ 0.02012771224975586,
230
+ 0.020076543807983398,
231
+ 0.020100095748901366,
232
+ 0.02011136054992676,
233
+ 0.02012057685852051,
234
+ 0.020125696182250977,
235
+ 0.020065280914306642,
236
+ 0.02007961654663086,
237
+ 0.0200949764251709,
238
+ 0.020105215072631837,
239
+ 0.02007244873046875,
240
+ 0.020067327499389647,
241
+ 0.02008064079284668,
242
+ 0.02008883285522461,
243
+ 0.021046335220336915,
244
+ 0.021389280319213867,
245
+ 0.020848608016967772,
246
+ 0.021185535430908203,
247
+ 0.021111808776855468,
248
+ 0.02110771179199219,
249
+ 0.021171199798583985,
250
+ 0.021167104721069335,
251
+ 0.02109132766723633,
252
+ 0.021275648117065428,
253
+ 0.02171392059326172,
254
+ 0.020213760375976563,
255
+ 0.019920896530151368,
256
+ 0.019940351486206053,
257
+ 0.020024320602416993,
258
+ 0.019983360290527344,
259
+ 0.020154367446899413,
260
+ 0.020519935607910156,
261
+ 0.02061516761779785,
262
+ 0.020140031814575195,
263
+ 0.020107263565063475,
264
+ 0.020130815505981444,
265
+ 0.020118528366088868,
266
+ 0.020091903686523437,
267
+ 0.02004991912841797,
268
+ 0.020076543807983398,
269
+ 0.020167680740356447,
270
+ 0.020159488677978517,
271
+ 0.0200898551940918,
272
+ 0.020122623443603514,
273
+ 0.02008780860900879,
274
+ 0.020031488418579102,
275
+ 0.019918848037719726,
276
+ 0.019928064346313477,
277
+ 0.020115455627441405,
278
+ 0.02021683120727539,
279
+ 0.020351999282836913,
280
+ 0.020114431381225584,
281
+ 0.020142080307006836,
282
+ 0.020139007568359374,
283
+ 0.020149248123168945,
284
+ 0.02006937599182129,
285
+ 0.02023219108581543,
286
+ 0.02008883285522461,
287
+ 0.020076543807983398,
288
+ 0.020139007568359374,
289
+ 0.020092927932739257,
290
+ 0.02011136054992676,
291
+ 0.020188159942626953,
292
+ 0.021800960540771484,
293
+ 0.021174272537231444,
294
+ 0.019992576599121094,
295
+ 0.020163583755493163,
296
+ 0.020199424743652345,
297
+ 0.020115455627441405,
298
+ 0.020114431381225584,
299
+ 0.020160512924194338,
300
+ 0.020118528366088868,
301
+ 0.020084735870361328,
302
+ 0.0208035831451416,
303
+ 0.021136383056640624,
304
+ 0.021183488845825195,
305
+ 0.021139455795288087,
306
+ 0.021130239486694336,
307
+ 0.021190656661987304,
308
+ 0.020806655883789063,
309
+ 0.020751359939575196,
310
+ 0.02008883285522461,
311
+ 0.02006630325317383,
312
+ 0.02006937599182129,
313
+ 0.02005401611328125,
314
+ 0.020488191604614257,
315
+ 0.02110771179199219,
316
+ 0.021120000839233398,
317
+ 0.021129215240478515,
318
+ 0.021150720596313476,
319
+ 0.021111808776855468,
320
+ 0.021143552780151367,
321
+ 0.021132287979125978,
322
+ 0.020147199630737304,
323
+ 0.02012774467468262,
324
+ 0.020147199630737304,
325
+ 0.020092927932739257,
326
+ 0.02011238479614258,
327
+ 0.020406272888183592,
328
+ 0.02023219108581543,
329
+ 0.020115455627441405
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 47.90061382887642
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022197407722473146,
7
+ "prefill.throughput.value": 315.35213875055535,
8
+ "decode.latency.mean": 2.6403282470703124,
9
+ "decode.throughput.value": 48.10008003395722,
10
+ "per_token.latency.mean": 0.020876559193426444,
11
+ "per_token.throughput.value": 47.90061382887642
12
+ }
13
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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: 74a207404e8d4524d1fdc4aa23789694f9eef347
82
+ accelerate_version: 0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347
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/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347
88
+ - hydra.run.dir=_benchmark/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347/${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/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
92
+ "accelerate_version": "0.32.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.174336,
109
+ "max_global_vram": 6094.848,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 5379.19488,
112
+ "max_allocated": 5021.251584
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.028529088020324708,
118
+ "mean": 0.014264544010162354,
119
+ "stdev": 0.0002791676521301271,
120
+ "p50": 0.014264544010162354,
121
+ "p90": 0.014487878131866454,
122
+ "p95": 0.014515794897079468,
123
+ "p99": 0.014538128309249878,
124
+ "values": [
125
+ 0.01454371166229248,
126
+ 0.013985376358032226
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 490.72721813000516
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2260.054016,
140
+ "max_global_vram": 8907.128832,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 5379.19488,
143
+ "max_allocated": 5027.089408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 3.149933349609375,
149
+ "mean": 1.5749666748046875,
150
+ "stdev": 0.017234619140624963,
151
+ "p50": 1.5749666748046875,
152
+ "p90": 1.5887543701171876,
153
+ "p95": 1.59047783203125,
154
+ "p99": 1.5918566015625,
155
+ "values": [
156
+ 1.5922012939453125,
157
+ 1.5577320556640626
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 80.63662681354788
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.150910470962522,
173
+ "mean": 0.012454191584832113,
174
+ "stdev": 0.0009055684236847236,
175
+ "p50": 0.012282879829406738,
176
+ "p90": 0.012734259033203126,
177
+ "p95": 0.01275985927581787,
178
+ "p99": 0.012789555320739747,
179
+ "values": [
180
+ 0.012726271629333496,
181
+ 0.012803071975708008,
182
+ 0.012758015632629394,
183
+ 0.012769280433654785,
184
+ 0.012731391906738282,
185
+ 0.012794879913330079,
186
+ 0.012718079566955566,
187
+ 0.012733440399169921,
188
+ 0.012654591560363769,
189
+ 0.012784640312194824,
190
+ 0.012727295875549317,
191
+ 0.012729344367980957,
192
+ 0.012662783622741699,
193
+ 0.012734463691711426,
194
+ 0.012675071716308594,
195
+ 0.012752896308898925,
196
+ 0.012676095962524414,
197
+ 0.012761088371276855,
198
+ 0.012697600364685058,
199
+ 0.0127457275390625,
200
+ 0.012700672149658204,
201
+ 0.012775424003601075,
202
+ 0.012725248336791992,
203
+ 0.01274060821533203,
204
+ 0.01268838405609131,
205
+ 0.012784640312194824,
206
+ 0.012713983535766601,
207
+ 0.01277132797241211,
208
+ 0.012697600364685058,
209
+ 0.01276518440246582,
210
+ 0.012705792427062988,
211
+ 0.012739583969116211,
212
+ 0.012776448249816894,
213
+ 0.012731391906738282,
214
+ 0.01268019199371338,
215
+ 0.012579839706420898,
216
+ 0.012682239532470703,
217
+ 0.012759039878845215,
218
+ 0.01266483211517334,
219
+ 0.012675071716308594,
220
+ 0.012612607955932617,
221
+ 0.012758015632629394,
222
+ 0.012716032028198243,
223
+ 0.012781567573547363,
224
+ 0.01267302417755127,
225
+ 0.012758015632629394,
226
+ 0.012695551872253418,
227
+ 0.012712960243225097,
228
+ 0.012695551872253418,
229
+ 0.01276211166381836,
230
+ 0.012729344367980957,
231
+ 0.012705792427062988,
232
+ 0.01265561580657959,
233
+ 0.012759039878845215,
234
+ 0.012750847816467285,
235
+ 0.012727295875549317,
236
+ 0.012653568267822265,
237
+ 0.01274675178527832,
238
+ 0.01265664005279541,
239
+ 0.012726271629333496,
240
+ 0.012685312271118163,
241
+ 0.01274060821533203,
242
+ 0.012649472236633302,
243
+ 0.012695551872253418,
244
+ 0.012570624351501464,
245
+ 0.012729344367980957,
246
+ 0.012597248077392579,
247
+ 0.012683263778686523,
248
+ 0.012265472412109376,
249
+ 0.012507136344909669,
250
+ 0.01258188819885254,
251
+ 0.012623871803283691,
252
+ 0.012702719688415527,
253
+ 0.012606464385986327,
254
+ 0.012646464347839356,
255
+ 0.012399552345275879,
256
+ 0.012452863693237304,
257
+ 0.012652544021606446,
258
+ 0.012266495704650878,
259
+ 0.012290047645568849,
260
+ 0.012256256103515625,
261
+ 0.012304384231567383,
262
+ 0.012295167922973632,
263
+ 0.012307456016540527,
264
+ 0.01224294376373291,
265
+ 0.012303359985351562,
266
+ 0.01225113582611084,
267
+ 0.012279808044433594,
268
+ 0.012300288200378418,
269
+ 0.012312576293945313,
270
+ 0.012257280349731446,
271
+ 0.012271615982055664,
272
+ 0.01223475170135498,
273
+ 0.012306431770324706,
274
+ 0.01225216007232666,
275
+ 0.012296192169189453,
276
+ 0.012257280349731446,
277
+ 0.012307456016540527,
278
+ 0.012241920471191407,
279
+ 0.012267519950866699,
280
+ 0.012228608131408691,
281
+ 0.012277759552001954,
282
+ 0.012229632377624512,
283
+ 0.012266495704650878,
284
+ 0.012228608131408691,
285
+ 0.012294143676757812,
286
+ 0.012226559638977052,
287
+ 0.01235148811340332,
288
+ 0.012256256103515625,
289
+ 0.012291071891784668,
290
+ 0.012259327888488769,
291
+ 0.012286975860595703,
292
+ 0.012314623832702636,
293
+ 0.012316672325134278,
294
+ 0.012241920471191407,
295
+ 0.012282879829406738,
296
+ 0.012230655670166016,
297
+ 0.012266495704650878,
298
+ 0.012248064041137695,
299
+ 0.012262399673461915,
300
+ 0.012228608131408691,
301
+ 0.012355584144592285,
302
+ 0.01224396800994873,
303
+ 0.01226956844329834,
304
+ 0.01225216007232666,
305
+ 0.012288000106811523,
306
+ 0.026460159301757814,
307
+ 0.012231679916381836,
308
+ 0.01226956844329834,
309
+ 0.012257280349731446,
310
+ 0.012266495704650878,
311
+ 0.012237824440002442,
312
+ 0.012281855583190919,
313
+ 0.012266495704650878,
314
+ 0.012283904075622559,
315
+ 0.012229632377624512,
316
+ 0.012280832290649414,
317
+ 0.01226854419708252,
318
+ 0.012270591735839843,
319
+ 0.012230655670166016,
320
+ 0.012277759552001954,
321
+ 0.012256256103515625,
322
+ 0.012283904075622559,
323
+ 0.012229632377624512,
324
+ 0.012277759552001954,
325
+ 0.012239871978759765,
326
+ 0.012286975860595703,
327
+ 0.01227673625946045,
328
+ 0.012301312446594239,
329
+ 0.01226956844329834,
330
+ 0.012299263954162597,
331
+ 0.01224294376373291,
332
+ 0.012267519950866699,
333
+ 0.01224396800994873,
334
+ 0.012288000106811523,
335
+ 0.012229632377624512,
336
+ 0.012283904075622559,
337
+ 0.012249088287353516,
338
+ 0.012329983711242675,
339
+ 0.012237824440002442,
340
+ 0.012273664474487305,
341
+ 0.01225216007232666,
342
+ 0.012286975860595703,
343
+ 0.012277759552001954,
344
+ 0.012289024353027344,
345
+ 0.012255231857299804,
346
+ 0.01228492832183838,
347
+ 0.012256256103515625,
348
+ 0.01235148811340332,
349
+ 0.01226956844329834,
350
+ 0.012288000106811523,
351
+ 0.01224396800994873,
352
+ 0.012279808044433594,
353
+ 0.012233728408813477,
354
+ 0.012281855583190919,
355
+ 0.012229632377624512,
356
+ 0.012271615982055664,
357
+ 0.01229312038421631,
358
+ 0.012303359985351562,
359
+ 0.01222758388519287,
360
+ 0.012280832290649414,
361
+ 0.012232704162597656,
362
+ 0.012290047645568849,
363
+ 0.01225830364227295,
364
+ 0.012308480262756348,
365
+ 0.012221440315246582,
366
+ 0.01227673625946045,
367
+ 0.012230655670166016,
368
+ 0.012333056449890138,
369
+ 0.012240896224975586,
370
+ 0.012278783798217773,
371
+ 0.012236800193786621,
372
+ 0.012329983711242675,
373
+ 0.012296192169189453,
374
+ 0.01228492832183838,
375
+ 0.012230655670166016,
376
+ 0.012263423919677734,
377
+ 0.012238847732543945,
378
+ 0.012292096138000488,
379
+ 0.012241920471191407,
380
+ 0.012280832290649414,
381
+ 0.012222463607788087,
382
+ 0.012289024353027344,
383
+ 0.012230655670166016,
384
+ 0.012285951614379884,
385
+ 0.012218367576599122,
386
+ 0.012292096138000488,
387
+ 0.01226035213470459,
388
+ 0.012295167922973632,
389
+ 0.012224512100219726,
390
+ 0.012271615982055664,
391
+ 0.012247039794921874,
392
+ 0.012264448165893555,
393
+ 0.012233728408813477,
394
+ 0.012273664474487305,
395
+ 0.012248064041137695,
396
+ 0.012280832290649414,
397
+ 0.012223487854003906,
398
+ 0.012273664474487305,
399
+ 0.012239871978759765,
400
+ 0.012259327888488769,
401
+ 0.012230655670166016,
402
+ 0.012288000106811523,
403
+ 0.01226137638092041,
404
+ 0.012288000106811523,
405
+ 0.012223487854003906,
406
+ 0.01227673625946045,
407
+ 0.012232704162597656,
408
+ 0.01227673625946045,
409
+ 0.01222758388519287,
410
+ 0.012262399673461915,
411
+ 0.01224294376373291,
412
+ 0.012281855583190919,
413
+ 0.012230655670166016,
414
+ 0.012266495704650878,
415
+ 0.0122357759475708,
416
+ 0.012271615982055664,
417
+ 0.01223475170135498,
418
+ 0.012277759552001954,
419
+ 0.012257280349731446,
420
+ 0.012273664474487305,
421
+ 0.012224512100219726,
422
+ 0.01226956844329834,
423
+ 0.012241920471191407,
424
+ 0.01226956844329834,
425
+ 0.01224396800994873,
426
+ 0.012265472412109376,
427
+ 0.012249088287353516,
428
+ 0.012280832290649414,
429
+ 0.01222758388519287,
430
+ 0.012278783798217773,
431
+ 0.012304384231567383,
432
+ 0.012313599586486817
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 80.29425219521227
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
91
+ "accelerate_version": "0.32.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-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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.174336,
6
+ "max_global_vram": 6094.848,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 5379.19488,
9
+ "max_allocated": 5021.251584
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.028529088020324708,
15
+ "mean": 0.014264544010162354,
16
+ "stdev": 0.0002791676521301271,
17
+ "p50": 0.014264544010162354,
18
+ "p90": 0.014487878131866454,
19
+ "p95": 0.014515794897079468,
20
+ "p99": 0.014538128309249878,
21
+ "values": [
22
+ 0.01454371166229248,
23
+ 0.013985376358032226
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 490.72721813000516
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2260.054016,
37
+ "max_global_vram": 8907.128832,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 5379.19488,
40
+ "max_allocated": 5027.089408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 3.149933349609375,
46
+ "mean": 1.5749666748046875,
47
+ "stdev": 0.017234619140624963,
48
+ "p50": 1.5749666748046875,
49
+ "p90": 1.5887543701171876,
50
+ "p95": 1.59047783203125,
51
+ "p99": 1.5918566015625,
52
+ "values": [
53
+ 1.5922012939453125,
54
+ 1.5577320556640626
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 80.63662681354788
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.150910470962522,
70
+ "mean": 0.012454191584832113,
71
+ "stdev": 0.0009055684236847236,
72
+ "p50": 0.012282879829406738,
73
+ "p90": 0.012734259033203126,
74
+ "p95": 0.01275985927581787,
75
+ "p99": 0.012789555320739747,
76
+ "values": [
77
+ 0.012726271629333496,
78
+ 0.012803071975708008,
79
+ 0.012758015632629394,
80
+ 0.012769280433654785,
81
+ 0.012731391906738282,
82
+ 0.012794879913330079,
83
+ 0.012718079566955566,
84
+ 0.012733440399169921,
85
+ 0.012654591560363769,
86
+ 0.012784640312194824,
87
+ 0.012727295875549317,
88
+ 0.012729344367980957,
89
+ 0.012662783622741699,
90
+ 0.012734463691711426,
91
+ 0.012675071716308594,
92
+ 0.012752896308898925,
93
+ 0.012676095962524414,
94
+ 0.012761088371276855,
95
+ 0.012697600364685058,
96
+ 0.0127457275390625,
97
+ 0.012700672149658204,
98
+ 0.012775424003601075,
99
+ 0.012725248336791992,
100
+ 0.01274060821533203,
101
+ 0.01268838405609131,
102
+ 0.012784640312194824,
103
+ 0.012713983535766601,
104
+ 0.01277132797241211,
105
+ 0.012697600364685058,
106
+ 0.01276518440246582,
107
+ 0.012705792427062988,
108
+ 0.012739583969116211,
109
+ 0.012776448249816894,
110
+ 0.012731391906738282,
111
+ 0.01268019199371338,
112
+ 0.012579839706420898,
113
+ 0.012682239532470703,
114
+ 0.012759039878845215,
115
+ 0.01266483211517334,
116
+ 0.012675071716308594,
117
+ 0.012612607955932617,
118
+ 0.012758015632629394,
119
+ 0.012716032028198243,
120
+ 0.012781567573547363,
121
+ 0.01267302417755127,
122
+ 0.012758015632629394,
123
+ 0.012695551872253418,
124
+ 0.012712960243225097,
125
+ 0.012695551872253418,
126
+ 0.01276211166381836,
127
+ 0.012729344367980957,
128
+ 0.012705792427062988,
129
+ 0.01265561580657959,
130
+ 0.012759039878845215,
131
+ 0.012750847816467285,
132
+ 0.012727295875549317,
133
+ 0.012653568267822265,
134
+ 0.01274675178527832,
135
+ 0.01265664005279541,
136
+ 0.012726271629333496,
137
+ 0.012685312271118163,
138
+ 0.01274060821533203,
139
+ 0.012649472236633302,
140
+ 0.012695551872253418,
141
+ 0.012570624351501464,
142
+ 0.012729344367980957,
143
+ 0.012597248077392579,
144
+ 0.012683263778686523,
145
+ 0.012265472412109376,
146
+ 0.012507136344909669,
147
+ 0.01258188819885254,
148
+ 0.012623871803283691,
149
+ 0.012702719688415527,
150
+ 0.012606464385986327,
151
+ 0.012646464347839356,
152
+ 0.012399552345275879,
153
+ 0.012452863693237304,
154
+ 0.012652544021606446,
155
+ 0.012266495704650878,
156
+ 0.012290047645568849,
157
+ 0.012256256103515625,
158
+ 0.012304384231567383,
159
+ 0.012295167922973632,
160
+ 0.012307456016540527,
161
+ 0.01224294376373291,
162
+ 0.012303359985351562,
163
+ 0.01225113582611084,
164
+ 0.012279808044433594,
165
+ 0.012300288200378418,
166
+ 0.012312576293945313,
167
+ 0.012257280349731446,
168
+ 0.012271615982055664,
169
+ 0.01223475170135498,
170
+ 0.012306431770324706,
171
+ 0.01225216007232666,
172
+ 0.012296192169189453,
173
+ 0.012257280349731446,
174
+ 0.012307456016540527,
175
+ 0.012241920471191407,
176
+ 0.012267519950866699,
177
+ 0.012228608131408691,
178
+ 0.012277759552001954,
179
+ 0.012229632377624512,
180
+ 0.012266495704650878,
181
+ 0.012228608131408691,
182
+ 0.012294143676757812,
183
+ 0.012226559638977052,
184
+ 0.01235148811340332,
185
+ 0.012256256103515625,
186
+ 0.012291071891784668,
187
+ 0.012259327888488769,
188
+ 0.012286975860595703,
189
+ 0.012314623832702636,
190
+ 0.012316672325134278,
191
+ 0.012241920471191407,
192
+ 0.012282879829406738,
193
+ 0.012230655670166016,
194
+ 0.012266495704650878,
195
+ 0.012248064041137695,
196
+ 0.012262399673461915,
197
+ 0.012228608131408691,
198
+ 0.012355584144592285,
199
+ 0.01224396800994873,
200
+ 0.01226956844329834,
201
+ 0.01225216007232666,
202
+ 0.012288000106811523,
203
+ 0.026460159301757814,
204
+ 0.012231679916381836,
205
+ 0.01226956844329834,
206
+ 0.012257280349731446,
207
+ 0.012266495704650878,
208
+ 0.012237824440002442,
209
+ 0.012281855583190919,
210
+ 0.012266495704650878,
211
+ 0.012283904075622559,
212
+ 0.012229632377624512,
213
+ 0.012280832290649414,
214
+ 0.01226854419708252,
215
+ 0.012270591735839843,
216
+ 0.012230655670166016,
217
+ 0.012277759552001954,
218
+ 0.012256256103515625,
219
+ 0.012283904075622559,
220
+ 0.012229632377624512,
221
+ 0.012277759552001954,
222
+ 0.012239871978759765,
223
+ 0.012286975860595703,
224
+ 0.01227673625946045,
225
+ 0.012301312446594239,
226
+ 0.01226956844329834,
227
+ 0.012299263954162597,
228
+ 0.01224294376373291,
229
+ 0.012267519950866699,
230
+ 0.01224396800994873,
231
+ 0.012288000106811523,
232
+ 0.012229632377624512,
233
+ 0.012283904075622559,
234
+ 0.012249088287353516,
235
+ 0.012329983711242675,
236
+ 0.012237824440002442,
237
+ 0.012273664474487305,
238
+ 0.01225216007232666,
239
+ 0.012286975860595703,
240
+ 0.012277759552001954,
241
+ 0.012289024353027344,
242
+ 0.012255231857299804,
243
+ 0.01228492832183838,
244
+ 0.012256256103515625,
245
+ 0.01235148811340332,
246
+ 0.01226956844329834,
247
+ 0.012288000106811523,
248
+ 0.01224396800994873,
249
+ 0.012279808044433594,
250
+ 0.012233728408813477,
251
+ 0.012281855583190919,
252
+ 0.012229632377624512,
253
+ 0.012271615982055664,
254
+ 0.01229312038421631,
255
+ 0.012303359985351562,
256
+ 0.01222758388519287,
257
+ 0.012280832290649414,
258
+ 0.012232704162597656,
259
+ 0.012290047645568849,
260
+ 0.01225830364227295,
261
+ 0.012308480262756348,
262
+ 0.012221440315246582,
263
+ 0.01227673625946045,
264
+ 0.012230655670166016,
265
+ 0.012333056449890138,
266
+ 0.012240896224975586,
267
+ 0.012278783798217773,
268
+ 0.012236800193786621,
269
+ 0.012329983711242675,
270
+ 0.012296192169189453,
271
+ 0.01228492832183838,
272
+ 0.012230655670166016,
273
+ 0.012263423919677734,
274
+ 0.012238847732543945,
275
+ 0.012292096138000488,
276
+ 0.012241920471191407,
277
+ 0.012280832290649414,
278
+ 0.012222463607788087,
279
+ 0.012289024353027344,
280
+ 0.012230655670166016,
281
+ 0.012285951614379884,
282
+ 0.012218367576599122,
283
+ 0.012292096138000488,
284
+ 0.01226035213470459,
285
+ 0.012295167922973632,
286
+ 0.012224512100219726,
287
+ 0.012271615982055664,
288
+ 0.012247039794921874,
289
+ 0.012264448165893555,
290
+ 0.012233728408813477,
291
+ 0.012273664474487305,
292
+ 0.012248064041137695,
293
+ 0.012280832290649414,
294
+ 0.012223487854003906,
295
+ 0.012273664474487305,
296
+ 0.012239871978759765,
297
+ 0.012259327888488769,
298
+ 0.012230655670166016,
299
+ 0.012288000106811523,
300
+ 0.01226137638092041,
301
+ 0.012288000106811523,
302
+ 0.012223487854003906,
303
+ 0.01227673625946045,
304
+ 0.012232704162597656,
305
+ 0.01227673625946045,
306
+ 0.01222758388519287,
307
+ 0.012262399673461915,
308
+ 0.01224294376373291,
309
+ 0.012281855583190919,
310
+ 0.012230655670166016,
311
+ 0.012266495704650878,
312
+ 0.0122357759475708,
313
+ 0.012271615982055664,
314
+ 0.01223475170135498,
315
+ 0.012277759552001954,
316
+ 0.012257280349731446,
317
+ 0.012273664474487305,
318
+ 0.012224512100219726,
319
+ 0.01226956844329834,
320
+ 0.012241920471191407,
321
+ 0.01226956844329834,
322
+ 0.01224396800994873,
323
+ 0.012265472412109376,
324
+ 0.012249088287353516,
325
+ 0.012280832290649414,
326
+ 0.01222758388519287,
327
+ 0.012278783798217773,
328
+ 0.012304384231567383,
329
+ 0.012313599586486817
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 80.29425219521227
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/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": "74a207404e8d4524d1fdc4aa23789694f9eef347",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014264544010162354,
7
+ "prefill.throughput.value": 490.72721813000516,
8
+ "decode.latency.mean": 1.5749666748046875,
9
+ "decode.throughput.value": 80.63662681354788,
10
+ "per_token.latency.mean": 0.012454191584832113,
11
+ "per_token.throughput.value": 80.29425219521227
12
+ }
13
+ }
2024-06-22/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp251101za/commit=74a207404e8d4524d1fdc4aa23789694f9eef347
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/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347
88
+ - hydra.run.dir=_benchmark/tmp251101za/commit\=74a207404e8d4524d1fdc4aa23789694f9eef347/${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.218-208.862.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: 74a207404e8d4524d1fdc4aa23789694f9eef347
223
+ accelerate_version: 0.32.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-22/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "74a207404e8d4524d1fdc4aa23789694f9eef347",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.019968095779418944,
8
+ "prefill.throughput.value": 350.5592159275838,
9
+ "decode.latency.mean": 2.421538330078125,
10
+ "decode.throughput.value": 52.4460003058893,
11
+ "per_token.latency.mean": 0.019144975224973656,
12
+ "per_token.throughput.value": 52.23302659047322
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "74a207404e8d4524d1fdc4aa23789694f9eef347",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022197407722473146,
21
+ "prefill.throughput.value": 315.35213875055535,
22
+ "decode.latency.mean": 2.6403282470703124,
23
+ "decode.throughput.value": 48.10008003395722,
24
+ "per_token.latency.mean": 0.020876559193426444,
25
+ "per_token.throughput.value": 47.90061382887642
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "74a207404e8d4524d1fdc4aa23789694f9eef347",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014264544010162354,
34
+ "prefill.throughput.value": 490.72721813000516,
35
+ "decode.latency.mean": 1.5749666748046875,
36
+ "decode.throughput.value": 80.63662681354788,
37
+ "per_token.latency.mean": 0.012454191584832113,
38
+ "per_token.throughput.value": 80.29425219521227
39
+ }
40
+ }
41
+ ]
2024-06-22/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "74a207404e8d4524d1fdc4aa23789694f9eef347": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019968095779418944,
7
+ "prefill.throughput.value": 350.5592159275838,
8
+ "decode.latency.mean": 2.421538330078125,
9
+ "decode.throughput.value": 52.4460003058893,
10
+ "per_token.latency.mean": 0.019144975224973656,
11
+ "per_token.throughput.value": 52.23302659047322
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "74a207404e8d4524d1fdc4aa23789694f9eef347": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022197407722473146,
19
+ "prefill.throughput.value": 315.35213875055535,
20
+ "decode.latency.mean": 2.6403282470703124,
21
+ "decode.throughput.value": 48.10008003395722,
22
+ "per_token.latency.mean": 0.020876559193426444,
23
+ "per_token.throughput.value": 47.90061382887642
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "74a207404e8d4524d1fdc4aa23789694f9eef347": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014264544010162354,
31
+ "prefill.throughput.value": 490.72721813000516,
32
+ "decode.latency.mean": 1.5749666748046875,
33
+ "decode.throughput.value": 80.63662681354788,
34
+ "per_token.latency.mean": 0.012454191584832113,
35
+ "per_token.throughput.value": 80.29425219521227
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }