hf-transformers-bot commited on
Commit
cb8bde1
1 Parent(s): 993304e

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  2. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  5. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  7. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  8. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  10. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +2 -0
  13. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  14. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +93 -0
  15. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +473 -0
  18. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +104 -0
  20. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +367 -0
  21. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +93 -0
  23. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +473 -0
  26. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +104 -0
  28. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +367 -0
  29. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/multirun.yaml +234 -0
  31. 2024-09-04/summaries.json +41 -0
  32. 2024-09-04/summary.json +40 -0
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: ecd61c62862f925a18b4f063dc17fcaf01826e25
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25
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/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25
88
+ - hydra.run.dir=_benchmark/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25/${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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=False
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1320.685568,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 11.590453125,
120
+ "mean": 11.590453125,
121
+ "stdev": 0.0,
122
+ "p50": 11.590453125,
123
+ "p90": 11.590453125,
124
+ "p95": 11.590453125,
125
+ "p99": 11.590453125,
126
+ "values": [
127
+ 11.590453125
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1717.129216,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.431872
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.04132208061218262,
147
+ "mean": 0.02066104030609131,
148
+ "stdev": 3.377628326415964e-05,
149
+ "p50": 0.02066104030609131,
150
+ "p90": 0.020688061332702637,
151
+ "p95": 0.02069143896102905,
152
+ "p99": 0.020694141063690184,
153
+ "values": [
154
+ 0.02062726402282715,
155
+ 0.02069481658935547
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 338.80191395475146
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1771.474944,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.801344
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 5.01264453125,
178
+ "mean": 2.506322265625,
179
+ "stdev": 0.0009145507812500231,
180
+ "p50": 2.506322265625,
181
+ "p90": 2.50705390625,
182
+ "p95": 2.507145361328125,
183
+ "p99": 2.507218525390625,
184
+ "values": [
185
+ 2.50540771484375,
186
+ 2.50723681640625
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 50.67185562760425
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 5.012325365066527,
202
+ "mean": 0.01973356442939578,
203
+ "stdev": 0.00037922925849322343,
204
+ "p50": 0.01986457633972168,
205
+ "p90": 0.02008801212310791,
206
+ "p95": 0.02016040916442871,
207
+ "p99": 0.020493373069763184,
208
+ "values": [
209
+ 0.019094528198242186,
210
+ 0.0194969596862793,
211
+ 0.01984614372253418,
212
+ 0.0200263671875,
213
+ 0.019143680572509765,
214
+ 0.019215360641479492,
215
+ 0.019153919219970703,
216
+ 0.01920614433288574,
217
+ 0.01920921516418457,
218
+ 0.019168256759643554,
219
+ 0.01920614433288574,
220
+ 0.019134464263916014,
221
+ 0.019143680572509765,
222
+ 0.019170303344726563,
223
+ 0.019158016204833983,
224
+ 0.019185663223266602,
225
+ 0.019940351486206053,
226
+ 0.019340288162231444,
227
+ 0.01920204734802246,
228
+ 0.01921023941040039,
229
+ 0.01925119972229004,
230
+ 0.019672063827514647,
231
+ 0.019862527847290038,
232
+ 0.01985843276977539,
233
+ 0.01983795166015625,
234
+ 0.019826688766479493,
235
+ 0.01987379264831543,
236
+ 0.019819520950317384,
237
+ 0.01985638427734375,
238
+ 0.01986457633972168,
239
+ 0.01987174415588379,
240
+ 0.019150848388671874,
241
+ 0.019143680572509765,
242
+ 0.019215360641479492,
243
+ 0.019184640884399414,
244
+ 0.019176448822021484,
245
+ 0.019174400329589843,
246
+ 0.019172351837158205,
247
+ 0.019191808700561523,
248
+ 0.019195903778076173,
249
+ 0.01922867202758789,
250
+ 0.019297279357910157,
251
+ 0.01963212776184082,
252
+ 0.01926144027709961,
253
+ 0.019194879531860352,
254
+ 0.01922559928894043,
255
+ 0.01919692802429199,
256
+ 0.019251232147216798,
257
+ 0.019208160400390625,
258
+ 0.01923583984375,
259
+ 0.019711999893188475,
260
+ 0.02042470359802246,
261
+ 0.02016972732543945,
262
+ 0.019915775299072267,
263
+ 0.019870719909667968,
264
+ 0.01998028755187988,
265
+ 0.019910655975341796,
266
+ 0.020101119995117187,
267
+ 0.020699136734008788,
268
+ 0.020196352005004883,
269
+ 0.020060159683227538,
270
+ 0.019336191177368164,
271
+ 0.019302400588989257,
272
+ 0.019277824401855468,
273
+ 0.019732479095458985,
274
+ 0.019991552352905274,
275
+ 0.019298303604125978,
276
+ 0.019901439666748046,
277
+ 0.019292160034179686,
278
+ 0.019294208526611328,
279
+ 0.01929113578796387,
280
+ 0.019302400588989257,
281
+ 0.019587072372436523,
282
+ 0.0200898551940918,
283
+ 0.020007936477661133,
284
+ 0.019908607482910155,
285
+ 0.019990528106689453,
286
+ 0.019976192474365235,
287
+ 0.019973119735717772,
288
+ 0.019907583236694337,
289
+ 0.020063232421875,
290
+ 0.02022502326965332,
291
+ 0.020067327499389647,
292
+ 0.01999564743041992,
293
+ 0.019998720169067383,
294
+ 0.019974143981933593,
295
+ 0.019958784103393554,
296
+ 0.019934207916259765,
297
+ 0.019977216720581056,
298
+ 0.02003558349609375,
299
+ 0.020135936737060548,
300
+ 0.019914751052856446,
301
+ 0.019992576599121094,
302
+ 0.019986431121826173,
303
+ 0.020546560287475587,
304
+ 0.020118528366088868,
305
+ 0.019952640533447266,
306
+ 0.019970048904418947,
307
+ 0.01998847961425781,
308
+ 0.02031718444824219,
309
+ 0.019951616287231445,
310
+ 0.019981311798095702,
311
+ 0.019969024658203126,
312
+ 0.019994623184204103,
313
+ 0.02009600067138672,
314
+ 0.02006630325317383,
315
+ 0.02001408004760742,
316
+ 0.020009983062744142,
317
+ 0.02004172706604004,
318
+ 0.019950592041015625,
319
+ 0.020124671936035156,
320
+ 0.019973119735717772,
321
+ 0.019937280654907227,
322
+ 0.019983360290527344,
323
+ 0.019947519302368166,
324
+ 0.019955711364746095,
325
+ 0.019986431121826173,
326
+ 0.020002815246582033,
327
+ 0.020369407653808593,
328
+ 0.019973119735717772,
329
+ 0.019956735610961913,
330
+ 0.02012057685852051,
331
+ 0.020025344848632814,
332
+ 0.02003865623474121,
333
+ 0.019983360290527344,
334
+ 0.019937280654907227,
335
+ 0.02001919937133789,
336
+ 0.019779584884643556,
337
+ 0.019763200759887696,
338
+ 0.019883007049560548,
339
+ 0.019963903427124022,
340
+ 0.0198287353515625,
341
+ 0.019810304641723633,
342
+ 0.01984511947631836,
343
+ 0.019975168228149414,
344
+ 0.01979801559448242,
345
+ 0.019773439407348634,
346
+ 0.019792896270751953,
347
+ 0.01978265571594238,
348
+ 0.019900415420532228,
349
+ 0.019951616287231445,
350
+ 0.01986867141723633,
351
+ 0.01982156753540039,
352
+ 0.01980620765686035,
353
+ 0.01986457633972168,
354
+ 0.019533824920654298,
355
+ 0.019286016464233398,
356
+ 0.019530752182006835,
357
+ 0.019937280654907227,
358
+ 0.019842048645019532,
359
+ 0.01982464027404785,
360
+ 0.019842048645019532,
361
+ 0.019854335784912108,
362
+ 0.019922943115234376,
363
+ 0.020155391693115234,
364
+ 0.01992192077636719,
365
+ 0.019896320343017578,
366
+ 0.01983795166015625,
367
+ 0.0198287353515625,
368
+ 0.01980620765686035,
369
+ 0.01979801559448242,
370
+ 0.01920102310180664,
371
+ 0.01922662353515625,
372
+ 0.01940787124633789,
373
+ 0.019877887725830077,
374
+ 0.019810304641723633,
375
+ 0.01984921646118164,
376
+ 0.02042572784423828,
377
+ 0.01984511947631836,
378
+ 0.01988812828063965,
379
+ 0.01983897590637207,
380
+ 0.019939327239990236,
381
+ 0.019992576599121094,
382
+ 0.019940351486206053,
383
+ 0.020446207046508787,
384
+ 0.019355648040771483,
385
+ 0.01925119972229004,
386
+ 0.019269632339477538,
387
+ 0.019212287902832033,
388
+ 0.01924300765991211,
389
+ 0.019152896881103516,
390
+ 0.019280895233154297,
391
+ 0.019159040451049804,
392
+ 0.019166271209716798,
393
+ 0.019303359985351563,
394
+ 0.019332096099853514,
395
+ 0.019338239669799806,
396
+ 0.019307519912719725,
397
+ 0.019334144592285156,
398
+ 0.019349504470825195,
399
+ 0.019408895492553712,
400
+ 0.019409919738769533,
401
+ 0.019306495666503908,
402
+ 0.019162111282348633,
403
+ 0.019128320693969726,
404
+ 0.01923379135131836,
405
+ 0.019412992477416992,
406
+ 0.019376127243041993,
407
+ 0.020031488418579102,
408
+ 0.019904512405395508,
409
+ 0.019975168228149414,
410
+ 0.019961856842041017,
411
+ 0.01999667167663574,
412
+ 0.020074495315551756,
413
+ 0.020083711624145507,
414
+ 0.020123647689819335,
415
+ 0.020184064865112306,
416
+ 0.02007756805419922,
417
+ 0.020101119995117187,
418
+ 0.019393535614013673,
419
+ 0.019311616897583008,
420
+ 0.019330047607421876,
421
+ 0.019306495666503908,
422
+ 0.019288063049316406,
423
+ 0.019308544158935546,
424
+ 0.019418111801147463,
425
+ 0.01945702362060547,
426
+ 0.019316736221313476,
427
+ 0.01966796875,
428
+ 0.019293184280395507,
429
+ 0.019342336654663086,
430
+ 0.019316736221313476,
431
+ 0.019352575302124024,
432
+ 0.02001203155517578,
433
+ 0.020147199630737304,
434
+ 0.02007756805419922,
435
+ 0.02007347106933594,
436
+ 0.020091903686523437,
437
+ 0.020083711624145507,
438
+ 0.020016128540039063,
439
+ 0.02007244873046875,
440
+ 0.02004275131225586,
441
+ 0.020039680480957032,
442
+ 0.020039680480957032,
443
+ 0.020011007308959963,
444
+ 0.019992576599121094,
445
+ 0.02000588798522949,
446
+ 0.020068351745605468,
447
+ 0.019983360290527344,
448
+ 0.020007936477661133,
449
+ 0.020057088851928712,
450
+ 0.020060159683227538,
451
+ 0.019954687118530275,
452
+ 0.019986431121826173,
453
+ 0.019976192474365235,
454
+ 0.019948543548583983,
455
+ 0.02004991912841797,
456
+ 0.0214466552734375,
457
+ 0.020199424743652345,
458
+ 0.020100095748901366,
459
+ 0.019631103515625,
460
+ 0.019563520431518554,
461
+ 0.0192491512298584,
462
+ 0.01925939178466797
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 50.6750822223666
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1320.685568,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 11.590453125,
15
+ "mean": 11.590453125,
16
+ "stdev": 0.0,
17
+ "p50": 11.590453125,
18
+ "p90": 11.590453125,
19
+ "p95": 11.590453125,
20
+ "p99": 11.590453125,
21
+ "values": [
22
+ 11.590453125
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1717.129216,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.431872
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.04132208061218262,
42
+ "mean": 0.02066104030609131,
43
+ "stdev": 3.377628326415964e-05,
44
+ "p50": 0.02066104030609131,
45
+ "p90": 0.020688061332702637,
46
+ "p95": 0.02069143896102905,
47
+ "p99": 0.020694141063690184,
48
+ "values": [
49
+ 0.02062726402282715,
50
+ 0.02069481658935547
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 338.80191395475146
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1771.474944,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.801344
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 5.01264453125,
73
+ "mean": 2.506322265625,
74
+ "stdev": 0.0009145507812500231,
75
+ "p50": 2.506322265625,
76
+ "p90": 2.50705390625,
77
+ "p95": 2.507145361328125,
78
+ "p99": 2.507218525390625,
79
+ "values": [
80
+ 2.50540771484375,
81
+ 2.50723681640625
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 50.67185562760425
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 5.012325365066527,
97
+ "mean": 0.01973356442939578,
98
+ "stdev": 0.00037922925849322343,
99
+ "p50": 0.01986457633972168,
100
+ "p90": 0.02008801212310791,
101
+ "p95": 0.02016040916442871,
102
+ "p99": 0.020493373069763184,
103
+ "values": [
104
+ 0.019094528198242186,
105
+ 0.0194969596862793,
106
+ 0.01984614372253418,
107
+ 0.0200263671875,
108
+ 0.019143680572509765,
109
+ 0.019215360641479492,
110
+ 0.019153919219970703,
111
+ 0.01920614433288574,
112
+ 0.01920921516418457,
113
+ 0.019168256759643554,
114
+ 0.01920614433288574,
115
+ 0.019134464263916014,
116
+ 0.019143680572509765,
117
+ 0.019170303344726563,
118
+ 0.019158016204833983,
119
+ 0.019185663223266602,
120
+ 0.019940351486206053,
121
+ 0.019340288162231444,
122
+ 0.01920204734802246,
123
+ 0.01921023941040039,
124
+ 0.01925119972229004,
125
+ 0.019672063827514647,
126
+ 0.019862527847290038,
127
+ 0.01985843276977539,
128
+ 0.01983795166015625,
129
+ 0.019826688766479493,
130
+ 0.01987379264831543,
131
+ 0.019819520950317384,
132
+ 0.01985638427734375,
133
+ 0.01986457633972168,
134
+ 0.01987174415588379,
135
+ 0.019150848388671874,
136
+ 0.019143680572509765,
137
+ 0.019215360641479492,
138
+ 0.019184640884399414,
139
+ 0.019176448822021484,
140
+ 0.019174400329589843,
141
+ 0.019172351837158205,
142
+ 0.019191808700561523,
143
+ 0.019195903778076173,
144
+ 0.01922867202758789,
145
+ 0.019297279357910157,
146
+ 0.01963212776184082,
147
+ 0.01926144027709961,
148
+ 0.019194879531860352,
149
+ 0.01922559928894043,
150
+ 0.01919692802429199,
151
+ 0.019251232147216798,
152
+ 0.019208160400390625,
153
+ 0.01923583984375,
154
+ 0.019711999893188475,
155
+ 0.02042470359802246,
156
+ 0.02016972732543945,
157
+ 0.019915775299072267,
158
+ 0.019870719909667968,
159
+ 0.01998028755187988,
160
+ 0.019910655975341796,
161
+ 0.020101119995117187,
162
+ 0.020699136734008788,
163
+ 0.020196352005004883,
164
+ 0.020060159683227538,
165
+ 0.019336191177368164,
166
+ 0.019302400588989257,
167
+ 0.019277824401855468,
168
+ 0.019732479095458985,
169
+ 0.019991552352905274,
170
+ 0.019298303604125978,
171
+ 0.019901439666748046,
172
+ 0.019292160034179686,
173
+ 0.019294208526611328,
174
+ 0.01929113578796387,
175
+ 0.019302400588989257,
176
+ 0.019587072372436523,
177
+ 0.0200898551940918,
178
+ 0.020007936477661133,
179
+ 0.019908607482910155,
180
+ 0.019990528106689453,
181
+ 0.019976192474365235,
182
+ 0.019973119735717772,
183
+ 0.019907583236694337,
184
+ 0.020063232421875,
185
+ 0.02022502326965332,
186
+ 0.020067327499389647,
187
+ 0.01999564743041992,
188
+ 0.019998720169067383,
189
+ 0.019974143981933593,
190
+ 0.019958784103393554,
191
+ 0.019934207916259765,
192
+ 0.019977216720581056,
193
+ 0.02003558349609375,
194
+ 0.020135936737060548,
195
+ 0.019914751052856446,
196
+ 0.019992576599121094,
197
+ 0.019986431121826173,
198
+ 0.020546560287475587,
199
+ 0.020118528366088868,
200
+ 0.019952640533447266,
201
+ 0.019970048904418947,
202
+ 0.01998847961425781,
203
+ 0.02031718444824219,
204
+ 0.019951616287231445,
205
+ 0.019981311798095702,
206
+ 0.019969024658203126,
207
+ 0.019994623184204103,
208
+ 0.02009600067138672,
209
+ 0.02006630325317383,
210
+ 0.02001408004760742,
211
+ 0.020009983062744142,
212
+ 0.02004172706604004,
213
+ 0.019950592041015625,
214
+ 0.020124671936035156,
215
+ 0.019973119735717772,
216
+ 0.019937280654907227,
217
+ 0.019983360290527344,
218
+ 0.019947519302368166,
219
+ 0.019955711364746095,
220
+ 0.019986431121826173,
221
+ 0.020002815246582033,
222
+ 0.020369407653808593,
223
+ 0.019973119735717772,
224
+ 0.019956735610961913,
225
+ 0.02012057685852051,
226
+ 0.020025344848632814,
227
+ 0.02003865623474121,
228
+ 0.019983360290527344,
229
+ 0.019937280654907227,
230
+ 0.02001919937133789,
231
+ 0.019779584884643556,
232
+ 0.019763200759887696,
233
+ 0.019883007049560548,
234
+ 0.019963903427124022,
235
+ 0.0198287353515625,
236
+ 0.019810304641723633,
237
+ 0.01984511947631836,
238
+ 0.019975168228149414,
239
+ 0.01979801559448242,
240
+ 0.019773439407348634,
241
+ 0.019792896270751953,
242
+ 0.01978265571594238,
243
+ 0.019900415420532228,
244
+ 0.019951616287231445,
245
+ 0.01986867141723633,
246
+ 0.01982156753540039,
247
+ 0.01980620765686035,
248
+ 0.01986457633972168,
249
+ 0.019533824920654298,
250
+ 0.019286016464233398,
251
+ 0.019530752182006835,
252
+ 0.019937280654907227,
253
+ 0.019842048645019532,
254
+ 0.01982464027404785,
255
+ 0.019842048645019532,
256
+ 0.019854335784912108,
257
+ 0.019922943115234376,
258
+ 0.020155391693115234,
259
+ 0.01992192077636719,
260
+ 0.019896320343017578,
261
+ 0.01983795166015625,
262
+ 0.0198287353515625,
263
+ 0.01980620765686035,
264
+ 0.01979801559448242,
265
+ 0.01920102310180664,
266
+ 0.01922662353515625,
267
+ 0.01940787124633789,
268
+ 0.019877887725830077,
269
+ 0.019810304641723633,
270
+ 0.01984921646118164,
271
+ 0.02042572784423828,
272
+ 0.01984511947631836,
273
+ 0.01988812828063965,
274
+ 0.01983897590637207,
275
+ 0.019939327239990236,
276
+ 0.019992576599121094,
277
+ 0.019940351486206053,
278
+ 0.020446207046508787,
279
+ 0.019355648040771483,
280
+ 0.01925119972229004,
281
+ 0.019269632339477538,
282
+ 0.019212287902832033,
283
+ 0.01924300765991211,
284
+ 0.019152896881103516,
285
+ 0.019280895233154297,
286
+ 0.019159040451049804,
287
+ 0.019166271209716798,
288
+ 0.019303359985351563,
289
+ 0.019332096099853514,
290
+ 0.019338239669799806,
291
+ 0.019307519912719725,
292
+ 0.019334144592285156,
293
+ 0.019349504470825195,
294
+ 0.019408895492553712,
295
+ 0.019409919738769533,
296
+ 0.019306495666503908,
297
+ 0.019162111282348633,
298
+ 0.019128320693969726,
299
+ 0.01923379135131836,
300
+ 0.019412992477416992,
301
+ 0.019376127243041993,
302
+ 0.020031488418579102,
303
+ 0.019904512405395508,
304
+ 0.019975168228149414,
305
+ 0.019961856842041017,
306
+ 0.01999667167663574,
307
+ 0.020074495315551756,
308
+ 0.020083711624145507,
309
+ 0.020123647689819335,
310
+ 0.020184064865112306,
311
+ 0.02007756805419922,
312
+ 0.020101119995117187,
313
+ 0.019393535614013673,
314
+ 0.019311616897583008,
315
+ 0.019330047607421876,
316
+ 0.019306495666503908,
317
+ 0.019288063049316406,
318
+ 0.019308544158935546,
319
+ 0.019418111801147463,
320
+ 0.01945702362060547,
321
+ 0.019316736221313476,
322
+ 0.01966796875,
323
+ 0.019293184280395507,
324
+ 0.019342336654663086,
325
+ 0.019316736221313476,
326
+ 0.019352575302124024,
327
+ 0.02001203155517578,
328
+ 0.020147199630737304,
329
+ 0.02007756805419922,
330
+ 0.02007347106933594,
331
+ 0.020091903686523437,
332
+ 0.020083711624145507,
333
+ 0.020016128540039063,
334
+ 0.02007244873046875,
335
+ 0.02004275131225586,
336
+ 0.020039680480957032,
337
+ 0.020039680480957032,
338
+ 0.020011007308959963,
339
+ 0.019992576599121094,
340
+ 0.02000588798522949,
341
+ 0.020068351745605468,
342
+ 0.019983360290527344,
343
+ 0.020007936477661133,
344
+ 0.020057088851928712,
345
+ 0.020060159683227538,
346
+ 0.019954687118530275,
347
+ 0.019986431121826173,
348
+ 0.019976192474365235,
349
+ 0.019948543548583983,
350
+ 0.02004991912841797,
351
+ 0.0214466552734375,
352
+ 0.020199424743652345,
353
+ 0.020100095748901366,
354
+ 0.019631103515625,
355
+ 0.019563520431518554,
356
+ 0.0192491512298584,
357
+ 0.01925939178466797
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 50.6750822223666
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/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": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02066104030609131,
7
+ "prefill.throughput.value": 338.80191395475146,
8
+ "decode.latency.mean": 2.506322265625,
9
+ "decode.throughput.value": 50.67185562760425,
10
+ "per_token.latency.mean": 0.01973356442939578,
11
+ "per_token.throughput.value": 50.6750822223666
12
+ }
13
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: ecd61c62862f925a18b4f063dc17fcaf01826e25
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25
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/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25
88
+ - hydra.run.dir=_benchmark/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25/${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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=True
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [ISOLATED-PROCESS][2024-09-04 02:43:09,817][process][ERROR] - + Sending traceback to main process
2
+ [MAIN-PROCESS][2024-09-04 02:43:12,200][process][ERROR] - + Received traceback from isolated process
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: ecd61c62862f925a18b4f063dc17fcaf01826e25
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25
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/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25
88
+ - hydra.run.dir=_benchmark/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25/${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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=False
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1320.42752,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 12.1005283203125,
120
+ "mean": 12.1005283203125,
121
+ "stdev": 0.0,
122
+ "p50": 12.1005283203125,
123
+ "p90": 12.1005283203125,
124
+ "p95": 12.1005283203125,
125
+ "p99": 12.1005283203125,
126
+ "values": [
127
+ 12.1005283203125
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1759.68256,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6142.558208,
141
+ "max_allocated": 5028.450816
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.04429404830932617,
147
+ "mean": 0.022147024154663086,
148
+ "stdev": 1.246452331542941e-05,
149
+ "p50": 0.022147024154663086,
150
+ "p90": 0.022156995773315428,
151
+ "p95": 0.02215824222564697,
152
+ "p99": 0.022159239387512207,
153
+ "values": [
154
+ 0.022134559631347656,
155
+ 0.022159488677978515
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 316.0695518781985
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 1784.50432,
169
+ "max_global_vram": 6793.199616,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 6146.752512,
172
+ "max_allocated": 5031.820288
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 5.34977685546875,
178
+ "mean": 2.674888427734375,
179
+ "stdev": 0.01889965820312489,
180
+ "p50": 2.674888427734375,
181
+ "p90": 2.690008154296875,
182
+ "p95": 2.6918981201171874,
183
+ "p99": 2.6934100927734375,
184
+ "values": [
185
+ 2.6937880859375,
186
+ 2.65598876953125
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 47.4786158118635
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 5.349518325805665,
202
+ "mean": 0.021061095770888442,
203
+ "stdev": 0.0005321484696243915,
204
+ "p50": 0.021248000144958496,
205
+ "p90": 0.021543628501892093,
206
+ "p95": 0.02170981273651123,
207
+ "p99": 0.022289735736846925,
208
+ "values": [
209
+ 0.0204769287109375,
210
+ 0.020527103424072265,
211
+ 0.020510719299316405,
212
+ 0.02047283172607422,
213
+ 0.021644287109375,
214
+ 0.021410816192626952,
215
+ 0.021541887283325196,
216
+ 0.020530176162719727,
217
+ 0.020501504898071288,
218
+ 0.020538368225097657,
219
+ 0.02149171257019043,
220
+ 0.02126131248474121,
221
+ 0.02047590446472168,
222
+ 0.02063974380493164,
223
+ 0.021182464599609374,
224
+ 0.020529151916503906,
225
+ 0.021366783142089844,
226
+ 0.021428224563598632,
227
+ 0.02147635269165039,
228
+ 0.021448703765869142,
229
+ 0.02203647994995117,
230
+ 0.021695487976074217,
231
+ 0.020497407913208008,
232
+ 0.020488191604614257,
233
+ 0.020452352523803712,
234
+ 0.02047385597229004,
235
+ 0.02051584053039551,
236
+ 0.02144972801208496,
237
+ 0.020505599975585938,
238
+ 0.02043903923034668,
239
+ 0.02045952033996582,
240
+ 0.022374399185180666,
241
+ 0.0214783992767334,
242
+ 0.02144767951965332,
243
+ 0.021497856140136717,
244
+ 0.02145792007446289,
245
+ 0.02147225570678711,
246
+ 0.021424127578735352,
247
+ 0.02144256019592285,
248
+ 0.02146816062927246,
249
+ 0.02148044776916504,
250
+ 0.021497856140136717,
251
+ 0.02149580764770508,
252
+ 0.021497856140136717,
253
+ 0.021537792205810546,
254
+ 0.02149990463256836,
255
+ 0.02148454475402832,
256
+ 0.021399551391601563,
257
+ 0.021412864685058593,
258
+ 0.021373952865600586,
259
+ 0.02147123146057129,
260
+ 0.021386240005493166,
261
+ 0.021448703765869142,
262
+ 0.02145996856689453,
263
+ 0.021411840438842773,
264
+ 0.02145792007446289,
265
+ 0.021421056747436523,
266
+ 0.021436416625976562,
267
+ 0.021381120681762695,
268
+ 0.02110054397583008,
269
+ 0.021544960021972655,
270
+ 0.0214466552734375,
271
+ 0.021792768478393554,
272
+ 0.021614591598510743,
273
+ 0.02144256019592285,
274
+ 0.02146201515197754,
275
+ 0.021465087890625,
276
+ 0.02166067123413086,
277
+ 0.021526527404785157,
278
+ 0.02143129539489746,
279
+ 0.021367807388305664,
280
+ 0.021440511703491212,
281
+ 0.02144358444213867,
282
+ 0.021126144409179686,
283
+ 0.02143129539489746,
284
+ 0.02145075225830078,
285
+ 0.021440511703491212,
286
+ 0.021507072448730468,
287
+ 0.021543935775756837,
288
+ 0.02146713638305664,
289
+ 0.02145382308959961,
290
+ 0.021567487716674806,
291
+ 0.02150912094116211,
292
+ 0.021391424179077148,
293
+ 0.02141279983520508,
294
+ 0.021583871841430666,
295
+ 0.02149478340148926,
296
+ 0.021441535949707033,
297
+ 0.0214466552734375,
298
+ 0.021420032501220702,
299
+ 0.021555200576782226,
300
+ 0.02150399971008301,
301
+ 0.02142310333251953,
302
+ 0.02112512016296387,
303
+ 0.021166080474853514,
304
+ 0.021135360717773437,
305
+ 0.020295679092407228,
306
+ 0.020249599456787108,
307
+ 0.020312063217163084,
308
+ 0.0202608642578125,
309
+ 0.02028339195251465,
310
+ 0.020354047775268554,
311
+ 0.02038374328613281,
312
+ 0.02026188850402832,
313
+ 0.02025574493408203,
314
+ 0.020575231552124023,
315
+ 0.022740991592407226,
316
+ 0.022490144729614258,
317
+ 0.02173641586303711,
318
+ 0.02061414337158203,
319
+ 0.021212160110473634,
320
+ 0.022214656829833986,
321
+ 0.021737472534179687,
322
+ 0.02119987106323242,
323
+ 0.021744640350341796,
324
+ 0.021545984268188476,
325
+ 0.021517311096191406,
326
+ 0.02147327995300293,
327
+ 0.021537792205810546,
328
+ 0.021366783142089844,
329
+ 0.02127462387084961,
330
+ 0.02042982482910156,
331
+ 0.020405248641967775,
332
+ 0.020405248641967775,
333
+ 0.020435968399047853,
334
+ 0.02045747184753418,
335
+ 0.020463615417480468,
336
+ 0.02041753578186035,
337
+ 0.020397056579589845,
338
+ 0.020764671325683593,
339
+ 0.02145587158203125,
340
+ 0.02142207908630371,
341
+ 0.02149273681640625,
342
+ 0.021436416625976562,
343
+ 0.021501951217651367,
344
+ 0.02142310333251953,
345
+ 0.02146816062927246,
346
+ 0.02184499168395996,
347
+ 0.021646335601806642,
348
+ 0.021505023956298826,
349
+ 0.02147327995300293,
350
+ 0.02141900825500488,
351
+ 0.02143539237976074,
352
+ 0.02142617607116699,
353
+ 0.02049126434326172,
354
+ 0.02046566390991211,
355
+ 0.020468736648559572,
356
+ 0.020455423355102538,
357
+ 0.020487167358398437,
358
+ 0.020479999542236327,
359
+ 0.020533248901367186,
360
+ 0.02044927978515625,
361
+ 0.02027827262878418,
362
+ 0.020376575469970702,
363
+ 0.021029888153076173,
364
+ 0.021120000839233398,
365
+ 0.021089279174804687,
366
+ 0.02122444725036621,
367
+ 0.021355520248413085,
368
+ 0.021918720245361328,
369
+ 0.021326847076416015,
370
+ 0.02148659133911133,
371
+ 0.02149171257019043,
372
+ 0.021300224304199217,
373
+ 0.021542911529541017,
374
+ 0.0214783992767334,
375
+ 0.021153791427612305,
376
+ 0.021406719207763672,
377
+ 0.021444608688354492,
378
+ 0.02045644760131836,
379
+ 0.02046668815612793,
380
+ 0.020376575469970702,
381
+ 0.020271104812622072,
382
+ 0.020470783233642577,
383
+ 0.020385791778564453,
384
+ 0.02027622413635254,
385
+ 0.020304895401000975,
386
+ 0.020477951049804686,
387
+ 0.02045337677001953,
388
+ 0.02052403259277344,
389
+ 0.021368831634521485,
390
+ 0.021398527145385742,
391
+ 0.021383167266845703,
392
+ 0.021441535949707033,
393
+ 0.021385215759277345,
394
+ 0.020273151397705077,
395
+ 0.02030899238586426,
396
+ 0.020925439834594727,
397
+ 0.021234687805175782,
398
+ 0.021184511184692383,
399
+ 0.021488672256469728,
400
+ 0.02154185676574707,
401
+ 0.02143129539489746,
402
+ 0.021132287979125978,
403
+ 0.021147647857666017,
404
+ 0.021139455795288087,
405
+ 0.02128691291809082,
406
+ 0.02122956848144531,
407
+ 0.021133312225341795,
408
+ 0.020313087463378905,
409
+ 0.02085273551940918,
410
+ 0.020739072799682616,
411
+ 0.02149580764770508,
412
+ 0.02146611213684082,
413
+ 0.02026393508911133,
414
+ 0.020289535522460937,
415
+ 0.020281343460083007,
416
+ 0.020722688674926756,
417
+ 0.021786624908447266,
418
+ 0.021776384353637695,
419
+ 0.021613567352294923,
420
+ 0.021569536209106444,
421
+ 0.020520959854125977,
422
+ 0.02044825553894043,
423
+ 0.02047385597229004,
424
+ 0.02049228858947754,
425
+ 0.020458528518676758,
426
+ 0.020427743911743165,
427
+ 0.02043391990661621,
428
+ 0.020418560028076172,
429
+ 0.02043801689147949,
430
+ 0.02047488021850586,
431
+ 0.020418560028076172,
432
+ 0.02043903923034668,
433
+ 0.020419584274291993,
434
+ 0.020393983840942383,
435
+ 0.020239360809326173,
436
+ 0.020237312316894532,
437
+ 0.02023321533203125,
438
+ 0.020249599456787108,
439
+ 0.02024550437927246,
440
+ 0.02047385597229004,
441
+ 0.020419584274291993,
442
+ 0.02045030403137207,
443
+ 0.020220928192138672,
444
+ 0.020505599975585938,
445
+ 0.021345279693603517,
446
+ 0.021424127578735352,
447
+ 0.021147647857666017,
448
+ 0.021146623611450196,
449
+ 0.021173248291015623,
450
+ 0.021191680908203125,
451
+ 0.021120000839233398,
452
+ 0.021168127059936523,
453
+ 0.021112831115722656,
454
+ 0.02110873603820801,
455
+ 0.021136383056640624,
456
+ 0.02026905632019043,
457
+ 0.02024140739440918,
458
+ 0.020362239837646484,
459
+ 0.021352447509765626,
460
+ 0.02127359962463379,
461
+ 0.021167104721069335,
462
+ 0.021130239486694336
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 47.48091034191314
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1320.42752,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 12.1005283203125,
15
+ "mean": 12.1005283203125,
16
+ "stdev": 0.0,
17
+ "p50": 12.1005283203125,
18
+ "p90": 12.1005283203125,
19
+ "p95": 12.1005283203125,
20
+ "p99": 12.1005283203125,
21
+ "values": [
22
+ 12.1005283203125
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1759.68256,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6142.558208,
36
+ "max_allocated": 5028.450816
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.04429404830932617,
42
+ "mean": 0.022147024154663086,
43
+ "stdev": 1.246452331542941e-05,
44
+ "p50": 0.022147024154663086,
45
+ "p90": 0.022156995773315428,
46
+ "p95": 0.02215824222564697,
47
+ "p99": 0.022159239387512207,
48
+ "values": [
49
+ 0.022134559631347656,
50
+ 0.022159488677978515
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 316.0695518781985
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 1784.50432,
64
+ "max_global_vram": 6793.199616,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 6146.752512,
67
+ "max_allocated": 5031.820288
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 5.34977685546875,
73
+ "mean": 2.674888427734375,
74
+ "stdev": 0.01889965820312489,
75
+ "p50": 2.674888427734375,
76
+ "p90": 2.690008154296875,
77
+ "p95": 2.6918981201171874,
78
+ "p99": 2.6934100927734375,
79
+ "values": [
80
+ 2.6937880859375,
81
+ 2.65598876953125
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 47.4786158118635
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 5.349518325805665,
97
+ "mean": 0.021061095770888442,
98
+ "stdev": 0.0005321484696243915,
99
+ "p50": 0.021248000144958496,
100
+ "p90": 0.021543628501892093,
101
+ "p95": 0.02170981273651123,
102
+ "p99": 0.022289735736846925,
103
+ "values": [
104
+ 0.0204769287109375,
105
+ 0.020527103424072265,
106
+ 0.020510719299316405,
107
+ 0.02047283172607422,
108
+ 0.021644287109375,
109
+ 0.021410816192626952,
110
+ 0.021541887283325196,
111
+ 0.020530176162719727,
112
+ 0.020501504898071288,
113
+ 0.020538368225097657,
114
+ 0.02149171257019043,
115
+ 0.02126131248474121,
116
+ 0.02047590446472168,
117
+ 0.02063974380493164,
118
+ 0.021182464599609374,
119
+ 0.020529151916503906,
120
+ 0.021366783142089844,
121
+ 0.021428224563598632,
122
+ 0.02147635269165039,
123
+ 0.021448703765869142,
124
+ 0.02203647994995117,
125
+ 0.021695487976074217,
126
+ 0.020497407913208008,
127
+ 0.020488191604614257,
128
+ 0.020452352523803712,
129
+ 0.02047385597229004,
130
+ 0.02051584053039551,
131
+ 0.02144972801208496,
132
+ 0.020505599975585938,
133
+ 0.02043903923034668,
134
+ 0.02045952033996582,
135
+ 0.022374399185180666,
136
+ 0.0214783992767334,
137
+ 0.02144767951965332,
138
+ 0.021497856140136717,
139
+ 0.02145792007446289,
140
+ 0.02147225570678711,
141
+ 0.021424127578735352,
142
+ 0.02144256019592285,
143
+ 0.02146816062927246,
144
+ 0.02148044776916504,
145
+ 0.021497856140136717,
146
+ 0.02149580764770508,
147
+ 0.021497856140136717,
148
+ 0.021537792205810546,
149
+ 0.02149990463256836,
150
+ 0.02148454475402832,
151
+ 0.021399551391601563,
152
+ 0.021412864685058593,
153
+ 0.021373952865600586,
154
+ 0.02147123146057129,
155
+ 0.021386240005493166,
156
+ 0.021448703765869142,
157
+ 0.02145996856689453,
158
+ 0.021411840438842773,
159
+ 0.02145792007446289,
160
+ 0.021421056747436523,
161
+ 0.021436416625976562,
162
+ 0.021381120681762695,
163
+ 0.02110054397583008,
164
+ 0.021544960021972655,
165
+ 0.0214466552734375,
166
+ 0.021792768478393554,
167
+ 0.021614591598510743,
168
+ 0.02144256019592285,
169
+ 0.02146201515197754,
170
+ 0.021465087890625,
171
+ 0.02166067123413086,
172
+ 0.021526527404785157,
173
+ 0.02143129539489746,
174
+ 0.021367807388305664,
175
+ 0.021440511703491212,
176
+ 0.02144358444213867,
177
+ 0.021126144409179686,
178
+ 0.02143129539489746,
179
+ 0.02145075225830078,
180
+ 0.021440511703491212,
181
+ 0.021507072448730468,
182
+ 0.021543935775756837,
183
+ 0.02146713638305664,
184
+ 0.02145382308959961,
185
+ 0.021567487716674806,
186
+ 0.02150912094116211,
187
+ 0.021391424179077148,
188
+ 0.02141279983520508,
189
+ 0.021583871841430666,
190
+ 0.02149478340148926,
191
+ 0.021441535949707033,
192
+ 0.0214466552734375,
193
+ 0.021420032501220702,
194
+ 0.021555200576782226,
195
+ 0.02150399971008301,
196
+ 0.02142310333251953,
197
+ 0.02112512016296387,
198
+ 0.021166080474853514,
199
+ 0.021135360717773437,
200
+ 0.020295679092407228,
201
+ 0.020249599456787108,
202
+ 0.020312063217163084,
203
+ 0.0202608642578125,
204
+ 0.02028339195251465,
205
+ 0.020354047775268554,
206
+ 0.02038374328613281,
207
+ 0.02026188850402832,
208
+ 0.02025574493408203,
209
+ 0.020575231552124023,
210
+ 0.022740991592407226,
211
+ 0.022490144729614258,
212
+ 0.02173641586303711,
213
+ 0.02061414337158203,
214
+ 0.021212160110473634,
215
+ 0.022214656829833986,
216
+ 0.021737472534179687,
217
+ 0.02119987106323242,
218
+ 0.021744640350341796,
219
+ 0.021545984268188476,
220
+ 0.021517311096191406,
221
+ 0.02147327995300293,
222
+ 0.021537792205810546,
223
+ 0.021366783142089844,
224
+ 0.02127462387084961,
225
+ 0.02042982482910156,
226
+ 0.020405248641967775,
227
+ 0.020405248641967775,
228
+ 0.020435968399047853,
229
+ 0.02045747184753418,
230
+ 0.020463615417480468,
231
+ 0.02041753578186035,
232
+ 0.020397056579589845,
233
+ 0.020764671325683593,
234
+ 0.02145587158203125,
235
+ 0.02142207908630371,
236
+ 0.02149273681640625,
237
+ 0.021436416625976562,
238
+ 0.021501951217651367,
239
+ 0.02142310333251953,
240
+ 0.02146816062927246,
241
+ 0.02184499168395996,
242
+ 0.021646335601806642,
243
+ 0.021505023956298826,
244
+ 0.02147327995300293,
245
+ 0.02141900825500488,
246
+ 0.02143539237976074,
247
+ 0.02142617607116699,
248
+ 0.02049126434326172,
249
+ 0.02046566390991211,
250
+ 0.020468736648559572,
251
+ 0.020455423355102538,
252
+ 0.020487167358398437,
253
+ 0.020479999542236327,
254
+ 0.020533248901367186,
255
+ 0.02044927978515625,
256
+ 0.02027827262878418,
257
+ 0.020376575469970702,
258
+ 0.021029888153076173,
259
+ 0.021120000839233398,
260
+ 0.021089279174804687,
261
+ 0.02122444725036621,
262
+ 0.021355520248413085,
263
+ 0.021918720245361328,
264
+ 0.021326847076416015,
265
+ 0.02148659133911133,
266
+ 0.02149171257019043,
267
+ 0.021300224304199217,
268
+ 0.021542911529541017,
269
+ 0.0214783992767334,
270
+ 0.021153791427612305,
271
+ 0.021406719207763672,
272
+ 0.021444608688354492,
273
+ 0.02045644760131836,
274
+ 0.02046668815612793,
275
+ 0.020376575469970702,
276
+ 0.020271104812622072,
277
+ 0.020470783233642577,
278
+ 0.020385791778564453,
279
+ 0.02027622413635254,
280
+ 0.020304895401000975,
281
+ 0.020477951049804686,
282
+ 0.02045337677001953,
283
+ 0.02052403259277344,
284
+ 0.021368831634521485,
285
+ 0.021398527145385742,
286
+ 0.021383167266845703,
287
+ 0.021441535949707033,
288
+ 0.021385215759277345,
289
+ 0.020273151397705077,
290
+ 0.02030899238586426,
291
+ 0.020925439834594727,
292
+ 0.021234687805175782,
293
+ 0.021184511184692383,
294
+ 0.021488672256469728,
295
+ 0.02154185676574707,
296
+ 0.02143129539489746,
297
+ 0.021132287979125978,
298
+ 0.021147647857666017,
299
+ 0.021139455795288087,
300
+ 0.02128691291809082,
301
+ 0.02122956848144531,
302
+ 0.021133312225341795,
303
+ 0.020313087463378905,
304
+ 0.02085273551940918,
305
+ 0.020739072799682616,
306
+ 0.02149580764770508,
307
+ 0.02146611213684082,
308
+ 0.02026393508911133,
309
+ 0.020289535522460937,
310
+ 0.020281343460083007,
311
+ 0.020722688674926756,
312
+ 0.021786624908447266,
313
+ 0.021776384353637695,
314
+ 0.021613567352294923,
315
+ 0.021569536209106444,
316
+ 0.020520959854125977,
317
+ 0.02044825553894043,
318
+ 0.02047385597229004,
319
+ 0.02049228858947754,
320
+ 0.020458528518676758,
321
+ 0.020427743911743165,
322
+ 0.02043391990661621,
323
+ 0.020418560028076172,
324
+ 0.02043801689147949,
325
+ 0.02047488021850586,
326
+ 0.020418560028076172,
327
+ 0.02043903923034668,
328
+ 0.020419584274291993,
329
+ 0.020393983840942383,
330
+ 0.020239360809326173,
331
+ 0.020237312316894532,
332
+ 0.02023321533203125,
333
+ 0.020249599456787108,
334
+ 0.02024550437927246,
335
+ 0.02047385597229004,
336
+ 0.020419584274291993,
337
+ 0.02045030403137207,
338
+ 0.020220928192138672,
339
+ 0.020505599975585938,
340
+ 0.021345279693603517,
341
+ 0.021424127578735352,
342
+ 0.021147647857666017,
343
+ 0.021146623611450196,
344
+ 0.021173248291015623,
345
+ 0.021191680908203125,
346
+ 0.021120000839233398,
347
+ 0.021168127059936523,
348
+ 0.021112831115722656,
349
+ 0.02110873603820801,
350
+ 0.021136383056640624,
351
+ 0.02026905632019043,
352
+ 0.02024140739440918,
353
+ 0.020362239837646484,
354
+ 0.021352447509765626,
355
+ 0.02127359962463379,
356
+ 0.021167104721069335,
357
+ 0.021130239486694336
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 47.48091034191314
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/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": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022147024154663086,
7
+ "prefill.throughput.value": 316.0695518781985,
8
+ "decode.latency.mean": 2.674888427734375,
9
+ "decode.throughput.value": 47.4786158118635,
10
+ "per_token.latency.mean": 0.021061095770888442,
11
+ "per_token.throughput.value": 47.48091034191314
12
+ }
13
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.4.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model_type: null
9
+ model: google/gemma-2b
10
+ processor: null
11
+ device: cuda
12
+ device_ids: '0'
13
+ seed: 42
14
+ inter_op_num_threads: null
15
+ intra_op_num_threads: null
16
+ model_kwargs: {}
17
+ processor_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ memory: true
51
+ latency: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ numactl: false
65
+ numactl_kwargs: {}
66
+ start_method: spawn
67
+ environment:
68
+ cpu: ' AMD EPYC 7R32'
69
+ cpu_count: 16
70
+ cpu_ram_mb: 66697.261056
71
+ system: Linux
72
+ machine: x86_64
73
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
74
+ processor: x86_64
75
+ python_version: 3.8.10
76
+ gpu:
77
+ - NVIDIA A10G
78
+ gpu_count: 1
79
+ gpu_vram_mb: 24146608128
80
+ optimum_benchmark_version: 0.4.0
81
+ optimum_benchmark_commit: null
82
+ transformers_version: 4.45.0.dev0
83
+ transformers_commit: ecd61c62862f925a18b4f063dc17fcaf01826e25
84
+ accelerate_version: 0.35.0.dev0
85
+ accelerate_commit: null
86
+ diffusers_version: null
87
+ diffusers_commit: null
88
+ optimum_version: 1.22.0.dev0
89
+ optimum_commit: null
90
+ timm_version: 0.9.16
91
+ timm_commit: null
92
+ peft_version: 0.12.1.dev0
93
+ peft_commit: null
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25
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/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25
88
+ - hydra.run.dir=_benchmark/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25/${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/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=True
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.4.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gemma",
11
+ "model": "google/gemma-2b",
12
+ "processor": "google/gemma-2b",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "memory": true,
57
+ "latency": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "numactl": false,
73
+ "numactl_kwargs": {},
74
+ "start_method": "spawn"
75
+ },
76
+ "environment": {
77
+ "cpu": " AMD EPYC 7R32",
78
+ "cpu_count": 16,
79
+ "cpu_ram_mb": 66697.261056,
80
+ "system": "Linux",
81
+ "machine": "x86_64",
82
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
83
+ "processor": "x86_64",
84
+ "python_version": "3.8.10",
85
+ "gpu": [
86
+ "NVIDIA A10G"
87
+ ],
88
+ "gpu_count": 1,
89
+ "gpu_vram_mb": 24146608128,
90
+ "optimum_benchmark_version": "0.4.0",
91
+ "optimum_benchmark_commit": null,
92
+ "transformers_version": "4.45.0.dev0",
93
+ "transformers_commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
94
+ "accelerate_version": "0.35.0.dev0",
95
+ "accelerate_commit": null,
96
+ "diffusers_version": null,
97
+ "diffusers_commit": null,
98
+ "optimum_version": "1.22.0.dev0",
99
+ "optimum_commit": null,
100
+ "timm_version": "0.9.16",
101
+ "timm_commit": null,
102
+ "peft_version": "0.12.1.dev0",
103
+ "peft_commit": null
104
+ }
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 1337.93792,
111
+ "max_global_vram": 6768.033792,
112
+ "max_process_vram": 0.0,
113
+ "max_reserved": 6138.363904,
114
+ "max_allocated": 6060.931072
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "count": 1,
119
+ "total": 12.7981103515625,
120
+ "mean": 12.7981103515625,
121
+ "stdev": 0.0,
122
+ "p50": 12.7981103515625,
123
+ "p90": 12.7981103515625,
124
+ "p95": 12.7981103515625,
125
+ "p99": 12.7981103515625,
126
+ "values": [
127
+ 12.7981103515625
128
+ ]
129
+ },
130
+ "throughput": null,
131
+ "energy": null,
132
+ "efficiency": null
133
+ },
134
+ "prefill": {
135
+ "memory": {
136
+ "unit": "MB",
137
+ "max_ram": 1858.17088,
138
+ "max_global_vram": 6789.005312,
139
+ "max_process_vram": 0.0,
140
+ "max_reserved": 6138.363904,
141
+ "max_allocated": 5278.596608
142
+ },
143
+ "latency": {
144
+ "unit": "s",
145
+ "count": 2,
146
+ "total": 0.0284465274810791,
147
+ "mean": 0.01422326374053955,
148
+ "stdev": 0.0001012477874755861,
149
+ "p50": 0.01422326374053955,
150
+ "p90": 0.014304261970520019,
151
+ "p95": 0.014314386749267579,
152
+ "p99": 0.014322486572265624,
153
+ "values": [
154
+ 0.014122015953063964,
155
+ 0.014324511528015137
156
+ ]
157
+ },
158
+ "throughput": {
159
+ "unit": "tokens/s",
160
+ "value": 492.1514588841098
161
+ },
162
+ "energy": null,
163
+ "efficiency": null
164
+ },
165
+ "decode": {
166
+ "memory": {
167
+ "unit": "MB",
168
+ "max_ram": 2028.3392,
169
+ "max_global_vram": 6071.779328,
170
+ "max_process_vram": 0.0,
171
+ "max_reserved": 5381.292032,
172
+ "max_allocated": 5282.647552
173
+ },
174
+ "latency": {
175
+ "unit": "s",
176
+ "count": 2,
177
+ "total": 3.1311047363281252,
178
+ "mean": 1.5655523681640626,
179
+ "stdev": 3.210449218749023e-05,
180
+ "p50": 1.5655523681640626,
181
+ "p90": 1.5655780517578126,
182
+ "p95": 1.5655812622070313,
183
+ "p99": 1.5655838305664063,
184
+ "values": [
185
+ 1.56558447265625,
186
+ 1.565520263671875
187
+ ]
188
+ },
189
+ "throughput": {
190
+ "unit": "tokens/s",
191
+ "value": 81.12152782786438
192
+ },
193
+ "energy": null,
194
+ "efficiency": null
195
+ },
196
+ "per_token": {
197
+ "memory": null,
198
+ "latency": {
199
+ "unit": "s",
200
+ "count": 254,
201
+ "total": 3.130817541122439,
202
+ "mean": 0.012326053311505656,
203
+ "stdev": 9.284325024015735e-05,
204
+ "p50": 0.012304384231567383,
205
+ "p90": 0.012332749176025391,
206
+ "p95": 0.01236925401687622,
207
+ "p99": 0.012838184852600099,
208
+ "values": [
209
+ 0.012834815979003907,
210
+ 0.012775424003601075,
211
+ 0.012320768356323243,
212
+ 0.012308480262756348,
213
+ 0.012299263954162597,
214
+ 0.012303359985351562,
215
+ 0.01253990364074707,
216
+ 0.012324864387512208,
217
+ 0.012292096138000488,
218
+ 0.012303359985351562,
219
+ 0.012305407524108887,
220
+ 0.01229312038421631,
221
+ 0.012300288200378418,
222
+ 0.012298239707946777,
223
+ 0.012304384231567383,
224
+ 0.012317695617675782,
225
+ 0.012294143676757812,
226
+ 0.012299263954162597,
227
+ 0.012299263954162597,
228
+ 0.012328960418701173,
229
+ 0.01229312038421631,
230
+ 0.012296192169189453,
231
+ 0.012305407524108887,
232
+ 0.01229312038421631,
233
+ 0.012296192169189453,
234
+ 0.012294143676757812,
235
+ 0.012302335739135742,
236
+ 0.012310527801513671,
237
+ 0.012303359985351562,
238
+ 0.012301312446594239,
239
+ 0.012295167922973632,
240
+ 0.012304384231567383,
241
+ 0.012320768356323243,
242
+ 0.012314623832702636,
243
+ 0.012307456016540527,
244
+ 0.01229312038421631,
245
+ 0.012296192169189453,
246
+ 0.012314623832702636,
247
+ 0.012309503555297852,
248
+ 0.012312576293945313,
249
+ 0.012301312446594239,
250
+ 0.012306431770324706,
251
+ 0.012310527801513671,
252
+ 0.012301312446594239,
253
+ 0.012315648078918457,
254
+ 0.012303359985351562,
255
+ 0.012309503555297852,
256
+ 0.012298239707946777,
257
+ 0.012310527801513671,
258
+ 0.012295167922973632,
259
+ 0.012297216415405274,
260
+ 0.012297216415405274,
261
+ 0.012295167922973632,
262
+ 0.012302335739135742,
263
+ 0.012303359985351562,
264
+ 0.012528639793395996,
265
+ 0.012368895530700684,
266
+ 0.01233510398864746,
267
+ 0.01234124755859375,
268
+ 0.012323840141296387,
269
+ 0.012303359985351562,
270
+ 0.012298239707946777,
271
+ 0.012295167922973632,
272
+ 0.012310527801513671,
273
+ 0.012305407524108887,
274
+ 0.012303359985351562,
275
+ 0.012301312446594239,
276
+ 0.012302335739135742,
277
+ 0.012299263954162597,
278
+ 0.012317695617675782,
279
+ 0.012354559898376465,
280
+ 0.012322815895080566,
281
+ 0.012307456016540527,
282
+ 0.012304384231567383,
283
+ 0.012297216415405274,
284
+ 0.012303359985351562,
285
+ 0.012298239707946777,
286
+ 0.012303359985351562,
287
+ 0.012300288200378418,
288
+ 0.012356608390808106,
289
+ 0.012369919776916503,
290
+ 0.012315648078918457,
291
+ 0.012318719863891601,
292
+ 0.012327936172485352,
293
+ 0.012820480346679687,
294
+ 0.012732416152954102,
295
+ 0.012315648078918457,
296
+ 0.012312576293945313,
297
+ 0.012307456016540527,
298
+ 0.012299263954162597,
299
+ 0.012296192169189453,
300
+ 0.012308480262756348,
301
+ 0.012311552047729492,
302
+ 0.012321791648864745,
303
+ 0.012324864387512208,
304
+ 0.012300288200378418,
305
+ 0.012300288200378418,
306
+ 0.012313599586486817,
307
+ 0.012294143676757812,
308
+ 0.012303359985351562,
309
+ 0.012296192169189453,
310
+ 0.012304384231567383,
311
+ 0.012300288200378418,
312
+ 0.012296192169189453,
313
+ 0.012309503555297852,
314
+ 0.012306431770324706,
315
+ 0.012323840141296387,
316
+ 0.012297216415405274,
317
+ 0.012310527801513671,
318
+ 0.012299263954162597,
319
+ 0.012301312446594239,
320
+ 0.012301312446594239,
321
+ 0.012311552047729492,
322
+ 0.012304384231567383,
323
+ 0.012301312446594239,
324
+ 0.012309503555297852,
325
+ 0.012302335739135742,
326
+ 0.012306431770324706,
327
+ 0.012314623832702636,
328
+ 0.012311552047729492,
329
+ 0.012302335739135742,
330
+ 0.012302335739135742,
331
+ 0.012292096138000488,
332
+ 0.01229312038421631,
333
+ 0.012307456016540527,
334
+ 0.012304384231567383,
335
+ 0.012302335739135742,
336
+ 0.012340224266052247,
337
+ 0.012309503555297852,
338
+ 0.012296192169189453,
339
+ 0.012296192169189453,
340
+ 0.012298239707946777,
341
+ 0.012300288200378418,
342
+ 0.012302335739135742,
343
+ 0.012312576293945313,
344
+ 0.012317695617675782,
345
+ 0.012303359985351562,
346
+ 0.012332032203674317,
347
+ 0.012297216415405274,
348
+ 0.012299263954162597,
349
+ 0.012285951614379884,
350
+ 0.012299263954162597,
351
+ 0.012297216415405274,
352
+ 0.012295167922973632,
353
+ 0.012321791648864745,
354
+ 0.012323840141296387,
355
+ 0.012301312446594239,
356
+ 0.012294143676757812,
357
+ 0.012307456016540527,
358
+ 0.012317695617675782,
359
+ 0.012317695617675782,
360
+ 0.01236787223815918,
361
+ 0.012297216415405274,
362
+ 0.012304384231567383,
363
+ 0.012300288200378418,
364
+ 0.012304384231567383,
365
+ 0.012321791648864745,
366
+ 0.012304384231567383,
367
+ 0.012303359985351562,
368
+ 0.012302335739135742,
369
+ 0.012283904075622559,
370
+ 0.012306431770324706,
371
+ 0.012314623832702636,
372
+ 0.012333056449890138,
373
+ 0.012305407524108887,
374
+ 0.012328960418701173,
375
+ 0.012296192169189453,
376
+ 0.012528639793395996,
377
+ 0.012841983795166016,
378
+ 0.012322815895080566,
379
+ 0.012310527801513671,
380
+ 0.012315648078918457,
381
+ 0.012328960418701173,
382
+ 0.012324864387512208,
383
+ 0.012320768356323243,
384
+ 0.012302335739135742,
385
+ 0.012290047645568849,
386
+ 0.012298239707946777,
387
+ 0.012297216415405274,
388
+ 0.012303359985351562,
389
+ 0.012286975860595703,
390
+ 0.012294143676757812,
391
+ 0.012303359985351562,
392
+ 0.012291168212890625,
393
+ 0.012306336402893067,
394
+ 0.012302335739135742,
395
+ 0.012328960418701173,
396
+ 0.012313599586486817,
397
+ 0.012298239707946777,
398
+ 0.012297216415405274,
399
+ 0.012292096138000488,
400
+ 0.012306431770324706,
401
+ 0.012299263954162597,
402
+ 0.012311552047729492,
403
+ 0.012290047645568849,
404
+ 0.012296192169189453,
405
+ 0.012292096138000488,
406
+ 0.01229312038421631,
407
+ 0.012312576293945313,
408
+ 0.012327936172485352,
409
+ 0.012315648078918457,
410
+ 0.012301312446594239,
411
+ 0.012304384231567383,
412
+ 0.012299263954162597,
413
+ 0.01229312038421631,
414
+ 0.01229312038421631,
415
+ 0.012292096138000488,
416
+ 0.01229312038421631,
417
+ 0.012294143676757812,
418
+ 0.012296192169189453,
419
+ 0.012296256065368652,
420
+ 0.012306367874145508,
421
+ 0.012311552047729492,
422
+ 0.012312576293945313,
423
+ 0.012303359985351562,
424
+ 0.012305407524108887,
425
+ 0.01234227180480957,
426
+ 0.01232588768005371,
427
+ 0.012304384231567383,
428
+ 0.012304384231567383,
429
+ 0.012299263954162597,
430
+ 0.012289024353027344,
431
+ 0.012300288200378418,
432
+ 0.012294143676757812,
433
+ 0.012305407524108887,
434
+ 0.01235148811340332,
435
+ 0.012319744110107422,
436
+ 0.012298239707946777,
437
+ 0.012304384231567383,
438
+ 0.012295167922973632,
439
+ 0.012295167922973632,
440
+ 0.012300288200378418,
441
+ 0.012371968269348145,
442
+ 0.012294143676757812,
443
+ 0.012307456016540527,
444
+ 0.012916735649108887,
445
+ 0.01264844799041748,
446
+ 0.012360704421997071,
447
+ 0.012340224266052247,
448
+ 0.012296192169189453,
449
+ 0.012301312446594239,
450
+ 0.012306431770324706,
451
+ 0.012311552047729492,
452
+ 0.012303359985351562,
453
+ 0.012296192169189453,
454
+ 0.012301312446594239,
455
+ 0.012296192169189453,
456
+ 0.012304384231567383,
457
+ 0.012338175773620605,
458
+ 0.012311552047729492,
459
+ 0.012309503555297852,
460
+ 0.012307456016540527,
461
+ 0.012904447555541992,
462
+ 0.012327936172485352
463
+ ]
464
+ },
465
+ "throughput": {
466
+ "unit": "tokens/s",
467
+ "value": 81.12896924326604
468
+ },
469
+ "energy": null,
470
+ "efficiency": null
471
+ }
472
+ }
473
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.4.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model_type": "gemma",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7R32",
77
+ "cpu_count": 16,
78
+ "cpu_ram_mb": 66697.261056,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
82
+ "processor": "x86_64",
83
+ "python_version": "3.8.10",
84
+ "gpu": [
85
+ "NVIDIA A10G"
86
+ ],
87
+ "gpu_count": 1,
88
+ "gpu_vram_mb": 24146608128,
89
+ "optimum_benchmark_version": "0.4.0",
90
+ "optimum_benchmark_commit": null,
91
+ "transformers_version": "4.45.0.dev0",
92
+ "transformers_commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
93
+ "accelerate_version": "0.35.0.dev0",
94
+ "accelerate_commit": null,
95
+ "diffusers_version": null,
96
+ "diffusers_commit": null,
97
+ "optimum_version": "1.22.0.dev0",
98
+ "optimum_commit": null,
99
+ "timm_version": "0.9.16",
100
+ "timm_commit": null,
101
+ "peft_version": "0.12.1.dev0",
102
+ "peft_commit": null
103
+ }
104
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "load": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1337.93792,
6
+ "max_global_vram": 6768.033792,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6138.363904,
9
+ "max_allocated": 6060.931072
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 1,
14
+ "total": 12.7981103515625,
15
+ "mean": 12.7981103515625,
16
+ "stdev": 0.0,
17
+ "p50": 12.7981103515625,
18
+ "p90": 12.7981103515625,
19
+ "p95": 12.7981103515625,
20
+ "p99": 12.7981103515625,
21
+ "values": [
22
+ 12.7981103515625
23
+ ]
24
+ },
25
+ "throughput": null,
26
+ "energy": null,
27
+ "efficiency": null
28
+ },
29
+ "prefill": {
30
+ "memory": {
31
+ "unit": "MB",
32
+ "max_ram": 1858.17088,
33
+ "max_global_vram": 6789.005312,
34
+ "max_process_vram": 0.0,
35
+ "max_reserved": 6138.363904,
36
+ "max_allocated": 5278.596608
37
+ },
38
+ "latency": {
39
+ "unit": "s",
40
+ "count": 2,
41
+ "total": 0.0284465274810791,
42
+ "mean": 0.01422326374053955,
43
+ "stdev": 0.0001012477874755861,
44
+ "p50": 0.01422326374053955,
45
+ "p90": 0.014304261970520019,
46
+ "p95": 0.014314386749267579,
47
+ "p99": 0.014322486572265624,
48
+ "values": [
49
+ 0.014122015953063964,
50
+ 0.014324511528015137
51
+ ]
52
+ },
53
+ "throughput": {
54
+ "unit": "tokens/s",
55
+ "value": 492.1514588841098
56
+ },
57
+ "energy": null,
58
+ "efficiency": null
59
+ },
60
+ "decode": {
61
+ "memory": {
62
+ "unit": "MB",
63
+ "max_ram": 2028.3392,
64
+ "max_global_vram": 6071.779328,
65
+ "max_process_vram": 0.0,
66
+ "max_reserved": 5381.292032,
67
+ "max_allocated": 5282.647552
68
+ },
69
+ "latency": {
70
+ "unit": "s",
71
+ "count": 2,
72
+ "total": 3.1311047363281252,
73
+ "mean": 1.5655523681640626,
74
+ "stdev": 3.210449218749023e-05,
75
+ "p50": 1.5655523681640626,
76
+ "p90": 1.5655780517578126,
77
+ "p95": 1.5655812622070313,
78
+ "p99": 1.5655838305664063,
79
+ "values": [
80
+ 1.56558447265625,
81
+ 1.565520263671875
82
+ ]
83
+ },
84
+ "throughput": {
85
+ "unit": "tokens/s",
86
+ "value": 81.12152782786438
87
+ },
88
+ "energy": null,
89
+ "efficiency": null
90
+ },
91
+ "per_token": {
92
+ "memory": null,
93
+ "latency": {
94
+ "unit": "s",
95
+ "count": 254,
96
+ "total": 3.130817541122439,
97
+ "mean": 0.012326053311505656,
98
+ "stdev": 9.284325024015735e-05,
99
+ "p50": 0.012304384231567383,
100
+ "p90": 0.012332749176025391,
101
+ "p95": 0.01236925401687622,
102
+ "p99": 0.012838184852600099,
103
+ "values": [
104
+ 0.012834815979003907,
105
+ 0.012775424003601075,
106
+ 0.012320768356323243,
107
+ 0.012308480262756348,
108
+ 0.012299263954162597,
109
+ 0.012303359985351562,
110
+ 0.01253990364074707,
111
+ 0.012324864387512208,
112
+ 0.012292096138000488,
113
+ 0.012303359985351562,
114
+ 0.012305407524108887,
115
+ 0.01229312038421631,
116
+ 0.012300288200378418,
117
+ 0.012298239707946777,
118
+ 0.012304384231567383,
119
+ 0.012317695617675782,
120
+ 0.012294143676757812,
121
+ 0.012299263954162597,
122
+ 0.012299263954162597,
123
+ 0.012328960418701173,
124
+ 0.01229312038421631,
125
+ 0.012296192169189453,
126
+ 0.012305407524108887,
127
+ 0.01229312038421631,
128
+ 0.012296192169189453,
129
+ 0.012294143676757812,
130
+ 0.012302335739135742,
131
+ 0.012310527801513671,
132
+ 0.012303359985351562,
133
+ 0.012301312446594239,
134
+ 0.012295167922973632,
135
+ 0.012304384231567383,
136
+ 0.012320768356323243,
137
+ 0.012314623832702636,
138
+ 0.012307456016540527,
139
+ 0.01229312038421631,
140
+ 0.012296192169189453,
141
+ 0.012314623832702636,
142
+ 0.012309503555297852,
143
+ 0.012312576293945313,
144
+ 0.012301312446594239,
145
+ 0.012306431770324706,
146
+ 0.012310527801513671,
147
+ 0.012301312446594239,
148
+ 0.012315648078918457,
149
+ 0.012303359985351562,
150
+ 0.012309503555297852,
151
+ 0.012298239707946777,
152
+ 0.012310527801513671,
153
+ 0.012295167922973632,
154
+ 0.012297216415405274,
155
+ 0.012297216415405274,
156
+ 0.012295167922973632,
157
+ 0.012302335739135742,
158
+ 0.012303359985351562,
159
+ 0.012528639793395996,
160
+ 0.012368895530700684,
161
+ 0.01233510398864746,
162
+ 0.01234124755859375,
163
+ 0.012323840141296387,
164
+ 0.012303359985351562,
165
+ 0.012298239707946777,
166
+ 0.012295167922973632,
167
+ 0.012310527801513671,
168
+ 0.012305407524108887,
169
+ 0.012303359985351562,
170
+ 0.012301312446594239,
171
+ 0.012302335739135742,
172
+ 0.012299263954162597,
173
+ 0.012317695617675782,
174
+ 0.012354559898376465,
175
+ 0.012322815895080566,
176
+ 0.012307456016540527,
177
+ 0.012304384231567383,
178
+ 0.012297216415405274,
179
+ 0.012303359985351562,
180
+ 0.012298239707946777,
181
+ 0.012303359985351562,
182
+ 0.012300288200378418,
183
+ 0.012356608390808106,
184
+ 0.012369919776916503,
185
+ 0.012315648078918457,
186
+ 0.012318719863891601,
187
+ 0.012327936172485352,
188
+ 0.012820480346679687,
189
+ 0.012732416152954102,
190
+ 0.012315648078918457,
191
+ 0.012312576293945313,
192
+ 0.012307456016540527,
193
+ 0.012299263954162597,
194
+ 0.012296192169189453,
195
+ 0.012308480262756348,
196
+ 0.012311552047729492,
197
+ 0.012321791648864745,
198
+ 0.012324864387512208,
199
+ 0.012300288200378418,
200
+ 0.012300288200378418,
201
+ 0.012313599586486817,
202
+ 0.012294143676757812,
203
+ 0.012303359985351562,
204
+ 0.012296192169189453,
205
+ 0.012304384231567383,
206
+ 0.012300288200378418,
207
+ 0.012296192169189453,
208
+ 0.012309503555297852,
209
+ 0.012306431770324706,
210
+ 0.012323840141296387,
211
+ 0.012297216415405274,
212
+ 0.012310527801513671,
213
+ 0.012299263954162597,
214
+ 0.012301312446594239,
215
+ 0.012301312446594239,
216
+ 0.012311552047729492,
217
+ 0.012304384231567383,
218
+ 0.012301312446594239,
219
+ 0.012309503555297852,
220
+ 0.012302335739135742,
221
+ 0.012306431770324706,
222
+ 0.012314623832702636,
223
+ 0.012311552047729492,
224
+ 0.012302335739135742,
225
+ 0.012302335739135742,
226
+ 0.012292096138000488,
227
+ 0.01229312038421631,
228
+ 0.012307456016540527,
229
+ 0.012304384231567383,
230
+ 0.012302335739135742,
231
+ 0.012340224266052247,
232
+ 0.012309503555297852,
233
+ 0.012296192169189453,
234
+ 0.012296192169189453,
235
+ 0.012298239707946777,
236
+ 0.012300288200378418,
237
+ 0.012302335739135742,
238
+ 0.012312576293945313,
239
+ 0.012317695617675782,
240
+ 0.012303359985351562,
241
+ 0.012332032203674317,
242
+ 0.012297216415405274,
243
+ 0.012299263954162597,
244
+ 0.012285951614379884,
245
+ 0.012299263954162597,
246
+ 0.012297216415405274,
247
+ 0.012295167922973632,
248
+ 0.012321791648864745,
249
+ 0.012323840141296387,
250
+ 0.012301312446594239,
251
+ 0.012294143676757812,
252
+ 0.012307456016540527,
253
+ 0.012317695617675782,
254
+ 0.012317695617675782,
255
+ 0.01236787223815918,
256
+ 0.012297216415405274,
257
+ 0.012304384231567383,
258
+ 0.012300288200378418,
259
+ 0.012304384231567383,
260
+ 0.012321791648864745,
261
+ 0.012304384231567383,
262
+ 0.012303359985351562,
263
+ 0.012302335739135742,
264
+ 0.012283904075622559,
265
+ 0.012306431770324706,
266
+ 0.012314623832702636,
267
+ 0.012333056449890138,
268
+ 0.012305407524108887,
269
+ 0.012328960418701173,
270
+ 0.012296192169189453,
271
+ 0.012528639793395996,
272
+ 0.012841983795166016,
273
+ 0.012322815895080566,
274
+ 0.012310527801513671,
275
+ 0.012315648078918457,
276
+ 0.012328960418701173,
277
+ 0.012324864387512208,
278
+ 0.012320768356323243,
279
+ 0.012302335739135742,
280
+ 0.012290047645568849,
281
+ 0.012298239707946777,
282
+ 0.012297216415405274,
283
+ 0.012303359985351562,
284
+ 0.012286975860595703,
285
+ 0.012294143676757812,
286
+ 0.012303359985351562,
287
+ 0.012291168212890625,
288
+ 0.012306336402893067,
289
+ 0.012302335739135742,
290
+ 0.012328960418701173,
291
+ 0.012313599586486817,
292
+ 0.012298239707946777,
293
+ 0.012297216415405274,
294
+ 0.012292096138000488,
295
+ 0.012306431770324706,
296
+ 0.012299263954162597,
297
+ 0.012311552047729492,
298
+ 0.012290047645568849,
299
+ 0.012296192169189453,
300
+ 0.012292096138000488,
301
+ 0.01229312038421631,
302
+ 0.012312576293945313,
303
+ 0.012327936172485352,
304
+ 0.012315648078918457,
305
+ 0.012301312446594239,
306
+ 0.012304384231567383,
307
+ 0.012299263954162597,
308
+ 0.01229312038421631,
309
+ 0.01229312038421631,
310
+ 0.012292096138000488,
311
+ 0.01229312038421631,
312
+ 0.012294143676757812,
313
+ 0.012296192169189453,
314
+ 0.012296256065368652,
315
+ 0.012306367874145508,
316
+ 0.012311552047729492,
317
+ 0.012312576293945313,
318
+ 0.012303359985351562,
319
+ 0.012305407524108887,
320
+ 0.01234227180480957,
321
+ 0.01232588768005371,
322
+ 0.012304384231567383,
323
+ 0.012304384231567383,
324
+ 0.012299263954162597,
325
+ 0.012289024353027344,
326
+ 0.012300288200378418,
327
+ 0.012294143676757812,
328
+ 0.012305407524108887,
329
+ 0.01235148811340332,
330
+ 0.012319744110107422,
331
+ 0.012298239707946777,
332
+ 0.012304384231567383,
333
+ 0.012295167922973632,
334
+ 0.012295167922973632,
335
+ 0.012300288200378418,
336
+ 0.012371968269348145,
337
+ 0.012294143676757812,
338
+ 0.012307456016540527,
339
+ 0.012916735649108887,
340
+ 0.01264844799041748,
341
+ 0.012360704421997071,
342
+ 0.012340224266052247,
343
+ 0.012296192169189453,
344
+ 0.012301312446594239,
345
+ 0.012306431770324706,
346
+ 0.012311552047729492,
347
+ 0.012303359985351562,
348
+ 0.012296192169189453,
349
+ 0.012301312446594239,
350
+ 0.012296192169189453,
351
+ 0.012304384231567383,
352
+ 0.012338175773620605,
353
+ 0.012311552047729492,
354
+ 0.012309503555297852,
355
+ 0.012307456016540527,
356
+ 0.012904447555541992,
357
+ 0.012327936172485352
358
+ ]
359
+ },
360
+ "throughput": {
361
+ "unit": "tokens/s",
362
+ "value": 81.12896924326604
363
+ },
364
+ "energy": null,
365
+ "efficiency": null
366
+ }
367
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/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": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.01422326374053955,
7
+ "prefill.throughput.value": 492.1514588841098,
8
+ "decode.latency.mean": 1.5655523681640626,
9
+ "decode.throughput.value": 81.12152782786438,
10
+ "per_token.latency.mean": 0.012326053311505656,
11
+ "per_token.throughput.value": 81.12896924326604
12
+ }
13
+ }
2024-09-04/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/multirun.yaml ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmpaiyt41hi/commit=ecd61c62862f925a18b4f063dc17fcaf01826e25
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/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25
88
+ - hydra.run.dir=_benchmark/tmpaiyt41hi/commit\=ecd61c62862f925a18b4f063dc17fcaf01826e25/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.4.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model_type: null
150
+ model: google/gemma-2b
151
+ processor: null
152
+ device: cuda
153
+ device_ids: '0'
154
+ seed: 42
155
+ inter_op_num_threads: null
156
+ intra_op_num_threads: null
157
+ model_kwargs: {}
158
+ processor_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ memory: true
192
+ latency: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ numactl: false
206
+ numactl_kwargs: {}
207
+ start_method: spawn
208
+ environment:
209
+ cpu: ' AMD EPYC 7R32'
210
+ cpu_count: 16
211
+ cpu_ram_mb: 66697.261056
212
+ system: Linux
213
+ machine: x86_64
214
+ platform: Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29
215
+ processor: x86_64
216
+ python_version: 3.8.10
217
+ gpu:
218
+ - NVIDIA A10G
219
+ gpu_count: 1
220
+ gpu_vram_mb: 24146608128
221
+ optimum_benchmark_version: 0.4.0
222
+ optimum_benchmark_commit: null
223
+ transformers_version: 4.45.0.dev0
224
+ transformers_commit: ecd61c62862f925a18b4f063dc17fcaf01826e25
225
+ accelerate_version: 0.35.0.dev0
226
+ accelerate_commit: null
227
+ diffusers_version: null
228
+ diffusers_commit: null
229
+ optimum_version: 1.22.0.dev0
230
+ optimum_commit: null
231
+ timm_version: 0.9.16
232
+ timm_commit: null
233
+ peft_version: 0.12.1.dev0
234
+ peft_commit: null
2024-09-04/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.02066104030609131,
8
+ "prefill.throughput.value": 338.80191395475146,
9
+ "decode.latency.mean": 2.506322265625,
10
+ "decode.throughput.value": 50.67185562760425,
11
+ "per_token.latency.mean": 0.01973356442939578,
12
+ "per_token.throughput.value": 50.6750822223666
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022147024154663086,
21
+ "prefill.throughput.value": 316.0695518781985,
22
+ "decode.latency.mean": 2.674888427734375,
23
+ "decode.throughput.value": 47.4786158118635,
24
+ "per_token.latency.mean": 0.021061095770888442,
25
+ "per_token.throughput.value": 47.48091034191314
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "ecd61c62862f925a18b4f063dc17fcaf01826e25",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.01422326374053955,
34
+ "prefill.throughput.value": 492.1514588841098,
35
+ "decode.latency.mean": 1.5655523681640626,
36
+ "decode.throughput.value": 81.12152782786438,
37
+ "per_token.latency.mean": 0.012326053311505656,
38
+ "per_token.throughput.value": 81.12896924326604
39
+ }
40
+ }
41
+ ]
2024-09-04/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "ecd61c62862f925a18b4f063dc17fcaf01826e25": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.02066104030609131,
7
+ "prefill.throughput.value": 338.80191395475146,
8
+ "decode.latency.mean": 2.506322265625,
9
+ "decode.throughput.value": 50.67185562760425,
10
+ "per_token.latency.mean": 0.01973356442939578,
11
+ "per_token.throughput.value": 50.6750822223666
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "ecd61c62862f925a18b4f063dc17fcaf01826e25": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022147024154663086,
19
+ "prefill.throughput.value": 316.0695518781985,
20
+ "decode.latency.mean": 2.674888427734375,
21
+ "decode.throughput.value": 47.4786158118635,
22
+ "per_token.latency.mean": 0.021061095770888442,
23
+ "per_token.throughput.value": 47.48091034191314
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "ecd61c62862f925a18b4f063dc17fcaf01826e25": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.01422326374053955,
31
+ "prefill.throughput.value": 492.1514588841098,
32
+ "decode.latency.mean": 1.5655523681640626,
33
+ "decode.throughput.value": 81.12152782786438,
34
+ "per_token.latency.mean": 0.012326053311505656,
35
+ "per_token.throughput.value": 81.12896924326604
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }