IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
41c4560 verified
raw
history blame
9.64 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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.7712,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "ac20cfed675e8f5ef3270e658accc99c6fb3141d",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"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": 1115.992064,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.826102868000021,
"mean": 4.826102868000021,
"stdev": 0.0,
"p50": 4.826102868000021,
"p90": 4.826102868000021,
"p95": 4.826102868000021,
"p99": 4.826102868000021,
"values": [
4.826102868000021
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.76943476222211e-05,
"ram": 2.8310399782495974e-06,
"gpu": 0,
"total": 7.052538760047069e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 970.24,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6247074389998488,
"mean": 0.04164716259998992,
"stdev": 0.0006661999822193306,
"p50": 0.0417017439999654,
"p90": 0.04181996560001835,
"p95": 0.04243451500000219,
"p99": 0.043524123799995776,
"values": [
0.043796525999994174,
0.04170864699995036,
0.04177372000003743,
0.041548575000035726,
0.04185079600000563,
0.041714587999990727,
0.041532695000000786,
0.041361983999991025,
0.04170960900000864,
0.0417017439999654,
0.041697205999980724,
0.04171488899999076,
0.040934856999967906,
0.04091257599998244,
0.04074902699994709
]
},
"throughput": {
"unit": "tokens/s",
"value": 48.02247920727459
},
"energy": {
"unit": "kWh",
"cpu": 1.591961297111109e-06,
"ram": 6.656919157278087e-08,
"gpu": 0.0,
"total": 1.6585304886838897e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1205886.7857093662
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.502144,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3893285870000227,
"mean": 0.025955239133334848,
"stdev": 0.0011070549483587968,
"p50": 0.025689650000003894,
"p90": 0.027749413199990157,
"p95": 0.028456467900019787,
"p99": 0.028653415980035107,
"values": [
0.028350960000011582,
0.025689650000003894,
0.026847092999958022,
0.025625538999975106,
0.025655034000010346,
0.025320093000004817,
0.025747889999991003,
0.025810536999983924,
0.02569728399998894,
0.02569534100001647,
0.025260370000012244,
0.028702653000038936,
0.024834757000007812,
0.02491017599999168,
0.02518121000002793
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.527866950594934
},
"energy": {
"unit": "kWh",
"cpu": 9.38959317819456e-07,
"ram": 3.9261308901821436e-08,
"gpu": 0.0,
"total": 9.78220626721278e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1022264.2752399531
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.383212563000086,
"mean": 0.025547504200005733,
"stdev": 0.0010804639560491268,
"p50": 0.025307619000045634,
"p90": 0.02731572299998106,
"p95": 0.028013789800002086,
"p99": 0.028137121960012338,
"values": [
0.027947718999996596,
0.025311486000020977,
0.026367728999957762,
0.025218772000016543,
0.025283112000010988,
0.02494535599998926,
0.025358556000014687,
0.02543227400002479,
0.025316846999999143,
0.025307619000045634,
0.024865405000014107,
0.0281679550000149,
0.024488274000020738,
0.02440772899996091,
0.02479372999999896
]
},
"throughput": {
"unit": "tokens/s",
"value": 39.14276683042
},
"energy": null,
"efficiency": null
}
}
}