{ "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": "40484fbc84921b66f5da6e6dc8e14a8bfa42b562", "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": 959.5904, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6424627510000676, "mean": 0.04589019650000482, "stdev": 0.002383455004434377, "p50": 0.04723009299999603, "p90": 0.04751209140000867, "p95": 0.047614370600007304, "p99": 0.047718524520008715, "values": [ 0.04727155599999833, 0.04735951000000682, 0.047744563000009066, 0.04729871600000024, 0.04734186800001794, 0.04754426700000636, 0.047188629999993736, 0.04743701500001407, 0.046764445999997406, 0.04684360299998502, 0.04527515099999846, 0.04117219400001204, 0.04191040800000678, 0.041310824000021285 ] }, "throughput": { "unit": "tokens/s", "value": 43.582293224649625 }, "energy": { "unit": "kWh", "cpu": 1.6317032553531507e-06, "ram": 6.819121629000731e-08, "gpu": 0.0, "total": 1.6998944716431582e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1176543.6227736848 } }, "decode": { "memory": { "unit": "MB", "max_ram": 959.5904, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.39968538399992326, "mean": 0.02854895599999452, "stdev": 0.0018958916265558701, "p50": 0.029523903499992343, "p90": 0.030147376099989742, "p95": 0.030256447549994903, "p99": 0.030365290309994464, "values": [ 0.030392500999994354, 0.029787276999996948, 0.030063814999977012, 0.02949948799999902, 0.030183187999995198, 0.0297355699999855, 0.029331463000005442, 0.029674545999995416, 0.029548318999985668, 0.02908711400002062, 0.02540689699998211, 0.025659029999985705, 0.025601321999999982, 0.025714854000000287 ] }, "throughput": { "unit": "tokens/s", "value": 35.02755056963176 }, "energy": { "unit": "kWh", "cpu": 1.0062755809889903e-06, "ram": 4.205479139361753e-08, "gpu": 0.0, "total": 1.048330372382607e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 953897.7657656112 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.9649358449999852, "mean": 0.07422583423076809, "stdev": 0.0042298586770630545, "p50": 0.07653514200001155, "p90": 0.07750060500001724, "p95": 0.07765262000002053, "p99": 0.07777946240001597, "values": [ 0.07721410299998865, 0.07781117300001483, 0.07680508599997893, 0.07754691800002433, 0.07731535299998882, 0.07653514200001155, 0.07713075699999195, 0.07634771899998327, 0.07596145600001591, 0.07084833900000831, 0.06684209499999838, 0.06753755799999794, 0.06704014599998231 ] }, "throughput": { "unit": "tokens/s", "value": 13.472398260840025 }, "energy": null, "efficiency": null } } }