IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
bd0fb3d verified
raw
history blame
9.53 kB
{
"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-1024-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "33e831737ff6c1ec1dbc9b676a3d556b900bd25a",
"transformers_version": "4.43.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1121.73056,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.948798454000013,
"mean": 4.948798454000013,
"stdev": 0.0,
"p50": 4.948798454000013,
"p90": 4.948798454000013,
"p95": 4.948798454000013,
"p99": 4.948798454000013,
"values": [
4.948798454000013
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.91237727801005e-05,
"ram": 2.8891965967625306e-06,
"gpu": 0,
"total": 7.201296937686303e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 975.220736,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6380420030000096,
"mean": 0.04557442878571497,
"stdev": 0.001977179993622194,
"p50": 0.046204283500003385,
"p90": 0.047234092100003976,
"p95": 0.047527313099998025,
"p99": 0.0478999482199967,
"values": [
0.045336886000001186,
0.04799310699999637,
0.046300383000016154,
0.044825583000005054,
0.047276500999998916,
0.04646144199998048,
0.044638523999992685,
0.045729026000003614,
0.047135138000015786,
0.046108183999990615,
0.04689300699999421,
0.04678105800002186,
0.04171696800000291,
0.04084619599998973
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.884258196712445
},
"energy": {
"unit": "kWh",
"cpu": 1.6045445866054962e-06,
"ram": 6.705684685639425e-08,
"gpu": 0.0,
"total": 1.6716014334618905e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1196457.4568819287
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 976.007168,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3952328000000591,
"mean": 0.028230914285718507,
"stdev": 0.0016530014241895453,
"p50": 0.028653614500001368,
"p90": 0.029566023700004964,
"p95": 0.029959213100002557,
"p99": 0.03030180262000556,
"values": [
0.029728624000000536,
0.03038745000000631,
0.028491897999998628,
0.028553813000002037,
0.029186623000015288,
0.028006794000020818,
0.029109870000013416,
0.02879168699999468,
0.028753416000000698,
0.027893091000009917,
0.02825147900000502,
0.029065196999994214,
0.024900022999986504,
0.024112835000011046
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.422161318589716
},
"energy": {
"unit": "kWh",
"cpu": 9.251274499628276e-07,
"ram": 3.8658295398428786e-08,
"gpu": 0.0,
"total": 9.637857453612562e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1037575.0054543187
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3886631509999461,
"mean": 0.027761653642853292,
"stdev": 0.0015957681317948361,
"p50": 0.028151703499986525,
"p90": 0.02904881930001011,
"p95": 0.029448788000001967,
"p99": 0.02980908559998852,
"values": [
0.02920628000001102,
0.02989915999998516,
0.028029805999977953,
0.02807049199998346,
0.028681411000007984,
0.027550603000008778,
0.0286294640000051,
0.028304257999991478,
0.02823291499998959,
0.027346893000014916,
0.027767858000004253,
0.02856644699997446,
0.0245867889999829,
0.023790775000009035
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.020909015894695
},
"energy": null,
"efficiency": null
}
}
}