{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.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": null, "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16766.7712, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "c3b26af3412e601d30a07497cb23b6d2ce1f38a3", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "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": 1105.289216, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.779817172000008, "mean": 4.779817172000008, "stdev": 0.0, "p50": 4.779817172000008, "p90": 4.779817172000008, "p95": 4.779817172000008, "p99": 4.779817172000008, "values": [ 4.779817172000008 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.696846516111145e-05, "ram": 2.800699303668787e-06, "gpu": 0, "total": 6.976916446478024e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 959.537152, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6313376310000365, "mean": 0.045095545071431174, "stdev": 0.0027633181712984913, "p50": 0.0460904950000014, "p90": 0.04764293730000304, "p95": 0.04774016600000408, "p99": 0.04785409800000906, "values": [ 0.045802565999991884, 0.04600866199999132, 0.04577901199999701, 0.046172328000011476, 0.04662050700000009, 0.047311882999991894, 0.047882581000010305, 0.04766348100000073, 0.047595002000008435, 0.0470798980000211, 0.04120741200000566, 0.04074811199998862, 0.04053492200000619, 0.04093126500001176 ] }, "throughput": { "unit": "tokens/s", "value": 44.35027887637254 }, "energy": { "unit": "kWh", "cpu": 1.6011506419999997e-06, "ram": 6.695317008307707e-08, "gpu": 0.0, "total": 1.6681038120830768e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1198966.1467786357 } }, "decode": { "memory": { "unit": "MB", "max_ram": 959.799296, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3892139089999773, "mean": 0.02780099349999838, "stdev": 0.002158933546064696, "p50": 0.028661495000008586, "p90": 0.029756340400007276, "p95": 0.030211272200013184, "p99": 0.030629587240004242, "values": [ 0.028455003000004808, 0.028109565999983488, 0.028679193000016312, 0.030734166000002006, 0.029929714000019203, 0.029260300000004236, 0.029351801999979443, 0.028992929999986927, 0.02891710800000169, 0.02864379700000086, 0.024459330000013324, 0.024238276999994923, 0.024928158999983907, 0.024514563999986194 ] }, "throughput": { "unit": "tokens/s", "value": 35.96993754917637 }, "energy": { "unit": "kWh", "cpu": 9.625051375138913e-07, "ram": 4.025043721844039e-08, "gpu": 0.0, "total": 1.0027555747323321e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 997251.9975936632 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.38256818399997883, "mean": 0.027326298857141346, "stdev": 0.002083375151586799, "p50": 0.028130004499999473, "p90": 0.0292729665999957, "p95": 0.02973186564999537, "p99": 0.03010497552998345, "values": [ 0.027969123000019636, 0.027610981999998785, 0.028170460000012554, 0.03019825299998047, 0.029480734000003395, 0.028703027000005932, 0.02878817599997774, 0.028433212000010144, 0.02838204599999017, 0.02808954899998639, 0.02410185100001172, 0.02388388299999633, 0.024588061999992306, 0.02416882599999326 ] }, "throughput": { "unit": "tokens/s", "value": 36.59478384642873 }, "energy": null, "efficiency": null } } }