{ "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": "11fc1578907ddfc66a9a7fb8f19815e001677ad1", "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": "1.22.0", "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1123.565568, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 4.8573465760000545 ], "count": 1, "total": 4.8573465760000545, "mean": 4.8573465760000545, "p50": 4.8573465760000545, "p90": 4.8573465760000545, "p95": 4.8573465760000545, "p99": 4.8573465760000545, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.719798400000154e-05, "ram": 2.8102931709536304e-06, "gpu": 0, "total": 7.000827717095517e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 977.682432, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04630481799995323, 0.0470446260000017, 0.04603730700000597, 0.046565658000019994, 0.0455081049999535, 0.046259904999999435, 0.04572195599996576, 0.045591602000001785, 0.04389122499998166, 0.04136033000003181, 0.041230656999971416, 0.04081635099998948, 0.0408525380000242, 0.041183838999984346 ], "count": 14, "total": 0.6183689169998843, "mean": 0.044169208357134594, "p50": 0.045549853499977644, "p90": 0.04648740599999997, "p95": 0.04673329680001359, "p99": 0.04698236016000408, "stdev": 0.002396665027435716, "stdev_": 5.426099123301552 }, "throughput": { "unit": "tokens/s", "value": 45.28041308390221 }, "energy": { "unit": "kWh", "cpu": 1.5957989506667272e-06, "ram": 6.672429846512299e-08, "gpu": 0.0, "total": 1.6625232491318501e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1202990.6956455354 } }, "decode": { "memory": { "unit": "MB", "max_ram": 977.682432, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.029135696000025746, 0.029277450999984467, 0.02968723899999759, 0.02938342999999577, 0.028686463000042295, 0.0294013330000098, 0.029345559000034882, 0.02893657199996369, 0.02552264199999854, 0.02556433099999822, 0.025453203000040503, 0.02569494599998734, 0.025918395000019245, 0.02544346500002348 ], "count": 14, "total": 0.38745072500012157, "mean": 0.02767505178572297, "p50": 0.028811517500002992, "p90": 0.029395962100005592, "p95": 0.029501400100005525, "p99": 0.029650071219999175, "stdev": 0.0018139323712620579, "stdev_": 6.554395580924734 }, "throughput": { "unit": "tokens/s", "value": 36.13362705669375 }, "energy": { "unit": "kWh", "cpu": 9.868924708610581e-07, "ram": 4.127408869451202e-08, "gpu": 0.0, "total": 1.0281665595555707e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 972605.0616081641 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.028589371999999003, 0.02876865700000053, 0.029132219000018722, 0.02884325700000545, 0.02818535400001565, 0.028846983999983422, 0.028822267999998985, 0.02845798499998864, 0.025190460000033, 0.025235834999989493, 0.02514237000002595, 0.02538224900001751, 0.025580941999976403, 0.02513525700004493 ], "count": 14, "total": 0.3813132090000977, "mean": 0.027236657785721263, "p50": 0.028321669500002145, "p90": 0.028845865899990032, "p95": 0.028946816249995778, "p99": 0.029095138450014133, "stdev": 0.0017117767738086351, "stdev_": 6.284826821542065 }, "throughput": { "unit": "tokens/s", "value": 36.715224307890196 }, "energy": null, "efficiency": null } } }