{ "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.4.0", "optimum_benchmark_commit": "48c7a5c5ecfb9d600879956361b0bce30aa19302", "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.766784, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.811091922000003, "mean": 4.811091922000003, "stdev": 0.0, "p50": 4.811091922000003, "p90": 4.811091922000003, "p95": 4.811091922000003, "p99": 4.811091922000003, "values": [ 4.811091922000003 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.718858708333452e-05, "ram": 2.8098954743612946e-06, "gpu": 0, "total": 6.999848255769582e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.35936, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6431191959999865, "mean": 0.04593708542857046, "stdev": 0.0013436117103124273, "p50": 0.046336346000003914, "p90": 0.04728672699998811, "p95": 0.047471184150001025, "p99": 0.047613856030006334, "values": [ 0.0449592439999833, 0.0470803949999663, 0.04695428999997375, 0.04546247400003267, 0.04737515499999745, 0.04637446699996417, 0.045759879999991426, 0.04674710199998344, 0.04629822500004366, 0.04643438900001229, 0.04764952400000766, 0.04570156599999109, 0.043278867000026366, 0.043043618000012884 ] }, "throughput": { "unit": "tokens/s", "value": 43.53780788095243 }, "energy": { "unit": "kWh", "cpu": 1.550540474358985e-06, "ram": 6.48355168967442e-08, "gpu": 0.0, "total": 1.6153759912557293e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1238101.848007088 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.01472, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.39559977900006515, "mean": 0.028257127071433224, "stdev": 0.0015257886990836292, "p50": 0.0288383800000247, "p90": 0.029215481599999295, "p95": 0.029350579900003025, "p99": 0.02951580158001377, "values": [ 0.029557107000016458, 0.028773053000008986, 0.02915973500000746, 0.028941015999976116, 0.028857541000036235, 0.028819219000013163, 0.028882316000022, 0.02904106400001183, 0.02876532799996312, 0.029239372999995794, 0.028626121999991483, 0.027582144000007247, 0.024334956000018337, 0.025020804999996926 ] }, "throughput": { "unit": "tokens/s", "value": 35.3893018731886 }, "energy": { "unit": "kWh", "cpu": 9.355379145298895e-07, "ram": 3.912259569457517e-08, "gpu": 0.0, "total": 9.746605102244646e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1025998.2727418593 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.389151916000003, "mean": 0.027796565428571642, "stdev": 0.001463962932070428, "p50": 0.028341557499999226, "p90": 0.028704190099983862, "p95": 0.028826806249978177, "p99": 0.0289868388500048, "values": [ 0.029026847000011458, 0.02826807000002418, 0.028669419000038943, 0.028448987999979636, 0.028360292999991543, 0.02832282200000691, 0.028412629999991168, 0.028563631999986683, 0.028300080000008165, 0.028719091999960256, 0.028137591000017892, 0.02721948800001428, 0.024014267999973526, 0.024688695999998345 ] }, "throughput": { "unit": "tokens/s", "value": 35.97566766188013 }, "energy": null, "efficiency": null } } }