hf-transformers-bot commited on
Commit
ad801ff
1 Parent(s): 2e8d53c

Upload folder using huggingface_hub

Browse files
Files changed (32) hide show
  1. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  2. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  3. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  4. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  5. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  6. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  7. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  8. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  9. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  10. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  11. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  12. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +1 -0
  13. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  14. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml +91 -0
  15. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/hydra.yaml +141 -0
  16. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml +3 -0
  17. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json +443 -0
  18. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log +0 -0
  19. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json +102 -0
  20. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json +339 -0
  21. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/summary.json +13 -0
  22. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml +91 -0
  23. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/hydra.yaml +141 -0
  24. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml +3 -0
  25. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json +443 -0
  26. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log +0 -0
  27. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json +102 -0
  28. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json +339 -0
  29. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/summary.json +13 -0
  30. 2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/multirun.yaml +232 -0
  31. 2024-06-21/summaries.json +41 -0
  32. 2024-06-21/summary.json +40 -0
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 12b1620e615592fbf099d4ec44af7b9f2d1b48aa
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
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/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
88
+ - hydra.run.dir=_benchmark/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=False
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1706.745856,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5034.576896
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.046648672103881836,
118
+ "mean": 0.023324336051940918,
119
+ "stdev": 0.0032374563217163095,
120
+ "p50": 0.023324336051940918,
121
+ "p90": 0.025914301109313965,
122
+ "p95": 0.026238046741485596,
123
+ "p99": 0.0264970432472229,
124
+ "values": [
125
+ 0.026561792373657227,
126
+ 0.02008687973022461
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 300.1157239550877
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1706.831872,
140
+ "max_global_vram": 6795.296768,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6148.849664,
143
+ "max_allocated": 5034.577408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 4.9797666015625,
149
+ "mean": 2.48988330078125,
150
+ "stdev": 0.019831787109374943,
151
+ "p50": 2.48988330078125,
152
+ "p90": 2.50574873046875,
153
+ "p95": 2.5077319091796872,
154
+ "p99": 2.5093184521484373,
155
+ "values": [
156
+ 2.509715087890625,
157
+ 2.470051513671875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 51.006406589478004
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 4.9799874515533435,
173
+ "mean": 0.01968374486779978,
174
+ "stdev": 0.001364479850770183,
175
+ "p50": 0.019294208526611328,
176
+ "p90": 0.02054410171508789,
177
+ "p95": 0.020788633346557617,
178
+ "p99": 0.02107977722167969,
179
+ "values": [
180
+ 0.019759103775024413,
181
+ 0.019743743896484374,
182
+ 0.019842048645019532,
183
+ 0.020601856231689454,
184
+ 0.02071244812011719,
185
+ 0.020784128189086915,
186
+ 0.020816896438598635,
187
+ 0.020521984100341797,
188
+ 0.02062950325012207,
189
+ 0.02079539108276367,
190
+ 0.020831232070922853,
191
+ 0.020939775466918945,
192
+ 0.02064691162109375,
193
+ 0.020950016021728517,
194
+ 0.021007360458374022,
195
+ 0.02110054397583008,
196
+ 0.020948991775512696,
197
+ 0.02069606399536133,
198
+ 0.02059775924682617,
199
+ 0.02064691162109375,
200
+ 0.02083737564086914,
201
+ 0.020504575729370117,
202
+ 0.02058137512207031,
203
+ 0.020567039489746093,
204
+ 0.020579328536987306,
205
+ 0.019768320083618163,
206
+ 0.01962495994567871,
207
+ 0.02000383949279785,
208
+ 0.020057088851928712,
209
+ 0.02002739143371582,
210
+ 0.0200130558013916,
211
+ 0.019894271850585937,
212
+ 0.019795967102050782,
213
+ 0.019721216201782226,
214
+ 0.019599359512329103,
215
+ 0.020187135696411132,
216
+ 0.019474431991577147,
217
+ 0.019532800674438477,
218
+ 0.019547136306762695,
219
+ 0.019547136306762695,
220
+ 0.019552255630493166,
221
+ 0.019697664260864257,
222
+ 0.020420608520507814,
223
+ 0.02106060791015625,
224
+ 0.020299776077270508,
225
+ 0.020346879959106445,
226
+ 0.02087731170654297,
227
+ 0.02039091110229492,
228
+ 0.020368383407592772,
229
+ 0.019950592041015625,
230
+ 0.019334144592285156,
231
+ 0.019968000411987305,
232
+ 0.019991552352905274,
233
+ 0.02006425666809082,
234
+ 0.020050943374633787,
235
+ 0.02002227210998535,
236
+ 0.020493312835693358,
237
+ 0.020150272369384766,
238
+ 0.020164608001708984,
239
+ 0.019159040451049804,
240
+ 0.019147775650024415,
241
+ 0.019309568405151366,
242
+ 0.019294208526611328,
243
+ 0.019148799896240236,
244
+ 0.019158016204833983,
245
+ 0.019147775650024415,
246
+ 0.019145727157592773,
247
+ 0.019481599807739256,
248
+ 0.019168256759643554,
249
+ 0.019151872634887695,
250
+ 0.019211263656616212,
251
+ 0.019126272201538085,
252
+ 0.01942732810974121,
253
+ 0.019148799896240236,
254
+ 0.01923583984375,
255
+ 0.019162111282348633,
256
+ 0.019178495407104493,
257
+ 0.019158016204833983,
258
+ 0.019104768753051758,
259
+ 0.019173376083374022,
260
+ 0.019128320693969726,
261
+ 0.019086336135864256,
262
+ 0.019106815338134766,
263
+ 0.01942527961730957,
264
+ 0.019084287643432618,
265
+ 0.0190699520111084,
266
+ 0.020109312057495117,
267
+ 0.02005606460571289,
268
+ 0.020503551483154296,
269
+ 0.020137983322143553,
270
+ 0.020147199630737304,
271
+ 0.020199424743652345,
272
+ 0.02021683120727539,
273
+ 0.020549631118774413,
274
+ 0.019190784454345702,
275
+ 0.019128320693969726,
276
+ 0.01908940887451172,
277
+ 0.019163135528564454,
278
+ 0.01924710464477539,
279
+ 0.019154943466186524,
280
+ 0.019140607833862306,
281
+ 0.019152896881103516,
282
+ 0.019144704818725586,
283
+ 0.019107839584350587,
284
+ 0.019450912475585936,
285
+ 0.01912009620666504,
286
+ 0.019134464263916014,
287
+ 0.019134464263916014,
288
+ 0.019107839584350587,
289
+ 0.01925939178466797,
290
+ 0.01908940887451172,
291
+ 0.019139583587646485,
292
+ 0.019133440017700197,
293
+ 0.01916524887084961,
294
+ 0.019224544525146485,
295
+ 0.019425247192382814,
296
+ 0.019131391525268555,
297
+ 0.019110912322998046,
298
+ 0.019161088943481445,
299
+ 0.01919795227050781,
300
+ 0.01927987289428711,
301
+ 0.01946828842163086,
302
+ 0.01982259178161621,
303
+ 0.018942975997924806,
304
+ 0.018940927505493164,
305
+ 0.019153919219970703,
306
+ 0.039218177795410154,
307
+ 0.018965503692626954,
308
+ 0.019191808700561523,
309
+ 0.02006630325317383,
310
+ 0.019973119735717772,
311
+ 0.020168703079223634,
312
+ 0.01999667167663574,
313
+ 0.019952640533447266,
314
+ 0.02001408004760742,
315
+ 0.019979263305664064,
316
+ 0.02030182456970215,
317
+ 0.019956735610961913,
318
+ 0.020084735870361328,
319
+ 0.019066879272460938,
320
+ 0.01900851249694824,
321
+ 0.01929113578796387,
322
+ 0.01902079963684082,
323
+ 0.01903104019165039,
324
+ 0.01904128074645996,
325
+ 0.019066879272460938,
326
+ 0.019215360641479492,
327
+ 0.01899929618835449,
328
+ 0.018989055633544923,
329
+ 0.019058687210083008,
330
+ 0.018991104125976564,
331
+ 0.01901158332824707,
332
+ 0.01927884864807129,
333
+ 0.01902796745300293,
334
+ 0.019019775390625,
335
+ 0.01904742431640625,
336
+ 0.01902592086791992,
337
+ 0.019338239669799806,
338
+ 0.019014656066894533,
339
+ 0.01900032043457031,
340
+ 0.019013631820678712,
341
+ 0.01902694320678711,
342
+ 0.01897881507873535,
343
+ 0.019323904037475585,
344
+ 0.019050495147705078,
345
+ 0.019050495147705078,
346
+ 0.01905561637878418,
347
+ 0.01903615951538086,
348
+ 0.01920921516418457,
349
+ 0.019009536743164062,
350
+ 0.01908940887451172,
351
+ 0.018984960556030273,
352
+ 0.019070976257324217,
353
+ 0.019076095581054688,
354
+ 0.01963212776184082,
355
+ 0.021134336471557616,
356
+ 0.020117504119873047,
357
+ 0.020090879440307616,
358
+ 0.019153919219970703,
359
+ 0.019417087554931642,
360
+ 0.019115007400512696,
361
+ 0.019006464004516603,
362
+ 0.019014656066894533,
363
+ 0.019183616638183593,
364
+ 0.019192832946777344,
365
+ 0.01941606330871582,
366
+ 0.020151296615600587,
367
+ 0.02011238479614258,
368
+ 0.02019327926635742,
369
+ 0.020213760375976563,
370
+ 0.020376575469970702,
371
+ 0.020405248641967775,
372
+ 0.020242431640625,
373
+ 0.020145151138305666,
374
+ 0.019174400329589843,
375
+ 0.019983360290527344,
376
+ 0.020586496353149415,
377
+ 0.02021887969970703,
378
+ 0.020159488677978517,
379
+ 0.019195903778076173,
380
+ 0.019123199462890626,
381
+ 0.01941196823120117,
382
+ 0.019131391525268555,
383
+ 0.019166208267211913,
384
+ 0.019144704818725586,
385
+ 0.019153919219970703,
386
+ 0.019355648040771483,
387
+ 0.01922969627380371,
388
+ 0.01924505615234375,
389
+ 0.019137535095214844,
390
+ 0.01919795227050781,
391
+ 0.019155967712402345,
392
+ 0.019301376342773437,
393
+ 0.01924710464477539,
394
+ 0.019176448822021484,
395
+ 0.019185663223266602,
396
+ 0.019172351837158205,
397
+ 0.019451904296875,
398
+ 0.019153919219970703,
399
+ 0.019147775650024415,
400
+ 0.01921023941040039,
401
+ 0.01920102310180664,
402
+ 0.019382272720336914,
403
+ 0.019146751403808594,
404
+ 0.019152896881103516,
405
+ 0.019096576690673828,
406
+ 0.020208639144897463,
407
+ 0.020074495315551756,
408
+ 0.020503551483154296,
409
+ 0.020101119995117187,
410
+ 0.02019327926635742,
411
+ 0.020163583755493163,
412
+ 0.01977446365356445,
413
+ 0.020380672454833985,
414
+ 0.019207168579101562,
415
+ 0.019171327590942384,
416
+ 0.019124223709106446,
417
+ 0.019098623275756836,
418
+ 0.019430400848388672,
419
+ 0.019125247955322267,
420
+ 0.020349952697753908,
421
+ 0.02028544044494629,
422
+ 0.020148223876953125,
423
+ 0.019264511108398438,
424
+ 0.019301376342773437,
425
+ 0.01924300765991211,
426
+ 0.01938739204406738,
427
+ 0.019188735961914064,
428
+ 0.019107839584350587,
429
+ 0.019404800415039062,
430
+ 0.019159040451049804,
431
+ 0.019119104385375976,
432
+ 0.019152896881103516
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 50.80334086405879
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1706.745856,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5034.576896
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.046648672103881836,
15
+ "mean": 0.023324336051940918,
16
+ "stdev": 0.0032374563217163095,
17
+ "p50": 0.023324336051940918,
18
+ "p90": 0.025914301109313965,
19
+ "p95": 0.026238046741485596,
20
+ "p99": 0.0264970432472229,
21
+ "values": [
22
+ 0.026561792373657227,
23
+ 0.02008687973022461
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 300.1157239550877
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1706.831872,
37
+ "max_global_vram": 6795.296768,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6148.849664,
40
+ "max_allocated": 5034.577408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 4.9797666015625,
46
+ "mean": 2.48988330078125,
47
+ "stdev": 0.019831787109374943,
48
+ "p50": 2.48988330078125,
49
+ "p90": 2.50574873046875,
50
+ "p95": 2.5077319091796872,
51
+ "p99": 2.5093184521484373,
52
+ "values": [
53
+ 2.509715087890625,
54
+ 2.470051513671875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 51.006406589478004
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 4.9799874515533435,
70
+ "mean": 0.01968374486779978,
71
+ "stdev": 0.001364479850770183,
72
+ "p50": 0.019294208526611328,
73
+ "p90": 0.02054410171508789,
74
+ "p95": 0.020788633346557617,
75
+ "p99": 0.02107977722167969,
76
+ "values": [
77
+ 0.019759103775024413,
78
+ 0.019743743896484374,
79
+ 0.019842048645019532,
80
+ 0.020601856231689454,
81
+ 0.02071244812011719,
82
+ 0.020784128189086915,
83
+ 0.020816896438598635,
84
+ 0.020521984100341797,
85
+ 0.02062950325012207,
86
+ 0.02079539108276367,
87
+ 0.020831232070922853,
88
+ 0.020939775466918945,
89
+ 0.02064691162109375,
90
+ 0.020950016021728517,
91
+ 0.021007360458374022,
92
+ 0.02110054397583008,
93
+ 0.020948991775512696,
94
+ 0.02069606399536133,
95
+ 0.02059775924682617,
96
+ 0.02064691162109375,
97
+ 0.02083737564086914,
98
+ 0.020504575729370117,
99
+ 0.02058137512207031,
100
+ 0.020567039489746093,
101
+ 0.020579328536987306,
102
+ 0.019768320083618163,
103
+ 0.01962495994567871,
104
+ 0.02000383949279785,
105
+ 0.020057088851928712,
106
+ 0.02002739143371582,
107
+ 0.0200130558013916,
108
+ 0.019894271850585937,
109
+ 0.019795967102050782,
110
+ 0.019721216201782226,
111
+ 0.019599359512329103,
112
+ 0.020187135696411132,
113
+ 0.019474431991577147,
114
+ 0.019532800674438477,
115
+ 0.019547136306762695,
116
+ 0.019547136306762695,
117
+ 0.019552255630493166,
118
+ 0.019697664260864257,
119
+ 0.020420608520507814,
120
+ 0.02106060791015625,
121
+ 0.020299776077270508,
122
+ 0.020346879959106445,
123
+ 0.02087731170654297,
124
+ 0.02039091110229492,
125
+ 0.020368383407592772,
126
+ 0.019950592041015625,
127
+ 0.019334144592285156,
128
+ 0.019968000411987305,
129
+ 0.019991552352905274,
130
+ 0.02006425666809082,
131
+ 0.020050943374633787,
132
+ 0.02002227210998535,
133
+ 0.020493312835693358,
134
+ 0.020150272369384766,
135
+ 0.020164608001708984,
136
+ 0.019159040451049804,
137
+ 0.019147775650024415,
138
+ 0.019309568405151366,
139
+ 0.019294208526611328,
140
+ 0.019148799896240236,
141
+ 0.019158016204833983,
142
+ 0.019147775650024415,
143
+ 0.019145727157592773,
144
+ 0.019481599807739256,
145
+ 0.019168256759643554,
146
+ 0.019151872634887695,
147
+ 0.019211263656616212,
148
+ 0.019126272201538085,
149
+ 0.01942732810974121,
150
+ 0.019148799896240236,
151
+ 0.01923583984375,
152
+ 0.019162111282348633,
153
+ 0.019178495407104493,
154
+ 0.019158016204833983,
155
+ 0.019104768753051758,
156
+ 0.019173376083374022,
157
+ 0.019128320693969726,
158
+ 0.019086336135864256,
159
+ 0.019106815338134766,
160
+ 0.01942527961730957,
161
+ 0.019084287643432618,
162
+ 0.0190699520111084,
163
+ 0.020109312057495117,
164
+ 0.02005606460571289,
165
+ 0.020503551483154296,
166
+ 0.020137983322143553,
167
+ 0.020147199630737304,
168
+ 0.020199424743652345,
169
+ 0.02021683120727539,
170
+ 0.020549631118774413,
171
+ 0.019190784454345702,
172
+ 0.019128320693969726,
173
+ 0.01908940887451172,
174
+ 0.019163135528564454,
175
+ 0.01924710464477539,
176
+ 0.019154943466186524,
177
+ 0.019140607833862306,
178
+ 0.019152896881103516,
179
+ 0.019144704818725586,
180
+ 0.019107839584350587,
181
+ 0.019450912475585936,
182
+ 0.01912009620666504,
183
+ 0.019134464263916014,
184
+ 0.019134464263916014,
185
+ 0.019107839584350587,
186
+ 0.01925939178466797,
187
+ 0.01908940887451172,
188
+ 0.019139583587646485,
189
+ 0.019133440017700197,
190
+ 0.01916524887084961,
191
+ 0.019224544525146485,
192
+ 0.019425247192382814,
193
+ 0.019131391525268555,
194
+ 0.019110912322998046,
195
+ 0.019161088943481445,
196
+ 0.01919795227050781,
197
+ 0.01927987289428711,
198
+ 0.01946828842163086,
199
+ 0.01982259178161621,
200
+ 0.018942975997924806,
201
+ 0.018940927505493164,
202
+ 0.019153919219970703,
203
+ 0.039218177795410154,
204
+ 0.018965503692626954,
205
+ 0.019191808700561523,
206
+ 0.02006630325317383,
207
+ 0.019973119735717772,
208
+ 0.020168703079223634,
209
+ 0.01999667167663574,
210
+ 0.019952640533447266,
211
+ 0.02001408004760742,
212
+ 0.019979263305664064,
213
+ 0.02030182456970215,
214
+ 0.019956735610961913,
215
+ 0.020084735870361328,
216
+ 0.019066879272460938,
217
+ 0.01900851249694824,
218
+ 0.01929113578796387,
219
+ 0.01902079963684082,
220
+ 0.01903104019165039,
221
+ 0.01904128074645996,
222
+ 0.019066879272460938,
223
+ 0.019215360641479492,
224
+ 0.01899929618835449,
225
+ 0.018989055633544923,
226
+ 0.019058687210083008,
227
+ 0.018991104125976564,
228
+ 0.01901158332824707,
229
+ 0.01927884864807129,
230
+ 0.01902796745300293,
231
+ 0.019019775390625,
232
+ 0.01904742431640625,
233
+ 0.01902592086791992,
234
+ 0.019338239669799806,
235
+ 0.019014656066894533,
236
+ 0.01900032043457031,
237
+ 0.019013631820678712,
238
+ 0.01902694320678711,
239
+ 0.01897881507873535,
240
+ 0.019323904037475585,
241
+ 0.019050495147705078,
242
+ 0.019050495147705078,
243
+ 0.01905561637878418,
244
+ 0.01903615951538086,
245
+ 0.01920921516418457,
246
+ 0.019009536743164062,
247
+ 0.01908940887451172,
248
+ 0.018984960556030273,
249
+ 0.019070976257324217,
250
+ 0.019076095581054688,
251
+ 0.01963212776184082,
252
+ 0.021134336471557616,
253
+ 0.020117504119873047,
254
+ 0.020090879440307616,
255
+ 0.019153919219970703,
256
+ 0.019417087554931642,
257
+ 0.019115007400512696,
258
+ 0.019006464004516603,
259
+ 0.019014656066894533,
260
+ 0.019183616638183593,
261
+ 0.019192832946777344,
262
+ 0.01941606330871582,
263
+ 0.020151296615600587,
264
+ 0.02011238479614258,
265
+ 0.02019327926635742,
266
+ 0.020213760375976563,
267
+ 0.020376575469970702,
268
+ 0.020405248641967775,
269
+ 0.020242431640625,
270
+ 0.020145151138305666,
271
+ 0.019174400329589843,
272
+ 0.019983360290527344,
273
+ 0.020586496353149415,
274
+ 0.02021887969970703,
275
+ 0.020159488677978517,
276
+ 0.019195903778076173,
277
+ 0.019123199462890626,
278
+ 0.01941196823120117,
279
+ 0.019131391525268555,
280
+ 0.019166208267211913,
281
+ 0.019144704818725586,
282
+ 0.019153919219970703,
283
+ 0.019355648040771483,
284
+ 0.01922969627380371,
285
+ 0.01924505615234375,
286
+ 0.019137535095214844,
287
+ 0.01919795227050781,
288
+ 0.019155967712402345,
289
+ 0.019301376342773437,
290
+ 0.01924710464477539,
291
+ 0.019176448822021484,
292
+ 0.019185663223266602,
293
+ 0.019172351837158205,
294
+ 0.019451904296875,
295
+ 0.019153919219970703,
296
+ 0.019147775650024415,
297
+ 0.01921023941040039,
298
+ 0.01920102310180664,
299
+ 0.019382272720336914,
300
+ 0.019146751403808594,
301
+ 0.019152896881103516,
302
+ 0.019096576690673828,
303
+ 0.020208639144897463,
304
+ 0.020074495315551756,
305
+ 0.020503551483154296,
306
+ 0.020101119995117187,
307
+ 0.02019327926635742,
308
+ 0.020163583755493163,
309
+ 0.01977446365356445,
310
+ 0.020380672454833985,
311
+ 0.019207168579101562,
312
+ 0.019171327590942384,
313
+ 0.019124223709106446,
314
+ 0.019098623275756836,
315
+ 0.019430400848388672,
316
+ 0.019125247955322267,
317
+ 0.020349952697753908,
318
+ 0.02028544044494629,
319
+ 0.020148223876953125,
320
+ 0.019264511108398438,
321
+ 0.019301376342773437,
322
+ 0.01924300765991211,
323
+ 0.01938739204406738,
324
+ 0.019188735961914064,
325
+ 0.019107839584350587,
326
+ 0.019404800415039062,
327
+ 0.019159040451049804,
328
+ 0.019119104385375976,
329
+ 0.019152896881103516
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 50.80334086405879
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/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": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
4
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.023324336051940918,
7
+ "prefill.throughput.value": 300.1157239550877,
8
+ "decode.latency.mean": 2.48988330078125,
9
+ "decode.throughput.value": 51.006406589478004,
10
+ "per_token.latency.mean": 0.01968374486779978,
11
+ "per_token.throughput.value": 50.80334086405879
12
+ }
13
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: null
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 12b1620e615592fbf099d4ec44af7b9f2d1b48aa
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
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/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
88
+ - hydra.run.dir=_benchmark/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=null
3
+ - backend.torch_compile=True
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
@@ -0,0 +1 @@
 
 
1
+ [ISOLATED-PROCESS][2024-06-21 02:35:06,840][process][ERROR] - + Sending traceback to main process
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=null,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": null,
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: false
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 12b1620e615592fbf099d4ec44af7b9f2d1b48aa
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
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/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
88
+ - hydra.run.dir=_benchmark/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=False
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1754.488832,
109
+ "max_global_vram": 6793.199616,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 6146.752512,
112
+ "max_allocated": 5036.936192
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.04491177749633789,
118
+ "mean": 0.022455888748168944,
119
+ "stdev": 0.0002903518676757814,
120
+ "p50": 0.022455888748168944,
121
+ "p90": 0.022688170242309572,
122
+ "p95": 0.02271720542907715,
123
+ "p99": 0.02274043357849121,
124
+ "values": [
125
+ 0.022746240615844727,
126
+ 0.022165536880493164
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 311.7222425930829
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 1754.509312,
140
+ "max_global_vram": 6793.199616,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 6146.752512,
143
+ "max_allocated": 5036.936704
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 5.168609375,
149
+ "mean": 2.5843046875,
150
+ "stdev": 0.013391113281250089,
151
+ "p50": 2.5843046875,
152
+ "p90": 2.5950175781250002,
153
+ "p95": 2.596356689453125,
154
+ "p99": 2.597427978515625,
155
+ "values": [
156
+ 2.59769580078125,
157
+ 2.57091357421875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 49.14281222886959
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 5.169546255111694,
173
+ "mean": 0.020432989150639107,
174
+ "stdev": 0.0014484515231112435,
175
+ "p50": 0.020163583755493163,
176
+ "p90": 0.020831027603149414,
177
+ "p95": 0.02092564544677734,
178
+ "p99": 0.021751479721069333,
179
+ "values": [
180
+ 0.02058956718444824,
181
+ 0.020752384185791017,
182
+ 0.020883455276489257,
183
+ 0.020822015762329102,
184
+ 0.02123673629760742,
185
+ 0.02063974380493164,
186
+ 0.02085785675048828,
187
+ 0.020477951049804686,
188
+ 0.020642816543579103,
189
+ 0.020999168395996092,
190
+ 0.02083328056335449,
191
+ 0.020907007217407226,
192
+ 0.020682752609252928,
193
+ 0.020770816802978515,
194
+ 0.021287935256958008,
195
+ 0.0209039363861084,
196
+ 0.021534719467163087,
197
+ 0.020757503509521484,
198
+ 0.02049945640563965,
199
+ 0.020822015762329102,
200
+ 0.020611072540283205,
201
+ 0.020534271240234374,
202
+ 0.02079539108276367,
203
+ 0.020572160720825194,
204
+ 0.020899839401245117,
205
+ 0.02045030403137207,
206
+ 0.020590591430664062,
207
+ 0.020912128448486327,
208
+ 0.020957183837890626,
209
+ 0.021154815673828126,
210
+ 0.020706304550170897,
211
+ 0.02088652801513672,
212
+ 0.021147647857666017,
213
+ 0.020745216369628908,
214
+ 0.02083635139465332,
215
+ 0.020945920944213867,
216
+ 0.020555776596069338,
217
+ 0.02064588737487793,
218
+ 0.02066431999206543,
219
+ 0.02089472007751465,
220
+ 0.020899839401245117,
221
+ 0.020661247253417968,
222
+ 0.020588544845581053,
223
+ 0.020479999542236327,
224
+ 0.024402944564819336,
225
+ 0.021986303329467775,
226
+ 0.02078211212158203,
227
+ 0.020390880584716796,
228
+ 0.02049843215942383,
229
+ 0.021251071929931642,
230
+ 0.020172800064086914,
231
+ 0.020130815505981444,
232
+ 0.020146175384521483,
233
+ 0.02008576011657715,
234
+ 0.020381696701049806,
235
+ 0.020099071502685546,
236
+ 0.02010419273376465,
237
+ 0.02006118392944336,
238
+ 0.020114431381225584,
239
+ 0.020387840270996094,
240
+ 0.020083711624145507,
241
+ 0.020190208435058594,
242
+ 0.0200949764251709,
243
+ 0.020063232421875,
244
+ 0.02040012741088867,
245
+ 0.020150272369384766,
246
+ 0.02022604751586914,
247
+ 0.020155391693115234,
248
+ 0.02017791938781738,
249
+ 0.020357120513916017,
250
+ 0.02011955261230469,
251
+ 0.020256767272949217,
252
+ 0.020106239318847655,
253
+ 0.020116479873657226,
254
+ 0.020452352523803712,
255
+ 0.02010419273376465,
256
+ 0.020110336303710938,
257
+ 0.020130815505981444,
258
+ 0.02007961654663086,
259
+ 0.020362239837646484,
260
+ 0.020136959075927736,
261
+ 0.020150272369384766,
262
+ 0.0200898551940918,
263
+ 0.020200447082519533,
264
+ 0.020410367965698242,
265
+ 0.020125696182250977,
266
+ 0.020129791259765627,
267
+ 0.02008678436279297,
268
+ 0.020114431381225584,
269
+ 0.020378623962402344,
270
+ 0.020115455627441405,
271
+ 0.020132863998413086,
272
+ 0.020091903686523437,
273
+ 0.020129791259765627,
274
+ 0.020188159942626953,
275
+ 0.020136959075927736,
276
+ 0.020418560028076172,
277
+ 0.019932159423828123,
278
+ 0.019877887725830077,
279
+ 0.019929088592529298,
280
+ 0.02009600067138672,
281
+ 0.02010316848754883,
282
+ 0.020149248123168945,
283
+ 0.020134912490844727,
284
+ 0.02008576011657715,
285
+ 0.020502527236938475,
286
+ 0.020051967620849608,
287
+ 0.02007244873046875,
288
+ 0.02007961654663086,
289
+ 0.020076543807983398,
290
+ 0.020238336563110353,
291
+ 0.02025267219543457,
292
+ 0.020125696182250977,
293
+ 0.02007859230041504,
294
+ 0.02007347106933594,
295
+ 0.020199424743652345,
296
+ 0.02030182456970215,
297
+ 0.020163583755493163,
298
+ 0.020159488677978517,
299
+ 0.020102144241333008,
300
+ 0.020109312057495117,
301
+ 0.020420608520507814,
302
+ 0.02008576011657715,
303
+ 0.020040704727172853,
304
+ 0.02010419273376465,
305
+ 0.020082687377929686,
306
+ 0.04247552108764648,
307
+ 0.020191232681274415,
308
+ 0.020117504119873047,
309
+ 0.020360191345214843,
310
+ 0.020896768569946288,
311
+ 0.020692991256713866,
312
+ 0.02046668815612793,
313
+ 0.02020351982116699,
314
+ 0.020124671936035156,
315
+ 0.020505599975585938,
316
+ 0.020143104553222657,
317
+ 0.020110336303710938,
318
+ 0.020118528366088868,
319
+ 0.020610048294067384,
320
+ 0.02048204803466797,
321
+ 0.02007347106933594,
322
+ 0.020184064865112306,
323
+ 0.020173824310302735,
324
+ 0.020136959075927736,
325
+ 0.020708351135253905,
326
+ 0.02146201515197754,
327
+ 0.020817920684814452,
328
+ 0.020752384185791017,
329
+ 0.02068172836303711,
330
+ 0.020596736907958983,
331
+ 0.02042982482910156,
332
+ 0.020118528366088868,
333
+ 0.02009702491760254,
334
+ 0.020131839752197265,
335
+ 0.020134912490844727,
336
+ 0.020183040618896485,
337
+ 0.020143104553222657,
338
+ 0.020161535263061522,
339
+ 0.020163583755493163,
340
+ 0.020141056060791016,
341
+ 0.020237312316894532,
342
+ 0.02012057685852051,
343
+ 0.020249599456787108,
344
+ 0.020153343200683595,
345
+ 0.02008166313171387,
346
+ 0.02037555122375488,
347
+ 0.02007756805419922,
348
+ 0.02009600067138672,
349
+ 0.02007961654663086,
350
+ 0.02012774467468262,
351
+ 0.02045132827758789,
352
+ 0.020074495315551756,
353
+ 0.020118528366088868,
354
+ 0.02009600067138672,
355
+ 0.020102144241333008,
356
+ 0.02045952033996582,
357
+ 0.020137983322143553,
358
+ 0.020156415939331054,
359
+ 0.020154367446899413,
360
+ 0.020143104553222657,
361
+ 0.020397056579589845,
362
+ 0.020157440185546875,
363
+ 0.020125696182250977,
364
+ 0.02009600067138672,
365
+ 0.020101119995117187,
366
+ 0.02033459281921387,
367
+ 0.02007756805419922,
368
+ 0.020153343200683595,
369
+ 0.02011136054992676,
370
+ 0.020025344848632814,
371
+ 0.020249599456787108,
372
+ 0.020239360809326173,
373
+ 0.020160512924194338,
374
+ 0.020068351745605468,
375
+ 0.020165632247924805,
376
+ 0.020117504119873047,
377
+ 0.020288511276245116,
378
+ 0.020157440185546875,
379
+ 0.020153343200683595,
380
+ 0.02009702491760254,
381
+ 0.020190208435058594,
382
+ 0.020434944152832032,
383
+ 0.020190208435058594,
384
+ 0.02016972732543945,
385
+ 0.020121599197387697,
386
+ 0.02008166313171387,
387
+ 0.020505599975585938,
388
+ 0.020110336303710938,
389
+ 0.020381696701049806,
390
+ 0.02069811248779297,
391
+ 0.020161535263061522,
392
+ 0.020387840270996094,
393
+ 0.020382720947265624,
394
+ 0.020164608001708984,
395
+ 0.020099071502685546,
396
+ 0.02004684829711914,
397
+ 0.020435968399047853,
398
+ 0.020102144241333008,
399
+ 0.02011136054992676,
400
+ 0.02006220817565918,
401
+ 0.02011955261230469,
402
+ 0.020340736389160157,
403
+ 0.020575231552124023,
404
+ 0.020083711624145507,
405
+ 0.020134912490844727,
406
+ 0.020150272369384766,
407
+ 0.020332544326782227,
408
+ 0.020110336303710938,
409
+ 0.02012876892089844,
410
+ 0.02007859230041504,
411
+ 0.02008678436279297,
412
+ 0.020185087203979494,
413
+ 0.020108287811279296,
414
+ 0.02001408004760742,
415
+ 0.02009600067138672,
416
+ 0.020024320602416993,
417
+ 0.02010316848754883,
418
+ 0.02021683120727539,
419
+ 0.020057088851928712,
420
+ 0.020031488418579102,
421
+ 0.020063232421875,
422
+ 0.02008064079284668,
423
+ 0.02045644760131836,
424
+ 0.02006630325317383,
425
+ 0.02011136054992676,
426
+ 0.02012057685852051,
427
+ 0.02012057685852051,
428
+ 0.020329471588134765,
429
+ 0.020361215591430663,
430
+ 0.020888576507568358,
431
+ 0.020716543197631835,
432
+ 0.02041753578186035
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 48.9404654711874
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark.log ADDED
File without changes
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": false,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=False/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1754.488832,
6
+ "max_global_vram": 6793.199616,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 6146.752512,
9
+ "max_allocated": 5036.936192
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.04491177749633789,
15
+ "mean": 0.022455888748168944,
16
+ "stdev": 0.0002903518676757814,
17
+ "p50": 0.022455888748168944,
18
+ "p90": 0.022688170242309572,
19
+ "p95": 0.02271720542907715,
20
+ "p99": 0.02274043357849121,
21
+ "values": [
22
+ 0.022746240615844727,
23
+ 0.022165536880493164
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 311.7222425930829
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 1754.509312,
37
+ "max_global_vram": 6793.199616,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 6146.752512,
40
+ "max_allocated": 5036.936704
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 5.168609375,
46
+ "mean": 2.5843046875,
47
+ "stdev": 0.013391113281250089,
48
+ "p50": 2.5843046875,
49
+ "p90": 2.5950175781250002,
50
+ "p95": 2.596356689453125,
51
+ "p99": 2.597427978515625,
52
+ "values": [
53
+ 2.59769580078125,
54
+ 2.57091357421875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 49.14281222886959
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 5.169546255111694,
70
+ "mean": 0.020432989150639107,
71
+ "stdev": 0.0014484515231112435,
72
+ "p50": 0.020163583755493163,
73
+ "p90": 0.020831027603149414,
74
+ "p95": 0.02092564544677734,
75
+ "p99": 0.021751479721069333,
76
+ "values": [
77
+ 0.02058956718444824,
78
+ 0.020752384185791017,
79
+ 0.020883455276489257,
80
+ 0.020822015762329102,
81
+ 0.02123673629760742,
82
+ 0.02063974380493164,
83
+ 0.02085785675048828,
84
+ 0.020477951049804686,
85
+ 0.020642816543579103,
86
+ 0.020999168395996092,
87
+ 0.02083328056335449,
88
+ 0.020907007217407226,
89
+ 0.020682752609252928,
90
+ 0.020770816802978515,
91
+ 0.021287935256958008,
92
+ 0.0209039363861084,
93
+ 0.021534719467163087,
94
+ 0.020757503509521484,
95
+ 0.02049945640563965,
96
+ 0.020822015762329102,
97
+ 0.020611072540283205,
98
+ 0.020534271240234374,
99
+ 0.02079539108276367,
100
+ 0.020572160720825194,
101
+ 0.020899839401245117,
102
+ 0.02045030403137207,
103
+ 0.020590591430664062,
104
+ 0.020912128448486327,
105
+ 0.020957183837890626,
106
+ 0.021154815673828126,
107
+ 0.020706304550170897,
108
+ 0.02088652801513672,
109
+ 0.021147647857666017,
110
+ 0.020745216369628908,
111
+ 0.02083635139465332,
112
+ 0.020945920944213867,
113
+ 0.020555776596069338,
114
+ 0.02064588737487793,
115
+ 0.02066431999206543,
116
+ 0.02089472007751465,
117
+ 0.020899839401245117,
118
+ 0.020661247253417968,
119
+ 0.020588544845581053,
120
+ 0.020479999542236327,
121
+ 0.024402944564819336,
122
+ 0.021986303329467775,
123
+ 0.02078211212158203,
124
+ 0.020390880584716796,
125
+ 0.02049843215942383,
126
+ 0.021251071929931642,
127
+ 0.020172800064086914,
128
+ 0.020130815505981444,
129
+ 0.020146175384521483,
130
+ 0.02008576011657715,
131
+ 0.020381696701049806,
132
+ 0.020099071502685546,
133
+ 0.02010419273376465,
134
+ 0.02006118392944336,
135
+ 0.020114431381225584,
136
+ 0.020387840270996094,
137
+ 0.020083711624145507,
138
+ 0.020190208435058594,
139
+ 0.0200949764251709,
140
+ 0.020063232421875,
141
+ 0.02040012741088867,
142
+ 0.020150272369384766,
143
+ 0.02022604751586914,
144
+ 0.020155391693115234,
145
+ 0.02017791938781738,
146
+ 0.020357120513916017,
147
+ 0.02011955261230469,
148
+ 0.020256767272949217,
149
+ 0.020106239318847655,
150
+ 0.020116479873657226,
151
+ 0.020452352523803712,
152
+ 0.02010419273376465,
153
+ 0.020110336303710938,
154
+ 0.020130815505981444,
155
+ 0.02007961654663086,
156
+ 0.020362239837646484,
157
+ 0.020136959075927736,
158
+ 0.020150272369384766,
159
+ 0.0200898551940918,
160
+ 0.020200447082519533,
161
+ 0.020410367965698242,
162
+ 0.020125696182250977,
163
+ 0.020129791259765627,
164
+ 0.02008678436279297,
165
+ 0.020114431381225584,
166
+ 0.020378623962402344,
167
+ 0.020115455627441405,
168
+ 0.020132863998413086,
169
+ 0.020091903686523437,
170
+ 0.020129791259765627,
171
+ 0.020188159942626953,
172
+ 0.020136959075927736,
173
+ 0.020418560028076172,
174
+ 0.019932159423828123,
175
+ 0.019877887725830077,
176
+ 0.019929088592529298,
177
+ 0.02009600067138672,
178
+ 0.02010316848754883,
179
+ 0.020149248123168945,
180
+ 0.020134912490844727,
181
+ 0.02008576011657715,
182
+ 0.020502527236938475,
183
+ 0.020051967620849608,
184
+ 0.02007244873046875,
185
+ 0.02007961654663086,
186
+ 0.020076543807983398,
187
+ 0.020238336563110353,
188
+ 0.02025267219543457,
189
+ 0.020125696182250977,
190
+ 0.02007859230041504,
191
+ 0.02007347106933594,
192
+ 0.020199424743652345,
193
+ 0.02030182456970215,
194
+ 0.020163583755493163,
195
+ 0.020159488677978517,
196
+ 0.020102144241333008,
197
+ 0.020109312057495117,
198
+ 0.020420608520507814,
199
+ 0.02008576011657715,
200
+ 0.020040704727172853,
201
+ 0.02010419273376465,
202
+ 0.020082687377929686,
203
+ 0.04247552108764648,
204
+ 0.020191232681274415,
205
+ 0.020117504119873047,
206
+ 0.020360191345214843,
207
+ 0.020896768569946288,
208
+ 0.020692991256713866,
209
+ 0.02046668815612793,
210
+ 0.02020351982116699,
211
+ 0.020124671936035156,
212
+ 0.020505599975585938,
213
+ 0.020143104553222657,
214
+ 0.020110336303710938,
215
+ 0.020118528366088868,
216
+ 0.020610048294067384,
217
+ 0.02048204803466797,
218
+ 0.02007347106933594,
219
+ 0.020184064865112306,
220
+ 0.020173824310302735,
221
+ 0.020136959075927736,
222
+ 0.020708351135253905,
223
+ 0.02146201515197754,
224
+ 0.020817920684814452,
225
+ 0.020752384185791017,
226
+ 0.02068172836303711,
227
+ 0.020596736907958983,
228
+ 0.02042982482910156,
229
+ 0.020118528366088868,
230
+ 0.02009702491760254,
231
+ 0.020131839752197265,
232
+ 0.020134912490844727,
233
+ 0.020183040618896485,
234
+ 0.020143104553222657,
235
+ 0.020161535263061522,
236
+ 0.020163583755493163,
237
+ 0.020141056060791016,
238
+ 0.020237312316894532,
239
+ 0.02012057685852051,
240
+ 0.020249599456787108,
241
+ 0.020153343200683595,
242
+ 0.02008166313171387,
243
+ 0.02037555122375488,
244
+ 0.02007756805419922,
245
+ 0.02009600067138672,
246
+ 0.02007961654663086,
247
+ 0.02012774467468262,
248
+ 0.02045132827758789,
249
+ 0.020074495315551756,
250
+ 0.020118528366088868,
251
+ 0.02009600067138672,
252
+ 0.020102144241333008,
253
+ 0.02045952033996582,
254
+ 0.020137983322143553,
255
+ 0.020156415939331054,
256
+ 0.020154367446899413,
257
+ 0.020143104553222657,
258
+ 0.020397056579589845,
259
+ 0.020157440185546875,
260
+ 0.020125696182250977,
261
+ 0.02009600067138672,
262
+ 0.020101119995117187,
263
+ 0.02033459281921387,
264
+ 0.02007756805419922,
265
+ 0.020153343200683595,
266
+ 0.02011136054992676,
267
+ 0.020025344848632814,
268
+ 0.020249599456787108,
269
+ 0.020239360809326173,
270
+ 0.020160512924194338,
271
+ 0.020068351745605468,
272
+ 0.020165632247924805,
273
+ 0.020117504119873047,
274
+ 0.020288511276245116,
275
+ 0.020157440185546875,
276
+ 0.020153343200683595,
277
+ 0.02009702491760254,
278
+ 0.020190208435058594,
279
+ 0.020434944152832032,
280
+ 0.020190208435058594,
281
+ 0.02016972732543945,
282
+ 0.020121599197387697,
283
+ 0.02008166313171387,
284
+ 0.020505599975585938,
285
+ 0.020110336303710938,
286
+ 0.020381696701049806,
287
+ 0.02069811248779297,
288
+ 0.020161535263061522,
289
+ 0.020387840270996094,
290
+ 0.020382720947265624,
291
+ 0.020164608001708984,
292
+ 0.020099071502685546,
293
+ 0.02004684829711914,
294
+ 0.020435968399047853,
295
+ 0.020102144241333008,
296
+ 0.02011136054992676,
297
+ 0.02006220817565918,
298
+ 0.02011955261230469,
299
+ 0.020340736389160157,
300
+ 0.020575231552124023,
301
+ 0.020083711624145507,
302
+ 0.020134912490844727,
303
+ 0.020150272369384766,
304
+ 0.020332544326782227,
305
+ 0.020110336303710938,
306
+ 0.02012876892089844,
307
+ 0.02007859230041504,
308
+ 0.02008678436279297,
309
+ 0.020185087203979494,
310
+ 0.020108287811279296,
311
+ 0.02001408004760742,
312
+ 0.02009600067138672,
313
+ 0.020024320602416993,
314
+ 0.02010316848754883,
315
+ 0.02021683120727539,
316
+ 0.020057088851928712,
317
+ 0.020031488418579102,
318
+ 0.020063232421875,
319
+ 0.02008064079284668,
320
+ 0.02045644760131836,
321
+ 0.02006630325317383,
322
+ 0.02011136054992676,
323
+ 0.02012057685852051,
324
+ 0.02012057685852051,
325
+ 0.020329471588134765,
326
+ 0.020361215591430663,
327
+ 0.020888576507568358,
328
+ 0.020716543197631835,
329
+ 0.02041753578186035
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 48.9404654711874
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/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": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.022455888748168944,
7
+ "prefill.throughput.value": 311.7222425930829,
8
+ "decode.latency.mean": 2.5843046875,
9
+ "decode.throughput.value": 49.14281222886959,
10
+ "per_token.latency.mean": 0.020432989150639107,
11
+ "per_token.throughput.value": 48.9404654711874
12
+ }
13
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/config.yaml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: pytorch_generate
2
+ backend:
3
+ name: pytorch
4
+ version: 2.3.0+cu121
5
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
6
+ task: null
7
+ library: null
8
+ model: google/gemma-2b
9
+ processor: null
10
+ device: cuda
11
+ device_ids: '0'
12
+ seed: 42
13
+ inter_op_num_threads: null
14
+ intra_op_num_threads: null
15
+ model_kwargs: {}
16
+ processor_kwargs: {}
17
+ hub_kwargs: {}
18
+ no_weights: true
19
+ device_map: null
20
+ torch_dtype: float16
21
+ eval_mode: true
22
+ to_bettertransformer: false
23
+ low_cpu_mem_usage: null
24
+ attn_implementation: null
25
+ cache_implementation: static
26
+ autocast_enabled: false
27
+ autocast_dtype: null
28
+ torch_compile: true
29
+ torch_compile_target: forward
30
+ torch_compile_config:
31
+ backend: inductor
32
+ mode: reduce-overhead
33
+ fullgraph: true
34
+ quantization_scheme: null
35
+ quantization_config: {}
36
+ deepspeed_inference: false
37
+ deepspeed_inference_config: {}
38
+ peft_type: null
39
+ peft_config: {}
40
+ scenario:
41
+ name: inference
42
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
43
+ iterations: 2
44
+ duration: 0
45
+ warmup_runs: 10
46
+ input_shapes:
47
+ batch_size: 1
48
+ sequence_length: 7
49
+ new_tokens: null
50
+ latency: true
51
+ memory: true
52
+ energy: false
53
+ forward_kwargs: {}
54
+ generate_kwargs:
55
+ max_new_tokens: 128
56
+ min_new_tokens: 128
57
+ do_sample: false
58
+ call_kwargs: {}
59
+ launcher:
60
+ name: process
61
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
62
+ device_isolation: true
63
+ device_isolation_action: warn
64
+ start_method: spawn
65
+ environment:
66
+ cpu: ' AMD EPYC 7R32'
67
+ cpu_count: 16
68
+ cpu_ram_mb: 66697.29792
69
+ system: Linux
70
+ machine: x86_64
71
+ platform: Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29
72
+ processor: x86_64
73
+ python_version: 3.8.10
74
+ gpu:
75
+ - NVIDIA A10G
76
+ gpu_count: 1
77
+ gpu_vram_mb: 24146608128
78
+ optimum_benchmark_version: 0.2.1
79
+ optimum_benchmark_commit: null
80
+ transformers_version: 4.42.0.dev0
81
+ transformers_commit: 12b1620e615592fbf099d4ec44af7b9f2d1b48aa
82
+ accelerate_version: 0.32.0.dev0
83
+ accelerate_commit: null
84
+ diffusers_version: null
85
+ diffusers_commit: null
86
+ optimum_version: 1.21.0.dev0
87
+ optimum_commit: null
88
+ timm_version: 0.9.16
89
+ timm_commit: null
90
+ peft_version: 0.11.2.dev0
91
+ peft_commit: null
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
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/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
88
+ - hydra.run.dir=_benchmark/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${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/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - backend.model=google/gemma-2b
2
+ - backend.cache_implementation=static
3
+ - backend.torch_compile=True
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.json ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch_generate",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0+cu121",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "google/gemma-2b",
11
+ "processor": "google/gemma-2b",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": "static",
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": true,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {
33
+ "backend": "inductor",
34
+ "mode": "reduce-overhead",
35
+ "fullgraph": true
36
+ },
37
+ "quantization_scheme": null,
38
+ "quantization_config": {},
39
+ "deepspeed_inference": false,
40
+ "deepspeed_inference_config": {},
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 2,
48
+ "duration": 0,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 7
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 128,
62
+ "min_new_tokens": 128,
63
+ "do_sample": false
64
+ },
65
+ "call_kwargs": {}
66
+ },
67
+ "launcher": {
68
+ "name": "process",
69
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
70
+ "device_isolation": true,
71
+ "device_isolation_action": "warn",
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " AMD EPYC 7R32",
76
+ "cpu_count": 16,
77
+ "cpu_ram_mb": 66697.29792,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29",
81
+ "processor": "x86_64",
82
+ "python_version": "3.8.10",
83
+ "gpu": [
84
+ "NVIDIA A10G"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 24146608128,
88
+ "optimum_benchmark_version": "0.2.1",
89
+ "optimum_benchmark_commit": null,
90
+ "transformers_version": "4.42.0.dev0",
91
+ "transformers_commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
92
+ "accelerate_version": "0.32.0.dev0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": null,
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.21.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "0.9.16",
99
+ "timm_commit": null,
100
+ "peft_version": "0.11.2.dev0",
101
+ "peft_commit": null
102
+ }
103
+ },
104
+ "report": {
105
+ "prefill": {
106
+ "memory": {
107
+ "unit": "MB",
108
+ "max_ram": 1916.23168,
109
+ "max_global_vram": 6094.848,
110
+ "max_process_vram": 0.0,
111
+ "max_reserved": 5379.19488,
112
+ "max_allocated": 5021.251584
113
+ },
114
+ "latency": {
115
+ "unit": "s",
116
+ "count": 2,
117
+ "total": 0.028147264480590822,
118
+ "mean": 0.014073632240295411,
119
+ "stdev": 9.32159423828122e-05,
120
+ "p50": 0.014073632240295411,
121
+ "p90": 0.01414820499420166,
122
+ "p95": 0.014157526588439941,
123
+ "p99": 0.014164983863830567,
124
+ "values": [
125
+ 0.014166848182678222,
126
+ 0.013980416297912598
127
+ ]
128
+ },
129
+ "throughput": {
130
+ "unit": "tokens/s",
131
+ "value": 497.3840356548259
132
+ },
133
+ "energy": null,
134
+ "efficiency": null
135
+ },
136
+ "decode": {
137
+ "memory": {
138
+ "unit": "MB",
139
+ "max_ram": 2260.033536,
140
+ "max_global_vram": 8907.128832,
141
+ "max_process_vram": 0.0,
142
+ "max_reserved": 5379.19488,
143
+ "max_allocated": 5027.089408
144
+ },
145
+ "latency": {
146
+ "unit": "s",
147
+ "count": 2,
148
+ "total": 3.155854248046875,
149
+ "mean": 1.5779271240234376,
150
+ "stdev": 0.017416625976562572,
151
+ "p50": 1.5779271240234376,
152
+ "p90": 1.5918604248046875,
153
+ "p95": 1.5936020874023438,
154
+ "p99": 1.5949954174804688,
155
+ "values": [
156
+ 1.59534375,
157
+ 1.560510498046875
158
+ ]
159
+ },
160
+ "throughput": {
161
+ "unit": "tokens/s",
162
+ "value": 80.48533932047017
163
+ },
164
+ "energy": null,
165
+ "efficiency": null
166
+ },
167
+ "per_token": {
168
+ "memory": null,
169
+ "latency": {
170
+ "unit": "s",
171
+ "count": 253,
172
+ "total": 3.1568332824707035,
173
+ "mean": 0.012477601906998826,
174
+ "stdev": 0.0009068085318988774,
175
+ "p50": 0.012299263954162597,
176
+ "p90": 0.012770918655395508,
177
+ "p95": 0.012805324935913086,
178
+ "p99": 0.012877578544616698,
179
+ "values": [
180
+ 0.012729344367980957,
181
+ 0.012834815979003907,
182
+ 0.01284607982635498,
183
+ 0.012807168006896973,
184
+ 0.012774399757385254,
185
+ 0.012818431854248047,
186
+ 0.012710911750793457,
187
+ 0.012744704246520995,
188
+ 0.012709888458251953,
189
+ 0.012813311576843261,
190
+ 0.012720128059387208,
191
+ 0.012777471542358398,
192
+ 0.012700672149658204,
193
+ 0.01273855972290039,
194
+ 0.012728320121765137,
195
+ 0.012810239791870117,
196
+ 0.012732416152954102,
197
+ 0.012784640312194824,
198
+ 0.01284607982635498,
199
+ 0.01287168025970459,
200
+ 0.012772352218627929,
201
+ 0.012744799613952636,
202
+ 0.01271183967590332,
203
+ 0.012786687850952149,
204
+ 0.012732416152954102,
205
+ 0.01287168025970459,
206
+ 0.012798975944519043,
207
+ 0.012790783882141114,
208
+ 0.012734463691711426,
209
+ 0.012783616065979005,
210
+ 0.01296076774597168,
211
+ 0.01277952003479004,
212
+ 0.012727295875549317,
213
+ 0.01276518440246582,
214
+ 0.0127457275390625,
215
+ 0.01287168025970459,
216
+ 0.01266483211517334,
217
+ 0.012708864212036132,
218
+ 0.012707839965820313,
219
+ 0.012795904159545898,
220
+ 0.012706815719604492,
221
+ 0.012709888458251953,
222
+ 0.012685312271118163,
223
+ 0.012777471542358398,
224
+ 0.012761088371276855,
225
+ 0.012751935958862304,
226
+ 0.012743616104125976,
227
+ 0.01274675178527832,
228
+ 0.012683263778686523,
229
+ 0.012741632461547851,
230
+ 0.012722175598144531,
231
+ 0.012883968353271484,
232
+ 0.01266483211517334,
233
+ 0.012724224090576173,
234
+ 0.012704768180847169,
235
+ 0.012725248336791992,
236
+ 0.012713983535766601,
237
+ 0.01276416015625,
238
+ 0.012719103813171387,
239
+ 0.012761088371276855,
240
+ 0.012685312271118163,
241
+ 0.01275699234008789,
242
+ 0.012700672149658204,
243
+ 0.012777471542358398,
244
+ 0.012709888458251953,
245
+ 0.012750847816467285,
246
+ 0.012621824264526366,
247
+ 0.012619775772094726,
248
+ 0.012732416152954102,
249
+ 0.012804096221923827,
250
+ 0.01234227180480957,
251
+ 0.012379136085510254,
252
+ 0.012428288459777831,
253
+ 0.012517375946044922,
254
+ 0.012678144454956054,
255
+ 0.012603391647338867,
256
+ 0.012453920364379882,
257
+ 0.012335071563720703,
258
+ 0.012339200019836426,
259
+ 0.012369919776916503,
260
+ 0.012395520210266114,
261
+ 0.012308480262756348,
262
+ 0.012241920471191407,
263
+ 0.012290047645568849,
264
+ 0.012413951873779297,
265
+ 0.012288000106811523,
266
+ 0.012267519950866699,
267
+ 0.012333056449890138,
268
+ 0.012247039794921874,
269
+ 0.012304384231567383,
270
+ 0.01225113582611084,
271
+ 0.012290047645568849,
272
+ 0.012253184318542481,
273
+ 0.012295167922973632,
274
+ 0.012264448165893555,
275
+ 0.01229312038421631,
276
+ 0.01224396800994873,
277
+ 0.012322815895080566,
278
+ 0.012255231857299804,
279
+ 0.012301312446594239,
280
+ 0.012264448165893555,
281
+ 0.01234227180480957,
282
+ 0.012259327888488769,
283
+ 0.012306431770324706,
284
+ 0.012254207611083985,
285
+ 0.012295167922973632,
286
+ 0.012237824440002442,
287
+ 0.012283904075622559,
288
+ 0.012247039794921874,
289
+ 0.012291071891784668,
290
+ 0.012249088287353516,
291
+ 0.012285951614379884,
292
+ 0.012244992256164551,
293
+ 0.012283904075622559,
294
+ 0.012266495704650878,
295
+ 0.01232588768005371,
296
+ 0.01228492832183838,
297
+ 0.012296192169189453,
298
+ 0.012232704162597656,
299
+ 0.012290047645568849,
300
+ 0.012267519950866699,
301
+ 0.012286975860595703,
302
+ 0.01225011157989502,
303
+ 0.012292096138000488,
304
+ 0.012253184318542481,
305
+ 0.012311552047729492,
306
+ 0.026465280532836914,
307
+ 0.01224294376373291,
308
+ 0.012299263954162597,
309
+ 0.01226854419708252,
310
+ 0.012299263954162597,
311
+ 0.012248064041137695,
312
+ 0.012286975860595703,
313
+ 0.012257280349731446,
314
+ 0.012300288200378418,
315
+ 0.01225216007232666,
316
+ 0.012310527801513671,
317
+ 0.012263423919677734,
318
+ 0.012296192169189453,
319
+ 0.01225830364227295,
320
+ 0.012361727714538574,
321
+ 0.012266495704650878,
322
+ 0.012291071891784668,
323
+ 0.012249088287353516,
324
+ 0.012295167922973632,
325
+ 0.012264448165893555,
326
+ 0.012290047645568849,
327
+ 0.012237824440002442,
328
+ 0.012317695617675782,
329
+ 0.01225830364227295,
330
+ 0.012426239967346191,
331
+ 0.012270591735839843,
332
+ 0.012290047645568849,
333
+ 0.012253184318542481,
334
+ 0.012291071891784668,
335
+ 0.012247039794921874,
336
+ 0.012430335998535156,
337
+ 0.012238847732543945,
338
+ 0.012286975860595703,
339
+ 0.012247039794921874,
340
+ 0.012299263954162597,
341
+ 0.012253184318542481,
342
+ 0.01237606430053711,
343
+ 0.012278783798217773,
344
+ 0.012319744110107422,
345
+ 0.012262399673461915,
346
+ 0.012316672325134278,
347
+ 0.012375040054321289,
348
+ 0.012288000106811523,
349
+ 0.012233728408813477,
350
+ 0.012292096138000488,
351
+ 0.012262399673461915,
352
+ 0.012289024353027344,
353
+ 0.012237824440002442,
354
+ 0.012281855583190919,
355
+ 0.012257280349731446,
356
+ 0.012295167922973632,
357
+ 0.012241920471191407,
358
+ 0.012308480262756348,
359
+ 0.01226035213470459,
360
+ 0.012306431770324706,
361
+ 0.012254207611083985,
362
+ 0.012286016464233399,
363
+ 0.012244928359985351,
364
+ 0.012282879829406738,
365
+ 0.012259327888488769,
366
+ 0.012306431770324706,
367
+ 0.01224294376373291,
368
+ 0.012278783798217773,
369
+ 0.01224294376373291,
370
+ 0.01229312038421631,
371
+ 0.012313599586486817,
372
+ 0.012456959724426269,
373
+ 0.012250144004821778,
374
+ 0.012284895896911622,
375
+ 0.012239871978759765,
376
+ 0.012299263954162597,
377
+ 0.012246015548706055,
378
+ 0.012283904075622559,
379
+ 0.012244992256164551,
380
+ 0.012286975860595703,
381
+ 0.01242521572113037,
382
+ 0.01227673625946045,
383
+ 0.012247039794921874,
384
+ 0.01228492832183838,
385
+ 0.012255231857299804,
386
+ 0.012311552047729492,
387
+ 0.012283904075622559,
388
+ 0.01229312038421631,
389
+ 0.012301312446594239,
390
+ 0.012298239707946777,
391
+ 0.012249088287353516,
392
+ 0.012298239707946777,
393
+ 0.012239871978759765,
394
+ 0.012278783798217773,
395
+ 0.012249088287353516,
396
+ 0.012298239707946777,
397
+ 0.012266495704650878,
398
+ 0.012305407524108887,
399
+ 0.012391424179077149,
400
+ 0.012311552047729492,
401
+ 0.012259327888488769,
402
+ 0.012307456016540527,
403
+ 0.012248064041137695,
404
+ 0.01228492832183838,
405
+ 0.01224294376373291,
406
+ 0.012292096138000488,
407
+ 0.012349439620971679,
408
+ 0.012289024353027344,
409
+ 0.012237824440002442,
410
+ 0.012315648078918457,
411
+ 0.012272640228271485,
412
+ 0.012292096138000488,
413
+ 0.012244992256164551,
414
+ 0.012301312446594239,
415
+ 0.012262432098388672,
416
+ 0.012281824111938476,
417
+ 0.012354559898376465,
418
+ 0.012286975860595703,
419
+ 0.012249088287353516,
420
+ 0.012283904075622559,
421
+ 0.012257280349731446,
422
+ 0.012299263954162597,
423
+ 0.012254207611083985,
424
+ 0.012291071891784668,
425
+ 0.012332032203674317,
426
+ 0.012394495964050293,
427
+ 0.012248064041137695,
428
+ 0.012331007957458496,
429
+ 0.01225830364227295,
430
+ 0.012286975860595703,
431
+ 0.01224294376373291,
432
+ 0.012304384231567383
433
+ ]
434
+ },
435
+ "throughput": {
436
+ "unit": "tokens/s",
437
+ "value": 80.14360511366282
438
+ },
439
+ "energy": null,
440
+ "efficiency": null
441
+ }
442
+ }
443
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark.log ADDED
File without changes
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pytorch_generate",
3
+ "backend": {
4
+ "name": "pytorch",
5
+ "version": "2.3.0+cu121",
6
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
7
+ "task": "text-generation",
8
+ "library": "transformers",
9
+ "model": "google/gemma-2b",
10
+ "processor": "google/gemma-2b",
11
+ "device": "cuda",
12
+ "device_ids": "0",
13
+ "seed": 42,
14
+ "inter_op_num_threads": null,
15
+ "intra_op_num_threads": null,
16
+ "model_kwargs": {},
17
+ "processor_kwargs": {},
18
+ "hub_kwargs": {},
19
+ "no_weights": true,
20
+ "device_map": null,
21
+ "torch_dtype": "float16",
22
+ "eval_mode": true,
23
+ "to_bettertransformer": false,
24
+ "low_cpu_mem_usage": null,
25
+ "attn_implementation": null,
26
+ "cache_implementation": "static",
27
+ "autocast_enabled": false,
28
+ "autocast_dtype": null,
29
+ "torch_compile": true,
30
+ "torch_compile_target": "forward",
31
+ "torch_compile_config": {
32
+ "backend": "inductor",
33
+ "mode": "reduce-overhead",
34
+ "fullgraph": true
35
+ },
36
+ "quantization_scheme": null,
37
+ "quantization_config": {},
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 2,
47
+ "duration": 0,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 7
53
+ },
54
+ "new_tokens": null,
55
+ "latency": true,
56
+ "memory": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 128,
61
+ "min_new_tokens": 128,
62
+ "do_sample": false
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7R32",
75
+ "cpu_count": 16,
76
+ "cpu_ram_mb": 66697.29792,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29",
80
+ "processor": "x86_64",
81
+ "python_version": "3.8.10",
82
+ "gpu": [
83
+ "NVIDIA A10G"
84
+ ],
85
+ "gpu_count": 1,
86
+ "gpu_vram_mb": 24146608128,
87
+ "optimum_benchmark_version": "0.2.1",
88
+ "optimum_benchmark_commit": null,
89
+ "transformers_version": "4.42.0.dev0",
90
+ "transformers_commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
91
+ "accelerate_version": "0.32.0.dev0",
92
+ "accelerate_commit": null,
93
+ "diffusers_version": null,
94
+ "diffusers_commit": null,
95
+ "optimum_version": "1.21.0.dev0",
96
+ "optimum_commit": null,
97
+ "timm_version": "0.9.16",
98
+ "timm_commit": null,
99
+ "peft_version": "0.11.2.dev0",
100
+ "peft_commit": null
101
+ }
102
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/backend.cache_implementation=static,backend.model=google/gemma-2b,backend.torch_compile=True/benchmark_report.json ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prefill": {
3
+ "memory": {
4
+ "unit": "MB",
5
+ "max_ram": 1916.23168,
6
+ "max_global_vram": 6094.848,
7
+ "max_process_vram": 0.0,
8
+ "max_reserved": 5379.19488,
9
+ "max_allocated": 5021.251584
10
+ },
11
+ "latency": {
12
+ "unit": "s",
13
+ "count": 2,
14
+ "total": 0.028147264480590822,
15
+ "mean": 0.014073632240295411,
16
+ "stdev": 9.32159423828122e-05,
17
+ "p50": 0.014073632240295411,
18
+ "p90": 0.01414820499420166,
19
+ "p95": 0.014157526588439941,
20
+ "p99": 0.014164983863830567,
21
+ "values": [
22
+ 0.014166848182678222,
23
+ 0.013980416297912598
24
+ ]
25
+ },
26
+ "throughput": {
27
+ "unit": "tokens/s",
28
+ "value": 497.3840356548259
29
+ },
30
+ "energy": null,
31
+ "efficiency": null
32
+ },
33
+ "decode": {
34
+ "memory": {
35
+ "unit": "MB",
36
+ "max_ram": 2260.033536,
37
+ "max_global_vram": 8907.128832,
38
+ "max_process_vram": 0.0,
39
+ "max_reserved": 5379.19488,
40
+ "max_allocated": 5027.089408
41
+ },
42
+ "latency": {
43
+ "unit": "s",
44
+ "count": 2,
45
+ "total": 3.155854248046875,
46
+ "mean": 1.5779271240234376,
47
+ "stdev": 0.017416625976562572,
48
+ "p50": 1.5779271240234376,
49
+ "p90": 1.5918604248046875,
50
+ "p95": 1.5936020874023438,
51
+ "p99": 1.5949954174804688,
52
+ "values": [
53
+ 1.59534375,
54
+ 1.560510498046875
55
+ ]
56
+ },
57
+ "throughput": {
58
+ "unit": "tokens/s",
59
+ "value": 80.48533932047017
60
+ },
61
+ "energy": null,
62
+ "efficiency": null
63
+ },
64
+ "per_token": {
65
+ "memory": null,
66
+ "latency": {
67
+ "unit": "s",
68
+ "count": 253,
69
+ "total": 3.1568332824707035,
70
+ "mean": 0.012477601906998826,
71
+ "stdev": 0.0009068085318988774,
72
+ "p50": 0.012299263954162597,
73
+ "p90": 0.012770918655395508,
74
+ "p95": 0.012805324935913086,
75
+ "p99": 0.012877578544616698,
76
+ "values": [
77
+ 0.012729344367980957,
78
+ 0.012834815979003907,
79
+ 0.01284607982635498,
80
+ 0.012807168006896973,
81
+ 0.012774399757385254,
82
+ 0.012818431854248047,
83
+ 0.012710911750793457,
84
+ 0.012744704246520995,
85
+ 0.012709888458251953,
86
+ 0.012813311576843261,
87
+ 0.012720128059387208,
88
+ 0.012777471542358398,
89
+ 0.012700672149658204,
90
+ 0.01273855972290039,
91
+ 0.012728320121765137,
92
+ 0.012810239791870117,
93
+ 0.012732416152954102,
94
+ 0.012784640312194824,
95
+ 0.01284607982635498,
96
+ 0.01287168025970459,
97
+ 0.012772352218627929,
98
+ 0.012744799613952636,
99
+ 0.01271183967590332,
100
+ 0.012786687850952149,
101
+ 0.012732416152954102,
102
+ 0.01287168025970459,
103
+ 0.012798975944519043,
104
+ 0.012790783882141114,
105
+ 0.012734463691711426,
106
+ 0.012783616065979005,
107
+ 0.01296076774597168,
108
+ 0.01277952003479004,
109
+ 0.012727295875549317,
110
+ 0.01276518440246582,
111
+ 0.0127457275390625,
112
+ 0.01287168025970459,
113
+ 0.01266483211517334,
114
+ 0.012708864212036132,
115
+ 0.012707839965820313,
116
+ 0.012795904159545898,
117
+ 0.012706815719604492,
118
+ 0.012709888458251953,
119
+ 0.012685312271118163,
120
+ 0.012777471542358398,
121
+ 0.012761088371276855,
122
+ 0.012751935958862304,
123
+ 0.012743616104125976,
124
+ 0.01274675178527832,
125
+ 0.012683263778686523,
126
+ 0.012741632461547851,
127
+ 0.012722175598144531,
128
+ 0.012883968353271484,
129
+ 0.01266483211517334,
130
+ 0.012724224090576173,
131
+ 0.012704768180847169,
132
+ 0.012725248336791992,
133
+ 0.012713983535766601,
134
+ 0.01276416015625,
135
+ 0.012719103813171387,
136
+ 0.012761088371276855,
137
+ 0.012685312271118163,
138
+ 0.01275699234008789,
139
+ 0.012700672149658204,
140
+ 0.012777471542358398,
141
+ 0.012709888458251953,
142
+ 0.012750847816467285,
143
+ 0.012621824264526366,
144
+ 0.012619775772094726,
145
+ 0.012732416152954102,
146
+ 0.012804096221923827,
147
+ 0.01234227180480957,
148
+ 0.012379136085510254,
149
+ 0.012428288459777831,
150
+ 0.012517375946044922,
151
+ 0.012678144454956054,
152
+ 0.012603391647338867,
153
+ 0.012453920364379882,
154
+ 0.012335071563720703,
155
+ 0.012339200019836426,
156
+ 0.012369919776916503,
157
+ 0.012395520210266114,
158
+ 0.012308480262756348,
159
+ 0.012241920471191407,
160
+ 0.012290047645568849,
161
+ 0.012413951873779297,
162
+ 0.012288000106811523,
163
+ 0.012267519950866699,
164
+ 0.012333056449890138,
165
+ 0.012247039794921874,
166
+ 0.012304384231567383,
167
+ 0.01225113582611084,
168
+ 0.012290047645568849,
169
+ 0.012253184318542481,
170
+ 0.012295167922973632,
171
+ 0.012264448165893555,
172
+ 0.01229312038421631,
173
+ 0.01224396800994873,
174
+ 0.012322815895080566,
175
+ 0.012255231857299804,
176
+ 0.012301312446594239,
177
+ 0.012264448165893555,
178
+ 0.01234227180480957,
179
+ 0.012259327888488769,
180
+ 0.012306431770324706,
181
+ 0.012254207611083985,
182
+ 0.012295167922973632,
183
+ 0.012237824440002442,
184
+ 0.012283904075622559,
185
+ 0.012247039794921874,
186
+ 0.012291071891784668,
187
+ 0.012249088287353516,
188
+ 0.012285951614379884,
189
+ 0.012244992256164551,
190
+ 0.012283904075622559,
191
+ 0.012266495704650878,
192
+ 0.01232588768005371,
193
+ 0.01228492832183838,
194
+ 0.012296192169189453,
195
+ 0.012232704162597656,
196
+ 0.012290047645568849,
197
+ 0.012267519950866699,
198
+ 0.012286975860595703,
199
+ 0.01225011157989502,
200
+ 0.012292096138000488,
201
+ 0.012253184318542481,
202
+ 0.012311552047729492,
203
+ 0.026465280532836914,
204
+ 0.01224294376373291,
205
+ 0.012299263954162597,
206
+ 0.01226854419708252,
207
+ 0.012299263954162597,
208
+ 0.012248064041137695,
209
+ 0.012286975860595703,
210
+ 0.012257280349731446,
211
+ 0.012300288200378418,
212
+ 0.01225216007232666,
213
+ 0.012310527801513671,
214
+ 0.012263423919677734,
215
+ 0.012296192169189453,
216
+ 0.01225830364227295,
217
+ 0.012361727714538574,
218
+ 0.012266495704650878,
219
+ 0.012291071891784668,
220
+ 0.012249088287353516,
221
+ 0.012295167922973632,
222
+ 0.012264448165893555,
223
+ 0.012290047645568849,
224
+ 0.012237824440002442,
225
+ 0.012317695617675782,
226
+ 0.01225830364227295,
227
+ 0.012426239967346191,
228
+ 0.012270591735839843,
229
+ 0.012290047645568849,
230
+ 0.012253184318542481,
231
+ 0.012291071891784668,
232
+ 0.012247039794921874,
233
+ 0.012430335998535156,
234
+ 0.012238847732543945,
235
+ 0.012286975860595703,
236
+ 0.012247039794921874,
237
+ 0.012299263954162597,
238
+ 0.012253184318542481,
239
+ 0.01237606430053711,
240
+ 0.012278783798217773,
241
+ 0.012319744110107422,
242
+ 0.012262399673461915,
243
+ 0.012316672325134278,
244
+ 0.012375040054321289,
245
+ 0.012288000106811523,
246
+ 0.012233728408813477,
247
+ 0.012292096138000488,
248
+ 0.012262399673461915,
249
+ 0.012289024353027344,
250
+ 0.012237824440002442,
251
+ 0.012281855583190919,
252
+ 0.012257280349731446,
253
+ 0.012295167922973632,
254
+ 0.012241920471191407,
255
+ 0.012308480262756348,
256
+ 0.01226035213470459,
257
+ 0.012306431770324706,
258
+ 0.012254207611083985,
259
+ 0.012286016464233399,
260
+ 0.012244928359985351,
261
+ 0.012282879829406738,
262
+ 0.012259327888488769,
263
+ 0.012306431770324706,
264
+ 0.01224294376373291,
265
+ 0.012278783798217773,
266
+ 0.01224294376373291,
267
+ 0.01229312038421631,
268
+ 0.012313599586486817,
269
+ 0.012456959724426269,
270
+ 0.012250144004821778,
271
+ 0.012284895896911622,
272
+ 0.012239871978759765,
273
+ 0.012299263954162597,
274
+ 0.012246015548706055,
275
+ 0.012283904075622559,
276
+ 0.012244992256164551,
277
+ 0.012286975860595703,
278
+ 0.01242521572113037,
279
+ 0.01227673625946045,
280
+ 0.012247039794921874,
281
+ 0.01228492832183838,
282
+ 0.012255231857299804,
283
+ 0.012311552047729492,
284
+ 0.012283904075622559,
285
+ 0.01229312038421631,
286
+ 0.012301312446594239,
287
+ 0.012298239707946777,
288
+ 0.012249088287353516,
289
+ 0.012298239707946777,
290
+ 0.012239871978759765,
291
+ 0.012278783798217773,
292
+ 0.012249088287353516,
293
+ 0.012298239707946777,
294
+ 0.012266495704650878,
295
+ 0.012305407524108887,
296
+ 0.012391424179077149,
297
+ 0.012311552047729492,
298
+ 0.012259327888488769,
299
+ 0.012307456016540527,
300
+ 0.012248064041137695,
301
+ 0.01228492832183838,
302
+ 0.01224294376373291,
303
+ 0.012292096138000488,
304
+ 0.012349439620971679,
305
+ 0.012289024353027344,
306
+ 0.012237824440002442,
307
+ 0.012315648078918457,
308
+ 0.012272640228271485,
309
+ 0.012292096138000488,
310
+ 0.012244992256164551,
311
+ 0.012301312446594239,
312
+ 0.012262432098388672,
313
+ 0.012281824111938476,
314
+ 0.012354559898376465,
315
+ 0.012286975860595703,
316
+ 0.012249088287353516,
317
+ 0.012283904075622559,
318
+ 0.012257280349731446,
319
+ 0.012299263954162597,
320
+ 0.012254207611083985,
321
+ 0.012291071891784668,
322
+ 0.012332032203674317,
323
+ 0.012394495964050293,
324
+ 0.012248064041137695,
325
+ 0.012331007957458496,
326
+ 0.01225830364227295,
327
+ 0.012286975860595703,
328
+ 0.01224294376373291,
329
+ 0.012304384231567383
330
+ ]
331
+ },
332
+ "throughput": {
333
+ "unit": "tokens/s",
334
+ "value": 80.14360511366282
335
+ },
336
+ "energy": null,
337
+ "efficiency": null
338
+ }
339
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/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": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
4
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.014073632240295411,
7
+ "prefill.throughput.value": 497.3840356548259,
8
+ "decode.latency.mean": 1.5779271240234376,
9
+ "decode.throughput.value": 80.48533932047017,
10
+ "per_token.latency.mean": 0.012477601906998826,
11
+ "per_token.throughput.value": 80.14360511366282
12
+ }
13
+ }
2024-06-21/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/multirun.yaml ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: _benchmark/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${hydra.job.override_dirname}
4
+ sweep:
5
+ dir: _benchmark/tmp9j7jhr33/commit=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
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/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa
88
+ - hydra.run.dir=_benchmark/tmp9j7jhr33/commit\=12b1620e615592fbf099d4ec44af7b9f2d1b48aa/${hydra.job.override_dirname}
89
+ - hydra.mode=MULTIRUN
90
+ task:
91
+ - backend.model=google/gemma-2b
92
+ - backend.cache_implementation=null,static
93
+ - backend.torch_compile=false,true
94
+ job:
95
+ name: cli
96
+ chdir: true
97
+ override_dirname: backend.cache_implementation=null,static,backend.model=google/gemma-2b,backend.torch_compile=false,true
98
+ id: ???
99
+ num: ???
100
+ config_name: generation
101
+ env_set:
102
+ OVERRIDE_BENCHMARKS: '1'
103
+ LOG_LEVEL: WARN
104
+ env_copy: []
105
+ config:
106
+ override_dirname:
107
+ kv_sep: '='
108
+ item_sep: ','
109
+ exclude_keys: []
110
+ runtime:
111
+ version: 1.3.2
112
+ version_base: '1.3'
113
+ cwd: /transformers
114
+ config_sources:
115
+ - path: hydra.conf
116
+ schema: pkg
117
+ provider: hydra
118
+ - path: optimum_benchmark
119
+ schema: pkg
120
+ provider: main
121
+ - path: /transformers/benchmark/config
122
+ schema: file
123
+ provider: command-line
124
+ - path: ''
125
+ schema: structured
126
+ provider: schema
127
+ output_dir: ???
128
+ choices:
129
+ backend: pytorch
130
+ launcher: process
131
+ scenario: inference
132
+ hydra/env: default
133
+ hydra/callbacks: null
134
+ hydra/job_logging: disabled
135
+ hydra/hydra_logging: disabled
136
+ hydra/hydra_help: default
137
+ hydra/help: default
138
+ hydra/sweeper: basic
139
+ hydra/launcher: basic
140
+ hydra/output: default
141
+ verbose: false
142
+ name: pytorch_generate
143
+ backend:
144
+ name: pytorch
145
+ version: 2.3.0+cu121
146
+ _target_: optimum_benchmark.backends.pytorch.backend.PyTorchBackend
147
+ task: null
148
+ library: null
149
+ model: google/gemma-2b
150
+ processor: null
151
+ device: cuda
152
+ device_ids: '0'
153
+ seed: 42
154
+ inter_op_num_threads: null
155
+ intra_op_num_threads: null
156
+ model_kwargs: {}
157
+ processor_kwargs: {}
158
+ hub_kwargs: {}
159
+ no_weights: true
160
+ device_map: null
161
+ torch_dtype: float16
162
+ eval_mode: true
163
+ to_bettertransformer: false
164
+ low_cpu_mem_usage: null
165
+ attn_implementation: null
166
+ cache_implementation: static
167
+ autocast_enabled: false
168
+ autocast_dtype: null
169
+ torch_compile: true
170
+ torch_compile_target: forward
171
+ torch_compile_config:
172
+ backend: inductor
173
+ mode: reduce-overhead
174
+ fullgraph: true
175
+ quantization_scheme: null
176
+ quantization_config: {}
177
+ deepspeed_inference: false
178
+ deepspeed_inference_config: {}
179
+ peft_type: null
180
+ peft_config: {}
181
+ scenario:
182
+ name: inference
183
+ _target_: optimum_benchmark.scenarios.inference.scenario.InferenceScenario
184
+ iterations: 2
185
+ duration: 0
186
+ warmup_runs: 10
187
+ input_shapes:
188
+ batch_size: 1
189
+ sequence_length: 7
190
+ new_tokens: null
191
+ latency: true
192
+ memory: true
193
+ energy: false
194
+ forward_kwargs: {}
195
+ generate_kwargs:
196
+ max_new_tokens: 128
197
+ min_new_tokens: 128
198
+ do_sample: false
199
+ call_kwargs: {}
200
+ launcher:
201
+ name: process
202
+ _target_: optimum_benchmark.launchers.process.launcher.ProcessLauncher
203
+ device_isolation: true
204
+ device_isolation_action: warn
205
+ start_method: spawn
206
+ environment:
207
+ cpu: ' AMD EPYC 7R32'
208
+ cpu_count: 16
209
+ cpu_ram_mb: 66697.29792
210
+ system: Linux
211
+ machine: x86_64
212
+ platform: Linux-5.10.218-208.862.amzn2.x86_64-x86_64-with-glibc2.29
213
+ processor: x86_64
214
+ python_version: 3.8.10
215
+ gpu:
216
+ - NVIDIA A10G
217
+ gpu_count: 1
218
+ gpu_vram_mb: 24146608128
219
+ optimum_benchmark_version: 0.2.1
220
+ optimum_benchmark_commit: null
221
+ transformers_version: 4.42.0.dev0
222
+ transformers_commit: 12b1620e615592fbf099d4ec44af7b9f2d1b48aa
223
+ accelerate_version: 0.32.0.dev0
224
+ accelerate_commit: null
225
+ diffusers_version: null
226
+ diffusers_commit: null
227
+ optimum_version: 1.21.0.dev0
228
+ optimum_commit: null
229
+ timm_version: 0.9.16
230
+ timm_commit: null
231
+ peft_version: 0.11.2.dev0
232
+ peft_commit: null
2024-06-21/summaries.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model": "google/gemma-2b",
4
+ "commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
5
+ "config": "backend.cache_implementation=null,backend.torch_compile=False",
6
+ "metrics": {
7
+ "prefill.latency.mean": 0.023324336051940918,
8
+ "prefill.throughput.value": 300.1157239550877,
9
+ "decode.latency.mean": 2.48988330078125,
10
+ "decode.throughput.value": 51.006406589478004,
11
+ "per_token.latency.mean": 0.01968374486779978,
12
+ "per_token.throughput.value": 50.80334086405879
13
+ }
14
+ },
15
+ {
16
+ "model": "google/gemma-2b",
17
+ "commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
18
+ "config": "backend.cache_implementation=static,backend.torch_compile=False",
19
+ "metrics": {
20
+ "prefill.latency.mean": 0.022455888748168944,
21
+ "prefill.throughput.value": 311.7222425930829,
22
+ "decode.latency.mean": 2.5843046875,
23
+ "decode.throughput.value": 49.14281222886959,
24
+ "per_token.latency.mean": 0.020432989150639107,
25
+ "per_token.throughput.value": 48.9404654711874
26
+ }
27
+ },
28
+ {
29
+ "model": "google/gemma-2b",
30
+ "commit": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
31
+ "config": "backend.cache_implementation=static,backend.torch_compile=True",
32
+ "metrics": {
33
+ "prefill.latency.mean": 0.014073632240295411,
34
+ "prefill.throughput.value": 497.3840356548259,
35
+ "decode.latency.mean": 1.5779271240234376,
36
+ "decode.throughput.value": 80.48533932047017,
37
+ "per_token.latency.mean": 0.012477601906998826,
38
+ "per_token.throughput.value": 80.14360511366282
39
+ }
40
+ }
41
+ ]
2024-06-21/summary.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "google/gemma-2b": {
3
+ "backend.cache_implementation=null,backend.torch_compile=False": {
4
+ "12b1620e615592fbf099d4ec44af7b9f2d1b48aa": {
5
+ "metrics": {
6
+ "prefill.latency.mean": 0.023324336051940918,
7
+ "prefill.throughput.value": 300.1157239550877,
8
+ "decode.latency.mean": 2.48988330078125,
9
+ "decode.throughput.value": 51.006406589478004,
10
+ "per_token.latency.mean": 0.01968374486779978,
11
+ "per_token.throughput.value": 50.80334086405879
12
+ }
13
+ }
14
+ },
15
+ "backend.cache_implementation=static,backend.torch_compile=False": {
16
+ "12b1620e615592fbf099d4ec44af7b9f2d1b48aa": {
17
+ "metrics": {
18
+ "prefill.latency.mean": 0.022455888748168944,
19
+ "prefill.throughput.value": 311.7222425930829,
20
+ "decode.latency.mean": 2.5843046875,
21
+ "decode.throughput.value": 49.14281222886959,
22
+ "per_token.latency.mean": 0.020432989150639107,
23
+ "per_token.throughput.value": 48.9404654711874
24
+ }
25
+ }
26
+ },
27
+ "backend.cache_implementation=static,backend.torch_compile=True": {
28
+ "12b1620e615592fbf099d4ec44af7b9f2d1b48aa": {
29
+ "metrics": {
30
+ "prefill.latency.mean": 0.014073632240295411,
31
+ "prefill.throughput.value": 497.3840356548259,
32
+ "decode.latency.mean": 1.5779271240234376,
33
+ "decode.throughput.value": 80.48533932047017,
34
+ "per_token.latency.mean": 0.012477601906998826,
35
+ "per_token.throughput.value": 80.14360511366282
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }