{ "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.338112, "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": "5db40d6ac008e1084f2d5d94bfa9d3c5d3529a27", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.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": 1111.269376, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.82178136600001, "mean": 4.82178136600001, "stdev": 0.0, "p50": 4.82178136600001, "p90": 4.82178136600001, "p95": 4.82178136600001, "p99": 4.82178136600001, "values": [ 4.82178136600001 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.776667076666693e-05, "ram": 2.8324753218134554e-06, "gpu": 0, "total": 7.059914608848039e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.759552, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6372221229999866, "mean": 0.04551586592857047, "stdev": 0.002281615658535938, "p50": 0.04628635449999763, "p90": 0.04788380880000602, "p95": 0.04808368465000825, "p99": 0.04836788493000739, "values": [ 0.042419862000002695, 0.04265881300000274, 0.042469987999993464, 0.04339528099998802, 0.04746818599997482, 0.04789239600000883, 0.04702757499998711, 0.04675815900000657, 0.04744761800000674, 0.045814549999988685, 0.04843893500000718, 0.04786377199999947, 0.04523098000001369, 0.042336008000006586 ] }, "throughput": { "unit": "tokens/s", "value": 43.94072175049168 }, "energy": { "unit": "kWh", "cpu": 1.6353716312499998e-06, "ram": 6.834516729408164e-08, "gpu": 0.0, "total": 1.7037167985440813e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1173904.0207322654 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.545984, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3921946709999986, "mean": 0.028013905071428473, "stdev": 0.0018008663660028206, "p50": 0.029114658500020596, "p90": 0.02964258189999782, "p95": 0.029749090599999306, "p99": 0.029841523719998975, "values": [ 0.02590531999999257, 0.025764614999985724, 0.02540691000001516, 0.029057761000018445, 0.029864631999998892, 0.028256741999996393, 0.029171556000022747, 0.02935694499998931, 0.029509552999996913, 0.02968687599999953, 0.02953922899999384, 0.029503067000007377, 0.025663363999996136, 0.025508100999985572 ] }, "throughput": { "unit": "tokens/s", "value": 35.69655845731787 }, "energy": { "unit": "kWh", "cpu": 9.587515194444323e-07, "ram": 4.007020315019213e-08, "gpu": 0.0, "total": 9.988217225946253e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1001179.6673807953 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.38570826299999794, "mean": 0.027550590214285568, "stdev": 0.0017195672054531354, "p50": 0.028621864500010474, "p90": 0.02908120590000749, "p95": 0.02919256555001084, "p99": 0.0293063795100079, "values": [ 0.025541935000006788, 0.025413311999983534, 0.025047742999987577, 0.028555925000006255, 0.029334833000007166, 0.027758592999987286, 0.028687804000014694, 0.028827065999990964, 0.029000112999995054, 0.02911596000001282, 0.028999260999995613, 0.028956346000001076, 0.02532581799999889, 0.025143554000010226 ] }, "throughput": { "unit": "tokens/s", "value": 36.29686305164812 }, "energy": null, "efficiency": null } } }