{ "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": "7c71894ae4cd133d60f5842060d14bb76afed94c", "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.15936, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.848083419000034, "mean": 4.848083419000034, "stdev": 0.0, "p50": 4.848083419000034, "p90": 4.848083419000034, "p95": 4.848083419000034, "p99": 4.848083419000034, "values": [ 4.848083419000034 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.708900398678251e-05, "ram": 2.8041423773970563e-06, "gpu": 0, "total": 6.989314636417957e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.91168, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6205991609999728, "mean": 0.04432851149999806, "stdev": 0.002249822797637169, "p50": 0.04554184599999189, "p90": 0.046591856700001696, "p95": 0.0468687820000099, "p99": 0.04707992279999587, "values": [ 0.04154125700000577, 0.04257463000004691, 0.046210121000001436, 0.045717599999989034, 0.04713270799999236, 0.046726668000019345, 0.04612375900001098, 0.046219808999978795, 0.04627729699996053, 0.04536609199999475, 0.04252473799999734, 0.04116342100002157, 0.04174136199998202, 0.04127969899997197 ] }, "throughput": { "unit": "tokens/s", "value": 45.11768909723232 }, "energy": { "unit": "kWh", "cpu": 1.649218135409885e-06, "ram": 6.892287528543761e-08, "gpu": 0.0, "total": 1.7181410106953226e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1164048.8106331916 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.698112, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.38746587300011015, "mean": 0.027676133785722153, "stdev": 0.0020507584515126786, "p50": 0.02839962050003919, "p90": 0.02935537839997551, "p95": 0.03043986504998202, "p99": 0.031719472210013464, "values": [ 0.025552610000033837, 0.029578590999960852, 0.028704445000016676, 0.028444930000034674, 0.028623173000028146, 0.02858415899999045, 0.028267837999976564, 0.0288345490000097, 0.028354311000043708, 0.032039374000021326, 0.025145497999972122, 0.025294455999983256, 0.025104190000035942, 0.024937749000002896 ] }, "throughput": { "unit": "tokens/s", "value": 36.132214410521826 }, "energy": { "unit": "kWh", "cpu": 9.704754087660047e-07, "ram": 4.055975711017366e-08, "gpu": 0.0, "total": 1.0110351658761786e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 989085.2798709377 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3814522730000931, "mean": 0.02724659092857808, "stdev": 0.0019779860984668876, "p50": 0.027916095500017946, "p90": 0.028858158099978937, "p95": 0.02994702524997308, "p99": 0.031216082649988833, "values": [ 0.025212463000002572, 0.029092851999962477, 0.028235067000025538, 0.027970813000024464, 0.028133767000042553, 0.0281057749999718, 0.02779653700002882, 0.028310539000017343, 0.027861378000011428, 0.03153334699999277, 0.024797205999959715, 0.02498458700000583, 0.02480101300000115, 0.02461692900004664 ] }, "throughput": { "unit": "tokens/s", "value": 36.701839236376976 }, "energy": null, "efficiency": null } } }