{ "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.4.0", "optimum_benchmark_commit": "a4519acdcbbeba6e03efbda65aae011ed2a194fb", "transformers_version": "4.43.3", "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.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1110.315008, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.969041527000002, "mean": 4.969041527000002, "stdev": 0.0, "p50": 4.969041527000002, "p90": 4.969041527000002, "p95": 4.969041527000002, "p99": 4.969041527000002, "values": [ 4.969041527000002 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.854804754257203e-05, "ram": 2.865136473079701e-06, "gpu": 0, "total": 7.141318401565173e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.046848, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.636179258999988, "mean": 0.04544137564285628, "stdev": 0.0009437263099339549, "p50": 0.0458733465000023, "p90": 0.04629162599999574, "p95": 0.046399372450001405, "p99": 0.046540327290001356, "values": [ 0.04630449900000144, 0.04626158899998245, 0.04477074999999786, 0.045667264000002206, 0.046575566000001345, 0.04608166200000596, 0.04620294899999067, 0.04463948399998685, 0.04607942900000239, 0.04433467399999813, 0.046111408000001575, 0.0455870670000138, 0.04368638100001476, 0.0438765369999885 ] }, "throughput": { "unit": "tokens/s", "value": 44.01275207244776 }, "energy": { "unit": "kWh", "cpu": 1.7489427529671341e-06, "ram": 7.309122768788256e-08, "gpu": 0.0, "total": 1.8220339806550166e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1097674.3689933845 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.964352, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.39252630100003216, "mean": 0.028037592928573725, "stdev": 0.0009457302190630344, "p50": 0.02801328850000573, "p90": 0.02947875720000184, "p95": 0.029842693050005663, "p99": 0.029893394610008953, "values": [ 0.028150906999997005, 0.027991267000004427, 0.02980856700000345, 0.028495391000006975, 0.029906070000009777, 0.028709200999998075, 0.02803531000000703, 0.0274936370000205, 0.027062380000018038, 0.028535516000005146, 0.027331352000004472, 0.02699109699997848, 0.02707404199998109, 0.026941563999997697 ] }, "throughput": { "unit": "tokens/s", "value": 35.66639984208053 }, "energy": { "unit": "kWh", "cpu": 1.0960379372472346e-06, "ram": 4.5799637752890814e-08, "gpu": 0.0, "total": 1.141837575000126e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 875781.3036586132 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3871098909999944, "mean": 0.027650706499999598, "stdev": 0.0009183368980128819, "p50": 0.02763410450000947, "p90": 0.028985335100011868, "p95": 0.029357183450008505, "p99": 0.02948942308999676, "values": [ 0.027748333999994657, 0.02761626600002387, 0.02926817600001641, 0.028115029999980834, 0.029522482999993827, 0.028325373000001264, 0.02765194299999507, 0.0271184949999963, 0.02669041400000083, 0.028165142999995396, 0.026959898000001203, 0.026641272999995635, 0.026716061999991325, 0.026571001000007755 ] }, "throughput": { "unit": "tokens/s", "value": 36.165441197678426 }, "energy": null, "efficiency": null } } }