{ "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": "f9307afbd9cb2c4149a7bcc9162c81eec5fa5006", "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": 1119.899648, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.888483737999991, "mean": 4.888483737999991, "stdev": 0.0, "p50": 4.888483737999991, "p90": 4.888483737999991, "p95": 4.888483737999991, "p99": 4.888483737999991, "values": [ 4.888483737999991 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.859170756666705e-05, "ram": 2.866905063343061e-06, "gpu": 0, "total": 7.145861263001011e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 973.246464, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6487340250000102, "mean": 0.04633814464285787, "stdev": 0.002053453621203171, "p50": 0.04573551749999183, "p90": 0.04986674470000594, "p95": 0.05026525665000463, "p99": 0.05026554733000466, "values": [ 0.045328307000033874, 0.045466864999980316, 0.04546611400002121, 0.04583338000003323, 0.04579173299998729, 0.04567930199999637, 0.047592257000019345, 0.044687859000021035, 0.0459263539999597, 0.048937340000009044, 0.05026506100000461, 0.050265620000004674, 0.043674976999966475, 0.04381885599997304 ] }, "throughput": { "unit": "tokens/s", "value": 43.16098573679646 }, "energy": { "unit": "kWh", "cpu": 1.7492466224637745e-06, "ram": 7.310338965079481e-08, "gpu": 0.0, "total": 1.8223500121145693e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1097484.0105931647 } }, "decode": { "memory": { "unit": "MB", "max_ram": 974.032896, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3906481540000186, "mean": 0.027903439571429902, "stdev": 0.001366974351551439, "p50": 0.02740860850002491, "p90": 0.030079794100021217, "p95": 0.030510283850023256, "p99": 0.030922722370013957, "values": [ 0.027683867999996892, 0.02741361300002154, 0.027101018999985627, 0.02816843299996208, 0.02722308699998166, 0.02740360400002828, 0.02737839700000677, 0.027450571999963813, 0.02679273300003615, 0.031025832000011633, 0.030232681000029515, 0.029723058000001856, 0.026051897999991525, 0.026999359000001277 ] }, "throughput": { "unit": "tokens/s", "value": 35.83787573715076 }, "energy": { "unit": "kWh", "cpu": 9.683402775362072e-07, "ram": 4.046909339462693e-08, "gpu": 0.0, "total": 1.0088093709308345e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 991267.5564039359 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.384912004999876, "mean": 0.027493714642848284, "stdev": 0.00132442652885996, "p50": 0.02702280200000473, "p90": 0.029612868600008824, "p95": 0.029975497200013024, "p99": 0.03035748503999116, "values": [ 0.027308967000010398, 0.027033472000027814, 0.026689910999948552, 0.027769247999970048, 0.026836484000000382, 0.026965055000005123, 0.027012131999981648, 0.02705070499996509, 0.02639097200000151, 0.030452981999985695, 0.02971839000002774, 0.029366651999964688, 0.025682066999991093, 0.026634967999996206 ] }, "throughput": { "unit": "tokens/s", "value": 36.37194947973761 }, "energy": null, "efficiency": null } } }