{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+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": null, "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16766.7712, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0", "optimum_benchmark_commit": "39d0314f9cf4240111640faabd3741cc6d1a4aa3", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": "1.22.0", "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1123.467264, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 5.291538962999994 ], "count": 1, "total": 5.291538962999994, "mean": 5.291538962999994, "p50": 5.291538962999994, "p90": 5.291538962999994, "p95": 5.291538962999994, "p99": 5.291538962999994, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.819896879444262e-05, "ram": 2.852139430450164e-06, "gpu": 0, "total": 7.105110822489279e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 977.793024, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.052719687999967846, 0.050616625999964526, 0.04712222500000962, 0.0453441279999538, 0.04996993200001043, 0.047564998999973795, 0.04674702800002706, 0.045753629999978784, 0.05098848799997313, 0.045984658999998373, 0.04592629000001125, 0.04499479800000472, 0.04836943599997312 ], "count": 13, "total": 0.6221019269998465, "mean": 0.047853994384603575, "p50": 0.04712222500000962, "p90": 0.05091411559997141, "p95": 0.05168096799997102, "p99": 0.05251194399996848, "stdev": 0.0023828850027950133, "stdev_": 4.9794902879866525 }, "throughput": { "unit": "tokens/s", "value": 41.79379434715433 }, "energy": { "unit": "kWh", "cpu": 1.8193637777778173e-06, "ram": 7.607280935786851e-08, "gpu": 0.0, "total": 1.895436587135686e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1055165.8723768366 } }, "decode": { "memory": { "unit": "MB", "max_ram": 977.793024, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.03267811400002074, 0.027630868000017017, 0.03062963600001467, 0.02685780000001614, 0.03269155199996021, 0.028480599000033635, 0.027506797000000915, 0.02633579900003724, 0.03251764800000956, 0.026766100000031656, 0.03290167300002622, 0.02758516400001554, 0.028506536000008964 ], "count": 13, "total": 0.3810882860001925, "mean": 0.029314483538476346, "p50": 0.028480599000033635, "p90": 0.03268886439997232, "p95": 0.032775600399986615, "p99": 0.0328764584800183, "stdev": 0.002471678236107924, "stdev_": 8.431594003229682 }, "throughput": { "unit": "tokens/s", "value": 34.11283022221637 }, "energy": { "unit": "kWh", "cpu": 1.0172932861111565e-06, "ram": 4.254284197441865e-08, "gpu": 0.0, "total": 1.0598361280855749e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 943542.0943861771 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.03229061300004332, 0.027204014000005827, 0.030222879000007197, 0.026436295000053178, 0.03225014099996315, 0.02811311499999647, 0.027107805000014196, 0.025886753000008866, 0.03213060799998857, 0.02638255599998729, 0.032448800999986815, 0.02716931999998451, 0.02813052700003027 ], "count": 13, "total": 0.37577342700006966, "mean": 0.02890564823077459, "p50": 0.02811311499999647, "p90": 0.03228251860002729, "p95": 0.03235388820002072, "p99": 0.032429818439993596, "stdev": 0.002469537444001772, "stdev_": 8.54344252820652 }, "throughput": { "unit": "tokens/s", "value": 34.595314798557034 }, "energy": null, "efficiency": null } } }