{ "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.5.0", "optimum_benchmark_commit": "32c76ae56d42e7230c1dfbaaaa2551ca35f19049", "transformers_version": "4.45.0", "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": 1110.642688, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 1.726611384999984, "mean": 1.726611384999984, "stdev": 0.0, "p50": 1.726611384999984, "p90": 1.726611384999984, "p95": 1.726611384999984, "p99": 1.726611384999984, "values": [ 1.726611384999984 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.711206133333372e-05, "ram": 2.806677355379055e-06, "gpu": 0, "total": 6.991873868871278e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.62848, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6355226130000347, "mean": 0.04539447235714533, "stdev": 0.0015477990799432457, "p50": 0.04512634350000155, "p90": 0.04734695719999991, "p95": 0.04806373125000647, "p99": 0.04903406945000967, "values": [ 0.04741061900000432, 0.04927665400001047, 0.047198412999989614, 0.044098589000014954, 0.04465605699999742, 0.045355480000011994, 0.044334418999994796, 0.04461394999998447, 0.044564546999993127, 0.04546816100000228, 0.04541707500001735, 0.04519247700000051, 0.0450602100000026, 0.04287596200001076 ] }, "throughput": { "unit": "tokens/s", "value": 44.0582277125023 }, "energy": { "unit": "kWh", "cpu": 1.673309706250013e-06, "ram": 6.997046488416303e-08, "gpu": 0.0, "total": 1.743280171134176e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1147262.5187371932 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.414912, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3791062869999564, "mean": 0.027079020499996886, "stdev": 0.0010028932955591055, "p50": 0.02695278799998846, "p90": 0.027304685100008896, "p95": 0.028445464800006447, "p99": 0.030039248160001076, "values": [ 0.030437693999999738, 0.027128250000004073, 0.02663355900000397, 0.026937664999991284, 0.02737272600001006, 0.027039223999992146, 0.026671840000005886, 0.027145923000006178, 0.02707314799999949, 0.02671794599999089, 0.026967910999985634, 0.026865178999997852, 0.025905221999977357, 0.02620999999999185 ] }, "throughput": { "unit": "tokens/s", "value": 36.92895760391758 }, "energy": { "unit": "kWh", "cpu": 9.843656093055444e-07, "ram": 4.11586223195679e-08, "gpu": 0.0, "total": 1.025524231625113e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 975111.0399559593 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.37340192199991407, "mean": 0.02667156585713672, "stdev": 0.0009635269495404901, "p50": 0.026557020999987913, "p90": 0.026899793800001248, "p95": 0.027986011549992893, "p99": 0.029505791109984896, "values": [ 0.0298857359999829, 0.026720570999998472, 0.02622396600000343, 0.026536367999995036, 0.026963082999998278, 0.026645791999982293, 0.026275300999998308, 0.02675211900000818, 0.026674365000019407, 0.026312620999988212, 0.02657767399998079, 0.026478969999999435, 0.025526155999983757, 0.02582919999997557 ] }, "throughput": { "unit": "tokens/s", "value": 37.49311177890301 }, "energy": null, "efficiency": null } } }