{ "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": {}, "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": "802823c7274dfd9b1edbe9a02521fdbafa78149a", "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": 1116.4672, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.975048257000026, "mean": 4.975048257000026, "stdev": 0.0, "p50": 4.975048257000026, "p90": 4.975048257000026, "p95": 4.975048257000026, "p99": 4.975048257000026, "values": [ 4.975048257000026 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.757732364866469e-05, "ram": 2.824483561606712e-06, "gpu": 0, "total": 7.040180721027141e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.805824, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.646624399000018, "mean": 0.046187457071429856, "stdev": 0.0025949522762666656, "p50": 0.04478753499999755, "p90": 0.050104897899998946, "p95": 0.05104821945000282, "p99": 0.05179402788999852, "values": [ 0.049075115999983154, 0.05198047999999744, 0.050546233000005714, 0.047676484000021446, 0.044828965999982984, 0.04467361700000083, 0.04427160700001309, 0.04474610400001211, 0.04462470699999699, 0.04692271700000106, 0.04385463899998854, 0.04610435899999743, 0.04348238400001492, 0.0438369860000023 ] }, "throughput": { "unit": "tokens/s", "value": 43.30179938044562 }, "energy": { "unit": "kWh", "cpu": 1.7362056722963491e-06, "ram": 7.255874451288947e-08, "gpu": 0.0, "total": 1.8087644168092388e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1105727.1922277813 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.461184, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.39141461400001276, "mean": 0.027958186714286626, "stdev": 0.001715485999648243, "p50": 0.027248505499997577, "p90": 0.030831619700015266, "p95": 0.030911893350013032, "p99": 0.030925736270007463, "values": [ 0.03092919700000607, 0.030666055000011738, 0.03090257600001678, 0.026876630999993267, 0.02733414600001538, 0.026964083999985178, 0.026518981999998914, 0.02980899299998896, 0.027355884000002106, 0.02682236999999077, 0.026555130000019744, 0.027532355000005282, 0.027162864999979774, 0.0259853459999988 ] }, "throughput": { "unit": "tokens/s", "value": 35.76769875025551 }, "energy": { "unit": "kWh", "cpu": 1.0328935808989547e-06, "ram": 4.316798532022403e-08, "gpu": 0.0, "total": 1.0760615662191785e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 929314.856503586 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3856564619999574, "mean": 0.0275468901428541, "stdev": 0.0016660677802258985, "p50": 0.02680176049999261, "p90": 0.03031584500000406, "p95": 0.030387162999996064, "p99": 0.030395451799994647, "values": [ 0.03039752399999429, 0.03016245400002049, 0.03038158399999702, 0.026525053999989723, 0.02695813400001157, 0.026583212999980788, 0.02615685600000006, 0.029435474999985445, 0.026786090999991075, 0.02647963000001141, 0.026208362000005536, 0.027184113999993542, 0.026817429999994147, 0.025580540999982304 ] }, "throughput": { "unit": "tokens/s", "value": 36.30173841091128 }, "energy": null, "efficiency": null } } }