{ "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": "dcd8d39eb1efde5484c10fe67e911bfe5a0711c9", "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": 1115.537408, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.870410304000018, "mean": 4.870410304000018, "stdev": 0.0, "p50": 4.870410304000018, "p90": 4.870410304000018, "p95": 4.870410304000018, "p99": 4.870410304000018, "values": [ 4.870410304000018 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.811945703294543e-05, "ram": 2.847185952618929e-06, "gpu": 0, "total": 7.096664298556435e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 968.757248, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6142862530000457, "mean": 0.047252788692311205, "stdev": 0.003457836970294832, "p50": 0.04559629400000631, "p90": 0.053477929200010973, "p95": 0.053623665800000705, "p99": 0.05362837315998604, "values": [ 0.05361974300001293, 0.044221708999998555, 0.04599297600000796, 0.04517365199998835, 0.044678645000004735, 0.04516062800001919, 0.04499997600001393, 0.0458856760000117, 0.04475012899999342, 0.04559629400000631, 0.052910674000003155, 0.05362954999998237, 0.047666601000003084 ] }, "throughput": { "unit": "tokens/s", "value": 42.32554427682768 }, "energy": { "unit": "kWh", "cpu": 1.7992574759203982e-06, "ram": 7.519218524981336e-08, "gpu": 0.0, "total": 1.8744496611702115e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1066979.8402328969 } }, "decode": { "memory": { "unit": "MB", "max_ram": 969.674752, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.3884140939999554, "mean": 0.0298780072307658, "stdev": 0.0032606189493407612, "p50": 0.028425833999989436, "p90": 0.03412760639999988, "p95": 0.036210293199991375, "p99": 0.03817164663997914, "values": [ 0.03233470399999305, 0.02809270999998148, 0.028425833999989436, 0.02730401100001245, 0.02859280600000602, 0.027012421999984326, 0.028106774999997697, 0.027972062999992886, 0.02861115999999697, 0.028299897000010787, 0.03457583200000158, 0.030423895000012635, 0.038661984999976085 ] }, "throughput": { "unit": "tokens/s", "value": 33.4694342991619 }, "energy": { "unit": "kWh", "cpu": 1.2747961417037386e-06, "ram": 5.3276087085509e-08, "gpu": 0.0, "total": 1.3280722287892476e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 752971.0947360608 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.38363933099995506, "mean": 0.029510717769227313, "stdev": 0.003256628907675256, "p50": 0.028075546999986045, "p90": 0.03375785639998981, "p95": 0.03583392119999189, "p99": 0.037786176239992524, "values": [ 0.03196111399998358, 0.027754986999980247, 0.028075546999986045, 0.026947003000003633, 0.028220919000006006, 0.026655513999997993, 0.027750948999994307, 0.027624100999986467, 0.02826973000000521, 0.0277966440000057, 0.03420704199999136, 0.030101541000021825, 0.03827423999999269 ] }, "throughput": { "unit": "tokens/s", "value": 33.88599382163328 }, "energy": null, "efficiency": null } } }