IlyasMoutawwakil's picture
Upload cuda_inference_transformers_fill-mask_hf-internal-testing/tiny-random-BertModel/benchmark.json with huggingface_hub
5556b9f verified
raw
history blame
22.3 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": 803.811328,
"max_global_vram": 639.107072,
"max_process_vram": 0.0,
"max_reserved": 2.097152,
"max_allocated": 0.534528
},
"latency": {
"unit": "s",
"values": [
0.05535334396362305
],
"count": 1,
"total": 0.05535334396362305,
"mean": 0.05535334396362305,
"p50": 0.05535334396362305,
"p90": 0.05535334396362305,
"p95": 0.05535334396362305,
"p99": 0.05535334396362305,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.612555358402793e-05,
"ram": 5.2664868014671956e-05,
"gpu": 0.00012618260094600007,
"total": 0.00027497302254469996
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1041.5104,
"max_global_vram": 670.564352,
"max_process_vram": 0.0,
"max_reserved": 23.068672,
"max_allocated": 10.112
},
"latency": {
"unit": "s",
"values": [
0.0028682239055633544,
0.00268287992477417,
0.0026705920696258544,
0.0026900479793548586,
0.002654207944869995,
0.002654304027557373,
0.002727936029434204,
0.002742271900177002,
0.0027821760177612303,
0.0026705920696258544,
0.0027791359424591063,
0.002711551904678345,
0.0026441280841827393,
0.0026818559169769288,
0.0025753600597381594,
0.0026204159259796142,
0.002615295886993408,
0.002597887992858887,
0.002598912000656128,
0.0025917439460754394,
0.002632704019546509,
0.0026378240585327147,
0.0025866239070892333,
0.0025968639850616456,
0.0026214399337768555,
0.002597887992858887,
0.002702336072921753,
0.002613248109817505,
0.0025958399772644043,
0.0026009600162506105,
0.002613248109817505,
0.0025968639850616456,
0.0025927679538726807,
0.002594815969467163,
0.002597887992858887,
0.0026204159259796142,
0.0026306560039520265,
0.0025886719226837157,
0.0026081280708312986,
0.0026183679103851318,
0.002579456090927124,
0.0025958399772644043,
0.0026071040630340574,
0.002559999942779541,
0.0025825281143188475,
0.0025917439460754394,
0.0025538558959960936,
0.0025958399772644043,
0.00260915207862854,
0.0025579519271850585,
0.0026173439025878906,
0.0026296319961547853,
0.0025538558959960936,
0.0026112000942230223,
0.002778111934661865,
0.002606080055236816,
0.0026050560474395754,
0.002586560010910034,
0.002573312044143677,
0.002628607988357544,
0.0026122241020202636,
0.0025815041065216063,
0.002597887992858887,
0.0025999360084533693,
0.0025835518836975096,
0.0026193599700927734,
0.002590719938278198,
0.0025886719226837157,
0.0025968639850616456,
0.002574336051940918,
0.0025815041065216063,
0.003354624032974243,
0.002786303997039795,
0.002603008031845093,
0.0026767361164093018,
0.0026767361164093018,
0.002610176086425781,
0.0026746881008148193,
0.002686975955963135,
0.002610176086425781,
0.0026357760429382322,
0.0026562559604644776,
0.0025958399772644043,
0.0026296319961547853,
0.0026664960384368895,
0.0027555840015411376,
0.002624511957168579,
0.0026419200897216796,
0.002579456090927124,
0.0026296319961547853,
0.0026460800170898437,
0.0026050560474395754,
0.002642944097518921,
0.0026357760429382322,
0.0025753600597381594,
0.0026009600162506105,
0.0026081280708312986,
0.002565119981765747,
0.002598912000656128,
0.002598912000656128,
0.002564095973968506,
0.0025968639850616456,
0.0025681920051574708,
0.0025866239070892333,
0.0025959041118621827,
0.002565119981765747,
0.0025784320831298826,
0.0026019840240478517,
0.0025518081188201903,
0.0025732800960540773,
0.00260915207862854,
0.0025815041065216063,
0.002574336051940918,
0.002604032039642334,
0.0025477120876312258,
0.0025999360084533693,
0.0025999360084533693,
0.0025538558959960936,
0.0031211519241333007,
0.002530303955078125,
0.0024780800342559814,
0.0025077760219573975,
0.0025169920921325685,
0.0026316800117492677,
0.0025077760219573975,
0.00250163197517395,
0.002479167938232422,
0.0025169920921325685,
0.0024985599517822264,
0.0024985599517822264,
0.002527231931686401,
0.0024586238861083985,
0.0024933760166168215,
0.002539520025253296,
0.0024872961044311525,
0.002497535943984985,
0.002467839956283569,
0.002500607967376709,
0.002530303955078125,
0.0024883201122283937,
0.0025036799907684325,
0.0024821760654449463,
0.002471935987472534,
0.002531327962875366,
0.002470911979675293,
0.002481152057647705,
0.0025128960609436036,
0.0024883201122283937,
0.002662400007247925,
0.0026511359214782715,
0.0026183679103851318,
0.00263372802734375,
0.0026306560039520265,
0.0026163198947906493,
0.002652127981185913,
0.0026521599292755127,
0.002597887992858887,
0.002642944097518921,
0.0026593279838562013,
0.002606080055236816,
0.0026265599727630616,
0.002668544054031372,
0.0026255359649658204,
0.002634752035140991,
0.002642944097518921,
0.002615295886993408,
0.0026408960819244384,
0.0026449921131134033,
0.0026173439025878906,
0.0026204159259796142,
0.002638848066329956,
0.0027555840015411376,
0.0026818559169769288,
0.0026511359214782715,
0.0026818559169769288,
0.002619391918182373,
0.002634752035140991,
0.0026173439025878906,
0.0026306560039520265,
0.0026910719871521,
0.002627583980560303,
0.002580480098724365,
0.002590719938278198,
0.0025763840675354006,
0.0025712640285491944,
0.002554879903793335,
0.0025322239398956298,
0.0025866239070892333,
0.0025825281143188475,
0.002555903911590576,
0.002597887992858887,
0.002584575891494751,
0.0025620479583740234,
0.0025897281169891357,
0.002589695930480957,
0.0025456640720367433,
0.002590719938278198,
0.002569216012954712,
0.002593791961669922,
0.0026306560039520265,
0.002597887992858887,
0.002627583980560303,
0.002623487949371338,
0.0026501119136810303,
0.0026214399337768555,
0.0026264638900756836,
0.0026050560474395754,
0.002649087905883789,
0.00263372802734375,
0.002642944097518921,
0.0026204159259796142,
0.0026378240585327147,
0.0026009600162506105,
0.0025927679538726807,
0.002615295886993408,
0.0026071040630340574,
0.002614272117614746,
0.002627648115158081,
0.002594815969467163,
0.0026839039325714112,
0.002817984104156494,
0.002593791961669922,
0.0026224639415740967,
0.0026470398902893066,
0.0026019840240478517,
0.002632704019546509,
0.002668544054031372,
0.002610176086425781,
0.002614272117614746,
0.002642944097518921,
0.002610176086425781,
0.0025917439460754394,
0.0026173439025878906,
0.0026071040630340574,
0.0025876479148864745,
0.002613248109817505,
0.002882528066635132,
0.0026798079013824463,
0.00268287992477417,
0.002605024099349976,
0.002654207944869995,
0.002701375961303711,
0.002590719938278198,
0.002639008045196533,
0.0026501119136810303,
0.0026173439025878906,
0.002657279968261719,
0.0026593279838562013,
0.0026214399337768555,
0.002636768102645874,
0.0026654720306396483,
0.0026081280708312986,
0.00263375997543335,
0.0026818559169769288,
0.002603008031845093,
0.0026460158824920654,
0.0026920959949493406,
0.0025958080291748047,
0.0026419200897216796,
0.002687999963760376,
0.002619391918182373,
0.0026143040657043456,
0.0030494720935821534,
0.002657279968261719,
0.002579456090927124,
0.0026501119136810303,
0.002642944097518921,
0.002590751886367798,
0.0026663680076599123,
0.0026470398902893066,
0.002594815969467163,
0.002669568061828613,
0.002628607988357544,
0.002574336051940918,
0.0026521599292755127,
0.0026019840240478517,
0.0025936319828033447,
0.0026265599727630616,
0.002613248109817505,
0.0026306560039520265,
0.002643968105316162,
0.0026214399337768555,
0.002614272117614746,
0.002639872074127197,
0.0026112000942230223,
0.0026122241020202636,
0.0026192638874053954,
0.002598912000656128,
0.0025784320831298826,
0.002597887992858887,
0.002555903911590576,
0.0025875840187072753,
0.002613248109817505,
0.002585599899291992,
0.0025927679538726807,
0.0028436479568481445,
0.0026316800117492677,
0.002657279968261719,
0.0026798079013824463,
0.0026224958896636963,
0.002648063898086548,
0.0026357119083404543,
0.0026316800117492677,
0.0026163198947906493,
0.0026603519916534426,
0.00260915207862854,
0.0026050560474395754,
0.0026470398902893066,
0.0026163198947906493,
0.0026511359214782715,
0.0026276159286499024,
0.002614272117614746,
0.0026255359649658204,
0.002639872074127197,
0.002615295886993408,
0.0026122241020202636,
0.0026265599727630616,
0.002606080055236816,
0.002606080055236816,
0.002627583980560303,
0.0025968639850616456,
0.0026112000942230223,
0.0026357760429382322,
0.0025722880363464357,
0.0025886719226837157,
0.002594815969467163,
0.002543616056442261,
0.002603008031845093,
0.0025989758968353273,
0.0025528318881988523,
0.0026009600162506105,
0.0025661439895629883,
0.0025415680408477784,
0.002639872074127197,
0.002638848066329956,
0.0025825281143188475,
0.0026757121086120605,
0.002605087995529175,
0.0026184000968933105,
0.002649087905883789,
0.0026173439025878906,
0.002603008031845093,
0.0026306560039520265,
0.002584640026092529,
0.0026112000942230223,
0.002627583980560303,
0.002606080055236816,
0.0026224639415740967,
0.0026265919208526612,
0.0026081280708312986,
0.0026009600162506105,
0.002632704019546509,
0.002585599899291992,
0.002579456090927124,
0.0026224639415740967,
0.0026081280708312986,
0.002606080055236816,
0.0026378240585327147,
0.002618335962295532,
0.0026521599292755127,
0.002639872074127197,
0.0026009600162506105,
0.0025876479148864745,
0.0025968639850616456,
0.0025784640312194822,
0.00260915207862854,
0.00260915207862854,
0.0025784320831298826,
0.0026224639415740967,
0.0026255359649658204,
0.0025794239044189455,
0.0026265599727630616,
0.0029173760414123533,
0.002603008031845093,
0.0027842559814453124,
0.002639872074127197,
0.0026081280708312986,
0.0026265599727630616
],
"count": 378,
"total": 0.9898280005455024,
"mean": 0.002618592594035719,
"p50": 0.0026122241020202636,
"p90": 0.002671820878982544,
"p95": 0.002701519978046417,
"p99": 0.0028905431008338935,
"stdev": 7.724756834873651e-05,
"stdev_": 2.9499651272473892
},
"throughput": {
"unit": "samples/s",
"value": 763.7690584458741
},
"energy": {
"unit": "kWh",
"cpu": 3.095635515227013e-08,
"ram": 1.6864013762344233e-08,
"gpu": 4.1909032369792124e-08,
"total": 8.972940128440641e-08
},
"efficiency": {
"unit": "samples/kWh",
"value": 22289238.213690937
}
}
}
}