{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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, "latency": true, "memory": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.354496, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "466c44af5d8cf99af048e74ddb3b2f8ec6606263", "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 946.417664, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6183230909999793, "mean": 0.0475633146923061, "stdev": 0.0008756040044050866, "p50": 0.04752700000000232, "p90": 0.04860880140000745, "p95": 0.04875034360000541, "p99": 0.048875287120000624, "values": [ 0.04767243399999188, 0.048459110999999666, 0.046639943000002404, 0.04842830399999798, 0.0486462240000094, 0.04567363699999305, 0.04741417799999681, 0.04778967400000056, 0.04737683799999104, 0.046892348000000084, 0.04752700000000232, 0.046896876999994674, 0.048906522999999424 ] }, "throughput": { "unit": "tokens/s", "value": 42.049214041079495 }, "energy": { "unit": "kWh", "cpu": 1.6300474603970849e-06, "ram": 6.812143467404515e-08, "gpu": 0.0, "total": 1.69816889507113e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1177739.1552777365 } }, "decode": { "memory": { "unit": "MB", "max_ram": 946.417664, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.39417699000009065, "mean": 0.030321306923083897, "stdev": 0.00036244626522524584, "p50": 0.03033816600000705, "p90": 0.030825441400014596, "p95": 0.030870784600011802, "p99": 0.030911238520008055, "values": [ 0.03033816600000705, 0.030106572000022425, 0.0305921739999917, 0.030778915000013285, 0.030029175999999325, 0.030413959000014756, 0.03003161999998838, 0.029752486000006684, 0.03092135200000712, 0.03040546200000449, 0.030079550000010613, 0.030837073000014925, 0.029890485000009903 ] }, "throughput": { "unit": "tokens/s", "value": 32.980108757735984 }, "energy": { "unit": "kWh", "cpu": 9.49426492055257e-07, "ram": 3.9681668824608595e-08, "gpu": 0.0, "total": 9.891081608798656e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1011011.7776305127 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9347128900000143, "mean": 0.07789274083333453, "stdev": 0.0008512646288746623, "p50": 0.07769614849998163, "p90": 0.07882851180001182, "p95": 0.07899810740000816, "p99": 0.07916023508000421, "values": [ 0.07862327099999789, 0.07720745000000306, 0.07920076700000322, 0.07879446300000836, 0.07601927700000033, 0.07744712100000584, 0.0776562939999792, 0.07823223600001938, 0.07733370799999761, 0.07763000500000317, 0.07773600299998407, 0.07883229500001221 ] }, "throughput": { "unit": "tokens/s", "value": 12.838166808633414 }, "energy": null, "efficiency": null } } }