{ "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.5.0", "optimum_benchmark_commit": "9a4762e599f7bc3e4d476e246e8a5ba803715a46", "transformers_version": "4.45.0", "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": 1109.336064, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 1.7224747759999843, "mean": 1.7224747759999843, "stdev": 0.0, "p50": 1.7224747759999843, "p90": 1.7224747759999843, "p95": 1.7224747759999843, "p99": 1.7224747759999843, "values": [ 1.7224747759999843 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.694821451111056e-05, "ram": 2.7998327788540065e-06, "gpu": 0, "total": 6.974804728996457e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.846144, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6301028280000196, "mean": 0.04200685520000131, "stdev": 0.0007578818118141935, "p50": 0.0421062670000083, "p90": 0.04288687200000822, "p95": 0.04327898890000199, "p99": 0.043682537779989726, "values": [ 0.04217763099998706, 0.043783424999986664, 0.04187041500000532, 0.04119896400001721, 0.042252732000008564, 0.0421062670000083, 0.041726304000007985, 0.04164093399998592, 0.04262297700000772, 0.04227696800001013, 0.04212507299999402, 0.04155326899999068, 0.04306280200000856, 0.040743138000010504, 0.04096192899999096 ] }, "throughput": { "unit": "tokens/s", "value": 47.611276551831416 }, "energy": { "unit": "kWh", "cpu": 1.5965657275555274e-06, "ram": 6.675974997050336e-08, "gpu": 0.0, "total": 1.663325477526031e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1202410.488520098 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.108288, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.38861086800000066, "mean": 0.025907391200000043, "stdev": 0.000717943479200093, "p50": 0.025857026000011274, "p90": 0.02689833040000167, "p95": 0.0274539615000009, "p99": 0.027556836300007603, "values": [ 0.02739884999999731, 0.02610302799999431, 0.02614234099999635, 0.025542185000006157, 0.026147551000008207, 0.02552007299999559, 0.025563915999981646, 0.025967092000001912, 0.025857026000011274, 0.02586262599999145, 0.02547981800000798, 0.02758255500000928, 0.02545761700000071, 0.02519730800000275, 0.024788881999995738 ] }, "throughput": { "unit": "tokens/s", "value": 38.59902343235541 }, "energy": { "unit": "kWh", "cpu": 9.615782130694926e-07, "ram": 4.0211501969040876e-08, "gpu": 0.0, "total": 1.0017897150385336e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 998213.4823190266 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3830073799999525, "mean": 0.025533825333330165, "stdev": 0.0006690259605962375, "p50": 0.025478655999989996, "p90": 0.02644303160000163, "p95": 0.02694112360001668, "p99": 0.02706069032002574, "values": [ 0.026877070000011827, 0.025760404999999764, 0.02578116299997646, 0.02514367699998843, 0.02579197399998634, 0.02517522599998756, 0.025231140999977697, 0.02560123599999997, 0.025478655999989996, 0.025491269000013972, 0.025151050999994595, 0.027090582000028007, 0.025111065999993798, 0.024858631999990166, 0.024464232000013908 ] }, "throughput": { "unit": "tokens/s", "value": 39.16373621835136 }, "energy": null, "efficiency": null } } }