{ "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": "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": "fa9ef035a540e4a60f1b37660f7a300a32d1f25b", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.34.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": 1120.206848, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.7478773900000135, "mean": 4.7478773900000135, "stdev": 0.0, "p50": 4.7478773900000135, "p90": 4.7478773900000135, "p95": 4.7478773900000135, "p99": 4.7478773900000135, "values": [ 4.7478773900000135 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.751245005555626e-05, "ram": 2.8218088376886615e-06, "gpu": 0, "total": 7.033425889324492e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.196736, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6209666320000622, "mean": 0.04139777546667081, "stdev": 0.0010520661893481326, "p50": 0.041264073000007784, "p90": 0.04247736260001034, "p95": 0.04326883450000594, "p99": 0.04408923729999003, "values": [ 0.04075792199998318, 0.04136241599999835, 0.04194940700000416, 0.04070953100000452, 0.04162386200002288, 0.04193399900000827, 0.04107107400000132, 0.04133530500001825, 0.04066492900000185, 0.04108507000000827, 0.041264073000007784, 0.044294337999986055, 0.040358940000004395, 0.04282933300001446, 0.03972643299999845 ] }, "throughput": { "unit": "tokens/s", "value": 48.311774665529846 }, "energy": { "unit": "kWh", "cpu": 1.576634240222196e-06, "ram": 6.589038454534822e-08, "gpu": 0.0, "total": 1.642524624767544e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1217637.757049181 } }, "decode": { "memory": { "unit": "MB", "max_ram": 974.589952, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.380805387999942, "mean": 0.0253870258666628, "stdev": 0.0005815968941563091, "p50": 0.025308211999998775, "p90": 0.026043292800005703, "p95": 0.026227958200018973, "p99": 0.026509276440013992, "values": [ 0.026077252000021645, 0.026579606000012745, 0.025826034999994363, 0.025387019000021382, 0.024942961999983027, 0.02520841699998755, 0.025574757999976327, 0.025113439999984166, 0.024918247000016436, 0.025151239999985364, 0.025992353999981788, 0.024731158999998115, 0.02579150999997637, 0.025308211999998775, 0.02420317700000396 ] }, "throughput": { "unit": "tokens/s", "value": 39.39019896431267 }, "energy": { "unit": "kWh", "cpu": 9.353463750556079e-07, "ram": 3.9090920473866034e-08, "gpu": 0.0, "total": 9.744372955294735e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1026233.2985280871 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.37583798299993987, "mean": 0.025055865533329325, "stdev": 0.0005757059360526408, "p50": 0.024994508999981235, "p90": 0.02569819720001192, "p95": 0.02588156610001988, "p99": 0.02616655402001015, "values": [ 0.025728894000025093, 0.02623780100000772, 0.025494398000006413, 0.02506804600000123, 0.024608560999979545, 0.024844038999987106, 0.025248781999977155, 0.024781231999980946, 0.02458499700000516, 0.024818731999999954, 0.025652151999992157, 0.02441047300001742, 0.02546984199997837, 0.024994508999981235, 0.02389552500000036 ] }, "throughput": { "unit": "tokens/s", "value": 39.910814442622204 }, "energy": null, "efficiency": null } } }