hf-transformers-bot commited on
Commit
61bb83b
1 Parent(s): ccffce3

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/multirun.yaml +232 -0
  31. 2024-06-18/summaries.json +41 -0
  32. 2024-06-18/summary.json +40 -0
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 9ba9369a2557e53a01378199a9839ec6e82d8bc7
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7
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/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7
88
+ - hydra.run.dir=_benchmark/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
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": 1718.276096,
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.039393152236938477,
118
+ "mean": 0.019696576118469238,
119
+ "stdev": 0.0003095045089721686,
120
+ "p50": 0.019696576118469238,
121
+ "p90": 0.019944179725646972,
122
+ "p95": 0.01997513017654419,
123
+ "p99": 0.019999890537261963,
124
+ "values": [
125
+ 0.020006080627441407,
126
+ 0.01938707160949707
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 355.3917167073614
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1718.345728,
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.85665625,
149
+ "mean": 2.428328125,
150
+ "stdev": 0.022651123046874888,
151
+ "p50": 2.428328125,
152
+ "p90": 2.4464490234375,
153
+ "p95": 2.4487141357421875,
154
+ "p99": 2.4505262255859375,
155
+ "values": [
156
+ 2.450979248046875,
157
+ 2.405677001953125
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 52.29935719663091
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.856686590194702,
173
+ "mean": 0.01919638968456404,
174
+ "stdev": 0.001300152350293529,
175
+ "p50": 0.019133440017700197,
176
+ "p90": 0.01962209243774414,
177
+ "p95": 0.019926016235351562,
178
+ "p99": 0.0202926082611084,
179
+ "values": [
180
+ 0.01977552032470703,
181
+ 0.01950921630859375,
182
+ 0.019418111801147463,
183
+ 0.019565568923950196,
184
+ 0.01943244743347168,
185
+ 0.019327999114990235,
186
+ 0.019478527069091797,
187
+ 0.019277824401855468,
188
+ 0.019269632339477538,
189
+ 0.01925529670715332,
190
+ 0.019486719131469727,
191
+ 0.01963007926940918,
192
+ 0.019353599548339845,
193
+ 0.019304447174072266,
194
+ 0.01965158462524414,
195
+ 0.019577856063842772,
196
+ 0.01966080093383789,
197
+ 0.01923891258239746,
198
+ 0.019400703430175782,
199
+ 0.01982361602783203,
200
+ 0.019386367797851564,
201
+ 0.01945599937438965,
202
+ 0.020420608520507814,
203
+ 0.01988096046447754,
204
+ 0.01989017677307129,
205
+ 0.019870719909667968,
206
+ 0.019932159423828123,
207
+ 0.020065280914306642,
208
+ 0.0202926082611084,
209
+ 0.020197376251220703,
210
+ 0.01992192077636719,
211
+ 0.02022604751586914,
212
+ 0.02002739143371582,
213
+ 0.020043840408325197,
214
+ 0.01999660873413086,
215
+ 0.02004582405090332,
216
+ 0.02008883285522461,
217
+ 0.019696640014648437,
218
+ 0.01945599937438965,
219
+ 0.019152896881103516,
220
+ 0.01924608039855957,
221
+ 0.019171327590942384,
222
+ 0.018990079879760743,
223
+ 0.019164159774780275,
224
+ 0.019133440017700197,
225
+ 0.019599359512329103,
226
+ 0.019614719390869142,
227
+ 0.01900032043457031,
228
+ 0.019404800415039062,
229
+ 0.019771392822265626,
230
+ 0.01962393569946289,
231
+ 0.01942425537109375,
232
+ 0.019184640884399414,
233
+ 0.019143680572509765,
234
+ 0.01924403190612793,
235
+ 0.019249216079711914,
236
+ 0.019402687072753905,
237
+ 0.01942732810974121,
238
+ 0.019312639236450196,
239
+ 0.01929113578796387,
240
+ 0.019307519912719725,
241
+ 0.019343360900878907,
242
+ 0.019352575302124024,
243
+ 0.019372032165527343,
244
+ 0.019309600830078124,
245
+ 0.01933616065979004,
246
+ 0.018896896362304686,
247
+ 0.018790399551391602,
248
+ 0.0193832950592041,
249
+ 0.019430400848388672,
250
+ 0.019305471420288087,
251
+ 0.01946419143676758,
252
+ 0.01906585693359375,
253
+ 0.018728960037231446,
254
+ 0.01886310386657715,
255
+ 0.018908159255981445,
256
+ 0.01884262466430664,
257
+ 0.018828319549560546,
258
+ 0.018950111389160158,
259
+ 0.019340288162231444,
260
+ 0.01927065658569336,
261
+ 0.01924608039855957,
262
+ 0.019293184280395507,
263
+ 0.01940787124633789,
264
+ 0.019321855545043946,
265
+ 0.019503103256225587,
266
+ 0.019301376342773437,
267
+ 0.019283967971801756,
268
+ 0.019301376342773437,
269
+ 0.019404800415039062,
270
+ 0.019298303604125978,
271
+ 0.019345407485961915,
272
+ 0.01947340774536133,
273
+ 0.019342336654663086,
274
+ 0.019336191177368164,
275
+ 0.018755584716796874,
276
+ 0.01903001594543457,
277
+ 0.01930342483520508,
278
+ 0.01921843147277832,
279
+ 0.019318784713745117,
280
+ 0.018868223190307617,
281
+ 0.018903039932250978,
282
+ 0.018860031127929687,
283
+ 0.018732032775878905,
284
+ 0.01880678367614746,
285
+ 0.018754560470581053,
286
+ 0.018743295669555664,
287
+ 0.018779136657714843,
288
+ 0.01879347229003906,
289
+ 0.018754560470581053,
290
+ 0.018773056030273436,
291
+ 0.018799552917480467,
292
+ 0.01879756736755371,
293
+ 0.01879654312133789,
294
+ 0.018765823364257812,
295
+ 0.01879654312133789,
296
+ 0.018761728286743166,
297
+ 0.018783231735229493,
298
+ 0.018937856674194335,
299
+ 0.018786304473876952,
300
+ 0.018906112670898437,
301
+ 0.018919424057006837,
302
+ 0.018749439239501953,
303
+ 0.019079168319702147,
304
+ 0.018752511978149415,
305
+ 0.018735103607177735,
306
+ 0.038816768646240236,
307
+ 0.019268608093261717,
308
+ 0.01859071922302246,
309
+ 0.01862553596496582,
310
+ 0.018552831649780274,
311
+ 0.018553855895996094,
312
+ 0.018634752273559572,
313
+ 0.01860812759399414,
314
+ 0.01861529541015625,
315
+ 0.018687999725341797,
316
+ 0.01864499282836914,
317
+ 0.01881804847717285,
318
+ 0.018709503173828124,
319
+ 0.018679807662963867,
320
+ 0.018678783416748047,
321
+ 0.0186746883392334,
322
+ 0.01860505676269531,
323
+ 0.01864908790588379,
324
+ 0.018667520523071288,
325
+ 0.018708480834960937,
326
+ 0.018710527420043945,
327
+ 0.01864499282836914,
328
+ 0.018659328460693358,
329
+ 0.018726911544799805,
330
+ 0.01868294334411621,
331
+ 0.018614208221435547,
332
+ 0.01878937530517578,
333
+ 0.01865318489074707,
334
+ 0.01883545684814453,
335
+ 0.01865318489074707,
336
+ 0.018678783416748047,
337
+ 0.01886617660522461,
338
+ 0.019298303604125978,
339
+ 0.01930342483520508,
340
+ 0.019286016464233398,
341
+ 0.01923891258239746,
342
+ 0.018696256637573242,
343
+ 0.018665407180786135,
344
+ 0.018663423538208008,
345
+ 0.018662399291992187,
346
+ 0.0186429443359375,
347
+ 0.018742271423339844,
348
+ 0.018674720764160158,
349
+ 0.018673631668090822,
350
+ 0.018739200592041014,
351
+ 0.01859174346923828,
352
+ 0.01862041664123535,
353
+ 0.01942937660217285,
354
+ 0.01879756736755371,
355
+ 0.019308544158935546,
356
+ 0.0202926082611084,
357
+ 0.0195020809173584,
358
+ 0.01927475166320801,
359
+ 0.01945702362060547,
360
+ 0.019354623794555666,
361
+ 0.01927168083190918,
362
+ 0.018663423538208008,
363
+ 0.01878937530517578,
364
+ 0.01883852767944336,
365
+ 0.01883852767944336,
366
+ 0.018811904907226562,
367
+ 0.01879859161376953,
368
+ 0.018844671249389648,
369
+ 0.01882009506225586,
370
+ 0.01882009506225586,
371
+ 0.018911231994628908,
372
+ 0.019224576950073242,
373
+ 0.019146751403808594,
374
+ 0.019098623275756836,
375
+ 0.01883955192565918,
376
+ 0.018851839065551757,
377
+ 0.01885081672668457,
378
+ 0.018851839065551757,
379
+ 0.01883955192565918,
380
+ 0.018767871856689454,
381
+ 0.01880985641479492,
382
+ 0.018634752273559572,
383
+ 0.018588672637939452,
384
+ 0.018568191528320312,
385
+ 0.019120128631591796,
386
+ 0.019292160034179686,
387
+ 0.01882931137084961,
388
+ 0.018701311111450195,
389
+ 0.018562047958374024,
390
+ 0.01866035270690918,
391
+ 0.0188538875579834,
392
+ 0.0188272647857666,
393
+ 0.018874368667602538,
394
+ 0.018808832168579103,
395
+ 0.018701311111450195,
396
+ 0.018592767715454102,
397
+ 0.0186060791015625,
398
+ 0.018717695236206054,
399
+ 0.01923993682861328,
400
+ 0.01987276840209961,
401
+ 0.019013631820678712,
402
+ 0.018923519134521484,
403
+ 0.019357696533203125,
404
+ 0.019368959426879884,
405
+ 0.019309568405151366,
406
+ 0.01939148712158203,
407
+ 0.019294208526611328,
408
+ 0.01938739204406738,
409
+ 0.019361791610717775,
410
+ 0.01925939178466797,
411
+ 0.019449855804443358,
412
+ 0.019314687728881837,
413
+ 0.019367935180664063,
414
+ 0.019276800155639647,
415
+ 0.019343360900878907,
416
+ 0.01927577590942383,
417
+ 0.019344383239746094,
418
+ 0.018913280487060546,
419
+ 0.018719743728637696,
420
+ 0.01899519920349121,
421
+ 0.0194969596862793,
422
+ 0.019310592651367187,
423
+ 0.018893823623657227,
424
+ 0.019320831298828126,
425
+ 0.019302400588989257,
426
+ 0.01940275192260742,
427
+ 0.01882624053955078,
428
+ 0.018766847610473633,
429
+ 0.019113983154296875,
430
+ 0.019335168838500977,
431
+ 0.01883545684814453,
432
+ 0.0188538875579834
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 52.09312878265373
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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": 1718.276096,
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.039393152236938477,
15
+ "mean": 0.019696576118469238,
16
+ "stdev": 0.0003095045089721686,
17
+ "p50": 0.019696576118469238,
18
+ "p90": 0.019944179725646972,
19
+ "p95": 0.01997513017654419,
20
+ "p99": 0.019999890537261963,
21
+ "values": [
22
+ 0.020006080627441407,
23
+ 0.01938707160949707
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 355.3917167073614
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1718.345728,
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.85665625,
46
+ "mean": 2.428328125,
47
+ "stdev": 0.022651123046874888,
48
+ "p50": 2.428328125,
49
+ "p90": 2.4464490234375,
50
+ "p95": 2.4487141357421875,
51
+ "p99": 2.4505262255859375,
52
+ "values": [
53
+ 2.450979248046875,
54
+ 2.405677001953125
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 52.29935719663091
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.856686590194702,
70
+ "mean": 0.01919638968456404,
71
+ "stdev": 0.001300152350293529,
72
+ "p50": 0.019133440017700197,
73
+ "p90": 0.01962209243774414,
74
+ "p95": 0.019926016235351562,
75
+ "p99": 0.0202926082611084,
76
+ "values": [
77
+ 0.01977552032470703,
78
+ 0.01950921630859375,
79
+ 0.019418111801147463,
80
+ 0.019565568923950196,
81
+ 0.01943244743347168,
82
+ 0.019327999114990235,
83
+ 0.019478527069091797,
84
+ 0.019277824401855468,
85
+ 0.019269632339477538,
86
+ 0.01925529670715332,
87
+ 0.019486719131469727,
88
+ 0.01963007926940918,
89
+ 0.019353599548339845,
90
+ 0.019304447174072266,
91
+ 0.01965158462524414,
92
+ 0.019577856063842772,
93
+ 0.01966080093383789,
94
+ 0.01923891258239746,
95
+ 0.019400703430175782,
96
+ 0.01982361602783203,
97
+ 0.019386367797851564,
98
+ 0.01945599937438965,
99
+ 0.020420608520507814,
100
+ 0.01988096046447754,
101
+ 0.01989017677307129,
102
+ 0.019870719909667968,
103
+ 0.019932159423828123,
104
+ 0.020065280914306642,
105
+ 0.0202926082611084,
106
+ 0.020197376251220703,
107
+ 0.01992192077636719,
108
+ 0.02022604751586914,
109
+ 0.02002739143371582,
110
+ 0.020043840408325197,
111
+ 0.01999660873413086,
112
+ 0.02004582405090332,
113
+ 0.02008883285522461,
114
+ 0.019696640014648437,
115
+ 0.01945599937438965,
116
+ 0.019152896881103516,
117
+ 0.01924608039855957,
118
+ 0.019171327590942384,
119
+ 0.018990079879760743,
120
+ 0.019164159774780275,
121
+ 0.019133440017700197,
122
+ 0.019599359512329103,
123
+ 0.019614719390869142,
124
+ 0.01900032043457031,
125
+ 0.019404800415039062,
126
+ 0.019771392822265626,
127
+ 0.01962393569946289,
128
+ 0.01942425537109375,
129
+ 0.019184640884399414,
130
+ 0.019143680572509765,
131
+ 0.01924403190612793,
132
+ 0.019249216079711914,
133
+ 0.019402687072753905,
134
+ 0.01942732810974121,
135
+ 0.019312639236450196,
136
+ 0.01929113578796387,
137
+ 0.019307519912719725,
138
+ 0.019343360900878907,
139
+ 0.019352575302124024,
140
+ 0.019372032165527343,
141
+ 0.019309600830078124,
142
+ 0.01933616065979004,
143
+ 0.018896896362304686,
144
+ 0.018790399551391602,
145
+ 0.0193832950592041,
146
+ 0.019430400848388672,
147
+ 0.019305471420288087,
148
+ 0.01946419143676758,
149
+ 0.01906585693359375,
150
+ 0.018728960037231446,
151
+ 0.01886310386657715,
152
+ 0.018908159255981445,
153
+ 0.01884262466430664,
154
+ 0.018828319549560546,
155
+ 0.018950111389160158,
156
+ 0.019340288162231444,
157
+ 0.01927065658569336,
158
+ 0.01924608039855957,
159
+ 0.019293184280395507,
160
+ 0.01940787124633789,
161
+ 0.019321855545043946,
162
+ 0.019503103256225587,
163
+ 0.019301376342773437,
164
+ 0.019283967971801756,
165
+ 0.019301376342773437,
166
+ 0.019404800415039062,
167
+ 0.019298303604125978,
168
+ 0.019345407485961915,
169
+ 0.01947340774536133,
170
+ 0.019342336654663086,
171
+ 0.019336191177368164,
172
+ 0.018755584716796874,
173
+ 0.01903001594543457,
174
+ 0.01930342483520508,
175
+ 0.01921843147277832,
176
+ 0.019318784713745117,
177
+ 0.018868223190307617,
178
+ 0.018903039932250978,
179
+ 0.018860031127929687,
180
+ 0.018732032775878905,
181
+ 0.01880678367614746,
182
+ 0.018754560470581053,
183
+ 0.018743295669555664,
184
+ 0.018779136657714843,
185
+ 0.01879347229003906,
186
+ 0.018754560470581053,
187
+ 0.018773056030273436,
188
+ 0.018799552917480467,
189
+ 0.01879756736755371,
190
+ 0.01879654312133789,
191
+ 0.018765823364257812,
192
+ 0.01879654312133789,
193
+ 0.018761728286743166,
194
+ 0.018783231735229493,
195
+ 0.018937856674194335,
196
+ 0.018786304473876952,
197
+ 0.018906112670898437,
198
+ 0.018919424057006837,
199
+ 0.018749439239501953,
200
+ 0.019079168319702147,
201
+ 0.018752511978149415,
202
+ 0.018735103607177735,
203
+ 0.038816768646240236,
204
+ 0.019268608093261717,
205
+ 0.01859071922302246,
206
+ 0.01862553596496582,
207
+ 0.018552831649780274,
208
+ 0.018553855895996094,
209
+ 0.018634752273559572,
210
+ 0.01860812759399414,
211
+ 0.01861529541015625,
212
+ 0.018687999725341797,
213
+ 0.01864499282836914,
214
+ 0.01881804847717285,
215
+ 0.018709503173828124,
216
+ 0.018679807662963867,
217
+ 0.018678783416748047,
218
+ 0.0186746883392334,
219
+ 0.01860505676269531,
220
+ 0.01864908790588379,
221
+ 0.018667520523071288,
222
+ 0.018708480834960937,
223
+ 0.018710527420043945,
224
+ 0.01864499282836914,
225
+ 0.018659328460693358,
226
+ 0.018726911544799805,
227
+ 0.01868294334411621,
228
+ 0.018614208221435547,
229
+ 0.01878937530517578,
230
+ 0.01865318489074707,
231
+ 0.01883545684814453,
232
+ 0.01865318489074707,
233
+ 0.018678783416748047,
234
+ 0.01886617660522461,
235
+ 0.019298303604125978,
236
+ 0.01930342483520508,
237
+ 0.019286016464233398,
238
+ 0.01923891258239746,
239
+ 0.018696256637573242,
240
+ 0.018665407180786135,
241
+ 0.018663423538208008,
242
+ 0.018662399291992187,
243
+ 0.0186429443359375,
244
+ 0.018742271423339844,
245
+ 0.018674720764160158,
246
+ 0.018673631668090822,
247
+ 0.018739200592041014,
248
+ 0.01859174346923828,
249
+ 0.01862041664123535,
250
+ 0.01942937660217285,
251
+ 0.01879756736755371,
252
+ 0.019308544158935546,
253
+ 0.0202926082611084,
254
+ 0.0195020809173584,
255
+ 0.01927475166320801,
256
+ 0.01945702362060547,
257
+ 0.019354623794555666,
258
+ 0.01927168083190918,
259
+ 0.018663423538208008,
260
+ 0.01878937530517578,
261
+ 0.01883852767944336,
262
+ 0.01883852767944336,
263
+ 0.018811904907226562,
264
+ 0.01879859161376953,
265
+ 0.018844671249389648,
266
+ 0.01882009506225586,
267
+ 0.01882009506225586,
268
+ 0.018911231994628908,
269
+ 0.019224576950073242,
270
+ 0.019146751403808594,
271
+ 0.019098623275756836,
272
+ 0.01883955192565918,
273
+ 0.018851839065551757,
274
+ 0.01885081672668457,
275
+ 0.018851839065551757,
276
+ 0.01883955192565918,
277
+ 0.018767871856689454,
278
+ 0.01880985641479492,
279
+ 0.018634752273559572,
280
+ 0.018588672637939452,
281
+ 0.018568191528320312,
282
+ 0.019120128631591796,
283
+ 0.019292160034179686,
284
+ 0.01882931137084961,
285
+ 0.018701311111450195,
286
+ 0.018562047958374024,
287
+ 0.01866035270690918,
288
+ 0.0188538875579834,
289
+ 0.0188272647857666,
290
+ 0.018874368667602538,
291
+ 0.018808832168579103,
292
+ 0.018701311111450195,
293
+ 0.018592767715454102,
294
+ 0.0186060791015625,
295
+ 0.018717695236206054,
296
+ 0.01923993682861328,
297
+ 0.01987276840209961,
298
+ 0.019013631820678712,
299
+ 0.018923519134521484,
300
+ 0.019357696533203125,
301
+ 0.019368959426879884,
302
+ 0.019309568405151366,
303
+ 0.01939148712158203,
304
+ 0.019294208526611328,
305
+ 0.01938739204406738,
306
+ 0.019361791610717775,
307
+ 0.01925939178466797,
308
+ 0.019449855804443358,
309
+ 0.019314687728881837,
310
+ 0.019367935180664063,
311
+ 0.019276800155639647,
312
+ 0.019343360900878907,
313
+ 0.01927577590942383,
314
+ 0.019344383239746094,
315
+ 0.018913280487060546,
316
+ 0.018719743728637696,
317
+ 0.01899519920349121,
318
+ 0.0194969596862793,
319
+ 0.019310592651367187,
320
+ 0.018893823623657227,
321
+ 0.019320831298828126,
322
+ 0.019302400588989257,
323
+ 0.01940275192260742,
324
+ 0.01882624053955078,
325
+ 0.018766847610473633,
326
+ 0.019113983154296875,
327
+ 0.019335168838500977,
328
+ 0.01883545684814453,
329
+ 0.0188538875579834
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 52.09312878265373
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019696576118469238,
7
+ "prefill.throughput.value": 355.3917167073614,
8
+ "decode.latency.mean": 2.428328125,
9
+ "decode.throughput.value": 52.29935719663091,
10
+ "per_token.latency.mean": 0.01919638968456404,
11
+ "per_token.throughput.value": 52.09312878265373
12
+ }
13
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 9ba9369a2557e53a01378199a9839ec6e82d8bc7
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7
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/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7
88
+ - hydra.run.dir=_benchmark/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-18 02:34:53,979][process][ERROR] - + Sending traceback to main process
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 9ba9369a2557e53a01378199a9839ec6e82d8bc7
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7
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/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7
88
+ - hydra.run.dir=_benchmark/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
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": 1751.093248,
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.044326559066772464,
118
+ "mean": 0.022163279533386232,
119
+ "stdev": 0.000232848167419435,
120
+ "p50": 0.022163279533386232,
121
+ "p90": 0.02234955806732178,
122
+ "p95": 0.022372842884063722,
123
+ "p99": 0.022391470737457276,
124
+ "values": [
125
+ 0.022396127700805665,
126
+ 0.021930431365966795
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 315.8377346391976
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1751.109632,
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.20942333984375,
149
+ "mean": 2.604711669921875,
150
+ "stdev": 0.030142333984374936,
151
+ "p50": 2.604711669921875,
152
+ "p90": 2.6288255371093747,
153
+ "p95": 2.6318397705078125,
154
+ "p99": 2.6342511572265623,
155
+ "values": [
156
+ 2.63485400390625,
157
+ 2.5745693359375
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 48.75779590752523
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.2104417285919205,
173
+ "mean": 0.020594631338307978,
174
+ "stdev": 0.001470644962648931,
175
+ "p50": 0.020199424743652345,
176
+ "p90": 0.02118328399658203,
177
+ "p95": 0.021293465042114258,
178
+ "p99": 0.02269499359130859,
179
+ "values": [
180
+ 0.02190336036682129,
181
+ 0.022136831283569337,
182
+ 0.02243891143798828,
183
+ 0.020356096267700196,
184
+ 0.020159488677978517,
185
+ 0.020214784622192384,
186
+ 0.02019327926635742,
187
+ 0.022972415924072266,
188
+ 0.021515264511108398,
189
+ 0.021219327926635743,
190
+ 0.021132287979125978,
191
+ 0.021127231597900392,
192
+ 0.02116294479370117,
193
+ 0.021133312225341795,
194
+ 0.021123071670532227,
195
+ 0.02106982421875,
196
+ 0.02119987106323242,
197
+ 0.02021990394592285,
198
+ 0.02023526382446289,
199
+ 0.020152320861816408,
200
+ 0.020156415939331054,
201
+ 0.020139007568359374,
202
+ 0.020171775817871093,
203
+ 0.020161535263061522,
204
+ 0.02020147132873535,
205
+ 0.020170751571655272,
206
+ 0.020190208435058594,
207
+ 0.02011238479614258,
208
+ 0.020115455627441405,
209
+ 0.020075519561767577,
210
+ 0.020718591690063477,
211
+ 0.02105548858642578,
212
+ 0.021086208343505858,
213
+ 0.020133888244628906,
214
+ 0.020918272018432618,
215
+ 0.020231168746948244,
216
+ 0.020100095748901366,
217
+ 0.02010419273376465,
218
+ 0.020137983322143553,
219
+ 0.02012057685852051,
220
+ 0.020212736129760742,
221
+ 0.020747264862060546,
222
+ 0.02017791938781738,
223
+ 0.020229120254516602,
224
+ 0.020779008865356444,
225
+ 0.020563968658447264,
226
+ 0.020758527755737305,
227
+ 0.021117952346801756,
228
+ 0.021744640350341796,
229
+ 0.02167500877380371,
230
+ 0.020385791778564453,
231
+ 0.020195327758789062,
232
+ 0.020146175384521483,
233
+ 0.020092927932739257,
234
+ 0.0200949764251709,
235
+ 0.021133312225341795,
236
+ 0.021090303421020508,
237
+ 0.02108006477355957,
238
+ 0.02126540756225586,
239
+ 0.021144575119018554,
240
+ 0.02023628807067871,
241
+ 0.020165632247924805,
242
+ 0.020172800064086914,
243
+ 0.020136959075927736,
244
+ 0.020199424743652345,
245
+ 0.020134912490844727,
246
+ 0.020129791259765627,
247
+ 0.020185087203979494,
248
+ 0.020168703079223634,
249
+ 0.020611072540283205,
250
+ 0.021169151306152344,
251
+ 0.021113855361938477,
252
+ 0.021154815673828126,
253
+ 0.021195775985717775,
254
+ 0.021341184616088867,
255
+ 0.021196800231933592,
256
+ 0.021148672103881837,
257
+ 0.02106470489501953,
258
+ 0.023657472610473632,
259
+ 0.021312511444091797,
260
+ 0.021132287979125978,
261
+ 0.021182464599609374,
262
+ 0.021155839920043946,
263
+ 0.020144128799438478,
264
+ 0.02017791938781738,
265
+ 0.020134912490844727,
266
+ 0.020206592559814454,
267
+ 0.020166656494140626,
268
+ 0.02022604751586914,
269
+ 0.02025984001159668,
270
+ 0.02070425605773926,
271
+ 0.02021785545349121,
272
+ 0.020189184188842774,
273
+ 0.020170751571655272,
274
+ 0.020183040618896485,
275
+ 0.020200447082519533,
276
+ 0.02021990394592285,
277
+ 0.02023628807067871,
278
+ 0.0202608642578125,
279
+ 0.020587520599365236,
280
+ 0.02123161506652832,
281
+ 0.021122047424316406,
282
+ 0.021168127059936523,
283
+ 0.021163007736206055,
284
+ 0.021212160110473634,
285
+ 0.02105548858642578,
286
+ 0.02145280075073242,
287
+ 0.021188608169555666,
288
+ 0.021193727493286133,
289
+ 0.0212807674407959,
290
+ 0.021168127059936523,
291
+ 0.02106879997253418,
292
+ 0.021176319122314453,
293
+ 0.02022809600830078,
294
+ 0.020205568313598633,
295
+ 0.020204544067382812,
296
+ 0.020745216369628908,
297
+ 0.021185535430908203,
298
+ 0.021147647857666017,
299
+ 0.021143552780151367,
300
+ 0.021133312225341795,
301
+ 0.021152767181396484,
302
+ 0.021197824478149413,
303
+ 0.021106687545776368,
304
+ 0.021183488845825195,
305
+ 0.021114879608154297,
306
+ 0.042308609008789064,
307
+ 0.020166656494140626,
308
+ 0.020166656494140626,
309
+ 0.020159488677978517,
310
+ 0.020160512924194338,
311
+ 0.020184064865112306,
312
+ 0.020154367446899413,
313
+ 0.020136959075927736,
314
+ 0.020213760375976563,
315
+ 0.020221952438354493,
316
+ 0.02022400093078613,
317
+ 0.020745216369628908,
318
+ 0.019955711364746095,
319
+ 0.020165632247924805,
320
+ 0.020137983322143553,
321
+ 0.020155391693115234,
322
+ 0.020161535263061522,
323
+ 0.020166656494140626,
324
+ 0.020114431381225584,
325
+ 0.020143104553222657,
326
+ 0.020160512924194338,
327
+ 0.02016972732543945,
328
+ 0.020187135696411132,
329
+ 0.020151296615600587,
330
+ 0.020139007568359374,
331
+ 0.020154367446899413,
332
+ 0.020117504119873047,
333
+ 0.02024038314819336,
334
+ 0.02011955261230469,
335
+ 0.020172800064086914,
336
+ 0.02042163276672363,
337
+ 0.021320703506469727,
338
+ 0.02109337615966797,
339
+ 0.021008384704589843,
340
+ 0.020975616455078124,
341
+ 0.020195327758789062,
342
+ 0.020137983322143553,
343
+ 0.02023321533203125,
344
+ 0.020133888244628906,
345
+ 0.020371456146240235,
346
+ 0.020212736129760742,
347
+ 0.020149248123168945,
348
+ 0.020378623962402344,
349
+ 0.020157440185546875,
350
+ 0.020157440185546875,
351
+ 0.020147199630737304,
352
+ 0.020174848556518556,
353
+ 0.020178943634033202,
354
+ 0.020172800064086914,
355
+ 0.020137983322143553,
356
+ 0.020147199630737304,
357
+ 0.020159488677978517,
358
+ 0.020122623443603514,
359
+ 0.020185087203979494,
360
+ 0.020182016372680665,
361
+ 0.020163583755493163,
362
+ 0.020156415939331054,
363
+ 0.02079641532897949,
364
+ 0.021130239486694336,
365
+ 0.020938751220703124,
366
+ 0.02106265640258789,
367
+ 0.020156415939331054,
368
+ 0.020164608001708984,
369
+ 0.020123647689819335,
370
+ 0.019969024658203126,
371
+ 0.019974143981933593,
372
+ 0.02007347106933594,
373
+ 0.020118528366088868,
374
+ 0.020144128799438478,
375
+ 0.020152320861816408,
376
+ 0.020137983322143553,
377
+ 0.020189184188842774,
378
+ 0.02070425605773926,
379
+ 0.020960256576538085,
380
+ 0.020940799713134766,
381
+ 0.020916223526000977,
382
+ 0.02089472007751465,
383
+ 0.021094400405883788,
384
+ 0.02021887969970703,
385
+ 0.020191232681274415,
386
+ 0.020178943634033202,
387
+ 0.02016972732543945,
388
+ 0.020231168746948244,
389
+ 0.02020351982116699,
390
+ 0.020287488937377928,
391
+ 0.020165632247924805,
392
+ 0.020146175384521483,
393
+ 0.020141056060791016,
394
+ 0.020116479873657226,
395
+ 0.020165632247924805,
396
+ 0.020139007568359374,
397
+ 0.020184064865112306,
398
+ 0.02020351982116699,
399
+ 0.020151296615600587,
400
+ 0.020170751571655272,
401
+ 0.02011955261230469,
402
+ 0.020135936737060548,
403
+ 0.020136959075927736,
404
+ 0.020123647689819335,
405
+ 0.020585472106933594,
406
+ 0.020979711532592774,
407
+ 0.020192256927490236,
408
+ 0.020200447082519533,
409
+ 0.02019430351257324,
410
+ 0.020182016372680665,
411
+ 0.02021171188354492,
412
+ 0.020187135696411132,
413
+ 0.02023628807067871,
414
+ 0.02017791938781738,
415
+ 0.020274175643920898,
416
+ 0.020179967880249023,
417
+ 0.020150272369384766,
418
+ 0.020178943634033202,
419
+ 0.020144128799438478,
420
+ 0.019984384536743165,
421
+ 0.020179967880249023,
422
+ 0.020162559509277343,
423
+ 0.02024345588684082,
424
+ 0.020176895141601564,
425
+ 0.020160512924194338,
426
+ 0.020091903686523437,
427
+ 0.020168703079223634,
428
+ 0.020164608001708984,
429
+ 0.020187135696411132,
430
+ 0.020144128799438478,
431
+ 0.020139007568359374,
432
+ 0.020125696182250977
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 48.556343814705954
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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": 1751.093248,
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.044326559066772464,
15
+ "mean": 0.022163279533386232,
16
+ "stdev": 0.000232848167419435,
17
+ "p50": 0.022163279533386232,
18
+ "p90": 0.02234955806732178,
19
+ "p95": 0.022372842884063722,
20
+ "p99": 0.022391470737457276,
21
+ "values": [
22
+ 0.022396127700805665,
23
+ 0.021930431365966795
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 315.8377346391976
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1751.109632,
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.20942333984375,
46
+ "mean": 2.604711669921875,
47
+ "stdev": 0.030142333984374936,
48
+ "p50": 2.604711669921875,
49
+ "p90": 2.6288255371093747,
50
+ "p95": 2.6318397705078125,
51
+ "p99": 2.6342511572265623,
52
+ "values": [
53
+ 2.63485400390625,
54
+ 2.5745693359375
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 48.75779590752523
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.2104417285919205,
70
+ "mean": 0.020594631338307978,
71
+ "stdev": 0.001470644962648931,
72
+ "p50": 0.020199424743652345,
73
+ "p90": 0.02118328399658203,
74
+ "p95": 0.021293465042114258,
75
+ "p99": 0.02269499359130859,
76
+ "values": [
77
+ 0.02190336036682129,
78
+ 0.022136831283569337,
79
+ 0.02243891143798828,
80
+ 0.020356096267700196,
81
+ 0.020159488677978517,
82
+ 0.020214784622192384,
83
+ 0.02019327926635742,
84
+ 0.022972415924072266,
85
+ 0.021515264511108398,
86
+ 0.021219327926635743,
87
+ 0.021132287979125978,
88
+ 0.021127231597900392,
89
+ 0.02116294479370117,
90
+ 0.021133312225341795,
91
+ 0.021123071670532227,
92
+ 0.02106982421875,
93
+ 0.02119987106323242,
94
+ 0.02021990394592285,
95
+ 0.02023526382446289,
96
+ 0.020152320861816408,
97
+ 0.020156415939331054,
98
+ 0.020139007568359374,
99
+ 0.020171775817871093,
100
+ 0.020161535263061522,
101
+ 0.02020147132873535,
102
+ 0.020170751571655272,
103
+ 0.020190208435058594,
104
+ 0.02011238479614258,
105
+ 0.020115455627441405,
106
+ 0.020075519561767577,
107
+ 0.020718591690063477,
108
+ 0.02105548858642578,
109
+ 0.021086208343505858,
110
+ 0.020133888244628906,
111
+ 0.020918272018432618,
112
+ 0.020231168746948244,
113
+ 0.020100095748901366,
114
+ 0.02010419273376465,
115
+ 0.020137983322143553,
116
+ 0.02012057685852051,
117
+ 0.020212736129760742,
118
+ 0.020747264862060546,
119
+ 0.02017791938781738,
120
+ 0.020229120254516602,
121
+ 0.020779008865356444,
122
+ 0.020563968658447264,
123
+ 0.020758527755737305,
124
+ 0.021117952346801756,
125
+ 0.021744640350341796,
126
+ 0.02167500877380371,
127
+ 0.020385791778564453,
128
+ 0.020195327758789062,
129
+ 0.020146175384521483,
130
+ 0.020092927932739257,
131
+ 0.0200949764251709,
132
+ 0.021133312225341795,
133
+ 0.021090303421020508,
134
+ 0.02108006477355957,
135
+ 0.02126540756225586,
136
+ 0.021144575119018554,
137
+ 0.02023628807067871,
138
+ 0.020165632247924805,
139
+ 0.020172800064086914,
140
+ 0.020136959075927736,
141
+ 0.020199424743652345,
142
+ 0.020134912490844727,
143
+ 0.020129791259765627,
144
+ 0.020185087203979494,
145
+ 0.020168703079223634,
146
+ 0.020611072540283205,
147
+ 0.021169151306152344,
148
+ 0.021113855361938477,
149
+ 0.021154815673828126,
150
+ 0.021195775985717775,
151
+ 0.021341184616088867,
152
+ 0.021196800231933592,
153
+ 0.021148672103881837,
154
+ 0.02106470489501953,
155
+ 0.023657472610473632,
156
+ 0.021312511444091797,
157
+ 0.021132287979125978,
158
+ 0.021182464599609374,
159
+ 0.021155839920043946,
160
+ 0.020144128799438478,
161
+ 0.02017791938781738,
162
+ 0.020134912490844727,
163
+ 0.020206592559814454,
164
+ 0.020166656494140626,
165
+ 0.02022604751586914,
166
+ 0.02025984001159668,
167
+ 0.02070425605773926,
168
+ 0.02021785545349121,
169
+ 0.020189184188842774,
170
+ 0.020170751571655272,
171
+ 0.020183040618896485,
172
+ 0.020200447082519533,
173
+ 0.02021990394592285,
174
+ 0.02023628807067871,
175
+ 0.0202608642578125,
176
+ 0.020587520599365236,
177
+ 0.02123161506652832,
178
+ 0.021122047424316406,
179
+ 0.021168127059936523,
180
+ 0.021163007736206055,
181
+ 0.021212160110473634,
182
+ 0.02105548858642578,
183
+ 0.02145280075073242,
184
+ 0.021188608169555666,
185
+ 0.021193727493286133,
186
+ 0.0212807674407959,
187
+ 0.021168127059936523,
188
+ 0.02106879997253418,
189
+ 0.021176319122314453,
190
+ 0.02022809600830078,
191
+ 0.020205568313598633,
192
+ 0.020204544067382812,
193
+ 0.020745216369628908,
194
+ 0.021185535430908203,
195
+ 0.021147647857666017,
196
+ 0.021143552780151367,
197
+ 0.021133312225341795,
198
+ 0.021152767181396484,
199
+ 0.021197824478149413,
200
+ 0.021106687545776368,
201
+ 0.021183488845825195,
202
+ 0.021114879608154297,
203
+ 0.042308609008789064,
204
+ 0.020166656494140626,
205
+ 0.020166656494140626,
206
+ 0.020159488677978517,
207
+ 0.020160512924194338,
208
+ 0.020184064865112306,
209
+ 0.020154367446899413,
210
+ 0.020136959075927736,
211
+ 0.020213760375976563,
212
+ 0.020221952438354493,
213
+ 0.02022400093078613,
214
+ 0.020745216369628908,
215
+ 0.019955711364746095,
216
+ 0.020165632247924805,
217
+ 0.020137983322143553,
218
+ 0.020155391693115234,
219
+ 0.020161535263061522,
220
+ 0.020166656494140626,
221
+ 0.020114431381225584,
222
+ 0.020143104553222657,
223
+ 0.020160512924194338,
224
+ 0.02016972732543945,
225
+ 0.020187135696411132,
226
+ 0.020151296615600587,
227
+ 0.020139007568359374,
228
+ 0.020154367446899413,
229
+ 0.020117504119873047,
230
+ 0.02024038314819336,
231
+ 0.02011955261230469,
232
+ 0.020172800064086914,
233
+ 0.02042163276672363,
234
+ 0.021320703506469727,
235
+ 0.02109337615966797,
236
+ 0.021008384704589843,
237
+ 0.020975616455078124,
238
+ 0.020195327758789062,
239
+ 0.020137983322143553,
240
+ 0.02023321533203125,
241
+ 0.020133888244628906,
242
+ 0.020371456146240235,
243
+ 0.020212736129760742,
244
+ 0.020149248123168945,
245
+ 0.020378623962402344,
246
+ 0.020157440185546875,
247
+ 0.020157440185546875,
248
+ 0.020147199630737304,
249
+ 0.020174848556518556,
250
+ 0.020178943634033202,
251
+ 0.020172800064086914,
252
+ 0.020137983322143553,
253
+ 0.020147199630737304,
254
+ 0.020159488677978517,
255
+ 0.020122623443603514,
256
+ 0.020185087203979494,
257
+ 0.020182016372680665,
258
+ 0.020163583755493163,
259
+ 0.020156415939331054,
260
+ 0.02079641532897949,
261
+ 0.021130239486694336,
262
+ 0.020938751220703124,
263
+ 0.02106265640258789,
264
+ 0.020156415939331054,
265
+ 0.020164608001708984,
266
+ 0.020123647689819335,
267
+ 0.019969024658203126,
268
+ 0.019974143981933593,
269
+ 0.02007347106933594,
270
+ 0.020118528366088868,
271
+ 0.020144128799438478,
272
+ 0.020152320861816408,
273
+ 0.020137983322143553,
274
+ 0.020189184188842774,
275
+ 0.02070425605773926,
276
+ 0.020960256576538085,
277
+ 0.020940799713134766,
278
+ 0.020916223526000977,
279
+ 0.02089472007751465,
280
+ 0.021094400405883788,
281
+ 0.02021887969970703,
282
+ 0.020191232681274415,
283
+ 0.020178943634033202,
284
+ 0.02016972732543945,
285
+ 0.020231168746948244,
286
+ 0.02020351982116699,
287
+ 0.020287488937377928,
288
+ 0.020165632247924805,
289
+ 0.020146175384521483,
290
+ 0.020141056060791016,
291
+ 0.020116479873657226,
292
+ 0.020165632247924805,
293
+ 0.020139007568359374,
294
+ 0.020184064865112306,
295
+ 0.02020351982116699,
296
+ 0.020151296615600587,
297
+ 0.020170751571655272,
298
+ 0.02011955261230469,
299
+ 0.020135936737060548,
300
+ 0.020136959075927736,
301
+ 0.020123647689819335,
302
+ 0.020585472106933594,
303
+ 0.020979711532592774,
304
+ 0.020192256927490236,
305
+ 0.020200447082519533,
306
+ 0.02019430351257324,
307
+ 0.020182016372680665,
308
+ 0.02021171188354492,
309
+ 0.020187135696411132,
310
+ 0.02023628807067871,
311
+ 0.02017791938781738,
312
+ 0.020274175643920898,
313
+ 0.020179967880249023,
314
+ 0.020150272369384766,
315
+ 0.020178943634033202,
316
+ 0.020144128799438478,
317
+ 0.019984384536743165,
318
+ 0.020179967880249023,
319
+ 0.020162559509277343,
320
+ 0.02024345588684082,
321
+ 0.020176895141601564,
322
+ 0.020160512924194338,
323
+ 0.020091903686523437,
324
+ 0.020168703079223634,
325
+ 0.020164608001708984,
326
+ 0.020187135696411132,
327
+ 0.020144128799438478,
328
+ 0.020139007568359374,
329
+ 0.020125696182250977
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 48.556343814705954
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022163279533386232,
7
+ "prefill.throughput.value": 315.8377346391976,
8
+ "decode.latency.mean": 2.604711669921875,
9
+ "decode.throughput.value": 48.75779590752523,
10
+ "per_token.latency.mean": 0.020594631338307978,
11
+ "per_token.throughput.value": 48.556343814705954
12
+ }
13
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 9ba9369a2557e53a01378199a9839ec6e82d8bc7
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7
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/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7
88
+ - hydra.run.dir=_benchmark/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${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/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
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": 1930.637312,
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.028140575408935546,
118
+ "mean": 0.014070287704467773,
119
+ "stdev": 0.00011662387847900368,
120
+ "p50": 0.014070287704467773,
121
+ "p90": 0.014163586807250977,
122
+ "p95": 0.014175249195098877,
123
+ "p99": 0.014184579105377198,
124
+ "values": [
125
+ 0.014186911582946778,
126
+ 0.01395366382598877
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 497.50226484546386
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2274.553856,
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.1463156738281253,
149
+ "mean": 1.5731578369140626,
150
+ "stdev": 0.016137451171874928,
151
+ "p50": 1.5731578369140626,
152
+ "p90": 1.5860677978515625,
153
+ "p95": 1.5876815429687499,
154
+ "p99": 1.5889725390625,
155
+ "values": [
156
+ 1.5892952880859375,
157
+ 1.5570203857421876
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 80.72934388397142
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.1474268159866328,
173
+ "mean": 0.012440422197575626,
174
+ "stdev": 0.0009017623136978595,
175
+ "p50": 0.012277759552001954,
176
+ "p90": 0.012708454704284668,
177
+ "p95": 0.012737945747375488,
178
+ "p99": 0.012812124443054199,
179
+ "values": [
180
+ 0.012646400451660156,
181
+ 0.012768256187438964,
182
+ 0.012698623657226562,
183
+ 0.012774399757385254,
184
+ 0.012737536430358886,
185
+ 0.01277952003479004,
186
+ 0.012720128059387208,
187
+ 0.01274880027770996,
188
+ 0.012667903900146485,
189
+ 0.012741632461547851,
190
+ 0.01266585636138916,
191
+ 0.012723199844360352,
192
+ 0.012632063865661621,
193
+ 0.012709888458251953,
194
+ 0.012620800018310547,
195
+ 0.012709888458251953,
196
+ 0.012666879653930664,
197
+ 0.012709888458251953,
198
+ 0.012666879653930664,
199
+ 0.012739583969116211,
200
+ 0.012644351959228516,
201
+ 0.012700672149658204,
202
+ 0.012691455841064453,
203
+ 0.012712960243225097,
204
+ 0.012692480087280274,
205
+ 0.01273855972290039,
206
+ 0.012640255928039551,
207
+ 0.012693504333496093,
208
+ 0.012669952392578124,
209
+ 0.01268838405609131,
210
+ 0.012676095962524414,
211
+ 0.012808192253112792,
212
+ 0.012682239532470703,
213
+ 0.012710911750793457,
214
+ 0.012660736083984376,
215
+ 0.012570624351501464,
216
+ 0.012652544021606446,
217
+ 0.012683263778686523,
218
+ 0.012641280174255372,
219
+ 0.01275699234008789,
220
+ 0.012683263778686523,
221
+ 0.01268019199371338,
222
+ 0.012718079566955566,
223
+ 0.012783616065979005,
224
+ 0.012685312271118163,
225
+ 0.012726271629333496,
226
+ 0.01265561580657959,
227
+ 0.012699647903442383,
228
+ 0.012690431594848632,
229
+ 0.012722175598144531,
230
+ 0.012646400451660156,
231
+ 0.012697600364685058,
232
+ 0.012676095962524414,
233
+ 0.012718079566955566,
234
+ 0.012696576118469239,
235
+ 0.012702719688415527,
236
+ 0.012644351959228516,
237
+ 0.012722208023071288,
238
+ 0.012683232307434083,
239
+ 0.012699647903442383,
240
+ 0.012646400451660156,
241
+ 0.012682239532470703,
242
+ 0.01264742374420166,
243
+ 0.012695551872253418,
244
+ 0.01255628776550293,
245
+ 0.01262284755706787,
246
+ 0.012615679740905762,
247
+ 0.012679167747497559,
248
+ 0.012259327888488769,
249
+ 0.01244979190826416,
250
+ 0.012533760070800782,
251
+ 0.012816384315490722,
252
+ 0.012896256446838379,
253
+ 0.012424192428588866,
254
+ 0.012365823745727538,
255
+ 0.01235865592956543,
256
+ 0.012344320297241211,
257
+ 0.012302335739135742,
258
+ 0.012248064041137695,
259
+ 0.012299263954162597,
260
+ 0.01228492832183838,
261
+ 0.012278783798217773,
262
+ 0.012253184318542481,
263
+ 0.01228492832183838,
264
+ 0.012267519950866699,
265
+ 0.012290047645568849,
266
+ 0.01223475170135498,
267
+ 0.012278783798217773,
268
+ 0.012229632377624512,
269
+ 0.012283904075622559,
270
+ 0.012240896224975586,
271
+ 0.012273664474487305,
272
+ 0.012244992256164551,
273
+ 0.012270591735839843,
274
+ 0.01226035213470459,
275
+ 0.01234329605102539,
276
+ 0.0122357759475708,
277
+ 0.012281855583190919,
278
+ 0.012272640228271485,
279
+ 0.012306431770324706,
280
+ 0.012253184318542481,
281
+ 0.012280832290649414,
282
+ 0.012220447540283202,
283
+ 0.012264415740966797,
284
+ 0.012224512100219726,
285
+ 0.012259327888488769,
286
+ 0.012239871978759765,
287
+ 0.012290047645568849,
288
+ 0.012238847732543945,
289
+ 0.012285951614379884,
290
+ 0.012241920471191407,
291
+ 0.012285951614379884,
292
+ 0.012259327888488769,
293
+ 0.012280832290649414,
294
+ 0.012239871978759765,
295
+ 0.012313599586486817,
296
+ 0.01223475170135498,
297
+ 0.01226956844329834,
298
+ 0.012232704162597656,
299
+ 0.012267519950866699,
300
+ 0.012244992256164551,
301
+ 0.012288000106811523,
302
+ 0.012246015548706055,
303
+ 0.012283904075622559,
304
+ 0.012253184318542481,
305
+ 0.012288000106811523,
306
+ 0.026411008834838868,
307
+ 0.01222758388519287,
308
+ 0.012272640228271485,
309
+ 0.01225113582611084,
310
+ 0.012298239707946777,
311
+ 0.012231679916381836,
312
+ 0.012302335739135742,
313
+ 0.012233728408813477,
314
+ 0.012262399673461915,
315
+ 0.012228608131408691,
316
+ 0.012315648078918457,
317
+ 0.012274687767028808,
318
+ 0.012313664436340332,
319
+ 0.012234687805175781,
320
+ 0.012307456016540527,
321
+ 0.01222758388519287,
322
+ 0.012267519950866699,
323
+ 0.012229632377624512,
324
+ 0.012275712013244629,
325
+ 0.012229632377624512,
326
+ 0.012308480262756348,
327
+ 0.012274687767028808,
328
+ 0.012281855583190919,
329
+ 0.012217344284057617,
330
+ 0.012271615982055664,
331
+ 0.012225536346435547,
332
+ 0.012282879829406738,
333
+ 0.012265472412109376,
334
+ 0.012280832290649414,
335
+ 0.012244992256164551,
336
+ 0.012274687767028808,
337
+ 0.01222758388519287,
338
+ 0.012270591735839843,
339
+ 0.012238847732543945,
340
+ 0.012256256103515625,
341
+ 0.012225536346435547,
342
+ 0.01228492832183838,
343
+ 0.012265472412109376,
344
+ 0.012277759552001954,
345
+ 0.012244992256164551,
346
+ 0.012262399673461915,
347
+ 0.0122357759475708,
348
+ 0.012285951614379884,
349
+ 0.012306431770324706,
350
+ 0.012270591735839843,
351
+ 0.012248064041137695,
352
+ 0.012273664474487305,
353
+ 0.012239871978759765,
354
+ 0.01226035213470459,
355
+ 0.012246015548706055,
356
+ 0.012267519950866699,
357
+ 0.01224396800994873,
358
+ 0.012307456016540527,
359
+ 0.0122357759475708,
360
+ 0.012290047645568849,
361
+ 0.012271615982055664,
362
+ 0.012282879829406738,
363
+ 0.012241920471191407,
364
+ 0.012267519950866699,
365
+ 0.012226559638977052,
366
+ 0.012253184318542481,
367
+ 0.012255231857299804,
368
+ 0.012281855583190919,
369
+ 0.012240896224975586,
370
+ 0.012277759552001954,
371
+ 0.012231679916381836,
372
+ 0.012323840141296387,
373
+ 0.01225011157989502,
374
+ 0.01226035213470459,
375
+ 0.01224294376373291,
376
+ 0.012270624160766602,
377
+ 0.012228575706481934,
378
+ 0.012282879829406738,
379
+ 0.012237824440002442,
380
+ 0.012274687767028808,
381
+ 0.012224512100219726,
382
+ 0.012277759552001954,
383
+ 0.012238847732543945,
384
+ 0.012289024353027344,
385
+ 0.012232704162597656,
386
+ 0.01227673625946045,
387
+ 0.012217344284057617,
388
+ 0.012262399673461915,
389
+ 0.012231679916381836,
390
+ 0.012273664474487305,
391
+ 0.012231679916381836,
392
+ 0.01228492832183838,
393
+ 0.01225830364227295,
394
+ 0.012286975860595703,
395
+ 0.012221440315246582,
396
+ 0.01225830364227295,
397
+ 0.012239871978759765,
398
+ 0.012270591735839843,
399
+ 0.012225536346435547,
400
+ 0.012283904075622559,
401
+ 0.01223475170135498,
402
+ 0.01226956844329834,
403
+ 0.01221939182281494,
404
+ 0.01226956844329834,
405
+ 0.01223475170135498,
406
+ 0.012267519950866699,
407
+ 0.012211199760437011,
408
+ 0.012295167922973632,
409
+ 0.01228492832183838,
410
+ 0.012281855583190919,
411
+ 0.01221939182281494,
412
+ 0.012262399673461915,
413
+ 0.012217344284057617,
414
+ 0.012280832290649414,
415
+ 0.012220416069030762,
416
+ 0.01226854419708252,
417
+ 0.012246015548706055,
418
+ 0.012267519950866699,
419
+ 0.01222758388519287,
420
+ 0.01226854419708252,
421
+ 0.012224512100219726,
422
+ 0.01226137638092041,
423
+ 0.012218367576599122,
424
+ 0.01228492832183838,
425
+ 0.01225011157989502,
426
+ 0.012294143676757812,
427
+ 0.012240896224975586,
428
+ 0.01226956844329834,
429
+ 0.0122357759475708,
430
+ 0.012262399673461915,
431
+ 0.012254207611083985,
432
+ 0.012280832290649414
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 80.38312399034808
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
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-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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": 1930.637312,
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.028140575408935546,
15
+ "mean": 0.014070287704467773,
16
+ "stdev": 0.00011662387847900368,
17
+ "p50": 0.014070287704467773,
18
+ "p90": 0.014163586807250977,
19
+ "p95": 0.014175249195098877,
20
+ "p99": 0.014184579105377198,
21
+ "values": [
22
+ 0.014186911582946778,
23
+ 0.01395366382598877
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 497.50226484546386
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2274.553856,
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.1463156738281253,
46
+ "mean": 1.5731578369140626,
47
+ "stdev": 0.016137451171874928,
48
+ "p50": 1.5731578369140626,
49
+ "p90": 1.5860677978515625,
50
+ "p95": 1.5876815429687499,
51
+ "p99": 1.5889725390625,
52
+ "values": [
53
+ 1.5892952880859375,
54
+ 1.5570203857421876
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 80.72934388397142
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.1474268159866328,
70
+ "mean": 0.012440422197575626,
71
+ "stdev": 0.0009017623136978595,
72
+ "p50": 0.012277759552001954,
73
+ "p90": 0.012708454704284668,
74
+ "p95": 0.012737945747375488,
75
+ "p99": 0.012812124443054199,
76
+ "values": [
77
+ 0.012646400451660156,
78
+ 0.012768256187438964,
79
+ 0.012698623657226562,
80
+ 0.012774399757385254,
81
+ 0.012737536430358886,
82
+ 0.01277952003479004,
83
+ 0.012720128059387208,
84
+ 0.01274880027770996,
85
+ 0.012667903900146485,
86
+ 0.012741632461547851,
87
+ 0.01266585636138916,
88
+ 0.012723199844360352,
89
+ 0.012632063865661621,
90
+ 0.012709888458251953,
91
+ 0.012620800018310547,
92
+ 0.012709888458251953,
93
+ 0.012666879653930664,
94
+ 0.012709888458251953,
95
+ 0.012666879653930664,
96
+ 0.012739583969116211,
97
+ 0.012644351959228516,
98
+ 0.012700672149658204,
99
+ 0.012691455841064453,
100
+ 0.012712960243225097,
101
+ 0.012692480087280274,
102
+ 0.01273855972290039,
103
+ 0.012640255928039551,
104
+ 0.012693504333496093,
105
+ 0.012669952392578124,
106
+ 0.01268838405609131,
107
+ 0.012676095962524414,
108
+ 0.012808192253112792,
109
+ 0.012682239532470703,
110
+ 0.012710911750793457,
111
+ 0.012660736083984376,
112
+ 0.012570624351501464,
113
+ 0.012652544021606446,
114
+ 0.012683263778686523,
115
+ 0.012641280174255372,
116
+ 0.01275699234008789,
117
+ 0.012683263778686523,
118
+ 0.01268019199371338,
119
+ 0.012718079566955566,
120
+ 0.012783616065979005,
121
+ 0.012685312271118163,
122
+ 0.012726271629333496,
123
+ 0.01265561580657959,
124
+ 0.012699647903442383,
125
+ 0.012690431594848632,
126
+ 0.012722175598144531,
127
+ 0.012646400451660156,
128
+ 0.012697600364685058,
129
+ 0.012676095962524414,
130
+ 0.012718079566955566,
131
+ 0.012696576118469239,
132
+ 0.012702719688415527,
133
+ 0.012644351959228516,
134
+ 0.012722208023071288,
135
+ 0.012683232307434083,
136
+ 0.012699647903442383,
137
+ 0.012646400451660156,
138
+ 0.012682239532470703,
139
+ 0.01264742374420166,
140
+ 0.012695551872253418,
141
+ 0.01255628776550293,
142
+ 0.01262284755706787,
143
+ 0.012615679740905762,
144
+ 0.012679167747497559,
145
+ 0.012259327888488769,
146
+ 0.01244979190826416,
147
+ 0.012533760070800782,
148
+ 0.012816384315490722,
149
+ 0.012896256446838379,
150
+ 0.012424192428588866,
151
+ 0.012365823745727538,
152
+ 0.01235865592956543,
153
+ 0.012344320297241211,
154
+ 0.012302335739135742,
155
+ 0.012248064041137695,
156
+ 0.012299263954162597,
157
+ 0.01228492832183838,
158
+ 0.012278783798217773,
159
+ 0.012253184318542481,
160
+ 0.01228492832183838,
161
+ 0.012267519950866699,
162
+ 0.012290047645568849,
163
+ 0.01223475170135498,
164
+ 0.012278783798217773,
165
+ 0.012229632377624512,
166
+ 0.012283904075622559,
167
+ 0.012240896224975586,
168
+ 0.012273664474487305,
169
+ 0.012244992256164551,
170
+ 0.012270591735839843,
171
+ 0.01226035213470459,
172
+ 0.01234329605102539,
173
+ 0.0122357759475708,
174
+ 0.012281855583190919,
175
+ 0.012272640228271485,
176
+ 0.012306431770324706,
177
+ 0.012253184318542481,
178
+ 0.012280832290649414,
179
+ 0.012220447540283202,
180
+ 0.012264415740966797,
181
+ 0.012224512100219726,
182
+ 0.012259327888488769,
183
+ 0.012239871978759765,
184
+ 0.012290047645568849,
185
+ 0.012238847732543945,
186
+ 0.012285951614379884,
187
+ 0.012241920471191407,
188
+ 0.012285951614379884,
189
+ 0.012259327888488769,
190
+ 0.012280832290649414,
191
+ 0.012239871978759765,
192
+ 0.012313599586486817,
193
+ 0.01223475170135498,
194
+ 0.01226956844329834,
195
+ 0.012232704162597656,
196
+ 0.012267519950866699,
197
+ 0.012244992256164551,
198
+ 0.012288000106811523,
199
+ 0.012246015548706055,
200
+ 0.012283904075622559,
201
+ 0.012253184318542481,
202
+ 0.012288000106811523,
203
+ 0.026411008834838868,
204
+ 0.01222758388519287,
205
+ 0.012272640228271485,
206
+ 0.01225113582611084,
207
+ 0.012298239707946777,
208
+ 0.012231679916381836,
209
+ 0.012302335739135742,
210
+ 0.012233728408813477,
211
+ 0.012262399673461915,
212
+ 0.012228608131408691,
213
+ 0.012315648078918457,
214
+ 0.012274687767028808,
215
+ 0.012313664436340332,
216
+ 0.012234687805175781,
217
+ 0.012307456016540527,
218
+ 0.01222758388519287,
219
+ 0.012267519950866699,
220
+ 0.012229632377624512,
221
+ 0.012275712013244629,
222
+ 0.012229632377624512,
223
+ 0.012308480262756348,
224
+ 0.012274687767028808,
225
+ 0.012281855583190919,
226
+ 0.012217344284057617,
227
+ 0.012271615982055664,
228
+ 0.012225536346435547,
229
+ 0.012282879829406738,
230
+ 0.012265472412109376,
231
+ 0.012280832290649414,
232
+ 0.012244992256164551,
233
+ 0.012274687767028808,
234
+ 0.01222758388519287,
235
+ 0.012270591735839843,
236
+ 0.012238847732543945,
237
+ 0.012256256103515625,
238
+ 0.012225536346435547,
239
+ 0.01228492832183838,
240
+ 0.012265472412109376,
241
+ 0.012277759552001954,
242
+ 0.012244992256164551,
243
+ 0.012262399673461915,
244
+ 0.0122357759475708,
245
+ 0.012285951614379884,
246
+ 0.012306431770324706,
247
+ 0.012270591735839843,
248
+ 0.012248064041137695,
249
+ 0.012273664474487305,
250
+ 0.012239871978759765,
251
+ 0.01226035213470459,
252
+ 0.012246015548706055,
253
+ 0.012267519950866699,
254
+ 0.01224396800994873,
255
+ 0.012307456016540527,
256
+ 0.0122357759475708,
257
+ 0.012290047645568849,
258
+ 0.012271615982055664,
259
+ 0.012282879829406738,
260
+ 0.012241920471191407,
261
+ 0.012267519950866699,
262
+ 0.012226559638977052,
263
+ 0.012253184318542481,
264
+ 0.012255231857299804,
265
+ 0.012281855583190919,
266
+ 0.012240896224975586,
267
+ 0.012277759552001954,
268
+ 0.012231679916381836,
269
+ 0.012323840141296387,
270
+ 0.01225011157989502,
271
+ 0.01226035213470459,
272
+ 0.01224294376373291,
273
+ 0.012270624160766602,
274
+ 0.012228575706481934,
275
+ 0.012282879829406738,
276
+ 0.012237824440002442,
277
+ 0.012274687767028808,
278
+ 0.012224512100219726,
279
+ 0.012277759552001954,
280
+ 0.012238847732543945,
281
+ 0.012289024353027344,
282
+ 0.012232704162597656,
283
+ 0.01227673625946045,
284
+ 0.012217344284057617,
285
+ 0.012262399673461915,
286
+ 0.012231679916381836,
287
+ 0.012273664474487305,
288
+ 0.012231679916381836,
289
+ 0.01228492832183838,
290
+ 0.01225830364227295,
291
+ 0.012286975860595703,
292
+ 0.012221440315246582,
293
+ 0.01225830364227295,
294
+ 0.012239871978759765,
295
+ 0.012270591735839843,
296
+ 0.012225536346435547,
297
+ 0.012283904075622559,
298
+ 0.01223475170135498,
299
+ 0.01226956844329834,
300
+ 0.01221939182281494,
301
+ 0.01226956844329834,
302
+ 0.01223475170135498,
303
+ 0.012267519950866699,
304
+ 0.012211199760437011,
305
+ 0.012295167922973632,
306
+ 0.01228492832183838,
307
+ 0.012281855583190919,
308
+ 0.01221939182281494,
309
+ 0.012262399673461915,
310
+ 0.012217344284057617,
311
+ 0.012280832290649414,
312
+ 0.012220416069030762,
313
+ 0.01226854419708252,
314
+ 0.012246015548706055,
315
+ 0.012267519950866699,
316
+ 0.01222758388519287,
317
+ 0.01226854419708252,
318
+ 0.012224512100219726,
319
+ 0.01226137638092041,
320
+ 0.012218367576599122,
321
+ 0.01228492832183838,
322
+ 0.01225011157989502,
323
+ 0.012294143676757812,
324
+ 0.012240896224975586,
325
+ 0.01226956844329834,
326
+ 0.0122357759475708,
327
+ 0.012262399673461915,
328
+ 0.012254207611083985,
329
+ 0.012280832290649414
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 80.38312399034808
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/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": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014070287704467773,
7
+ "prefill.throughput.value": 497.50226484546386,
8
+ "decode.latency.mean": 1.5731578369140626,
9
+ "decode.throughput.value": 80.72934388397142,
10
+ "per_token.latency.mean": 0.012440422197575626,
11
+ "per_token.throughput.value": 80.38312399034808
12
+ }
13
+ }
2024-06-18/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp71087txc/commit=9ba9369a2557e53a01378199a9839ec6e82d8bc7
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/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7
88
+ - hydra.run.dir=_benchmark/tmp71087txc/commit\=9ba9369a2557e53a01378199a9839ec6e82d8bc7/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.3.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model: google/gemma-2b
150
+ processor: null
151
+ device: cuda
152
+ device_ids: '0'
153
+ seed: 42
154
+ inter_op_num_threads: null
155
+ intra_op_num_threads: null
156
+ model_kwargs: {}
157
+ processor_kwargs: {}
158
+ hub_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ latency: true
192
+ memory: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ start_method: spawn
206
+ environment:
207
+ cpu: ' AMD EPYC 7R32'
208
+ cpu_count: 16
209
+ cpu_ram_mb: 66697.29792
210
+ system: Linux
211
+ machine: x86_64
212
+ platform: Linux-5.10.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29
213
+ processor: x86_64
214
+ python_version: 3.8.10
215
+ gpu:
216
+ - NVIDIA A10G
217
+ gpu_count: 1
218
+ gpu_vram_mb: 24146608128
219
+ optimum_benchmark_version: 0.2.1
220
+ optimum_benchmark_commit: null
221
+ transformers_version: 4.42.0.dev0
222
+ transformers_commit: 9ba9369a2557e53a01378199a9839ec6e82d8bc7
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-18/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.019696576118469238,
8
+ "prefill.throughput.value": 355.3917167073614,
9
+ "decode.latency.mean": 2.428328125,
10
+ "decode.throughput.value": 52.29935719663091,
11
+ "per_token.latency.mean": 0.01919638968456404,
12
+ "per_token.throughput.value": 52.09312878265373
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022163279533386232,
21
+ "prefill.throughput.value": 315.8377346391976,
22
+ "decode.latency.mean": 2.604711669921875,
23
+ "decode.throughput.value": 48.75779590752523,
24
+ "per_token.latency.mean": 0.020594631338307978,
25
+ "per_token.throughput.value": 48.556343814705954
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "9ba9369a2557e53a01378199a9839ec6e82d8bc7",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014070287704467773,
34
+ "prefill.throughput.value": 497.50226484546386,
35
+ "decode.latency.mean": 1.5731578369140626,
36
+ "decode.throughput.value": 80.72934388397142,
37
+ "per_token.latency.mean": 0.012440422197575626,
38
+ "per_token.throughput.value": 80.38312399034808
39
+ }
40
+ }
41
+ ]
2024-06-18/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "9ba9369a2557e53a01378199a9839ec6e82d8bc7": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.019696576118469238,
7
+ "prefill.throughput.value": 355.3917167073614,
8
+ "decode.latency.mean": 2.428328125,
9
+ "decode.throughput.value": 52.29935719663091,
10
+ "per_token.latency.mean": 0.01919638968456404,
11
+ "per_token.throughput.value": 52.09312878265373
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "9ba9369a2557e53a01378199a9839ec6e82d8bc7": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022163279533386232,
19
+ "prefill.throughput.value": 315.8377346391976,
20
+ "decode.latency.mean": 2.604711669921875,
21
+ "decode.throughput.value": 48.75779590752523,
22
+ "per_token.latency.mean": 0.020594631338307978,
23
+ "per_token.throughput.value": 48.556343814705954
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "9ba9369a2557e53a01378199a9839ec6e82d8bc7": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014070287704467773,
31
+ "prefill.throughput.value": 497.50226484546386,
32
+ "decode.latency.mean": 1.5731578369140626,
33
+ "decode.throughput.value": 80.72934388397142,
34
+ "per_token.latency.mean": 0.012440422197575626,
35
+ "per_token.throughput.value": 80.38312399034808
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }