{ "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": "0994de67c8ae64954d51b8fdb251c26ff95c5907", "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": 948.908032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6445307820000608, "mean": 0.04603791300000434, "stdev": 0.001350475580258056, "p50": 0.045592801000026384, "p90": 0.04834223970001972, "p95": 0.04874064615001146, "p99": 0.04894092363001675, "values": [ 0.04899099300001808, 0.04591747199998508, 0.04563664800002698, 0.045873951000032775, 0.04404452400001446, 0.04554895400002579, 0.04548167799998737, 0.0450644889999694, 0.04772716300004731, 0.04535283799998524, 0.04525236999995741, 0.04533920199997965, 0.045694656000023315, 0.04860584400000789 ] }, "throughput": { "unit": "tokens/s", "value": 43.442455786382226 }, "energy": { "unit": "kWh", "cpu": 1.839194634948114e-06, "ram": 7.686282867373444e-08, "gpu": 0.0, "total": 1.916057463621848e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1043810.0307385764 } }, "decode": { "memory": { "unit": "MB", "max_ram": 948.908032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3904561530000592, "mean": 0.027889725214289944, "stdev": 0.0006125434980205423, "p50": 0.027746197999988453, "p90": 0.02875563319998378, "p95": 0.02904596089998677, "p99": 0.029191848980001395, "values": [ 0.02894776699997692, 0.027971203000049627, 0.028307320999999774, 0.027195152999979655, 0.027560275999974237, 0.02824228000002904, 0.02759362799997689, 0.027551850000008926, 0.027898768000000018, 0.027105837000021893, 0.028094013000043105, 0.02719640499998377, 0.027563331000010294, 0.029228321000005053 ] }, "throughput": { "unit": "tokens/s", "value": 35.855498478974866 }, "energy": { "unit": "kWh", "cpu": 9.303886079627667e-07, "ram": 3.8884420116784344e-08, "gpu": 0.0, "total": 9.69273028079551e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1031701.0491680856 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.9573329469999976, "mean": 0.07364099592307674, "stdev": 0.0015321374426087086, "p50": 0.07328551900002367, "p90": 0.07531104760004155, "p95": 0.0765327820000266, "p99": 0.07759514440000657, "values": [ 0.07393086399997628, 0.07396531800003459, 0.07311926799997082, 0.07159944099998938, 0.07380934700000807, 0.07308228900001268, 0.0726606719999836, 0.07564748000004329, 0.07246922499996344, 0.07334076199998663, 0.07256202700000358, 0.07328551900002367, 0.07786073500000157 ] }, "throughput": { "unit": "tokens/s", "value": 13.579392666614275 }, "energy": null, "efficiency": null } } }