{ "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": "451d42c2ff0ea0958ea32cb36b406534bd229306", "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": 1127.366656, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7332602030000146 ], "count": 1, "total": 1.7332602030000146, "mean": 1.7332602030000146, "p50": 1.7332602030000146, "p90": 1.7332602030000146, "p95": 1.7332602030000146, "p99": 1.7332602030000146, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00020060657959999987, "ram": 8.39015755165672e-06, "gpu": 0, "total": 0.00020899673715165659 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1012.383744, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.10583420999998339, 0.10649114200001009, 0.10595915199999695, 0.10651969500000291, 0.10938424599999053, 0.10323576400000434, 0.10092776799999115 ], "count": 7, "total": 0.7383519769999793, "mean": 0.10547885385713991, "p50": 0.10595915199999695, "p90": 0.10766551539999795, "p95": 0.10852488069999423, "p99": 0.10921237293999127, "stdev": 0.0024917281506996515, "stdev_": 2.362301124426738 }, "throughput": { "unit": "samples/s", "value": 18.96114649395784 }, "energy": { "unit": "kWh", "cpu": 4.244148634444415e-06, "ram": 1.774632628936062e-07, "gpu": 0.0, "total": 4.421611897338022e-06 }, "efficiency": { "unit": "samples/kWh", "value": 452323.7331625772 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1012.383744, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.044052673000010145, 0.043884790999982215, 0.044014372000020785, 0.04417374799999152, 0.045028037999998105, 0.04317830499999786, 0.042715469000000894 ], "count": 7, "total": 0.3070473960000015, "mean": 0.04386391371428593, "p50": 0.044014372000020785, "p90": 0.044515463999994155, "p95": 0.04477175099999613, "p99": 0.04497678059999771, "stdev": 0.0006864890835477888, "stdev_": 1.5650429371609123 }, "throughput": { "unit": "tokens/s", "value": 45.595566620600586 }, "energy": { "unit": "kWh", "cpu": 1.4454671822223001e-06, "ram": 6.045304093667474e-08, "gpu": 0.0, "total": 1.5059202231589758e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1328091.6008980812 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.0436512660000119, 0.0436512660000119, 0.10691377800000623, 0.043523167999978796, 0.0436512660000119, 0.10691377800000623, 0.043523167999978796, 0.1063406920000034, 0.043644524000001184, 0.0436512660000119, 0.10691377800000623, 0.043523167999978796, 0.1063406920000034, 0.043644524000001184, 0.10690988100000709, 0.04377399399999149, 0.0436512660000119, 0.10691377800000623, 0.043523167999978796, 0.1063406920000034, 0.043644524000001184, 0.10690988100000709, 0.04377399399999149, 0.10980393799999888, 0.04457518500001356, 0.0436512660000119, 0.10691377800000623, 0.043523167999978796, 0.1063406920000034, 0.043644524000001184, 0.10690988100000709, 0.04377399399999149, 0.10980393799999888, 0.04457518500001356, 0.10371326300000305, 0.042822853999979316, 0.0436512660000119, 0.10691377800000623, 0.043523167999978796, 0.1063406920000034, 0.043644524000001184, 0.10690988100000709, 0.04377399399999149, 0.10980393799999888, 0.04457518500001356, 0.10371326300000305, 0.042822853999979316, 0.1013060120000091, 0.04238833299999101 ], "count": 49, "total": 3.460746066000013, "mean": 0.07062747073469414, "p50": 0.04377399399999149, "p90": 0.10691377800000623, "p95": 0.10864787400000181, "p99": 0.10980393799999888, "stdev": 0.03119537161726434, "stdev_": 44.16889249007232 }, "throughput": null, "energy": null, "efficiency": null } } }