{ "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", "model": "openai-community/gpt2", "library": "transformers", "device": "cpu", "device_ids": null, "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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.346304, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "2d3261cf9b992810a685ce736f41254a91cd091e", "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": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 947.544064, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.639461495000063, "mean": 0.049189345769235615, "stdev": 0.0014738779781749826, "p50": 0.04924653400001944, "p90": 0.05083818100000599, "p95": 0.05164844100000891, "p99": 0.05241058260001182, "values": [ 0.05260111800001255, 0.04935294299997395, 0.047710104999993064, 0.04869476000001782, 0.048338883000013766, 0.046767259000006334, 0.051013323000006494, 0.048323844999998755, 0.05013761300000397, 0.050015283999982785, 0.04924653400001944, 0.04783492000001388, 0.049424908000020196 ] }, "throughput": { "unit": "tokens/s", "value": 40.659211232096844 }, "energy": { "unit": "kWh", "cpu": 1.6544231110148962e-06, "ram": 6.914088004819125e-08, "gpu": 0.0, "total": 1.7235639910630875e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1160386.2753981114 } }, "decode": { "memory": { "unit": "MB", "max_ram": 947.544064, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.3971664209999233, "mean": 0.03055126315384025, "stdev": 0.0005649653350919936, "p50": 0.030385802000012063, "p90": 0.03136506220000115, "p95": 0.03147695959999623, "p99": 0.031526761519986624, "values": [ 0.03153921199998422, 0.029904350000009572, 0.030385802000012063, 0.03005917899997712, 0.029718191000000616, 0.031083478999988756, 0.03023778399997923, 0.030911325999994688, 0.03104580900000542, 0.031435458000004246, 0.03043528399999218, 0.03022683399998982, 0.030183712999985346 ] }, "throughput": { "unit": "tokens/s", "value": 32.73187085471788 }, "energy": { "unit": "kWh", "cpu": 9.646430390852475e-07, "ram": 4.031472522201715e-08, "gpu": 0.0, "total": 1.0049577643072646e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 995066.6938618241 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9527383049999969, "mean": 0.07939485874999974, "stdev": 0.0012602055490509919, "p50": 0.07928746399998943, "p90": 0.08127188319998879, "p95": 0.08135688784999359, "p99": 0.08142805917000004, "values": [ 0.0793150299999752, 0.07811717700002418, 0.07878774399998179, 0.07810870100001921, 0.07780121499999382, 0.08128409899998701, 0.07925989800000366, 0.08116194100000484, 0.08144585200000165, 0.07971103200000584, 0.07806830599997738, 0.07967731000002232 ] }, "throughput": { "unit": "tokens/s", "value": 12.59527399814164 }, "energy": null, "efficiency": null } } }