{ "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.3.1", "optimum_benchmark_commit": "9d11320bd2f1225453b4b1dfc080b74581b546cc", "transformers_version": "4.43.2", "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.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1110.245376, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.8206661149999945, "mean": 4.8206661149999945, "stdev": 0.0, "p50": 4.8206661149999945, "p90": 4.8206661149999945, "p95": 4.8206661149999945, "p99": 4.8206661149999945, "values": [ 4.8206661149999945 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.710452503628202e-05, "ram": 2.8047857791193563e-06, "gpu": 0, "total": 6.990931081540137e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.120576, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6420918150000716, "mean": 0.045863701071433685, "stdev": 0.002955105591222863, "p50": 0.04722151600000757, "p90": 0.048191937900014636, "p95": 0.049165272950014584, "p99": 0.05050698579001562, "values": [ 0.04802800000001639, 0.04756255099999862, 0.04738145400000349, 0.048262197000013884, 0.046833212000024105, 0.04706157800001165, 0.04794869200000562, 0.04775775499999213, 0.05084241400001588, 0.041999127999986285, 0.04214690400002041, 0.04225619799998981, 0.04196107800001414, 0.042050653999979204 ] }, "throughput": { "unit": "tokens/s", "value": 43.607470685476464 }, "energy": { "unit": "kWh", "cpu": 1.6654025073404667e-06, "ram": 6.959944837163335e-08, "gpu": 0.0, "total": 1.7350019557120999e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1152736.4527834994 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.907008, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3905732209999826, "mean": 0.02789808721428447, "stdev": 0.0019530329824038449, "p50": 0.02904586649999885, "p90": 0.029828259499998924, "p95": 0.030164438949995542, "p99": 0.030495178189991635, "values": [ 0.029563271000000668, 0.030577862999990657, 0.029941825999998173, 0.029420203999990235, 0.02908557099999598, 0.029006162000001723, 0.029303135999981578, 0.029301645000003873, 0.026063214999993534, 0.02549489599999788, 0.02691633599999932, 0.02534681900002056, 0.025217900000001237, 0.02533437700000718 ] }, "throughput": { "unit": "tokens/s", "value": 35.84475137377794 }, "energy": { "unit": "kWh", "cpu": 9.486574707207852e-07, "ram": 3.9646184803217444e-08, "gpu": 0.0, "total": 9.883036555240025e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1011834.767999311 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.38470742499995936, "mean": 0.027479101785711384, "stdev": 0.0018779738580871938, "p50": 0.02855964500000141, "p90": 0.029343005000009727, "p95": 0.029682440000016186, "p99": 0.030016810400007896, "values": [ 0.029076122999981635, 0.030100403000005826, 0.029457383000021764, 0.028933577000003652, 0.028588323999997556, 0.028530966000005265, 0.028820395999986204, 0.028802914999999985, 0.02569346599997857, 0.02518879499999116, 0.026587011999993138, 0.025016743999998425, 0.024895146999995177, 0.025016174000001 ] }, "throughput": { "unit": "tokens/s", "value": 36.391291382019666 }, "energy": null, "efficiency": null } } }