{ "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": "1c43fa2fcd13a51b92e79f85bd1b3b0bffb11f79", "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.657856, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.866434240000046, "mean": 4.866434240000046, "stdev": 0.0, "p50": 4.866434240000046, "p90": 4.866434240000046, "p95": 4.866434240000046, "p99": 4.866434240000046, "values": [ 4.866434240000046 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.770963122777719e-05, "ram": 2.8316988305153015e-06, "gpu": 0, "total": 7.054133005829249e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 959.250432, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6218302959999846, "mean": 0.04145535306666564, "stdev": 0.001090527809703039, "p50": 0.041161997000017436, "p90": 0.04171153760001971, "p95": 0.04284252680001827, "p99": 0.04484761575998618, "values": [ 0.041396676999966076, 0.041505680999989636, 0.04082442600002878, 0.041429246999996394, 0.04176837200003547, 0.040807293999989724, 0.04162628599999607, 0.04113604999997733, 0.04129176099996812, 0.040922811000029924, 0.040979876999983844, 0.04534888799997816, 0.04051225199998498, 0.04111867700004268, 0.041161997000017436 ] }, "throughput": { "unit": "tokens/s", "value": 48.24467413855427 }, "energy": { "unit": "kWh", "cpu": 1.5752157135555082e-06, "ram": 6.586856324803522e-08, "gpu": 0.0, "total": 1.6410842768035435e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1218706.4541837804 } }, "decode": { "memory": { "unit": "MB", "max_ram": 959.905792, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3822290819999239, "mean": 0.025481938799994927, "stdev": 0.000673847115889247, "p50": 0.025277721999998448, "p90": 0.025686042199993153, "p95": 0.026331226900009594, "p99": 0.027526699780022455, "values": [ 0.02567891299997882, 0.02530981199998905, 0.02517899800000123, 0.02782556800002567, 0.025242606999995587, 0.025245111000003817, 0.02499503299998196, 0.02541967700000214, 0.025277721999998448, 0.02563138299996126, 0.025595786999986103, 0.025124325000035697, 0.025234350999994604, 0.0247789999999668, 0.02569079500000271 ] }, "throughput": { "unit": "tokens/s", "value": 39.2434817401021 }, "energy": { "unit": "kWh", "cpu": 9.492124694305621e-07, "ram": 3.969317083607294e-08, "gpu": 0.0, "total": 9.889056402666357e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1011218.8254183412 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3768289539999614, "mean": 0.025121930266664094, "stdev": 0.0006758052926231262, "p50": 0.024939810000034868, "p90": 0.02533066119998466, "p95": 0.025978249199988566, "p99": 0.027180123440011812, "values": [ 0.02532507099999748, 0.02495735299999069, 0.024829894999982116, 0.027480592000017623, 0.02488756299999295, 0.024883856000030846, 0.02464967800000295, 0.025022193999973297, 0.024939810000034868, 0.02528399399994896, 0.025166293999973277, 0.024803505000022597, 0.024858148000021174, 0.02440661299999647, 0.025334387999976116 ] }, "throughput": { "unit": "tokens/s", "value": 39.805858442611964 }, "energy": null, "efficiency": null } } }