{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "model": "openai-community/gpt2", "library": "transformers", "device": "cpu", "device_ids": null, "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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, "latency": true, "memory": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.346304, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "e5cc8d8069420e159473795b6d1ea703cadf2a8b", "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 948.719616, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6381102090001605, "mean": 0.049085400692320036, "stdev": 0.0009991524784254868, "p50": 0.04951119600002585, "p90": 0.04994197260000419, "p95": 0.05007467899999938, "p99": 0.0502337918000012, "values": [ 0.04986143599995785, 0.04994208499999786, 0.04749889900000426, 0.04994152300002952, 0.050273570000001655, 0.04738974800000051, 0.049802965000026234, 0.0491602670000475, 0.048166989000037574, 0.047740387000033024, 0.04889139099998374, 0.0499297530000149, 0.04951119600002585 ] }, "throughput": { "unit": "tokens/s", "value": 40.745312695652956 }, "energy": { "unit": "kWh", "cpu": 1.6988325234196613e-06, "ram": 7.099577427232401e-08, "gpu": 0.0, "total": 1.7698282976919853e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1130053.1258360934 } }, "decode": { "memory": { "unit": "MB", "max_ram": 948.719616, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.4042679689999318, "mean": 0.03109753607691783, "stdev": 0.0003948984056917711, "p50": 0.031224559000008867, "p90": 0.031533954399969845, "p95": 0.03157658959997889, "p99": 0.03158076031999144, "values": [ 0.030915667000044778, 0.031253229000014926, 0.03158180299999458, 0.03133249100000057, 0.030918993999989652, 0.031038550000005216, 0.031224559000008867, 0.031309618999955546, 0.03157311399996843, 0.03137731599997551, 0.031140219999997498, 0.03023333599998068, 0.03036907099999553 ] }, "throughput": { "unit": "tokens/s", "value": 32.15688849195518 }, "energy": { "unit": "kWh", "cpu": 1.0135169267270494e-06, "ram": 4.2359389016150586e-08, "gpu": 0.0, "total": 1.0558763157432008e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 947080.6240180972 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9618252029999894, "mean": 0.08015210024999912, "stdev": 0.0009012063599150997, "p50": 0.08012189650000323, "p90": 0.08122276360001024, "p95": 0.08126305835002653, "p99": 0.081299350870039, "values": [ 0.08122594100001379, 0.07907469099995978, 0.08130842400004212, 0.08119416699997828, 0.07845691199997873, 0.08105556700002126, 0.08045305299998518, 0.07976948999998967, 0.07914940300003082, 0.08005747999999357, 0.08018631300001289, 0.07989376199998333 ] }, "throughput": { "unit": "tokens/s", "value": 12.47627943473647 }, "energy": null, "efficiency": null } } }