{ "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": "4d3f68ed3ce69889d7a985653d3dd6cc1816c2c6", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "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": 1121.046528, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.056956430999975, "mean": 5.056956430999975, "stdev": 0.0, "p50": 5.056956430999975, "p90": 5.056956430999975, "p95": 5.056956430999975, "p99": 5.056956430999975, "values": [ 5.056956430999975 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.736876914444596e-05, "ram": 2.815828095414179e-06, "gpu": 0, "total": 7.018459723986014e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.405632, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6463616510000634, "mean": 0.04616868935714739, "stdev": 0.0024283023479911734, "p50": 0.04619643050000377, "p90": 0.04897111050002536, "p95": 0.049350659250018226, "p99": 0.04953159584998616, "values": [ 0.044965372000035586, 0.04474201300001823, 0.04826556500000834, 0.049576829999978145, 0.04922887500003981, 0.0481742330000543, 0.04820308700004716, 0.048369659999991654, 0.047427488999971956, 0.0449015219999751, 0.042852240000001984, 0.04300879499999155, 0.04292465599996831, 0.04372131399998125 ] }, "throughput": { "unit": "tokens/s", "value": 43.31940169513128 }, "energy": { "unit": "kWh", "cpu": 1.6952312357488102e-06, "ram": 7.084419824166067e-08, "gpu": 0.0, "total": 1.766075433990471e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1132454.4589134413 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.192064, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.39576619999996865, "mean": 0.028269014285712046, "stdev": 0.0017844400005889375, "p50": 0.028507460000014362, "p90": 0.030295949199989992, "p95": 0.030523922199995467, "p99": 0.030673938039985842, "values": [ 0.02773607000000311, 0.027711092999993525, 0.029851724999957696, 0.030711441999983435, 0.029999613999962094, 0.02960502199999837, 0.030422950000001947, 0.029764342000021315, 0.029278850000025614, 0.026023371000007955, 0.026058417000001555, 0.026058837999983098, 0.026429594000035195, 0.02611487199999374 ] }, "throughput": { "unit": "tokens/s", "value": 35.3744205543604 }, "energy": { "unit": "kWh", "cpu": 1.0091840701771631e-06, "ram": 4.217839193268051e-08, "gpu": 0.0, "total": 1.051362462109844e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 951146.7605503326 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3892328300000827, "mean": 0.027802345000005908, "stdev": 0.0017023758391593311, "p50": 0.028044794999999567, "p90": 0.02973595449997788, "p95": 0.029966143249976086, "p99": 0.03011979024999164, "values": [ 0.02733668899998065, 0.027171769000005952, 0.029325445999973, 0.030158201999995526, 0.029440152000006492, 0.029082479999999578, 0.029862726999965616, 0.029217164000044704, 0.028752901000018483, 0.025668504000009307, 0.02571118500003422, 0.025694062000013673, 0.02606727300002376, 0.025744276000011723 ] }, "throughput": { "unit": "tokens/s", "value": 35.968189014264354 }, "energy": null, "efficiency": null } } }