{ "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.338112, "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": "bbd38855156b81c8eada2deda937e3adeb3b496b", "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": 1120.579584, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.862483819000005, "mean": 4.862483819000005, "stdev": 0.0, "p50": 4.862483819000005, "p90": 4.862483819000005, "p95": 4.862483819000005, "p99": 4.862483819000005, "values": [ 4.862483819000005 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.749456509444436e-05, "ram": 2.8210966400702293e-06, "gpu": 0, "total": 7.031566173451459e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.58176, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6227009289999614, "mean": 0.04447863778571153, "stdev": 0.0029687046123241354, "p50": 0.043536291999984655, "p90": 0.04932804179998982, "p95": 0.050656373699990806, "p99": 0.05097438593999982, "values": [ 0.04343800199998782, 0.04517743900001392, 0.044524606999999605, 0.04363458199998149, 0.05105388900000207, 0.05044232699998474, 0.04672804300000166, 0.04279718500001195, 0.04136566299999345, 0.04237261299999773, 0.04203163500000073, 0.04536783399998967, 0.04202343099998984, 0.04174367900000675 ] }, "throughput": { "unit": "tokens/s", "value": 44.965405856977185 }, "energy": { "unit": "kWh", "cpu": 1.6665238706018544e-06, "ram": 6.964482962893421e-08, "gpu": 0.0, "total": 1.7361687002307885e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1151961.7878920063 } }, "decode": { "memory": { "unit": "MB", "max_ram": 974.712832, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3822335680000606, "mean": 0.027302397714290043, "stdev": 0.0026371528804514702, "p50": 0.026413354500007813, "p90": 0.029971353299998785, "p95": 0.032472855100002106, "p99": 0.034764009420002816, "values": [ 0.026706786999994847, 0.027732802999992145, 0.026425963000008323, 0.026373465000006036, 0.035336798000003, 0.030930732000001626, 0.02693348100001458, 0.026400746000007302, 0.025759609000004957, 0.02605992900001297, 0.0276180790000069, 0.025116228000001684, 0.025982415000015635, 0.024856532999990577 ] }, "throughput": { "unit": "tokens/s", "value": 36.62681975644217 }, "energy": { "unit": "kWh", "cpu": 1.0043665245833384e-06, "ram": 4.1975257891191114e-08, "gpu": 0.0, "total": 1.0463417824745297e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 955710.6642870225 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.37680175799999915, "mean": 0.026914411285714226, "stdev": 0.002613797326946548, "p50": 0.026044009999992568, "p90": 0.02957201119999411, "p95": 0.03205849579999693, "p99": 0.03432810235999199, "values": [ 0.02627271700001188, 0.02733465999997975, 0.02605901799998378, 0.02602207900000053, 0.03489550399999075, 0.030530876000000262, 0.026572156000014502, 0.026029002000001356, 0.025394908000009764, 0.025649122000004354, 0.027104119000000537, 0.024760764999996354, 0.025636359000003495, 0.02454047300000184 ] }, "throughput": { "unit": "tokens/s", "value": 37.154816034589814 }, "energy": null, "efficiency": null } } }