{ "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.4.0", "optimum_benchmark_commit": "cdbc8c7242bafee89911fc305aa0baa0c9ea5671", "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": 1120.894976, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.868687553999962, "mean": 4.868687553999962, "stdev": 0.0, "p50": 4.868687553999962, "p90": 4.868687553999962, "p95": 4.868687553999962, "p99": 4.868687553999962, "values": [ 4.868687553999962 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.87578042348226e-05, "ram": 2.873910767169718e-06, "gpu": 0, "total": 7.163171500199231e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.639104, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6237311340000815, "mean": 0.04158207560000544, "stdev": 0.0009873914593425948, "p50": 0.04146179999997912, "p90": 0.04253101740001739, "p95": 0.04316203640001959, "p99": 0.04399474408002106, "values": [ 0.04189305500000273, 0.040959051000015734, 0.041846528000007766, 0.04420292100002143, 0.04146179999997912, 0.04152592999997751, 0.041035613000019566, 0.04128451900004393, 0.0427159430000188, 0.04219677200001115, 0.04128809200000205, 0.04225362900001528, 0.040220570999963456, 0.04059044199999562, 0.04025626800000737 ] }, "throughput": { "unit": "tokens/s", "value": 48.09764715063282 }, "energy": { "unit": "kWh", "cpu": 1.6088674863179526e-06, "ram": 6.723534044745066e-08, "gpu": 0.0, "total": 1.6761028267654033e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1193244.213936244 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.425536, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3823101319998159, "mean": 0.02548734213332106, "stdev": 0.0008620843443467602, "p50": 0.02524279299996124, "p90": 0.026520146799998656, "p95": 0.027005380499997497, "p99": 0.0275615584999764, "values": [ 0.025291103999961706, 0.025932810999961475, 0.02524279299996124, 0.025830729999995583, 0.025501916999985497, 0.02513145400001804, 0.02514051200000722, 0.02504995199996074, 0.026707428000008804, 0.026239224999983435, 0.025116307000018878, 0.027700602999971125, 0.02435105699998985, 0.02476904799999602, 0.024305190999996285 ] }, "throughput": { "unit": "tokens/s", "value": 39.23516209611527 }, "energy": { "unit": "kWh", "cpu": 9.639423357115851e-07, "ram": 4.0288085254832126e-08, "gpu": 0.0, "total": 1.0042304209664175e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 995787.4001045036 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.37738019299996495, "mean": 0.025158679533330997, "stdev": 0.0008535509725294523, "p50": 0.02490673599999127, "p90": 0.026161811400004353, "p95": 0.026669959200006588, "p99": 0.027240864639992424, "values": [ 0.02495423400000618, 0.025595450999958302, 0.02490673599999127, 0.02549920100000236, 0.025178492999998525, 0.024799094000002242, 0.024818029000016395, 0.024726647999955276, 0.026364117000014176, 0.02585835299998962, 0.024786430999995446, 0.027383590999988883, 0.024048582000034457, 0.024451424000005773, 0.024009809000006044 ] }, "throughput": { "unit": "tokens/s", "value": 39.74771405133441 }, "energy": null, "efficiency": null } } }