{ "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": {}, "hub_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-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "e9af750a2bec0e8b3a11d3bf5c5aa883075e8a03", "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": 1099.759616, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.033019491999994, "mean": 5.033019491999994, "stdev": 0.0, "p50": 5.033019491999994, "p90": 5.033019491999994, "p95": 5.033019491999994, "p99": 5.033019491999994, "values": [ 5.033019491999994 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.804323328865899e-05, "ram": 2.8438522789963372e-06, "gpu": 0, "total": 7.088708556765532e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 952.991744, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.62556531000007, "mean": 0.04812040846154385, "stdev": 0.0010184667700024917, "p50": 0.04828216200002089, "p90": 0.049286218399998916, "p95": 0.049384615800005346, "p99": 0.0494577111600131, "values": [ 0.047916334000007055, 0.049475985000015044, 0.04727043700000877, 0.04670981900000015, 0.0482919550000247, 0.04901934800000163, 0.04828216200002089, 0.049323702999998886, 0.04773996800000191, 0.04867056800000569, 0.04913627999999903, 0.04587774600000216, 0.04785100499998407 ] }, "throughput": { "unit": "tokens/s", "value": 41.562406969141385 }, "energy": { "unit": "kWh", "cpu": 1.8891113775747795e-06, "ram": 7.894644336001225e-08, "gpu": 0.0, "total": 1.9680578209347916e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1016230.3051899341 } }, "decode": { "memory": { "unit": "MB", "max_ram": 954.04032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.38152623399997765, "mean": 0.029348171846152127, "stdev": 0.0007770831253351279, "p50": 0.029542226999978993, "p90": 0.030372803800003113, "p95": 0.030452681000002712, "p99": 0.03049001299999986, "values": [ 0.029589063999992504, 0.029542226999978993, 0.030421571000005088, 0.03049934599999915, 0.028705965000000333, 0.02836299099999451, 0.02960677699999792, 0.03017773499999521, 0.030132738000020254, 0.028703266999997368, 0.029001905000001216, 0.028671106999979656, 0.02811154100001545 ] }, "throughput": { "unit": "tokens/s", "value": 34.073672637674406 }, "energy": { "unit": "kWh", "cpu": 1.0888817133726902e-06, "ram": 4.550879494485929e-08, "gpu": 0.0, "total": 1.1343905083175484e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 881530.6481038287 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.3763213649999386, "mean": 0.028947797307687588, "stdev": 0.000764976234325758, "p50": 0.029162888000001885, "p90": 0.029980061399982105, "p95": 0.030060573799994474, "p99": 0.030100954760011973, "values": [ 0.029190839999984064, 0.029162888000001885, 0.030026922999979888, 0.03011105000001635, 0.02831931199997939, 0.027940841999992472, 0.02922570399999813, 0.029792614999990974, 0.029571789000016224, 0.028314179999995304, 0.02863348699997914, 0.02829687799999192, 0.02773485700001288 ] }, "throughput": { "unit": "tokens/s", "value": 34.54494272468989 }, "energy": null, "efficiency": null } } }