{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "model_type": "gpt2", "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": {}, "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, "memory": true, "latency": 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": null, "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16766.7712, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0", "optimum_benchmark_commit": "561decaa572e5fab6badddc5ef8584951503575b", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1115.836416, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.945667348000001, "mean": 4.945667348000001, "stdev": 0.0, "p50": 4.945667348000001, "p90": 4.945667348000001, "p95": 4.945667348000001, "p99": 4.945667348000001, "values": [ 4.945667348000001 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.794245861666706e-05, "ram": 2.8414224786072634e-06, "gpu": 0, "total": 7.078388109527433e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.428992, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6409762829999295, "mean": 0.0493058679230715, "stdev": 0.0022054642349399693, "p50": 0.04960502599999472, "p90": 0.05138205139998035, "p95": 0.05189101679997066, "p99": 0.052382837759967056, "values": [ 0.05011516600001187, 0.04928863099996761, 0.04960502599999472, 0.050257542999986526, 0.05250579299996616, 0.051481165999973655, 0.04970324100003154, 0.04854173499995795, 0.04910451500001045, 0.04848658200000955, 0.05098559300000716, 0.04796167500001047, 0.04293961700000182 ] }, "throughput": { "unit": "tokens/s", "value": 40.56312330046518 }, "energy": { "unit": "kWh", "cpu": 1.7489675608695426e-06, "ram": 7.313114618401745e-08, "gpu": 0.0, "total": 1.82209870705356e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1097635.3763151048 } }, "decode": { "memory": { "unit": "MB", "max_ram": 969.95328, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.39721794100000807, "mean": 0.030555226230769852, "stdev": 0.002070783405453276, "p50": 0.03056852500003515, "p90": 0.0328605862000245, "p95": 0.03363332000000128, "p99": 0.03429001999997354, "values": [ 0.03163053299999774, 0.03308607000002439, 0.0344541949999666, 0.03195865100002493, 0.030321541000034813, 0.03051147700000456, 0.03126604699997415, 0.03056852500003515, 0.03096771599996373, 0.029749724999987848, 0.02659462999997686, 0.027206630000023324, 0.028902200999993966 ] }, "throughput": { "unit": "tokens/s", "value": 32.72762546241519 }, "energy": { "unit": "kWh", "cpu": 1.0587673224638236e-06, "ram": 4.427122066465941e-08, "gpu": 0.0, "total": 1.1030385431284826e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 906586.6340116814 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.39086805100004085, "mean": 0.030066773153849296, "stdev": 0.002026024013632776, "p50": 0.030053334999990966, "p90": 0.03233986500002857, "p95": 0.03312533240002722, "p99": 0.0337979832800147, "values": [ 0.031070929999998498, 0.03256479000003765, 0.03396614600001158, 0.03144016499999225, 0.029786384000033195, 0.030053334999990966, 0.03077760799999396, 0.03003374900004019, 0.030421276999959446, 0.029235667000023113, 0.026257544999964466, 0.02684377799999993, 0.028416676999995616 ] }, "throughput": { "unit": "tokens/s", "value": 33.25930570876626 }, "energy": null, "efficiency": null } } }