{ "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": "warn", "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-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "d9ffe3b3809e940419695c4a39c0122d5a6e1611", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.34.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": 1119.952896, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.922732851000006, "mean": 4.922732851000006, "stdev": 0.0, "p50": 4.922732851000006, "p90": 4.922732851000006, "p95": 4.922732851000006, "p99": 4.922732851000006, "values": [ 4.922732851000006 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.786976676666651e-05, "ram": 2.836714717627621e-06, "gpu": 0, "total": 7.070648148429414e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 973.295616, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 16, "total": 0.6472425269999462, "mean": 0.04045265793749664, "stdev": 0.0008084836779336936, "p50": 0.04017224199999703, "p90": 0.041344676500003175, "p95": 0.042158350750000295, "p99": 0.042759701349993406, "values": [ 0.0403603849999854, 0.040025175000010904, 0.040153075999995735, 0.039692050999974526, 0.0399469799999963, 0.04019140799999832, 0.040013162999997576, 0.039993366999993896, 0.042910038999991684, 0.04003205800000842, 0.040651280999981054, 0.040325800000005074, 0.041907788000003166, 0.03984220200001687, 0.040781565000003184, 0.040416188999984115 ] }, "throughput": { "unit": "tokens/s", "value": 49.44050902885536 }, "energy": { "unit": "kWh", "cpu": 1.5661945973333154e-06, "ram": 6.545429795717757e-08, "gpu": 0.0, "total": 1.6316488952904931e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1225753.901940973 } }, "decode": { "memory": { "unit": "MB", "max_ram": 974.082048, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 16, "total": 0.3989489000000219, "mean": 0.02493430625000137, "stdev": 0.0008789198533361845, "p50": 0.024765660000014122, "p90": 0.025251146000002223, "p95": 0.025967637500009744, "p99": 0.027609202700001844, "values": [ 0.025074719000002688, 0.025016630999999734, 0.024488339000015458, 0.02472737800002278, 0.02519083699999669, 0.02521863999999141, 0.02469055000000253, 0.024159141000012596, 0.024953501999988248, 0.024803942000005463, 0.025283652000013035, 0.02801959399999987, 0.024063202000007777, 0.02463238999999362, 0.02436269499997934, 0.02426368799999068 ] }, "throughput": { "unit": "tokens/s", "value": 40.10538693050444 }, "energy": { "unit": "kWh", "cpu": 9.319949023194867e-07, "ram": 3.895089832052075e-08, "gpu": 0.0, "total": 9.709458006400075e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1029923.6057675321 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 16, "total": 0.3931358260000479, "mean": 0.024570989125002995, "stdev": 0.0008339594598474973, "p50": 0.02442771599999105, "p90": 0.024892232499993838, "p95": 0.025571225999996727, "p99": 0.027096154800003092, "values": [ 0.024703403000017943, 0.024680571000004647, 0.024151407000005065, 0.024390396000001147, 0.024847152000006645, 0.0248486259999936, 0.024260532999988982, 0.02381695900001546, 0.024564262000012604, 0.024465035999980955, 0.024935838999994075, 0.027477387000004683, 0.023728655000013532, 0.02430007699999237, 0.02403194400000075, 0.02393357900001547 ] }, "throughput": { "unit": "tokens/s", "value": 40.69840228704582 }, "energy": null, "efficiency": null } } }