{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.338112, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "48b9fd84f836e6134bd9d27990d855083b44b7bb", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "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": 1111.932928, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.793055717999977, "mean": 4.793055717999977, "stdev": 0.0, "p50": 4.793055717999977, "p90": 4.793055717999977, "p95": 4.793055717999977, "p99": 4.793055717999977, "values": [ 4.793055717999977 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.747945536111091e-05, "ram": 2.820422350407825e-06, "gpu": 0, "total": 7.029987771151874e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 965.144576, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6521355170000618, "mean": 0.04347570113333745, "stdev": 0.0026128578785041883, "p50": 0.04529323599999202, "p90": 0.04621182540000177, "p95": 0.046394813600005594, "p99": 0.04660254112001553, "values": [ 0.04152214500001605, 0.04172803000000158, 0.04610426700000403, 0.04606911199999786, 0.046654473000018015, 0.045443105000003925, 0.04550316699999257, 0.046283531000000266, 0.045612860999995064, 0.04529323599999202, 0.04036552900001311, 0.04001606700001048, 0.04038046599998779, 0.04040197700001613, 0.04075755100001288 ] }, "throughput": { "unit": "tokens/s", "value": 46.00270836038081 }, "energy": { "unit": "kWh", "cpu": 1.5649175811111478e-06, "ram": 6.540037832161593e-08, "gpu": 0.0, "total": 1.6303179594327639e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1226754.5655301863 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.931008, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3990044639998871, "mean": 0.026600297599992474, "stdev": 0.0017668762134120592, "p50": 0.027774195999995754, "p90": 0.028392557600000146, "p95": 0.028543955599985793, "p99": 0.028649701519981363, "values": [ 0.02535318399998232, 0.02815330299998209, 0.028676137999980256, 0.028487305999988166, 0.02795130699999504, 0.027774195999995754, 0.028250435000018115, 0.0278259829999854, 0.028075026999999864, 0.02670736799998963, 0.024192951000003404, 0.02425272199999995, 0.024458946999999398, 0.024399214999988317, 0.024446381999979394 ] }, "throughput": { "unit": "tokens/s", "value": 37.59356436674915 }, "energy": { "unit": "kWh", "cpu": 9.652277230555806e-07, "ram": 4.034024818875706e-08, "gpu": 0.0, "total": 1.0055679712443378e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 994462.859395325 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3924877549999337, "mean": 0.026165850333328914, "stdev": 0.001686265602000299, "p50": 0.02729349999998476, "p90": 0.02786011879999819, "p95": 0.028022674199991115, "p99": 0.0281528820399933, "values": [ 0.024990356999978758, 0.027652208999995764, 0.028185433999993847, 0.027952919999989945, 0.02744230799999059, 0.02729349999998476, 0.02772091700001056, 0.02729602499999828, 0.02755819399999382, 0.02633080600000426, 0.023862264000001687, 0.02391792800000303, 0.02410897400000067, 0.02406526199999348, 0.024110656999994262 ] }, "throughput": { "unit": "tokens/s", "value": 38.217752806078074 }, "energy": null, "efficiency": null } } }