{ "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.3.1", "optimum_benchmark_commit": "ccbe7aacd086723c172c9fa023acf7472f558e93", "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": 1121.406976, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.111950543999967, "mean": 5.111950543999967, "stdev": 0.0, "p50": 5.111950543999967, "p90": 5.111950543999967, "p95": 5.111950543999967, "p99": 5.111950543999967, "values": [ 5.111950543999967 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 7.020411756303576e-05, "ram": 2.9343614597109993e-06, "gpu": 0, "total": 7.313847902274675e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.901248, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6518592000000467, "mean": 0.04656137142857476, "stdev": 0.0025062812649272862, "p50": 0.04817556700001546, "p90": 0.04869664089999333, "p95": 0.0487692127499912, "p99": 0.04883733534999862, "values": [ 0.04749814100000549, 0.04885436600000048, 0.04842183699997804, 0.048381712000036714, 0.04863429400000996, 0.04850860999999895, 0.0487233609999862, 0.048376652999991165, 0.04797448100003976, 0.04491667399997823, 0.04250352299999349, 0.043396684000015284, 0.04277012099998956, 0.04289874300002339 ] }, "throughput": { "unit": "tokens/s", "value": 42.954061245124706 }, "energy": { "unit": "kWh", "cpu": 1.6849741891578391e-06, "ram": 7.041766996451314e-08, "gpu": 0.0, "total": 1.7553918591223524e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1139346.744492677 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.68768, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3962787509998975, "mean": 0.028305625071421252, "stdev": 0.0018750684861859798, "p50": 0.029329297499970153, "p90": 0.030059311899981365, "p95": 0.030134284349981045, "p99": 0.03023222166998721, "values": [ 0.02990913600001477, 0.029330664999974942, 0.030256705999988753, 0.030038187999991806, 0.030068364999976893, 0.02988199600002872, 0.02950482099998908, 0.029327929999965363, 0.0286847879999641, 0.026321750000022348, 0.02592723200001501, 0.025406145999966157, 0.02605760599999485, 0.02556342200000472 ] }, "throughput": { "unit": "tokens/s", "value": 35.328666916091144 }, "energy": { "unit": "kWh", "cpu": 9.989404016070897e-07, "ram": 4.174724994857117e-08, "gpu": 0.0, "total": 1.0406876515556609e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 960903.109117477 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.38966220100002147, "mean": 0.02783301435714439, "stdev": 0.0017913103290846954, "p50": 0.02880393049997565, "p90": 0.029514986199990288, "p95": 0.029585401600004956, "p99": 0.029679176320019564, "values": [ 0.029368055000020377, 0.02880311899997423, 0.029702620000023217, 0.029497957999979008, 0.029522283999995125, 0.029357425000000603, 0.02894865100000743, 0.028804741999977068, 0.028181436000011217, 0.025971936000019014, 0.025576926999974603, 0.025044470000011643, 0.0256651220000208, 0.025217456000007132 ] }, "throughput": { "unit": "tokens/s", "value": 35.92855546180942 }, "energy": null, "efficiency": null } } }