{ "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": "217063f5c507ed7cc255df7e1f64c4333a0b4dfe", "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.641792, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6455953650000765, "mean": 0.04966118192308281, "stdev": 0.0011138310871939706, "p50": 0.04976701599997568, "p90": 0.050793849999990925, "p95": 0.051082420399984584, "p99": 0.05139535687998887, "values": [ 0.05147359099998994, 0.05048938900000621, 0.048875538000004326, 0.04920651700001599, 0.050821639999981016, 0.047252128000025095, 0.05011995699999261, 0.049671487000011894, 0.05068269000003056, 0.05000360899998668, 0.04976701599997568, 0.04806119300002365, 0.049170610000032866 ] }, "throughput": { "unit": "tokens/s", "value": 40.27290375604992 }, "energy": { "unit": "kWh", "cpu": 1.647639992060485e-06, "ram": 6.885722767337418e-08, "gpu": 0.0, "total": 1.7164972197338591e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1165163.5534312706 } }, "decode": { "memory": { "unit": "MB", "max_ram": 948.641792, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.40846594699996785, "mean": 0.03142045746153599, "stdev": 0.0003943641707196133, "p50": 0.03142344000002595, "p90": 0.03186486960001957, "p95": 0.0319487730000219, "p99": 0.032033123400005935, "values": [ 0.03187848100003521, 0.031668297999999595, 0.03181042399995704, 0.03159901899999795, 0.031337509000024966, 0.031317130999980236, 0.03142344000002595, 0.031193158999997195, 0.03155835299997989, 0.03205421100000194, 0.031226290999995854, 0.030713821999995616, 0.030685808999976416 ] }, "throughput": { "unit": "tokens/s", "value": 31.826398492898168 }, "energy": { "unit": "kWh", "cpu": 9.950112303098039e-07, "ram": 4.158459123287545e-08, "gpu": 0.0, "total": 1.0365958215426806e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 964696.1517863172 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 12, "total": 0.9709682139999813, "mean": 0.08091401783333178, "stdev": 0.0012144876158903498, "p50": 0.08098652399999651, "p90": 0.08218973019996838, "p95": 0.08220160509996788, "p99": 0.08221278901997095, "values": [ 0.08218579900000123, 0.08069179199998189, 0.08083822800000462, 0.08219016699996473, 0.07859111000004759, 0.08156950599999391, 0.08090425000000323, 0.08221558499997172, 0.08202982800003156, 0.08106879799998978, 0.0787650460000009, 0.07991810499999019 ] }, "throughput": { "unit": "tokens/s", "value": 12.35879797811819 }, "energy": null, "efficiency": null } } }