{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.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": "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-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "86906b8c1093b2f4cd2981b46a0b533238abf100", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "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": 1115.787264, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.789506732000007, "mean": 4.789506732000007, "stdev": 0.0, "p50": 4.789506732000007, "p90": 4.789506732000007, "p95": 4.789506732000007, "p99": 4.789506732000007, "values": [ 4.789506732000007 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.727740764617921e-05, "ram": 2.8120252112694285e-06, "gpu": 0, "total": 7.008943285744864e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.015296, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6275749840000344, "mean": 0.041838332266668964, "stdev": 0.0015048348598750531, "p50": 0.04134133900001302, "p90": 0.04402053280001041, "p95": 0.04461421930000426, "p99": 0.04544548946000816, "values": [ 0.041179955000018253, 0.041453027999978076, 0.04081368600000701, 0.04416889600000218, 0.04379798800002277, 0.04134133900001302, 0.04080768500000431, 0.040775254000010364, 0.04200055699999439, 0.04208436500002222, 0.0421672519999845, 0.045653307000009136, 0.04029031199999622, 0.040580256999987796, 0.04046110299998418 ] }, "throughput": { "unit": "tokens/s", "value": 47.80305264685049 }, "energy": { "unit": "kWh", "cpu": 1.5995878643459746e-06, "ram": 6.684981103471727e-08, "gpu": 0.0, "total": 1.666437675380692e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1200164.8963818024 } }, "decode": { "memory": { "unit": "MB", "max_ram": 969.9328, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3787993619999668, "mean": 0.025253290799997784, "stdev": 0.0006085262854625521, "p50": 0.025068778999980168, "p90": 0.025983657799997673, "p95": 0.026486838899995747, "p99": 0.026856916579995414, "values": [ 0.02524743600000079, 0.024900322999997115, 0.025068778999980168, 0.026288582999995924, 0.025526270000000295, 0.024721275999979753, 0.024851369999993267, 0.025118122999998604, 0.025065785000009555, 0.025289193999981308, 0.02694943599999533, 0.025385764999981575, 0.024940081000011105, 0.024410201000023335, 0.025036740000018654 ] }, "throughput": { "unit": "tokens/s", "value": 39.59879953546837 }, "energy": { "unit": "kWh", "cpu": 9.621166189511623e-07, "ram": 4.021024915008981e-08, "gpu": 0.0, "total": 1.0023268681012515e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 997678.5336447586 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3737183060000291, "mean": 0.024914553733335273, "stdev": 0.0005727343192216557, "p50": 0.024746622999998635, "p90": 0.025653341200001022, "p95": 0.026118532500007063, "p99": 0.02637640970000632, "values": [ 0.024876468000002205, 0.024552649000014526, 0.024746622999998635, 0.02598038400000746, 0.025162776999991365, 0.02439952099999232, 0.024535175000011122, 0.024811034999999038, 0.024727589000008265, 0.024968551000000616, 0.026440879000006134, 0.02507490099998222, 0.024656166999989182, 0.02413035500001115, 0.02465523200001485 ] }, "throughput": { "unit": "tokens/s", "value": 40.13718289732061 }, "energy": null, "efficiency": null } } }