{ "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_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.346304, "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": "ba7db8be4ae5965d5e6183075f0edd30672dab7b", "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": { "load": { "memory": { "unit": "MB", "max_ram": 1105.907712, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.828384176000014, "mean": 4.828384176000014, "stdev": 0.0, "p50": 4.828384176000014, "p90": 4.828384176000014, "p95": 4.828384176000014, "p99": 4.828384176000014, "values": [ 4.828384176000014 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.906812323464289e-05, "ram": 2.8868256306193035e-06, "gpu": 0, "total": 7.19549488652622e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 959.115264, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6450821170000154, "mean": 0.04607729407142967, "stdev": 0.0016765819274539608, "p50": 0.04679848749999849, "p90": 0.047243375500008254, "p95": 0.047514098350004016, "p99": 0.047831600469998535, "values": [ 0.04616728100000955, 0.04791097599999716, 0.046325625000008586, 0.045003436000001784, 0.0468583090000152, 0.04700736800000982, 0.04686742699999513, 0.04730039500000771, 0.04673866599998178, 0.047110330000009526, 0.047072118999977874, 0.04594711800001505, 0.04322847099999194, 0.04154459599999427 ] }, "throughput": { "unit": "tokens/s", "value": 43.40532664308741 }, "energy": { "unit": "kWh", "cpu": 1.5813750161064998e-06, "ram": 6.608878372508873e-08, "gpu": 0.0, "total": 1.6474637998315885e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1213987.2209662206 } }, "decode": { "memory": { "unit": "MB", "max_ram": 960.032768, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.39904321299997036, "mean": 0.028503086642855027, "stdev": 0.0014589327432799524, "p50": 0.029063882999992074, "p90": 0.02972551059999944, "p95": 0.029843324750002863, "p99": 0.029844606549999923, "values": [ 0.029280392000003985, 0.02892587100001265, 0.028415107000000717, 0.029100485999975945, 0.029149818999997024, 0.029452623999986827, 0.02984492699999919, 0.029202416999993375, 0.028546521999999186, 0.02791046400000141, 0.029027280000008204, 0.029842462000004844, 0.025637859999989132, 0.02470698199999788 ] }, "throughput": { "unit": "tokens/s", "value": 35.083919595447526 }, "energy": { "unit": "kWh", "cpu": 9.600913723309832e-07, "ram": 4.012165362526714e-08, "gpu": 0.0, "total": 1.000213025956251e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 999787.019414142 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.39254265200000305, "mean": 0.028038760857143075, "stdev": 0.0014169013176732286, "p50": 0.028589932499997417, "p90": 0.029243011000011167, "p95": 0.02939295715000867, "p99": 0.029448529029997415, "values": [ 0.02876651200000424, 0.02845630400000232, 0.027922326000009434, 0.028627281999973775, 0.028632642999980362, 0.028980412999999317, 0.029355553000016243, 0.02864520700001094, 0.02807323800001882, 0.027398758999993333, 0.02855258300002106, 0.029462421999994604, 0.025318422999987433, 0.024350986999991164 ] }, "throughput": { "unit": "tokens/s", "value": 35.66491419128613 }, "energy": null, "efficiency": null } } }