{ "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": {}, "hub_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": "33013b51e0268a2fd7f07c903783b994ac1e0021", "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": 1110.257664, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.741065211999995, "mean": 4.741065211999995, "stdev": 0.0, "p50": 4.741065211999995, "p90": 4.741065211999995, "p95": 4.741065211999995, "p99": 4.741065211999995, "values": [ 4.741065211999995 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.719550953971016e-05, "ram": 2.8085806865067295e-06, "gpu": 0, "total": 7.000409022621688e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.878912, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6285618450000925, "mean": 0.04190412300000616, "stdev": 0.0005770860447191328, "p50": 0.041817378000018834, "p90": 0.042688608799983284, "p95": 0.04302177559999905, "p99": 0.043183375919992384, "values": [ 0.04205661399998917, 0.04231871599995429, 0.04141679200000681, 0.04139818800001649, 0.042935204000002614, 0.04322377599999072, 0.04174381600000743, 0.04222742499996457, 0.042024744000002556, 0.04170702800001891, 0.04189196500004755, 0.041817378000018834, 0.04149982000001273, 0.04107729700001528, 0.04122308200004454 ] }, "throughput": { "unit": "tokens/s", "value": 47.72800041656297 }, "energy": { "unit": "kWh", "cpu": 1.5938092867533368e-06, "ram": 6.660810903831589e-08, "gpu": 0.0, "total": 1.660417395791653e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1204516.4095901567 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.4032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3874191449998534, "mean": 0.02582794299999023, "stdev": 0.0007405831397145795, "p50": 0.025715652999963368, "p90": 0.02617861680001852, "p95": 0.026861670100004172, "p99": 0.027994397219970324, "values": [ 0.025751395999975557, 0.02586119300002565, 0.026027754999972785, 0.02557163900002024, 0.02625485200002231, 0.025560767999991185, 0.025383235999981935, 0.026064264000012827, 0.02550354099997776, 0.02827757899996186, 0.02595737299998291, 0.025475631999995585, 0.025715652999963368, 0.025017731999980697, 0.024996531999988747 ] }, "throughput": { "unit": "tokens/s", "value": 38.717756191438795 }, "energy": { "unit": "kWh", "cpu": 9.596641262372338e-07, "ram": 4.0107503515113744e-08, "gpu": 0.0, "total": 9.99771629752347e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1000228.4224125359 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.38240176999994446, "mean": 0.02549345133332963, "stdev": 0.0006976654720593424, "p50": 0.025409474000014143, "p90": 0.025838972800011108, "p95": 0.026470589999991034, "p99": 0.027517633199992134, "values": [ 0.025409474000014143, 0.025532496000039373, 0.025714666999988367, 0.025250615999993897, 0.025909673999990446, 0.02523040799997034, 0.02506068000002415, 0.025732921000042097, 0.0251756150000233, 0.027779393999992408, 0.025615390999973897, 0.025159086999963165, 0.02541822399996363, 0.024717326999962097, 0.024695796000003156 ] }, "throughput": { "unit": "tokens/s", "value": 39.225759859851536 }, "energy": null, "efficiency": null } } }