{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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, "latency": true, "memory": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.346304, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "77e62a3eef699bce70248c56d35c703369938b85", "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 955.932672, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6447852839999939, "mean": 0.04959886799999953, "stdev": 0.0023060367797334298, "p50": 0.05031191700001614, "p90": 0.0515503924000086, "p95": 0.05193769340000926, "p99": 0.05232336908000889, "values": [ 0.05120103699999845, 0.05241978800000879, 0.05031191700001614, 0.0512867740000047, 0.05060635399999569, 0.04948061599998255, 0.04911590899999396, 0.04940139800001475, 0.05043698899999072, 0.04962640699997678, 0.05161629700000958, 0.044718613000014784, 0.044563184999987016 ] }, "throughput": { "unit": "tokens/s", "value": 40.32350093151358 }, "energy": { "unit": "kWh", "cpu": 1.7728900668596984e-06, "ram": 7.409080954627539e-08, "gpu": 0.0, "total": 1.8469808764059735e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1082848.2446942197 } }, "decode": { "memory": { "unit": "MB", "max_ram": 955.932672, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.40089242200005515, "mean": 0.030837878615388857, "stdev": 0.001730690383259156, "p50": 0.031182327000010446, "p90": 0.032513429600010114, "p95": 0.032709844200007866, "p99": 0.032861763240002805, "values": [ 0.03223416800000223, 0.032583245000012084, 0.032899743000001536, 0.03214335900000265, 0.0310044370000071, 0.0312940430000026, 0.031182327000010446, 0.03209933799999476, 0.03086203300000534, 0.03064155300000948, 0.028993237000008776, 0.02739090399998645, 0.0275640350000117 ] }, "throughput": { "unit": "tokens/s", "value": 32.42765212458472 }, "energy": { "unit": "kWh", "cpu": 1.0994034584122476e-06, "ram": 4.594782642322249e-08, "gpu": 0.0, "total": 1.1453512848354705e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 873094.5808854179 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9626528439999902, "mean": 0.08022107033333252, "stdev": 0.0038544450784341582, "p50": 0.08107095449999235, "p90": 0.08343117430000006, "p95": 0.0841802451000035, "p99": 0.08488168342000563, "values": [ 0.08505704300000616, 0.0831459579999887, 0.08346286500000133, 0.08166317800001366, 0.08076521199998865, 0.08030879500000765, 0.0815365130000032, 0.08134447699998759, 0.0802612070000066, 0.08079743199999712, 0.07214805899999988, 0.07216210499998965 ] }, "throughput": { "unit": "tokens/s", "value": 12.465552950675251 }, "energy": null, "efficiency": null } } }