{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.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": {}, "hub_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, "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", "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-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "2a33a472f309c43b5bd16946ef9cec843d02f70a", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 962.134016, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6548131430000126, "mean": 0.046772367357143754, "stdev": 0.0008821540960290291, "p50": 0.04677387099999919, "p90": 0.04792910079999615, "p95": 0.048192400799995025, "p99": 0.04845118815999939, "values": [ 0.04801821699999209, 0.047223414000001185, 0.0462069280000037, 0.04851588500000048, 0.04772116300000562, 0.045293435000019144, 0.04674504199999774, 0.04674420000000623, 0.04585043399998767, 0.046860436999992316, 0.04683386799999312, 0.04543698200001245, 0.04680270000000064, 0.046560438000000204 ] }, "throughput": { "unit": "tokens/s", "value": 42.76029016723548 }, "energy": { "unit": "kWh", "cpu": 1.619126213921441e-06, "ram": 6.766659014160722e-08, "gpu": 0.0, "total": 1.686792804063048e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1185682.0797329207 } }, "decode": { "memory": { "unit": "MB", "max_ram": 962.134016, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.4064867339999978, "mean": 0.029034766714285558, "stdev": 0.000977910463203945, "p50": 0.029159342500008734, "p90": 0.029711455300005695, "p95": 0.029757259599999485, "p99": 0.029806449519983003, "values": [ 0.029130674000015233, 0.029188011000002234, 0.02972415100001058, 0.029818746999978885, 0.02957578400000216, 0.029588076999999657, 0.02912611600001469, 0.029114814999985583, 0.0291152950000253, 0.0296818319999943, 0.02858180000001198, 0.02926766999999586, 0.028845301999979256, 0.02572845999998208 ] }, "throughput": { "unit": "tokens/s", "value": 34.44146838996245 }, "energy": { "unit": "kWh", "cpu": 9.442466199398047e-07, "ram": 3.946277623022924e-08, "gpu": 0.0, "total": 9.837093961700338e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1016560.382459893 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.4000160390000076, "mean": 0.028572574214286255, "stdev": 0.0009363080474945875, "p50": 0.028696584499996902, "p90": 0.02922358060000363, "p95": 0.029256057700000327, "p99": 0.029292926739987877, "values": [ 0.028657941999995273, 0.02873522699999853, 0.029231242000008706, 0.029302143999984764, 0.02912216800001488, 0.029109915999981695, 0.02865095000001361, 0.028632264999998824, 0.02864496800000893, 0.029205703999991783, 0.028119408000009116, 0.028800539000002345, 0.028389492000002292, 0.025414073999996845 ] }, "throughput": { "unit": "tokens/s", "value": 34.99859664377041 }, "energy": null, "efficiency": null } } }