{ "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.338112, "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": "c932665bc86cea66c29ccd4e794b336721ae01f7", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1123.086336, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.7536275450000005, "mean": 4.7536275450000005, "stdev": 0.0, "p50": 4.7536275450000005, "p90": 4.7536275450000005, "p95": 4.7536275450000005, "p99": 4.7536275450000005, "values": [ 4.7536275450000005 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.733900424999983e-05, "ram": 2.8146002804261057e-06, "gpu": 0, "total": 7.015360453042594e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 976.310272, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6446618229999217, "mean": 0.04297745486666145, "stdev": 0.002806679176182685, "p50": 0.04475526999999602, "p90": 0.04585607899998649, "p95": 0.04595444929998678, "p99": 0.04606612505999749, "values": [ 0.04589462299998104, 0.04609404400000017, 0.04522321199999624, 0.04579826299999468, 0.04501975299999117, 0.04493848100000264, 0.045136069999983874, 0.04475526999999602, 0.04428995300000338, 0.03934723199998302, 0.03959153700000684, 0.039303630999995676, 0.03997576399999048, 0.03979669899999294, 0.03949729100000354 ] }, "throughput": { "unit": "tokens/s", "value": 46.53602699845876 }, "energy": { "unit": "kWh", "cpu": 1.5712195815555357e-06, "ram": 6.566437460407419e-08, "gpu": 0.0, "total": 1.63688395615961e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1221833.711836432 } }, "decode": { "memory": { "unit": "MB", "max_ram": 977.096704, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.401785885000038, "mean": 0.0267857256666692, "stdev": 0.0018674424954392287, "p50": 0.027642190000022993, "p90": 0.0288954859999933, "p95": 0.02910144950000131, "p99": 0.02924126190000834, "values": [ 0.029026549999997542, 0.028698889999986932, 0.029276215000010097, 0.028254461000017272, 0.02845023599999763, 0.028259300000001986, 0.028349969000004194, 0.027642190000022993, 0.02502788999998984, 0.024691340999993372, 0.02447236399999042, 0.02526645300000041, 0.024953249000020605, 0.024812337000014395, 0.02460443999999029 ] }, "throughput": { "unit": "tokens/s", "value": 37.333317470818024 }, "energy": { "unit": "kWh", "cpu": 9.351042851111698e-07, "ram": 3.908085246872889e-08, "gpu": 0.0, "total": 9.741851375798988e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1026498.9286166193 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.39552913500000386, "mean": 0.026368609000000258, "stdev": 0.0017796765687257434, "p50": 0.02716987000002291, "p90": 0.028395836600003575, "p95": 0.02857947550000972, "p99": 0.0287011270999983, "values": [ 0.028514305000015838, 0.028218133999985184, 0.028731539999995448, 0.027761983000004875, 0.027971253000004026, 0.027756173000000217, 0.027843816000000743, 0.02716987000002291, 0.02468668399998819, 0.024355025000005526, 0.02415202699998531, 0.024945554999987962, 0.02463408400001299, 0.024497410000009268, 0.024291275999985373 ] }, "throughput": { "unit": "tokens/s", "value": 37.92388138486904 }, "energy": null, "efficiency": null } } }