{ "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": "99a90c9b7ca414e68efe537586f446369de53efc", "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.195008, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.7853154020000375, "mean": 4.7853154020000375, "stdev": 0.0, "p50": 4.7853154020000375, "p90": 4.7853154020000375, "p95": 4.7853154020000375, "p99": 4.7853154020000375, "values": [ 4.7853154020000375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.689910717777711e-05, "ram": 2.7977446110807752e-06, "gpu": 0, "total": 6.969685178885788e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 959.574016, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6187606689999825, "mean": 0.0412507112666655, "stdev": 0.0008756070967191753, "p50": 0.04120910199998207, "p90": 0.041744192200008, "p95": 0.04236098330001709, "p99": 0.04345353266001325, "values": [ 0.0411946950000015, 0.04117969700001822, 0.04169694699999127, 0.040670530999989296, 0.041592551000007916, 0.04120910199998207, 0.041130602999999155, 0.04145494699997698, 0.041775689000019156, 0.04122985499998322, 0.0416812519999894, 0.04372667000001229, 0.03995961099997203, 0.04006739300001527, 0.040191126000024724 ] }, "throughput": { "unit": "tokens/s", "value": 48.484012483348145 }, "energy": { "unit": "kWh", "cpu": 1.5775448328889625e-06, "ram": 6.596585719641247e-08, "gpu": 0.0, "total": 1.6435106900853748e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1216907.2048421581 } }, "decode": { "memory": { "unit": "MB", "max_ram": 959.705088, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.38232456800000136, "mean": 0.025488304533333426, "stdev": 0.00041773507834725037, "p50": 0.02564353400003938, "p90": 0.02589640739998913, "p95": 0.025936324999992166, "p99": 0.025951288199988768, "values": [ 0.025955028999987917, 0.025928308999993988, 0.02574429300000247, 0.025567321000039556, 0.025817781999990075, 0.02564353400003938, 0.025848554999981843, 0.02555043500001375, 0.02573176699996793, 0.02558319700000311, 0.02564897999997129, 0.02494407799997589, 0.0248292420000098, 0.024768768000001273, 0.024763278000023092 ] }, "throughput": { "unit": "tokens/s", "value": 39.23368063545408 }, "energy": { "unit": "kWh", "cpu": 9.619894934999593e-07, "ram": 4.0228871847987346e-08, "gpu": 0.0, "total": 1.0022183653479473e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 997786.5449041366 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.37704216200006613, "mean": 0.025136144133337743, "stdev": 0.00040705771539872925, "p50": 0.02528726500003131, "p90": 0.02552633259998629, "p95": 0.0255676797999854, "p99": 0.025596383159988818, "values": [ 0.025603558999989673, 0.025552302999983567, 0.025388435000024856, 0.025222684000027584, 0.02543724800000291, 0.02528726500003131, 0.025487376999990374, 0.0251834160000044, 0.025381348999985676, 0.02522117800003798, 0.025308751000011398, 0.02462827599998718, 0.024489663999986533, 0.024426104999974996, 0.02442455200002769 ] }, "throughput": { "unit": "tokens/s", "value": 39.78334921598866 }, "energy": null, "efficiency": null } } }