{ "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": "92716b19cf9a85489ef44066dcea60e154b460dc", "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": 1115.344896, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.770814840999947, "mean": 4.770814840999947, "stdev": 0.0, "p50": 4.770814840999947, "p90": 4.770814840999947, "p95": 4.770814840999947, "p99": 4.770814840999947, "values": [ 4.770814840999947 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.762755844328139e-05, "ram": 2.826661050086159e-06, "gpu": 0, "total": 7.045421949336755e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 968.957952, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6617117119998852, "mean": 0.04411411413332568, "stdev": 0.002175463344562263, "p50": 0.04326664699999583, "p90": 0.04758368919998475, "p95": 0.04805467919997568, "p99": 0.04820834543996511, "values": [ 0.04264434999998912, 0.04325330199998234, 0.04235823400000527, 0.04326664699999583, 0.04300257199997759, 0.04278942600001301, 0.04418006200000946, 0.04824676199996247, 0.04797235799998134, 0.046660588999998254, 0.047000685999989855, 0.041825669999980164, 0.0411281019999592, 0.0437031280000042, 0.043679824000037115 ] }, "throughput": { "unit": "tokens/s", "value": 45.3369639012906 }, "energy": { "unit": "kWh", "cpu": 1.5945914586385092e-06, "ram": 6.664111632185267e-08, "gpu": 0.0, "total": 1.661232574960362e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1203925.3444375307 } }, "decode": { "memory": { "unit": "MB", "max_ram": 969.48224, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.4053447140001367, "mean": 0.027022980933342447, "stdev": 0.0016346801925869539, "p50": 0.02618649400000095, "p90": 0.02927176740000732, "p95": 0.029382363400009125, "p99": 0.029567078279997078, "values": [ 0.02618649400000095, 0.026134627000033106, 0.025654287000008935, 0.025900768000042262, 0.02663298000004488, 0.025661121999974057, 0.02925430499999493, 0.02915447700002005, 0.02928340900001558, 0.028729201000032845, 0.029613256999994064, 0.0254840200000217, 0.025053162999995493, 0.027279003999979068, 0.025323599999978796 ] }, "throughput": { "unit": "tokens/s", "value": 37.00553993161223 }, "energy": { "unit": "kWh", "cpu": 9.673877027299674e-07, "ram": 4.043015978906226e-08, "gpu": 0.0, "total": 1.0078178625190295e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 992242.7823421498 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3997457030000646, "mean": 0.02664971353333764, "stdev": 0.0015707804120315785, "p50": 0.025850174000026982, "p90": 0.028764328600004774, "p95": 0.0289328778999959, "p99": 0.02921775157998468, "values": [ 0.025850174000026982, 0.025804939000011018, 0.02532973900002844, 0.02555655300000126, 0.026276171999995768, 0.02531076499997198, 0.028780267000001913, 0.028629453000007743, 0.028740421000009064, 0.02824292000002515, 0.029288969999981873, 0.025196682000000692, 0.02476184700003614, 0.026964114000008976, 0.025012686999957623 ] }, "throughput": { "unit": "tokens/s", "value": 37.52385550970532 }, "energy": null, "efficiency": null } } }