{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.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-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "64d7cde4ffc4c5c7d57f80bbb0bfaa5207878a13", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1103.872, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.919561983999984, "mean": 4.919561983999984, "stdev": 0.0, "p50": 4.919561983999984, "p90": 4.919561983999984, "p95": 4.919561983999984, "p99": 4.919561983999984, "values": [ 4.919561983999984 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.792191134558784e-05, "ram": 2.8389705653262353e-06, "gpu": 0, "total": 7.076088191091407e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 957.100032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6292663929999094, "mean": 0.04494759949999353, "stdev": 0.0032029502100528818, "p50": 0.045445408500000894, "p90": 0.04740634529999852, "p95": 0.049214044600006446, "p99": 0.051885698519998864, "values": [ 0.046442116999969585, 0.046554438000043774, 0.04738424699996813, 0.04406174499996496, 0.047415816000011546, 0.046660520999978417, 0.04625886700000592, 0.04248507699998072, 0.052553611999996974, 0.042031533999988824, 0.04463194999999587, 0.04138110299999198, 0.04088198499999862, 0.04052338100001407 ] }, "throughput": { "unit": "tokens/s", "value": 44.496258359699226 }, "energy": { "unit": "kWh", "cpu": 1.6222853903417236e-06, "ram": 6.779806889596785e-08, "gpu": 0.0, "total": 1.6900834592376914e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1183373.512750723 } }, "decode": { "memory": { "unit": "MB", "max_ram": 957.886464, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3747018060000755, "mean": 0.02676441471429111, "stdev": 0.0017937853965709284, "p50": 0.02618412200001785, "p90": 0.02879489439999361, "p95": 0.028894297850013118, "p99": 0.028979822770045304, "values": [ 0.028836732999991455, 0.028697270999998636, 0.02855340100001058, 0.02900120400005335, 0.0285897420000083, 0.028582808999999543, 0.02637456000002203, 0.025872948000028373, 0.02564162400000214, 0.025993684000013673, 0.024065482000025895, 0.02488537199997154, 0.025462244999971517, 0.024144730999978492 ] }, "throughput": { "unit": "tokens/s", "value": 37.36304382796911 }, "energy": { "unit": "kWh", "cpu": 1.0019173555903966e-06, "ram": 4.1872209415600974e-08, "gpu": 0.0, "total": 1.0437895650059985e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 958047.5160184737 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.36880336300004046, "mean": 0.026343097357145746, "stdev": 0.0017236772430817462, "p50": 0.025735604499999454, "p90": 0.02829241819999311, "p95": 0.028386767600002825, "p99": 0.02847083912000528, "values": [ 0.028330181000001176, 0.028204304999974283, 0.02811211200003072, 0.028491857000005893, 0.028079714000000422, 0.028069073000040135, 0.025991390000001502, 0.025479818999997406, 0.025319158000002062, 0.025469389000022602, 0.023749839000004158, 0.02454904000001079, 0.02513633299997764, 0.023821152999971673 ] }, "throughput": { "unit": "tokens/s", "value": 37.96060829303898 }, "energy": null, "efficiency": null } } }