{ "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.767104, "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.4.0", "optimum_benchmark_commit": "49771cb6395d934ebff3a2ed2c7dc1d9c4b28359", "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.889664, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.620946073000027, "mean": 4.620946073000027, "stdev": 0.0, "p50": 4.620946073000027, "p90": 4.620946073000027, "p95": 4.620946073000027, "p99": 4.620946073000027, "values": [ 4.620946073000027 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.57689674833326e-05, "ram": 2.7505308064523977e-06, "gpu": 0, "total": 6.851949828978499e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 970.006528, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6370985749998681, "mean": 0.04550704107141915, "stdev": 0.0018927459692914877, "p50": 0.045806922999986455, "p90": 0.047100320299978196, "p95": 0.04725110999997924, "p99": 0.04733710759997848, "values": [ 0.04502379699999892, 0.04735860699997829, 0.04688353799997458, 0.04456305400003657, 0.04719322699997974, 0.046687960999975076, 0.04485380799997074, 0.04509991899999477, 0.046108868000033, 0.04566519799999469, 0.04667706100002533, 0.04594864799997822, 0.04560373199996093, 0.03943115699996724 ] }, "throughput": { "unit": "tokens/s", "value": 43.94924286246566 }, "energy": { "unit": "kWh", "cpu": 1.5710198839999648e-06, "ram": 6.569076706234036e-08, "gpu": 0.0, "total": 1.6367106510623051e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1221963.0871845933 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.006528, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3946756090000463, "mean": 0.028191114928574734, "stdev": 0.0015413323632763262, "p50": 0.02871359850001909, "p90": 0.02927736040001605, "p95": 0.02944049410002094, "p99": 0.029672968420017015, "values": [ 0.029731087000016032, 0.029214301000024534, 0.02893654100000731, 0.028416566999965198, 0.02919697800001586, 0.029284021000023586, 0.02807913499998449, 0.02871264200001633, 0.028290590999972665, 0.0274412709999865, 0.029261818999998468, 0.028714555000021846, 0.02511558700001615, 0.02428051399999731 ] }, "throughput": { "unit": "tokens/s", "value": 35.47216924671511 }, "energy": { "unit": "kWh", "cpu": 9.212544722500128e-07, "ram": 3.852498416420598e-08, "gpu": 0.0, "total": 9.597794564142198e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1041906.0267616542 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.38850024900011704, "mean": 0.027750017785722645, "stdev": 0.001483637883148445, "p50": 0.0282621735000248, "p90": 0.028771784099996013, "p95": 0.028941763500003503, "p99": 0.02918641830003196, "values": [ 0.029247582000039074, 0.028759399000023222, 0.028511535000006916, 0.027950814999996965, 0.028720276000001377, 0.028749360000006163, 0.027660571000012624, 0.028270915000007335, 0.027781898999990062, 0.027035340999987056, 0.02877709199998435, 0.028253432000042267, 0.024796890999994048, 0.023985141000025578 ] }, "throughput": { "unit": "tokens/s", "value": 36.03601293958445 }, "energy": null, "efficiency": null } } }