{ "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": "65fa416fd503cfe9a2be7637ee30c70a4a1f96f1", "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": 1122.476032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.015723569999977, "mean": 5.015723569999977, "stdev": 0.0, "p50": 5.015723569999977, "p90": 5.015723569999977, "p95": 5.015723569999977, "p99": 5.015723569999977, "values": [ 5.015723569999977 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.842144065433079e-05, "ram": 2.859846625666478e-06, "gpu": 0, "total": 7.128128727999726e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 975.966208, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6451939890000062, "mean": 0.049630306846154326, "stdev": 0.000860683331003568, "p50": 0.04995376900001247, "p90": 0.050179123600003095, "p95": 0.050629225200009384, "p99": 0.05116004424002313, "values": [ 0.04787055299999565, 0.050148114000023725, 0.04958342499998025, 0.049974127000041335, 0.05129274900002656, 0.04995376900001247, 0.04860230499997442, 0.04989288399997349, 0.05018687599999794, 0.04999582699997518, 0.04853414500001918, 0.0500799349999852, 0.049079280000000836 ] }, "throughput": { "unit": "tokens/s", "value": 40.29795758063045 }, "energy": { "unit": "kWh", "cpu": 1.7114587452100673e-06, "ram": 7.152460010502182e-08, "gpu": 0.0, "total": 1.782983345315089e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1121715.4693312964 } }, "decode": { "memory": { "unit": "MB", "max_ram": 976.75264, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.39399983500010194, "mean": 0.030307679615392456, "stdev": 0.0007436199168005409, "p50": 0.030270577000010235, "p90": 0.0313642388000062, "p95": 0.03141904979999026, "p99": 0.03146169635997694, "values": [ 0.03138351100000136, 0.030308144999992237, 0.02991402600002857, 0.030274460999976327, 0.03147235799997361, 0.030848397999989174, 0.02915807900001255, 0.029700996000030955, 0.031287150000025576, 0.02907356000002892, 0.030100481000033597, 0.030208092999998826, 0.030270577000010235 ] }, "throughput": { "unit": "tokens/s", "value": 32.99493767553643 }, "energy": { "unit": "kWh", "cpu": 1.0032476050458285e-06, "ram": 4.1927924274887105e-08, "gpu": 0.0, "total": 1.045175529320716e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 956777.0885814016 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.38713909300003024, "mean": 0.029779930230771558, "stdev": 0.0007311189933317807, "p50": 0.029706846999999925, "p90": 0.03080905940003049, "p95": 0.030877820800026257, "p99": 0.030944604160006293, "values": [ 0.030822168000042893, 0.02979085499998746, 0.029380085000013878, 0.029706846999999925, 0.0309613000000013, 0.030320878999987144, 0.028670664999992823, 0.029191050000008545, 0.030756624999980886, 0.028590033999989828, 0.0295660200000043, 0.029674122000017178, 0.02970844300000408 ] }, "throughput": { "unit": "tokens/s", "value": 33.579662284322666 }, "energy": null, "efficiency": null } } }