{ "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-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "1962c645966bca38419d82300778cd7d5eb23444", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "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": 1109.221376, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.8122349180000015, "mean": 4.8122349180000015, "stdev": 0.0, "p50": 4.8122349180000015, "p90": 4.8122349180000015, "p95": 4.8122349180000015, "p99": 4.8122349180000015, "values": [ 4.8122349180000015 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.789860462777696e-05, "ram": 2.8379849234346446e-06, "gpu": 0, "total": 7.07365895512116e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 962.568192, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 9, "total": 0.6650808019999772, "mean": 0.07389786688888636, "stdev": 0.02900334073229452, "p50": 0.098232921999994, "p90": 0.10074400319999768, "p95": 0.10150580160000118, "p99": 0.10211524032000398, "values": [ 0.09935198399998058, 0.09886089100001527, 0.098232921999994, 0.10226760000000468, 0.10036310399999593, 0.04174144399999591, 0.040678337000002784, 0.04304149699999016, 0.0405430229999979 ] }, "throughput": { "unit": "tokens/s", "value": 27.064380667539726 }, "energy": { "unit": "kWh", "cpu": 1.6341824673611126e-06, "ram": 6.829449534945218e-08, "gpu": 0.0, "total": 1.7024769627105646e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1174758.921152002 } }, "decode": { "memory": { "unit": "MB", "max_ram": 963.354624, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 9, "total": 0.35945751500000256, "mean": 0.039939723888889174, "stdev": 0.015971646863844103, "p50": 0.02667268299998682, "p90": 0.05837547240000731, "p95": 0.059458099200003285, "p99": 0.06032420064000007, "values": [ 0.05569492000000764, 0.056873765999995385, 0.05783415900000932, 0.06054072599999927, 0.0263537040000017, 0.025145473999998558, 0.02667268299998682, 0.024646947000007913, 0.025695135999995955 ] }, "throughput": { "unit": "tokens/s", "value": 25.037729424018124 }, "energy": { "unit": "kWh", "cpu": 9.888748252314746e-07, "ram": 4.1327388069850335e-08, "gpu": 0.0, "total": 1.0302022133013256e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 970683.218390163 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 9, "total": 0.35500646200000574, "mean": 0.039445162444445084, "stdev": 0.015819932689144375, "p50": 0.026163236000002144, "p90": 0.05771857979999595, "p95": 0.058763179399988985, "p99": 0.05959885907998341, "values": [ 0.0550495780000233, 0.056244823999975324, 0.05719627999999943, 0.05980777899998202, 0.026013675000001513, 0.02481582400000093, 0.026163236000002144, 0.02433624400001122, 0.025379022000009854 ] }, "throughput": { "unit": "tokens/s", "value": 25.3516512045909 }, "energy": null, "efficiency": null } } }