{ "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-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "38f0318f4feebeb8f77039a7ad46d326574675d5", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1111.773184, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.939238842999998, "mean": 4.939238842999998, "stdev": 0.0, "p50": 4.939238842999998, "p90": 4.939238842999998, "p95": 4.939238842999998, "p99": 4.939238842999998, "values": [ 4.939238842999998 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.841000942222213e-05, "ram": 2.859365951157458e-06, "gpu": 0, "total": 7.12693753733796e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 965.513216, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.633620439000083, "mean": 0.048740033769237155, "stdev": 0.0025407895304474697, "p50": 0.04932810000002519, "p90": 0.05097263180000482, "p95": 0.051556631200014635, "p99": 0.052189457440022125, "values": [ 0.04932810000002519, 0.051029276000008394, 0.050471446000017295, 0.04861803000000009, 0.05065329199999269, 0.04804129000001467, 0.049420392999991236, 0.05074605499999052, 0.04921754299999748, 0.052347664000024, 0.04560872499996549, 0.044003609000014876, 0.044135016000041105 ] }, "throughput": { "unit": "tokens/s", "value": 41.03402983816403 }, "energy": { "unit": "kWh", "cpu": 1.7581247241545827e-06, "ram": 7.347492252745472e-08, "gpu": 0.0, "total": 1.8315996466820372e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1091941.6825740396 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.906432, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.387028796999914, "mean": 0.029771445923070308, "stdev": 0.0014685253301205804, "p50": 0.02992682399997193, "p90": 0.03150211319996288, "p95": 0.031612161599969116, "p99": 0.03162187151998296, "values": [ 0.031094285999984095, 0.031604069999957574, 0.03162429899998642, 0.029740930999992088, 0.03026765700002443, 0.02986885100000336, 0.02941273699997282, 0.030898549000028197, 0.030342087000008178, 0.02992682399997193, 0.028089179000005515, 0.027368650000028083, 0.0267906769999513 ] }, "throughput": { "unit": "tokens/s", "value": 33.58923186277244 }, "energy": { "unit": "kWh", "cpu": 1.0235109754751526e-06, "ram": 4.277558063312719e-08, "gpu": 0.0, "total": 1.0662865561082796e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 937834.2006390744 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.38073467200013056, "mean": 0.029287282461548506, "stdev": 0.001389834947412328, "p50": 0.029543456999988393, "p90": 0.030945136600007573, "p95": 0.031058256600010735, "p99": 0.031073222520019497, "values": [ 0.030542543000024125, 0.031045785000003434, 0.03107696400002169, 0.029207472999985384, 0.029673846000036974, 0.02936377500003573, 0.0288982729999816, 0.030344842000033623, 0.02980832800000144, 0.029543456999988393, 0.027730086000019583, 0.027039322999996784, 0.0264599770000018 ] }, "throughput": { "unit": "tokens/s", "value": 34.14451311120817 }, "energy": null, "efficiency": null } } }