IlyasMoutawwakil's picture
Upload cuda_inference_transformers_fill-mask_hf-internal-testing/tiny-random-BertModel/benchmark.json with huggingface_hub
2fa7599 verified
raw
history blame
22.1 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.371264,
"max_global_vram": 639.107072,
"max_process_vram": 0.0,
"max_reserved": 2.097152,
"max_allocated": 0.534528
},
"latency": {
"unit": "s",
"values": [
0.05746073532104492
],
"count": 1,
"total": 0.05746073532104492,
"mean": 0.05746073532104492,
"p50": 0.05746073532104492,
"p90": 0.05746073532104492,
"p95": 0.05746073532104492,
"p99": 0.05746073532104492,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.575282566805589e-05,
"ram": 5.2461085863189746e-05,
"gpu": 0.00013065038229800006,
"total": 0.0002788642938292457
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1038.614528,
"max_global_vram": 670.564352,
"max_process_vram": 0.0,
"max_reserved": 23.068672,
"max_allocated": 10.112
},
"latency": {
"unit": "s",
"values": [
0.0031293439865112305,
0.0027791359424591063,
0.002706432104110718,
0.002638848066329956,
0.002594815969467163,
0.0026183679103851318,
0.002593791961669922,
0.0025825281143188475,
0.0026818559169769288,
0.002752511978149414,
0.003051520109176636,
0.002859008073806763,
0.002849792003631592,
0.0028231680393218995,
0.0027105278968811036,
0.002849792003631592,
0.0027822399139404296,
0.002708479881286621,
0.002722815990447998,
0.0027258880138397216,
0.0026890239715576174,
0.0027217919826507567,
0.0027351040840148926,
0.0028149759769439697,
0.0026562559604644776,
0.0026460158824920654,
0.002626528024673462,
0.002604032039642334,
0.002657279968261719,
0.0026654720306396483,
0.0027924480438232422,
0.0027545599937438964,
0.002883584022521973,
0.0028928000926971434,
0.0028241920471191407,
0.002811903953552246,
0.0028026878833770754,
0.0027811839580535887,
0.0027156479358673097,
0.00265830397605896,
0.0026265599727630616,
0.002803744077682495,
0.002639872074127197,
0.0026163198947906493,
0.0027596800327301025,
0.002694144010543823,
0.0026675200462341307,
0.002736128091812134,
0.0027002880573272704,
0.002673664093017578,
0.0027443199157714845,
0.0026849279403686525,
0.002639872074127197,
0.0027043840885162354,
0.0026675200462341307,
0.0026562559604644776,
0.0027197439670562746,
0.0027054080963134766,
0.002664448022842407,
0.002643968105316162,
0.002669568061828613,
0.002677759885787964,
0.002663424015045166,
0.0027924480438232422,
0.002737152099609375,
0.0027545599937438964,
0.002821120023727417,
0.0027811839580535887,
0.0028098559379577635,
0.0028487679958343506,
0.002890752077102661,
0.002846719980239868,
0.002801696062088013,
0.002890752077102661,
0.002811903953552246,
0.0027043840885162354,
0.0027607040405273437,
0.0029368319511413575,
0.0026368000507354735,
0.002639872074127197,
0.0026111679077148436,
0.0026204159259796142,
0.00265830397605896,
0.002783231973648071,
0.0028989439010620116,
0.002732032060623169,
0.0027187199592590334,
0.0026296319961547853,
0.0025927679538726807,
0.0026603519916534426,
0.0026746881008148193,
0.0026593279838562013,
0.0027187199592590334,
0.0026910719871521,
0.0025804479122161867,
0.0025671679973602295,
0.002548736095428467,
0.002546655893325806,
0.0025753600597381594,
0.002594815969467163,
0.002561023950576782,
0.0026122241020202636,
0.0025968639850616456,
0.0025722880363464357,
0.002580480098724365,
0.0025815041065216063,
0.0025569279193878173,
0.0025722880363464357,
0.0026071040630340574,
0.0025815041065216063,
0.0026900479793548586,
0.0028108799457550048,
0.002769920110702515,
0.002817023992538452,
0.0026910719871521,
0.0025763840675354006,
0.002657279968261719,
0.0026296319961547853,
0.002642944097518921,
0.002639872074127197,
0.002632704019546509,
0.002756511926651001,
0.002677759885787964,
0.0026419200897216796,
0.0026408960819244384,
0.0027002880573272704,
0.002653183937072754,
0.002634752035140991,
0.0026592960357666017,
0.0026552319526672364,
0.0026316800117492677,
0.0026593279838562013,
0.002871295928955078,
0.002627583980560303,
0.0026419200897216796,
0.002606080055236816,
0.002555903911590576,
0.0026071040630340574,
0.0025968639850616456,
0.0025681920051574708,
0.002593791961669922,
0.0025722880363464357,
0.002565119981765747,
0.0026460158824920654,
0.0027207679748535154,
0.0027258880138397216,
0.0028098559379577635,
0.002791424036026001,
0.0027555840015411376,
0.0027074880599975587,
0.002752511978149414,
0.0027514879703521727,
0.0027586560249328613,
0.002832319974899292,
0.0027514879703521727,
0.0026224639415740967,
0.0026214399337768555,
0.0026306560039520265,
0.00261625599861145,
0.0026675200462341307,
0.0026511359214782715,
0.002657279968261719,
0.002637887954711914,
0.002551775932312012,
0.0025835518836975096,
0.002638848066329956,
0.0028569600582122805,
0.00273305606842041,
0.002657279968261719,
0.002821120023727417,
0.002628607988357544,
0.0026009600162506105,
0.002673664093017578,
0.00268287992477417,
0.002619391918182373,
0.0026552319526672364,
0.0027688961029052736,
0.0025968639850616456,
0.002617408037185669,
0.0026664960384368895,
0.0026716480255126952,
0.00268287992477417,
0.0026767361164093018,
0.0025968639850616456,
0.002559999942779541,
0.0025425920486450196,
0.0025231359004974367,
0.0025292799472808837,
0.0025128960609436036,
0.0025456640720367433,
0.002544640064239502,
0.0027064640522003174,
0.0027893760204315186,
0.0027156479358673097,
0.002622431993484497,
0.0026839039325714112,
0.0026654720306396483,
0.0026920959949493406,
0.0026798079013824463,
0.0027248640060424803,
0.002655200004577637,
0.0026408960819244384,
0.0026920959949493406,
0.0026501119136810303,
0.0026593279838562013,
0.002732032060623169,
0.00273305606842041,
0.0028774399757385254,
0.002756608009338379,
0.0027105278968811036,
0.0031744000911712645,
0.002791424036026001,
0.002639872074127197,
0.002783231973648071,
0.002594815969467163,
0.0026378240585327147,
0.0027934720516204835,
0.002604032039642334,
0.0026306560039520265,
0.0026316800117492677,
0.0025917439460754394,
0.0026326398849487306,
0.0026316800117492677,
0.002614272117614746,
0.002643968105316162,
0.0026163198947906493,
0.0025825281143188475,
0.002619391918182373,
0.0026214399337768555,
0.002603008031845093,
0.0026470398902893066,
0.00263372802734375,
0.0025968639850616456,
0.0026501119136810303,
0.002606080055236816,
0.0025784320831298826,
0.0026378240585327147,
0.002619391918182373,
0.002582560062408447,
0.002606080055236816,
0.002594815969467163,
0.002589695930480957,
0.0025927679538726807,
0.002574336051940918,
0.002623487949371338,
0.00260915207862854,
0.0025958399772644043,
0.002627583980560303,
0.0025886719226837157,
0.002594815969467163,
0.0026091840267181395,
0.0025999360084533693,
0.0025784320831298826,
0.0026173439025878906,
0.00273305606842041,
0.0025815041065216063,
0.0026071040630340574,
0.0026173439025878906,
0.0025886719226837157,
0.002610176086425781,
0.002584575891494751,
0.0027340800762176514,
0.0025958399772644043,
0.002605087995529175,
0.0025784320831298826,
0.002613248109817505,
0.002594752073287964,
0.0025999360084533693,
0.00260915207862854,
0.0025968639850616456,
0.002594815969467163,
0.0026357760429382322,
0.002527231931686401,
0.002527231931686401,
0.0025466880798339846,
0.0025323519706726074,
0.0025456640720367433,
0.00260915207862854,
0.0025968639850616456,
0.0025866239070892333,
0.002531327962875366,
0.002510848045349121,
0.0025323519706726074,
0.0025232000350952147,
0.002514944076538086,
0.0025364480018615723,
0.0025364480018615723,
0.002513920068740845,
0.00253439998626709,
0.002519040107727051,
0.002513920068740845,
0.002555903911590576,
0.002505728006362915,
0.00253439998626709,
0.0025221118927001955,
0.0025241599082946775,
0.002539520025253296,
0.0025251839160919188,
0.002505728006362915,
0.0025476479530334474,
0.002693120002746582,
0.002505728006362915,
0.0025231359004974367,
0.0025088000297546387,
0.002539520025253296,
0.0025210559368133547,
0.0025118720531463624,
0.002531327962875366,
0.0026675200462341307,
0.0025118401050567628,
0.0025282559394836424,
0.002520064115524292,
0.002513920068740845,
0.002531327962875366,
0.0025241599082946775,
0.0025118720531463624,
0.002531327962875366,
0.0025128960609436036,
0.002530303955078125,
0.0025374720096588135,
0.002520064115524292,
0.0025528318881988523,
0.002559999942779541,
0.0025210878849029543,
0.0025384960174560547,
0.0025210878849029543,
0.0025292160511016844,
0.0025425920486450196,
0.0025067520141601562,
0.002549760103225708,
0.0025251839160919188,
0.0025180160999298097,
0.0025415680408477784,
0.002867199897766113,
0.0025467519760131838,
0.0025661439895629883,
0.0025425920486450196,
0.002687999963760376,
0.002561023950576782,
0.002550784111022949,
0.0025323519706726074,
0.0025456640720367433,
0.002531327962875366,
0.002537503957748413,
0.0027340800762176514,
0.0027013120651245117,
0.0026050560474395754,
0.002770944118499756,
0.0026368000507354735,
0.0025876479148864745,
0.002804735898971558,
0.0027596800327301025,
0.002593791961669922,
0.0026900479793548586,
0.0026357440948486326,
0.0025968639850616456,
0.002635807991027832,
0.0026368000507354735,
0.0025364480018615723,
0.0025549120903015136,
0.002543616056442261,
0.0025251200199127195,
0.0025589759349822997,
0.002610176086425781,
0.0025825281143188475,
0.0026306560039520265,
0.002606080055236816,
0.002577408075332642,
0.002609119892120361,
0.0025661439895629883,
0.002598912000656128,
0.0026070399284362795,
0.002598912000656128,
0.0026460158824920654
],
"count": 374,
"total": 0.9898789453506476,
"mean": 0.002646735147996383,
"p50": 0.0026296319961547853,
"p90": 0.002791424036026001,
"p95": 0.0028270368218421935,
"p99": 0.0029091736745834344,
"stdev": 0.00010255553907688945,
"stdev_": 3.874794164974364
},
"throughput": {
"unit": "samples/s",
"value": 755.6479542405401
},
"energy": {
"unit": "kWh",
"cpu": 3.110954705088988e-08,
"ram": 1.6997221955689514e-08,
"gpu": 4.403692645144306e-08,
"total": 9.214369545802246e-08
},
"efficiency": {
"unit": "samples/kWh",
"value": 21705228.88254609
}
}
}
}