IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
28091fd 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.338112,
"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": "829c6f2bf05bfceceeef1a2cf8b5f0b6ce8b52b7",
"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.059392,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.858076757000049,
"mean": 4.858076757000049,
"stdev": 0.0,
"p50": 4.858076757000049,
"p90": 4.858076757000049,
"p95": 4.858076757000049,
"p99": 4.858076757000049,
"values": [
4.858076757000049
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.867961811666482e-05,
"ram": 2.8706264463984092e-06,
"gpu": 0,
"total": 7.155024456306323e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 973.656064,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6354693339999358,
"mean": 0.045390666714281123,
"stdev": 0.0022912965712197616,
"p50": 0.044796200000035924,
"p90": 0.04912440140000172,
"p95": 0.04946727410001302,
"p99": 0.049975806020001415,
"values": [
0.049123020999957134,
0.044326050999984545,
0.04562658399999009,
0.04339021099997353,
0.044665862000044854,
0.04587959700000965,
0.043495477000021765,
0.04351673700000447,
0.04308893799998259,
0.04322886999995035,
0.044926538000026994,
0.04497351599997046,
0.050102938999998514,
0.04912499300002082
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.06192164105724
},
"energy": {
"unit": "kWh",
"cpu": 1.6889174134259176e-06,
"ram": 7.058273921089928e-08,
"gpu": 0.0,
"total": 1.759500152636817e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1136686.460073769
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.442496,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3938000630000147,
"mean": 0.02812857592857248,
"stdev": 0.0020346912921865305,
"p50": 0.027289336000023923,
"p90": 0.03137039080000932,
"p95": 0.03193256415000576,
"p99": 0.03274279122999985,
"values": [
0.02772281000000021,
0.027815072000009877,
0.027441295000016908,
0.027155279999988124,
0.027199854000002688,
0.026868927000009535,
0.02711740999995982,
0.02652124699994829,
0.026473188000011305,
0.027378818000045158,
0.026442470000006324,
0.031387219000009736,
0.03133112500000834,
0.032945347999998376
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.55103545018853
},
"energy": {
"unit": "kWh",
"cpu": 1.011539226574104e-06,
"ram": 4.227479958221876e-08,
"gpu": 0.0,
"total": 1.053814026156322e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 948934.0388146064
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3882462459999374,
"mean": 0.027731874714281242,
"stdev": 0.0019626817983032516,
"p50": 0.026917446499993503,
"p90": 0.030831028800008653,
"p95": 0.031397635450011306,
"p99": 0.03220723748999432,
"values": [
0.027359541999999237,
0.027471440999988772,
0.027112651000038568,
0.026777584999990722,
0.02679440699995439,
0.026527569999984735,
0.026732601999981398,
0.026159551999967334,
0.02612015900001552,
0.027040486000032615,
0.0261074649999955,
0.030852711000022737,
0.03078043699997579,
0.03240963799999008
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.05958884146496
},
"energy": null,
"efficiency": null
}
}
}