{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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-1024-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "6924c8d60aa62ba0684c7b2cc2780f5170083764", "transformers_version": "4.43.2", "transformers_commit": null, "accelerate_version": "0.33.0", "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": 1110.474752, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.796887352999988, "mean": 4.796887352999988, "stdev": 0.0, "p50": 4.796887352999988, "p90": 4.796887352999988, "p95": 4.796887352999988, "p99": 4.796887352999988, "values": [ 4.796887352999988 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.744103696611193e-05, "ram": 2.8188778272033234e-06, "gpu": 0, "total": 7.025991479331526e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.969024, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6565203260000771, "mean": 0.04689430900000551, "stdev": 0.0022938841388178335, "p50": 0.0465084719999993, "p90": 0.048287215799996376, "p95": 0.050385868500006835, "p99": 0.053311695300017156, "values": [ 0.04438078400005452, 0.04658389700000498, 0.04631711100000757, 0.044260250000036194, 0.04724261500001603, 0.046276004999981524, 0.0449150789999635, 0.04643304699999362, 0.04665686399999913, 0.04607246599999826, 0.046937086000014006, 0.04798540799998818, 0.054043152000019745, 0.048416561999999885 ] }, "throughput": { "unit": "tokens/s", "value": 42.649098422577566 }, "energy": { "unit": "kWh", "cpu": 1.5618422296312121e-06, "ram": 6.527205047873394e-08, "gpu": 0.0, "total": 1.627114280109946e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1229169.963319883 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.886528, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.4057255429998463, "mean": 0.02898039592856045, "stdev": 0.0009709516665270387, "p50": 0.028617503999981864, "p90": 0.030340422799980615, "p95": 0.030872025449980356, "p99": 0.03130669708998539, "values": [ 0.028537193999966348, 0.02978267399998913, 0.02797610900000791, 0.028201348999971287, 0.02844315900000538, 0.028960863000008885, 0.02835653700003604, 0.02869781399999738, 0.02894105499996158, 0.028111971999976504, 0.029458710999961113, 0.03141536499998665, 0.030579457999976967, 0.028263283000001138 ] }, "throughput": { "unit": "tokens/s", "value": 34.50608481903074 }, "energy": { "unit": "kWh", "cpu": 9.35669872495863e-07, "ram": 3.910386659477752e-08, "gpu": 0.0, "total": 9.74773739090641e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1025879.0936785928 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.39930989099985936, "mean": 0.028522135071418524, "stdev": 0.0009720496048790091, "p50": 0.02814354049999679, "p90": 0.02996086459995695, "p95": 0.03046768514996643, "p99": 0.030802320229996665, "values": [ 0.028079550999962066, 0.02930383199998232, 0.027500373000009404, 0.027715443999966283, 0.027946584000005714, 0.028500355000005584, 0.027859933000002002, 0.02820753000003151, 0.02847727099998565, 0.027661852999983694, 0.028994184999987738, 0.030885979000004227, 0.030242449999946075, 0.027934550999987096 ] }, "throughput": { "unit": "tokens/s", "value": 35.06048889734347 }, "energy": null, "efficiency": null } } }