{ "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": "1c0c7070b263cda84bbf4ff92db4fa108762afe2", "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": 1122.295808, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.84922859400001, "mean": 4.84922859400001, "stdev": 0.0, "p50": 4.84922859400001, "p90": 4.84922859400001, "p95": 4.84922859400001, "p99": 4.84922859400001, "values": [ 4.84922859400001 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.784416543333376e-05, "ram": 2.8357084354673708e-06, "gpu": 0, "total": 7.067987386880114e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 975.765504, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6551132679999512, "mean": 0.04367421786666341, "stdev": 0.001276679065558911, "p50": 0.043305529999997816, "p90": 0.04427980119999688, "p95": 0.04551240550000841, "p99": 0.0475456787000104, "values": [ 0.04406477499998118, 0.04367158200000176, 0.04318825099997525, 0.043030646999994815, 0.04368770099998187, 0.048053997000010895, 0.043305529999997816, 0.04321100300001035, 0.043523625999995375, 0.04374839499999439, 0.04289793999998892, 0.04442315200000735, 0.0428866590000041, 0.043179715000007945, 0.04224029499999915 ] }, "throughput": { "unit": "tokens/s", "value": 45.793607709380474 }, "energy": { "unit": "kWh", "cpu": 1.6611736182870375e-06, "ram": 6.942263162386488e-08, "gpu": 0.0, "total": 1.7305962499109022e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1155671.058516952 } }, "decode": { "memory": { "unit": "MB", "max_ram": 976.683008, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.4030565390000618, "mean": 0.02687043593333745, "stdev": 0.0007135045039351211, "p50": 0.02670571999999538, "p90": 0.027607488000001013, "p95": 0.02828229919999785, "p99": 0.02886081504000458, "values": [ 0.027972379999994246, 0.026305273000019724, 0.026693567000023677, 0.02670571999999538, 0.026490940000002183, 0.026886986999983264, 0.026417782999999417, 0.02678568900000755, 0.02697232600002053, 0.027060150000011163, 0.02673561600002472, 0.029005444000006264, 0.026017797999998038, 0.026688737999990053, 0.026318127999985563 ] }, "throughput": { "unit": "tokens/s", "value": 37.215622496072946 }, "energy": { "unit": "kWh", "cpu": 9.77183105046293e-07, "ram": 4.0836000425106774e-08, "gpu": 0.0, "total": 1.0180191054714011e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 982299.8356567608 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3977215010000634, "mean": 0.026514766733337563, "stdev": 0.0007100831216035192, "p50": 0.026358654000006254, "p90": 0.027241057200006934, "p95": 0.02791842000000315, "p99": 0.028498691999996027, "values": [ 0.02760756000000697, 0.025957395000006045, 0.02634325400001103, 0.026358654000006254, 0.0261309090000168, 0.026541062999996257, 0.026018189000012626, 0.026436238000002277, 0.02660661500001993, 0.026691303000006883, 0.02637340100000074, 0.028643759999994245, 0.025677373999997144, 0.026354655999995202, 0.025981129999991026 ] }, "throughput": { "unit": "tokens/s", "value": 37.714833023316 }, "energy": null, "efficiency": null } } }