{ "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": "4756b5f702260c495d0af8c35cfc26bb79985303", "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "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": 1124.642816, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.861878411999953, "mean": 4.861878411999953, "stdev": 0.0, "p50": 4.861878411999953, "p90": 4.861878411999953, "p95": 4.861878411999953, "p99": 4.861878411999953, "values": [ 4.861878411999953 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.773970859444363e-05, "ram": 2.8313295727003184e-06, "gpu": 0, "total": 7.057103816714395e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 977.977344, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6223766829997999, "mean": 0.041491778866653325, "stdev": 0.0006002578226954018, "p50": 0.04167394199998853, "p90": 0.04194201159999693, "p95": 0.04212209489999737, "p99": 0.042439907780013754, "values": [ 0.041871278999963124, 0.04192727200000945, 0.04174786999999469, 0.04251936100001785, 0.04167394199998853, 0.04191772399997262, 0.041385947999970085, 0.04151412599998139, 0.041951837999988584, 0.04133860000001732, 0.041318031000002975, 0.04181462499997224, 0.04076428399997667, 0.04048755999997411, 0.040144222999970225 ] }, "throughput": { "unit": "tokens/s", "value": 48.20231994457551 }, "energy": { "unit": "kWh", "cpu": 1.6045220613334046e-06, "ram": 6.705572266554945e-08, "gpu": 0.0, "total": 1.671577783998954e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1196474.3843480344 } }, "decode": { "memory": { "unit": "MB", "max_ram": 978.763776, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.38505600900015224, "mean": 0.02567040060001015, "stdev": 0.0003693299284751909, "p50": 0.02565972200000033, "p90": 0.026119003999997403, "p95": 0.02617932969998833, "p99": 0.026257751539973243, "values": [ 0.026137317999996412, 0.025897422000014103, 0.025645565000047554, 0.02565972200000033, 0.02609153299999889, 0.02580714500004433, 0.025645596000003934, 0.02585799900003849, 0.025825257999997575, 0.02627735699996947, 0.025634524999986752, 0.025300585000024967, 0.0251618780000058, 0.025021597000034035, 0.025092508999989604 ] }, "throughput": { "unit": "tokens/s", "value": 38.95537181447821 }, "energy": { "unit": "kWh", "cpu": 9.636610410971047e-07, "ram": 4.0272777174828094e-08, "gpu": 0.0, "total": 1.0039338182719335e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 996081.5960172507 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3798578240002257, "mean": 0.02532385493334838, "stdev": 0.00035769588301933126, "p50": 0.02531520200000159, "p90": 0.0257708458000252, "p95": 0.025823089400017808, "p99": 0.025888871479977524, "values": [ 0.025787849000039387, 0.025532274999989113, 0.025287080000055084, 0.02531520200000159, 0.02574534100000392, 0.025446576000035748, 0.025296618000027138, 0.025503361000005498, 0.025482252000017525, 0.025905316999967454, 0.025289776000022357, 0.024970883000037247, 0.024822839000023578, 0.024698838000006162, 0.02477361699999392 ] }, "throughput": { "unit": "tokens/s", "value": 39.488458713413486 }, "energy": null, "efficiency": null } } }