{ "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": "a3e25e2e7229ba1e55a72075d7d45c46907c5f56", "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.697152, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.802287253000003, "mean": 4.802287253000003, "stdev": 0.0, "p50": 4.802287253000003, "p90": 4.802287253000003, "p95": 4.802287253000003, "p99": 4.802287253000003, "values": [ 4.802287253000003 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.749137395000086e-05, "ram": 2.8225549856251196e-06, "gpu": 0, "total": 7.031392893562597e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.814016, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6364286820000302, "mean": 0.04242857880000202, "stdev": 0.002242987733602022, "p50": 0.04168775700000538, "p90": 0.044884113800003435, "p95": 0.04619033140000397, "p99": 0.04862361428001918, "values": [ 0.04168775700000538, 0.042152649999991354, 0.041692957999998725, 0.041357156999993094, 0.04192268799999965, 0.0430436400000076, 0.04136708600000816, 0.04488678699999582, 0.049231935000022986, 0.041326870999995435, 0.040999778000013976, 0.04488010400001485, 0.04077980499999967, 0.040643678999998656, 0.040455786999984866 ] }, "throughput": { "unit": "tokens/s", "value": 47.13803894840581 }, "energy": { "unit": "kWh", "cpu": 1.5816814206666678e-06, "ram": 6.613863882053308e-08, "gpu": 0.0, "total": 1.647820059487201e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1213724.7562227133 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.207232, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3899137299999893, "mean": 0.025994248666665953, "stdev": 0.001328371193543141, "p50": 0.025696558999982244, "p90": 0.027113453399999796, "p95": 0.028453430599998338, "p99": 0.029860347720012326, "values": [ 0.026099455000007765, 0.026234046000013223, 0.025583776999980046, 0.025984770000007984, 0.025774294999990843, 0.025696558999982244, 0.02590206499999681, 0.030212077000015825, 0.02769972499999085, 0.025670990999998367, 0.025497885999982373, 0.025205277999987175, 0.024830936000000747, 0.0248568850000197, 0.02466498500001535 ] }, "throughput": { "unit": "tokens/s", "value": 38.47004823349106 }, "energy": { "unit": "kWh", "cpu": 9.713475616249938e-07, "ram": 4.061928969408935e-08, "gpu": 0.0, "total": 1.011966851319083e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 988174.6607574306 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.38463184500000125, "mean": 0.025642123000000083, "stdev": 0.0012958268307104279, "p50": 0.025329900999992105, "p90": 0.026754913799999256, "p95": 0.028072765999993973, "p99": 0.029404742800002735, "values": [ 0.025748347000018157, 0.02584847400001422, 0.025235675000004676, 0.025640514000002668, 0.025424449000013283, 0.025329900999992105, 0.02556438099998104, 0.029737737000004927, 0.027359206999989283, 0.02532971099998349, 0.025140415999999277, 0.024858757999993486, 0.024527976999991097, 0.024531835000004776, 0.024354463000008764 ] }, "throughput": { "unit": "tokens/s", "value": 38.99833098842856 }, "energy": null, "efficiency": null } } }