{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "model": "openai-community/gpt2", "processor": "openai-community/gpt2", "device": "cpu", "device_ids": null, "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "model_kwargs": {}, "processor_kwargs": {}, "hub_kwargs": {}, "no_weights": true, "device_map": null, "torch_dtype": null, "eval_mode": true, "to_bettertransformer": false, "low_cpu_mem_usage": null, "attn_implementation": null, "cache_implementation": null, "autocast_enabled": false, "autocast_dtype": null, "torch_compile": false, "torch_compile_target": "forward", "torch_compile_config": {}, "quantization_scheme": null, "quantization_config": {}, "deepspeed_inference": false, "deepspeed_inference_config": {}, "peft_type": null, "peft_config": {} }, "scenario": { "name": "inference", "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", "iterations": 1, "duration": 1, "warmup_runs": 1, "input_shapes": { "batch_size": 1, "num_choices": 2, "sequence_length": 2 }, "new_tokens": null, "latency": true, "memory": true, "energy": true, "forward_kwargs": {}, "generate_kwargs": { "max_new_tokens": 2, "min_new_tokens": 2 }, "call_kwargs": { "num_inference_steps": 2 } }, "launcher": { "name": "process", "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", "device_isolation": false, "device_isolation_action": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.338112, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "c31e63ddb94c29460ba90ff599147e94ff80543a", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 961.76128, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.658391876999957, "mean": 0.04389279179999714, "stdev": 0.003143103223363988, "p50": 0.046014401000007865, "p90": 0.0468165909999982, "p95": 0.047008504299998324, "p99": 0.04702359685999568, "values": [ 0.046014401000007865, 0.04654084899999589, 0.04700041899999974, 0.04616212700000233, 0.046489452000002984, 0.04702736999999502, 0.046293854999987616, 0.046441020000003164, 0.045928158999998914, 0.0400730220000014, 0.03958767199998192, 0.041238015999994104, 0.03968561499999623, 0.04002645399998528, 0.039883446000004596 ] }, "throughput": { "unit": "tokens/s", "value": 45.56556823984321 }, "energy": { "unit": "kWh", "cpu": 1.5671390427483453e-06, "ram": 6.549279102751674e-08, "gpu": 0.0, "total": 1.632631833775862e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1225015.927427134 } }, "decode": { "memory": { "unit": "MB", "max_ram": 961.76128, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.4034822600000325, "mean": 0.0268988173333355, "stdev": 0.002157618476705122, "p50": 0.02838440700000433, "p90": 0.029005317200000037, "p95": 0.029413272400000776, "p99": 0.029847836880002206, "values": [ 0.02838440700000433, 0.029956478000002562, 0.028708824999995386, 0.028650846999994428, 0.028693436999986943, 0.02874258800000007, 0.029180470000000014, 0.02866504300001793, 0.025008507999984886, 0.024309396999996125, 0.025252976000018634, 0.02449262000001795, 0.02511789299998668, 0.02404868800002191, 0.02427008300000466 ] }, "throughput": { "unit": "tokens/s", "value": 37.17635565935115 }, "energy": { "unit": "kWh", "cpu": 9.477513730525971e-07, "ram": 3.961036716685909e-08, "gpu": 0.0, "total": 9.873617402194565e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1012800.0298834088 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3974515710000901, "mean": 0.026496771400006006, "stdev": 0.002072399511716262, "p50": 0.0279198860000065, "p90": 0.02853342440001825, "p95": 0.028929358400014846, "p99": 0.02934266528000819, "values": [ 0.0279198860000065, 0.029445992000006527, 0.028212404000015567, 0.028183249999983673, 0.028212765000006357, 0.028271645000017998, 0.028707944000018415, 0.028176397000009956, 0.02469757500000469, 0.024024902999997266, 0.024929678999995986, 0.024184462000022222, 0.024779147999993256, 0.023740991000011036, 0.02396453000000065 ] }, "throughput": { "unit": "tokens/s", "value": 37.74044712480605 }, "energy": null, "efficiency": null } } }