{ "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.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": "ad8304e396fddb59b6d30eac80ef8cc12fbeb7ca", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "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.056384, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.883817652999994, "mean": 4.883817652999994, "stdev": 0.0, "p50": 4.883817652999994, "p90": 4.883817652999994, "p95": 4.883817652999994, "p99": 4.883817652999994, "values": [ 4.883817652999994 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.860236911111078e-05, "ram": 2.867349346005091e-06, "gpu": 0, "total": 7.146971845711587e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 965.177344, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6499265060000425, "mean": 0.04642332185714589, "stdev": 0.0017929994621538508, "p50": 0.04689966450001748, "p90": 0.04779181619999804, "p95": 0.04844677284999364, "p99": 0.04927073936999761, "values": [ 0.045115655000017796, 0.04789217999999096, 0.0473323409999864, 0.04557357400000228, 0.04755763400001456, 0.04696150500001295, 0.04475192399999628, 0.04619655199999784, 0.0469670459999918, 0.04683782400002201, 0.0471029299999941, 0.04672024399999941, 0.04144036600001755, 0.04947673099999861 ] }, "throughput": { "unit": "tokens/s", "value": 43.081794235974996 }, "energy": { "unit": "kWh", "cpu": 1.6115777782222394e-06, "ram": 6.734705280627343e-08, "gpu": 0.0, "total": 1.678924831028513e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1191238.5611539236 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.308416, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.4187361459999295, "mean": 0.02990972471428068, "stdev": 0.0030062583479407525, "p50": 0.029112290000000485, "p90": 0.02982289139999352, "p95": 0.03365613349999847, "p99": 0.039234542699997224, "values": [ 0.029366471999992427, 0.02922361400001705, 0.029050740000002406, 0.02990143499999931, 0.028850353999985145, 0.029164442999984885, 0.028788688999981105, 0.02963962299998002, 0.029060137000016084, 0.02938620899999478, 0.028990878000001885, 0.028763334999979406, 0.040629144999996925, 0.02792107199999805 ] }, "throughput": { "unit": "tokens/s", "value": 33.43394195542497 }, "energy": { "unit": "kWh", "cpu": 9.336887946944589e-07, "ram": 3.90255898936043e-08, "gpu": 0.0, "total": 9.727143845880633e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1028051.0043279476 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.4117377149999868, "mean": 0.029409836785713343, "stdev": 0.0030028668632870255, "p50": 0.028592685999996093, "p90": 0.029298807000003535, "p95": 0.033135379150004945, "p99": 0.03873573182999222, "values": [ 0.028842839999981607, 0.028691787000013846, 0.02853230799999551, 0.02936591100001351, 0.028353852999998708, 0.028653063999996675, 0.02829731699998206, 0.029142230999980256, 0.028509756000005382, 0.028876152999998794, 0.02846063400002663, 0.02829829300000597, 0.04013581999998905, 0.027577747999998792 ] }, "throughput": { "unit": "tokens/s", "value": 34.002228821813056 }, "energy": null, "efficiency": null } } }