{ "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-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "c2380b08ee05a2cb5baf6678b7b8f9ea40675dfa", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "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": 1111.523328, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.650257371000009, "mean": 4.650257371000009, "stdev": 0.0, "p50": 4.650257371000009, "p90": 4.650257371000009, "p95": 4.650257371000009, "p99": 4.650257371000009, "values": [ 4.650257371000009 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.633974872777802e-05, "ram": 2.7728278621548728e-06, "gpu": 0, "total": 6.911257658993289e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.878336, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 16, "total": 0.6343365389999462, "mean": 0.03964603368749664, "stdev": 0.0005871515142414719, "p50": 0.03959320650000109, "p90": 0.04024715749999075, "p95": 0.040568321749987035, "p99": 0.041045923549989996, "values": [ 0.03958684500000231, 0.03958076300000357, 0.040124993999995695, 0.03866065799999774, 0.03969249299998978, 0.03961579899998924, 0.03983653299999901, 0.039524728000003506, 0.0403693209999858, 0.0398543060000236, 0.039493929999991906, 0.0395637919999956, 0.03959956799999986, 0.03895054099999129, 0.04116532399999073, 0.0387169439999866 ] }, "throughput": { "unit": "tokens/s", "value": 50.44640822748303 }, "energy": { "unit": "kWh", "cpu": 1.5154860628205454e-06, "ram": 6.333501570026548e-08, "gpu": 0.0, "total": 1.578821078520811e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1266767.987335075 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.664768, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 16, "total": 0.3960729360000812, "mean": 0.024754558500005075, "stdev": 0.0006383661211396777, "p50": 0.024741068000011524, "p90": 0.02507484900002055, "p95": 0.025582415000009462, "p99": 0.026579334200000915, "values": [ 0.024875274000009995, 0.024761060000003, 0.024555695000003652, 0.024377621000013505, 0.02473163500002329, 0.024982666000028075, 0.02469501599998125, 0.02489601299998867, 0.025167032000013023, 0.024851178999995227, 0.024592393999995465, 0.026828563999998778, 0.02417099400000211, 0.02475050099999976, 0.02388332500001411, 0.02395396700001129 ] }, "throughput": { "unit": "tokens/s", "value": 40.39660008478014 }, "energy": { "unit": "kWh", "cpu": 8.965744107088403e-07, "ram": 3.747186806489935e-08, "gpu": 0.0, "total": 9.340462787737398e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1070610.7638615586 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 16, "total": 0.390491561999994, "mean": 0.024405722624999626, "stdev": 0.0006042411874206423, "p50": 0.02437141400000087, "p90": 0.024711933500014993, "p95": 0.02520104250001509, "p99": 0.026128790100000288, "values": [ 0.024536578999999392, 0.024412746999985302, 0.02423317099999167, 0.02405080799999837, 0.024387850000010758, 0.024609386000008726, 0.02435497799999098, 0.024565754000008155, 0.02481448100002126, 0.024522582999992437, 0.024281140999988793, 0.026360726999996587, 0.023862605999994457, 0.024279107000012345, 0.023573773999999048, 0.02364586999999574 ] }, "throughput": { "unit": "tokens/s", "value": 40.973996769743884 }, "energy": null, "efficiency": null } } }