IlyasMoutawwakil's picture
Upload cuda_inference_transformers_fill-mask_hf-internal-testing/tiny-random-BertModel/benchmark.json with huggingface_hub
236b9cf verified
raw
history blame
22.2 kB
{
"config": {
"name": "cuda_inference_transformers_fill-mask_hf-internal-testing/tiny-random-BertModel",
"backend": {
"name": "pytorch",
"version": "2.5.1+cu124",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "fill-mask",
"library": "transformers",
"model_type": "bert",
"model": "hf-internal-testing/tiny-random-BertModel",
"processor": "hf-internal-testing/tiny-random-BertModel",
"device": "cuda",
"device_ids": "0",
"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": 2,
"sequence_length": 16,
"num_choices": 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": true,
"device_isolation_action": "error",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.248768,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.228-219.884.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.5.0.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.47.0",
"transformers_commit": null,
"accelerate_version": "1.2.0",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.12",
"timm_commit": null,
"peft_version": "0.14.0",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 799.043584,
"max_global_vram": 639.107072,
"max_process_vram": 0.0,
"max_reserved": 2.097152,
"max_allocated": 0.534528
},
"latency": {
"unit": "s",
"values": [
0.05790412902832031
],
"count": 1,
"total": 0.05790412902832031,
"mean": 0.05790412902832031,
"p50": 0.05790412902832031,
"p90": 0.05790412902832031,
"p95": 0.05790412902832031,
"p99": 0.05790412902832031,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.625270327777713e-05,
"ram": 5.273303360723757e-05,
"gpu": 0.00012662204574199944,
"total": 0.0002756077826270141
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1038.344192,
"max_global_vram": 670.564352,
"max_process_vram": 0.0,
"max_reserved": 23.068672,
"max_allocated": 10.112
},
"latency": {
"unit": "s",
"values": [
0.0027893760204315186,
0.0027248640060424803,
0.002662400007247925,
0.002661375999450684,
0.002678783893585205,
0.0026818559169769288,
0.002657279968261719,
0.0026767361164093018,
0.0026316800117492677,
0.0026900479793548586,
0.0026716160774230956,
0.0026255359649658204,
0.0026408960819244384,
0.0026265599727630616,
0.002663424015045166,
0.002655200004577637,
0.0026460158824920654,
0.0026112000942230223,
0.002657279968261719,
0.0026583359241485597,
0.00261843204498291,
0.0026408960819244384,
0.0026265599727630616,
0.0027791359424591063,
0.002657279968261719,
0.002648063898086548,
0.002648063898086548,
0.0026460158824920654,
0.002664448022842407,
0.002642944097518921,
0.0026112000942230223,
0.002639872074127197,
0.002687999963760376,
0.002619391918182373,
0.0026214399337768555,
0.0026419200897216796,
0.0026357760429382322,
0.002672640085220337,
0.0026849279403686525,
0.00260915207862854,
0.0026193599700927734,
0.0026757121086120605,
0.0026163840293884277,
0.002628607988357544,
0.0026470398902893066,
0.0026368000507354735,
0.0026603519916534426,
0.0026511359214782715,
0.002628607988357544,
0.002641887903213501,
0.0026838080883026124,
0.002628607988357544,
0.002619391918182373,
0.002649087905883789,
0.0026408960819244384,
0.0026603519916534426,
0.002634752035140991,
0.0026071040630340574,
0.0026214399337768555,
0.0026859519481658937,
0.002648063898086548,
0.002638848066329956,
0.002649087905883789,
0.0026501119136810303,
0.00266758394241333,
0.002649087905883789,
0.002597887992858887,
0.0026265599727630616,
0.002706432104110718,
0.002610176086425781,
0.002628544092178345,
0.0026562559604644776,
0.00263372802734375,
0.0026654720306396483,
0.002649087905883789,
0.002619391918182373,
0.002619391918182373,
0.00268287992477417,
0.002632704019546509,
0.002623487949371338,
0.0026419200897216796,
0.002634752035140991,
0.00268287992477417,
0.002668544054031372,
0.002623487949371338,
0.002624511957168579,
0.002698240041732788,
0.002649087905883789,
0.002634752035140991,
0.002649087905883789,
0.0026408960819244384,
0.002762752056121826,
0.002661375999450684,
0.002603008031845093,
0.0026296319961547853,
0.0026849279403686525,
0.00263372802734375,
0.002634752035140991,
0.002654207944869995,
0.002632704019546509,
0.0026910719871521,
0.0026521599292755127,
0.0026173439025878906,
0.0026163198947906493,
0.002678783893585205,
0.002628607988357544,
0.002623487949371338,
0.002642944097518921,
0.002606080055236816,
0.0026859519481658937,
0.0026357119083404543,
0.002610176086425781,
0.002624511957168579,
0.0026839039325714112,
0.002643968105316162,
0.0026408960819244384,
0.0026306560039520265,
0.002604032039642334,
0.0026470398902893066,
0.002661344051361084,
0.002604032039642334,
0.002614272117614746,
0.002671583890914917,
0.0026419200897216796,
0.0026081280708312986,
0.0026368000507354735,
0.0026050560474395754,
0.002654207944869995,
0.002678783893585205,
0.0026163198947906493,
0.002653183937072754,
0.0026418559551239012,
0.002653183937072754,
0.0026183679103851318,
0.002628607988357544,
0.002610176086425781,
0.0026408960819244384,
0.002668544054031372,
0.0026112000942230223,
0.0026183679103851318,
0.002634752035140991,
0.002668544054031372,
0.0026296319961547853,
0.0026849279403686525,
0.0026163198947906493,
0.002657279968261719,
0.002686975955963135,
0.002610176086425781,
0.0026460158824920654,
0.0026501119136810303,
0.0026470398902893066,
0.0026470398902893066,
0.0026204159259796142,
0.002614272117614746,
0.002653183937072754,
0.002661279916763306,
0.002613248109817505,
0.002628607988357544,
0.0026316800117492677,
0.002639872074127197,
0.0026654720306396483,
0.002662400007247925,
0.0025999360084533693,
0.0026890239715576174,
0.0026767361164093018,
0.002613248109817505,
0.0029368319511413575,
0.002661375999450684,
0.0026306560039520265,
0.0026603519916534426,
0.002638848066329956,
0.002593791961669922,
0.002613248109817505,
0.0026828160285949708,
0.002610176086425781,
0.0026183679103851318,
0.0026378240585327147,
0.0026255359649658204,
0.00265830397605896,
0.0026357760429382322,
0.002606080055236816,
0.0026122241020202636,
0.0027002880573272704,
0.002610176086425781,
0.0026255359649658204,
0.0026460158824920654,
0.0026408960819244384,
0.0026603519916534426,
0.002642944097518921,
0.0026163198947906493,
0.0026214399337768555,
0.00268287992477417,
0.0026449921131134033,
0.002619391918182373,
0.0026449921131134033,
0.0026460158824920654,
0.002653183937072754,
0.0026552319526672364,
0.002619391918182373,
0.0026163198947906493,
0.002686975955963135,
0.00263372802734375,
0.0026163198947906493,
0.002653183937072754,
0.0026244800090789795,
0.002672640085220337,
0.002624511957168579,
0.0026357760429382322,
0.002638848066329956,
0.0026849279403686525,
0.00265830397605896,
0.0026265599727630616,
0.0026408960819244384,
0.0027105278968811036,
0.002703360080718994,
0.002641952037811279,
0.0027197439670562746,
0.002640928030014038,
0.0026664960384368895,
0.002639872074127197,
0.00263372802734375,
0.002624511957168579,
0.0025958399772644043,
0.0026675200462341307,
0.0026368000507354735,
0.0025968639850616456,
0.0026368000507354735,
0.002708479881286621,
0.0026183679103851318,
0.002643968105316162,
0.00263372802734375,
0.0025999360084533693,
0.0026839039325714112,
0.002664448022842407,
0.002614272117614746,
0.0026552319526672364,
0.0026664960384368895,
0.002628607988357544,
0.00265830397605896,
0.0026316800117492677,
0.0026306560039520265,
0.002673664093017578,
0.00265830397605896,
0.002606080055236816,
0.0025968639850616456,
0.0026378240585327147,
0.002628607988357544,
0.0026163198947906493,
0.0026163198947906493,
0.0026071040630340574,
0.002661375999450684,
0.0026449921131134033,
0.0026019840240478517,
0.0026244800090789795,
0.0026050560474395754,
0.002657279968261719,
0.0026255359649658204,
0.0026183679103851318,
0.002614272117614746,
0.002654207944869995,
0.0026757121086120605,
0.002597887992858887,
0.0026296958923339845,
0.0026214399337768555,
0.002634752035140991,
0.0026368000507354735,
0.00262556791305542,
0.002613248109817505,
0.0026368000507354735,
0.002663424015045166,
0.0026050560474395754,
0.002623487949371338,
0.0026552319526672364,
0.0026470398902893066,
0.002662400007247925,
0.002648063898086548,
0.0026009600162506105,
0.0026460158824920654,
0.0026849279403686525,
0.0026071040630340574,
0.0026224639415740967,
0.002639872074127197,
0.0026265599727630616,
0.002661375999450684,
0.002638848066329956,
0.0025968639850616456,
0.0026224639415740967,
0.002716671943664551,
0.0026081280708312986,
0.0026255359649658204,
0.002638848066329956,
0.002628607988357544,
0.002663424015045166,
0.0026368000507354735,
0.00260915207862854,
0.0026224639415740967,
0.0026859519481658937,
0.0026122241020202636,
0.0026122241020202636,
0.002654207944869995,
0.002632704019546509,
0.002662400007247925,
0.002654207944869995,
0.0026122241020202636,
0.0026173439025878906,
0.002663424015045166,
0.0026306560039520265,
0.002619391918182373,
0.0026296319961547853,
0.002624511957168579,
0.00265830397605896,
0.0026204159259796142,
0.0026224639415740967,
0.002615295886993408,
0.0026798079013824463,
0.0026511359214782715,
0.0026296000480651857,
0.0026368000507354735,
0.0029327359199523926,
0.0034959359169006348,
0.0026593279838562013,
0.0027402238845825196,
0.0025763840675354006,
0.002554879903793335,
0.002520064115524292,
0.0024934399127960207,
0.002507711887359619,
0.0025241599082946775,
0.002489343881607056,
0.0025128960609436036,
0.002489408016204834,
0.002500607967376709,
0.00252620792388916,
0.002489343881607056,
0.0025251839160919188,
0.002527231931686401,
0.00249238395690918,
0.00250982403755188,
0.002530303955078125,
0.002494463920593262,
0.0025518081188201903,
0.0024873600006103517,
0.0024995839595794676,
0.0024791040420532227,
0.0024688639640808104,
0.00253439998626709,
0.0025118720531463624,
0.0024576001167297364,
0.0024688639640808104,
0.0025384960174560547,
0.0025661439895629883,
0.0025088000297546387,
0.002480128049850464,
0.00250982403755188,
0.0025210878849029543,
0.002500607967376709,
0.002513920068740845,
0.0025282559394836424,
0.0024934399127960207,
0.0025118720531463624,
0.0025006721019744872,
0.0025169920921325685,
0.0025210878849029543,
0.002490367889404297,
0.0025210559368133547,
0.00253439998626709,
0.0024883201122283937,
0.00250982403755188,
0.0025681920051574708,
0.0024934399127960207,
0.002504672050476074,
0.0024924159049987795,
0.00250163197517395,
0.002519040107727051,
0.0024872961044311525,
0.002531327962875366,
0.0025128960609436036
],
"count": 377,
"total": 0.9905763497352605,
"mean": 0.002627523474098833,
"p50": 0.00263372802734375,
"p90": 0.002680627107620239,
"p95": 0.0026882047653198245,
"p99": 0.0027815935611724854,
"stdev": 7.423316136569444e-05,
"stdev_": 2.825214012261273
},
"throughput": {
"unit": "samples/s",
"value": 761.1730284106953
},
"energy": {
"unit": "kWh",
"cpu": 3.173505237963272e-08,
"ram": 1.727900325725995e-08,
"gpu": 4.2910404698665956e-08,
"total": 9.192446033555848e-08
},
"efficiency": {
"unit": "samples/kWh",
"value": 21756994.740020838
}
}
}
}