{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.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": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.342208, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1024-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "693db979e9b302426a0eee51d54cc298ad108515", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1115.2384, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.735895131000007, "mean": 4.735895131000007, "stdev": 0.0, "p50": 4.735895131000007, "p90": 4.735895131000007, "p95": 4.735895131000007, "p99": 4.735895131000007, "values": [ 4.735895131000007 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.744119458728367e-05, "ram": 2.81886387391296e-06, "gpu": 0, "total": 7.026005846119663e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.244672, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6419915379998429, "mean": 0.042799435866656195, "stdev": 0.0024653414111042763, "p50": 0.0442642780000142, "p90": 0.04500895959998843, "p95": 0.04526057509997372, "p99": 0.045618547819958624, "values": [ 0.04381981400001678, 0.04506880399998181, 0.0442642780000142, 0.04491919299999836, 0.04475944399996479, 0.04488954799995781, 0.045708040999954846, 0.04472260500000402, 0.044841637999979866, 0.0399189209999804, 0.040642876999982036, 0.03972512899997582, 0.039334365999991405, 0.039822902000025806, 0.03955397800001492 ] }, "throughput": { "unit": "tokens/s", "value": 46.729587890623165 }, "energy": { "unit": "kWh", "cpu": 1.5659422344631619e-06, "ram": 6.544336587708131e-08, "gpu": 0.0, "total": 1.6313856003402432e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1225951.7305920061 } }, "decode": { "memory": { "unit": "MB", "max_ram": 969.375744, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.39727542900004664, "mean": 0.02648502860000311, "stdev": 0.0016030419685974428, "p50": 0.027718448000030094, "p90": 0.028088384599993788, "p95": 0.028183516600006443, "p99": 0.028199259320003875, "values": [ 0.028175083000007817, 0.028203195000003234, 0.027958336999972744, 0.027821050000000014, 0.02793623600001638, 0.027786535000018375, 0.027718448000030094, 0.027730340999994496, 0.026166923000005227, 0.024681864000001497, 0.024318031000007068, 0.024201441999991857, 0.024780147000001307, 0.024303643999985525, 0.02549415300001101 ] }, "throughput": { "unit": "tokens/s", "value": 37.75718029618751 }, "energy": { "unit": "kWh", "cpu": 9.3019821577602e-07, "ram": 3.887620509680402e-08, "gpu": 0.0, "total": 9.690744208728242e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1031912.491405275 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.39142690100010213, "mean": 0.026095126733340142, "stdev": 0.0015209785258924167, "p50": 0.0272498009999822, "p90": 0.027608975399994053, "p95": 0.02771087909999892, "p99": 0.027740137420022393, "values": [ 0.027695204999986345, 0.02774745200002826, 0.02747963100000561, 0.02735759200004395, 0.02745366300001706, 0.02732657400002836, 0.02726225400004978, 0.0272498009999822, 0.025859247000028063, 0.024381991999973707, 0.024022267000020747, 0.023911540000028708, 0.024476488999994217, 0.024007679999954235, 0.025195513999960895 ] }, "throughput": { "unit": "tokens/s", "value": 38.32133142018281 }, "energy": null, "efficiency": null } } }