{ "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.338112, "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": "ab5cca637c4d04c05b877ae9d59a826198357fda", "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1120.93184, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.87045429799997, "mean": 4.87045429799997, "stdev": 0.0, "p50": 4.87045429799997, "p90": 4.87045429799997, "p95": 4.87045429799997, "p99": 4.87045429799997, "values": [ 4.87045429799997 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.84422963777782e-05, "ram": 2.860713319479246e-06, "gpu": 0, "total": 7.130300969725745e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.159872, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6571860480000282, "mean": 0.046941860571430585, "stdev": 0.001588383206316345, "p50": 0.047600879000015084, "p90": 0.047995825799972636, "p95": 0.0481494536999719, "p99": 0.04834809473999144, "values": [ 0.0456446210000081, 0.047802033000039046, 0.047712647000025754, 0.04600906100000657, 0.047949329000005037, 0.046968289000005825, 0.04801575299995875, 0.047937677000049916, 0.04839775499999632, 0.047489111000004414, 0.04617210399999294, 0.04790282199996909, 0.047171096999989004, 0.04201374899997745 ] }, "throughput": { "unit": "tokens/s", "value": 42.60589537043671 }, "energy": { "unit": "kWh", "cpu": 1.6353653555555599e-06, "ram": 6.834375762998933e-08, "gpu": 0.0, "total": 1.7037091131855491e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1173909.3161628128 } }, "decode": { "memory": { "unit": "MB", "max_ram": 974.946304, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.4052942099999086, "mean": 0.0289495864285649, "stdev": 0.0013177304663659795, "p50": 0.029447570000002088, "p90": 0.030116214799983256, "p95": 0.030146730249987284, "p99": 0.03018126604998315, "values": [ 0.03012348499999007, 0.030189899999982117, 0.028858295999953043, 0.029646936999995432, 0.029486587999997482, 0.029579431000001932, 0.028450215000020762, 0.030099250999967353, 0.029408552000006694, 0.028540482999972028, 0.02912196799996991, 0.029711888000008457, 0.026632806000009168, 0.025444410000034168 ] }, "throughput": { "unit": "tokens/s", "value": 34.542807803751145 }, "energy": { "unit": "kWh", "cpu": 9.660918996296118e-07, "ram": 4.037454082178552e-08, "gpu": 0.0, "total": 1.006466440451398e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 993575.1057447103 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.39839779999988423, "mean": 0.028456985714277443, "stdev": 0.0012742721547999328, "p50": 0.02894309449999355, "p90": 0.02959845419998146, "p95": 0.02963997499997504, "p99": 0.029678558999960386, "values": [ 0.0296140049999849, 0.029688204999956724, 0.028367390999960662, 0.029100326999980553, 0.028971107000018037, 0.02903789100002996, 0.027932940000027884, 0.029562168999973437, 0.02891508199996906, 0.028052753999986635, 0.02861640499997975, 0.029219339999997374, 0.02626563100000112, 0.02505455300001813 ] }, "throughput": { "unit": "tokens/s", "value": 35.14075629936729 }, "energy": null, "efficiency": null } } }