IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ea0da83 verified
raw
history blame
9.52 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.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": {},
"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": "a38b9ad1f603bed36d9a51f418af821526aa4776",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"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": 1120.452608,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.971347182000045,
"mean": 4.971347182000045,
"stdev": 0.0,
"p50": 4.971347182000045,
"p90": 4.971347182000045,
"p95": 4.971347182000045,
"p99": 4.971347182000045,
"values": [
4.971347182000045
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.86789030666666e-05,
"ram": 2.870602845833556e-06,
"gpu": 0,
"total": 7.154950591250015e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.196736,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6459417419999909,
"mean": 0.046138695857142205,
"stdev": 0.0022938885813929607,
"p50": 0.047261455000011665,
"p90": 0.04819082340000023,
"p95": 0.04829793089999157,
"p99": 0.048380139779976614,
"values": [
0.047106271000018296,
0.047416639000005034,
0.04796989999999823,
0.04807001599999694,
0.04806495799999766,
0.04670207700002038,
0.04840069199997288,
0.047874763000038456,
0.048242598000001635,
0.043629858999963744,
0.04226758599997993,
0.04251509799996711,
0.04273223299998108,
0.044949052000049505
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.347562449370855
},
"energy": {
"unit": "kWh",
"cpu": 1.6945578272946532e-06,
"ram": 7.08179840722991e-08,
"gpu": 0.0,
"total": 1.7653758113669521e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1132903.2533029756
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.589952,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39573163400001476,
"mean": 0.02826654528571534,
"stdev": 0.0016085705090884627,
"p50": 0.029242404999990868,
"p90": 0.02939422069998727,
"p95": 0.02975399204998439,
"p99": 0.030273889609991327,
"values": [
0.02915886400001,
0.029371260000004895,
0.029305927999985215,
0.030403863999993064,
0.029301228999997875,
0.029266966000022876,
0.029317350000042097,
0.02921784399995886,
0.02940406099997972,
0.025571119999995062,
0.02608762300002354,
0.025557784999989508,
0.02695941600001106,
0.026808324000000994
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.37751040645762
},
"energy": {
"unit": "kWh",
"cpu": 9.982612838163296e-07,
"ram": 4.171891356664181e-08,
"gpu": 0.0,
"total": 1.0399801973829718e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 961556.7705196899
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3892405020001206,
"mean": 0.027802893000008617,
"stdev": 0.0015366663695830915,
"p50": 0.028728086499995698,
"p90": 0.028885314599989442,
"p95": 0.029229944599993018,
"p99": 0.0297255337200005,
"values": [
0.02865308200000527,
0.028859506999992846,
0.02877810400002545,
0.02984943100000237,
0.028758407999987412,
0.02875987200002328,
0.02882642500003385,
0.028697765000003983,
0.028896374999987984,
0.025206741000033617,
0.025738152000030823,
0.02517562299999554,
0.02659968599999729,
0.0264413310000009
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.96748007481416
},
"energy": null,
"efficiency": null
}
}
}