{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.342208, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "99845de916385ea3b9e57b06388cfee4e07996cb", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "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": 1120.792576, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.067647998000041, "mean": 5.067647998000041, "stdev": 0.0, "p50": 5.067647998000041, "p90": 5.067647998000041, "p95": 5.067647998000041, "p99": 5.067647998000041, "values": [ 5.067647998000041 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.999538427777737e-05, "ram": 2.9256301775570826e-06, "gpu": 0, "total": 7.292101445533446e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.389248, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6252878259999761, "mean": 0.048099063538459705, "stdev": 0.002618997007797921, "p50": 0.0486045349999813, "p90": 0.05120245699999941, "p95": 0.05169629079999822, "p99": 0.052227462159996775, "values": [ 0.048886150000043926, 0.050467507999997, 0.050997692999999344, 0.04969078400000626, 0.052360254999996414, 0.05125364799999943, 0.0486045349999813, 0.046646506000001864, 0.04565584499999886, 0.04449154099995667, 0.04479966299999205, 0.04532303700000284, 0.046110661000000164 ] }, "throughput": { "unit": "tokens/s", "value": 41.580851119914485 }, "energy": { "unit": "kWh", "cpu": 1.76097925144924e-06, "ram": 7.359392237541395e-08, "gpu": 0.0, "total": 1.8345731738246539e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1090171.833173855 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.17568, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.38190881700006685, "mean": 0.02937760130769745, "stdev": 0.0023295347126088954, "p50": 0.030013241999995444, "p90": 0.0314884110000321, "p95": 0.032477805000041826, "p99": 0.033641824200037716, "values": [ 0.03141089899997951, 0.03089218500002744, 0.030013241999995444, 0.03010571400000117, 0.03150778900004525, 0.03393282900003669, 0.031052283000008174, 0.02629799699997193, 0.028982326000004832, 0.027021972000000005, 0.026477800999998635, 0.027875789000006534, 0.026337990999991234 ] }, "throughput": { "unit": "tokens/s", "value": 34.03953881483109 }, "energy": { "unit": "kWh", "cpu": 1.042380167995083e-06, "ram": 4.356131201884206e-08, "gpu": 0.0, "total": 1.0859414800139252e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 920859.9343559258 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.3756401680000181, "mean": 0.02889539753846293, "stdev": 0.0022657493214164673, "p50": 0.029493956999999682, "p90": 0.030942051800002444, "p95": 0.03193954100000837, "p99": 0.03311512100000755, "values": [ 0.030870694999975967, 0.03032083400000829, 0.029493956999999682, 0.029555190999985825, 0.030959891000009065, 0.03340901600000734, 0.030490919999976995, 0.025917810000009922, 0.028578926000022875, 0.026634853000018666, 0.026093806999995195, 0.027322120000008, 0.02599214800000027 ] }, "throughput": { "unit": "tokens/s", "value": 34.60758754638661 }, "energy": null, "efficiency": null } } }