{ "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": "7d05fd99dffe099b31fb1d300c38e3bc41c25293", "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": 1115.799552, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.080164236000002, "mean": 5.080164236000002, "stdev": 0.0, "p50": 5.080164236000002, "p90": 5.080164236000002, "p95": 5.080164236000002, "p99": 5.080164236000002, "values": [ 5.080164236000002 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.835513136666676e-05, "ram": 2.8586631659917485e-06, "gpu": 0, "total": 7.121379453265851e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 970.309632, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6451867840000318, "mean": 0.04962975261538706, "stdev": 0.002892054367753052, "p50": 0.04934184500001493, "p90": 0.05149146720000317, "p95": 0.054372513000009795, "p99": 0.05749038420002079, "values": [ 0.04953226899999663, 0.04889412199997878, 0.04927997999999434, 0.04934184500001493, 0.050186165000013716, 0.04770754700001589, 0.04688375599999972, 0.04946217899998828, 0.05177428700000064, 0.050360188000013295, 0.04677732800001877, 0.05826985200002355, 0.04671726599997328 ] }, "throughput": { "unit": "tokens/s", "value": 40.298407600362005 }, "energy": { "unit": "kWh", "cpu": 1.8536916111110537e-06, "ram": 7.75109941629869e-08, "gpu": 0.0, "total": 1.931202605274041e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1035624.1207101089 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.440704, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.38809977699997944, "mean": 0.02985382899999842, "stdev": 0.0031697946284757034, "p50": 0.02919530299999451, "p90": 0.030354810400012866, "p95": 0.03442586639998807, "p99": 0.03922360127995488, "values": [ 0.030063036000001375, 0.029519767000010688, 0.029484521000028963, 0.02965330499995389, 0.028565833000016028, 0.028333450999980414, 0.028698510000026545, 0.02919530299999451, 0.03042775400001574, 0.028505681000012828, 0.040423034999946594, 0.02819198800000322, 0.027037592999988647 ] }, "throughput": { "unit": "tokens/s", "value": 33.49654076199247 }, "energy": { "unit": "kWh", "cpu": 1.1084730805556045e-06, "ram": 4.634848457483291e-08, "gpu": 0.0, "total": 1.1548215651304377e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 865934.6432338657 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.3820131319999973, "mean": 0.029385625538461333, "stdev": 0.003048158333005198, "p50": 0.028731059999984154, "p90": 0.029780422399994677, "p95": 0.03370724239998707, "p99": 0.03838084927998351, "values": [ 0.0296518320000132, 0.02909040899999127, 0.02905660600004012, 0.029226370999992923, 0.028168304000018907, 0.027915583999970295, 0.028304187000003367, 0.028731059999984154, 0.029812569999990046, 0.02808371700001544, 0.03954925099998263, 0.027770583999995324, 0.026652656999999635 ] }, "throughput": { "unit": "tokens/s", "value": 34.03024375612326 }, "energy": null, "efficiency": null } } }