{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.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": 2, "sequence_length": 16, "num_choices": 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.779392, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1017-azure-x86_64-with-glibc2.39", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0.dev0", "optimum_benchmark_commit": "12b33198089c125596a4363f88200dc72e18e532", "transformers_version": "4.47.0", "transformers_commit": null, "accelerate_version": "1.2.0", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.12", "timm_commit": null, "peft_version": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load_model": { "memory": { "unit": "MB", "max_ram": 1128.312832, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.730069764999996 ], "count": 1, "total": 1.730069764999996, "mean": 1.730069764999996, "p50": 1.730069764999996, "p90": 1.730069764999996, "p95": 1.730069764999996, "p99": 1.730069764999996, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00019877053894444462, "ram": 8.313381604443596e-06, "gpu": 0, "total": 0.00020708392054888822 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1013.43232, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.11021215099998471, 0.11196958299998983, 0.11079506000001516, 0.11306018999999878, 0.11136719699999276, 0.10737010099998656, 0.10263774099999523 ], "count": 7, "total": 0.767412022999963, "mean": 0.10963028899999472, "p50": 0.11079506000001516, "p90": 0.1124058257999934, "p95": 0.1127330078999961, "p99": 0.11299475357999825, "stdev": 0.0032939945113558628, "stdev_": 3.0046390841458255 }, "throughput": { "unit": "samples/s", "value": 18.24313351942451 }, "energy": { "unit": "kWh", "cpu": 4.380479885185162e-06, "ram": 1.8315445044198512e-07, "gpu": 0.0, "total": 4.563634335627147e-06 }, "efficiency": { "unit": "samples/kWh", "value": 438247.20670245256 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1013.43232, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.051702828000003365, 0.05203553999999144, 0.05013313599999947, 0.05171851800000127, 0.05098229300000412, 0.04436769700001264, 0.044941259000012224 ], "count": 7, "total": 0.3458812710000245, "mean": 0.04941161014286065, "p50": 0.05098229300000412, "p90": 0.051845326799997336, "p95": 0.05194043339999439, "p99": 0.05201651867999203, "stdev": 0.003067554967689474, "stdev_": 6.208166377943255 }, "throughput": { "unit": "tokens/s", "value": 40.4763170885856 }, "energy": { "unit": "kWh", "cpu": 1.3318485648148712e-06, "ram": 5.5708183980560055e-08, "gpu": 0.0, "total": 1.3875567487954295e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1441382.4888504539 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.051190821000005826, 0.051190821000005826, 0.11250524400000472, 0.05156800599999656, 0.051190821000005826, 0.11250524400000472, 0.05156800599999656, 0.11128449400001728, 0.049646686999977874, 0.051190821000005826, 0.11250524400000472, 0.05156800599999656, 0.11128449400001728, 0.049646686999977874, 0.11357023300001856, 0.051257405999990624, 0.051190821000005826, 0.11250524400000472, 0.05156800599999656, 0.11128449400001728, 0.049646686999977874, 0.11357023300001856, 0.051257405999990624, 0.11185173300000884, 0.05048519400000373, 0.051190821000005826, 0.11250524400000472, 0.05156800599999656, 0.11128449400001728, 0.049646686999977874, 0.11357023300001856, 0.051257405999990624, 0.11185173300000884, 0.05048519400000373, 0.10789020299998242, 0.04402326400000334, 0.051190821000005826, 0.11250524400000472, 0.05156800599999656, 0.11128449400001728, 0.049646686999977874, 0.11357023300001856, 0.051257405999990624, 0.11185173300000884, 0.05048519400000373, 0.10789020299998242, 0.04402326400000334, 0.10300245199999836, 0.04458372100000929 ], "count": 49, "total": 3.745165596000078, "mean": 0.0764319509387771, "p50": 0.05156800599999656, "p90": 0.11250524400000472, "p95": 0.11357023300001856, "p99": 0.11357023300001856, "stdev": 0.03039641401931651, "stdev_": 39.7692504848717 }, "throughput": null, "energy": null, "efficiency": null } } }