{ "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": {}, "hub_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, "latency": true, "memory": 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": "41836e67badc33c5e7a42b3b53f44695ff51963e", "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": { "prefill": { "memory": { "unit": "MB", "max_ram": 961.810432, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6482313710000085, "mean": 0.04986395161538527, "stdev": 0.0009899705731160626, "p50": 0.049836963000018386, "p90": 0.05095472999996673, "p95": 0.051180428599980135, "p99": 0.05139537931999939, "values": [ 0.047838807999994515, 0.04964031000002933, 0.05007256199996846, 0.049836963000018386, 0.04982318699995858, 0.050659386000006634, 0.050349738000022626, 0.04850981900000306, 0.04884853000004341, 0.05100130299996408, 0.05076843799997732, 0.05144911700000421, 0.04943321000001788 ] }, "throughput": { "unit": "tokens/s", "value": 40.10913566230299 }, "energy": { "unit": "kWh", "cpu": 1.7232025303126536e-06, "ram": 7.201478526212668e-08, "gpu": 0.0, "total": 1.7952173155747803e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1114071.250677333 } }, "decode": { "memory": { "unit": "MB", "max_ram": 961.810432, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.3952158779999877, "mean": 0.030401221384614437, "stdev": 0.0009595033356158556, "p50": 0.03030564199997343, "p90": 0.03161760259997663, "p95": 0.03176243859999204, "p99": 0.031888375720011485, "values": [ 0.029676348999998936, 0.03030564199997343, 0.030989065000028404, 0.03126799500000743, 0.02907482800003436, 0.03191986000001634, 0.031657490999975835, 0.03145804899997984, 0.030471841999997196, 0.030132197999989785, 0.028823450000004414, 0.029919843000016044, 0.029519265999965683 ] }, "throughput": { "unit": "tokens/s", "value": 32.89341527923229 }, "energy": { "unit": "kWh", "cpu": 1.05675412836858e-06, "ram": 4.415997808012306e-08, "gpu": 0.0, "total": 1.1009141064487033e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 908336.0764862674 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.38846025899994174, "mean": 0.029881558384610905, "stdev": 0.0009570729378622161, "p50": 0.02977736799999775, "p90": 0.031095519999962563, "p95": 0.03124007919998348, "p99": 0.031368497440012105, "values": [ 0.029159837000008793, 0.02977736799999775, 0.03044752599998901, 0.03076085999998668, 0.0285710190000259, 0.03140060200001926, 0.03113306399995963, 0.030945343999974284, 0.029962812999997368, 0.02961513399998239, 0.028333737000025394, 0.029391067000005933, 0.02896188799996935 ] }, "throughput": { "unit": "tokens/s", "value": 33.465456758607445 }, "energy": null, "efficiency": null } } }