cuda
/
cuda_inference_transformers_fill-mask_hf-internal-testing
/tiny-random-BertModel
/benchmark.json
![IlyasMoutawwakil's picture](https://cdn-avatars.huggingface.co/v1/production/uploads/1642598610696-noauth.jpeg)
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_fill-mask_hf-internal-testing/tiny-random-BertModel/benchmark.json with huggingface_hub
d9f9b35
verified
{ | |
"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", | |
"model": "hf-internal-testing/tiny-random-BertModel", | |
"processor": "hf-internal-testing/tiny-random-BertModel", | |
"task": "fill-mask", | |
"library": "transformers", | |
"model_type": "bert", | |
"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.1", | |
"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.958784, | |
"max_global_vram": 639.107072, | |
"max_process_vram": 0.0, | |
"max_reserved": 2.097152, | |
"max_allocated": 0.534528 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.05654937744140625 | |
], | |
"count": 1, | |
"total": 0.05654937744140625, | |
"mean": 0.05654937744140625, | |
"p50": 0.05654937744140625, | |
"p90": 0.05654937744140625, | |
"p95": 0.05654937744140625, | |
"p99": 0.05654937744140625, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.57437486243043e-05, | |
"ram": 5.245567886732629e-05, | |
"gpu": 0.00013003843736400034, | |
"total": 0.00027823786485563093 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1042.116608, | |
"max_global_vram": 670.564352, | |
"max_process_vram": 0.0, | |
"max_reserved": 23.068672, | |
"max_allocated": 10.112 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.002920448064804077, | |
0.0027340800762176514, | |
0.002716671943664551, | |
0.002634752035140991, | |
0.0026224639415740967, | |
0.0026502718925476075, | |
0.002614272117614746, | |
0.0026183679103851318, | |
0.0026378240585327147, | |
0.0026511359214782715, | |
0.0026183679103851318, | |
0.002639872074127197, | |
0.0025968639850616456, | |
0.002593791961669922, | |
0.0026050560474395754, | |
0.002706432104110718, | |
0.0026050560474395754, | |
0.0026736319065093993, | |
0.002705471992492676, | |
0.002604032039642334, | |
0.002641952037811279, | |
0.0026214399337768555, | |
0.0025917439460754394, | |
0.0026368000507354735, | |
0.0026224958896636963, | |
0.0025518081188201903, | |
0.002727936029434204, | |
0.002624511957168579, | |
0.0026173439025878906, | |
0.0026122241020202636, | |
0.0025917439460754394, | |
0.002593791961669922, | |
0.0026316800117492677, | |
0.0026839039325714112, | |
0.0025835518836975096, | |
0.002909183979034424, | |
0.002638848066329956, | |
0.0026163198947906493, | |
0.0026266560554504396, | |
0.0026214399337768555, | |
0.002590719938278198, | |
0.002615295886993408, | |
0.0025722880363464357, | |
0.002649087905883789, | |
0.002639872074127197, | |
0.0025844159126281736, | |
0.0025724160671234133, | |
0.002619391918182373, | |
0.0026122241020202636, | |
0.0026009600162506105, | |
0.0026285760402679445, | |
0.0026255359649658204, | |
0.0025927679538726807, | |
0.0026081280708312986, | |
0.0026071040630340574, | |
0.002589695930480957, | |
0.0026019840240478517, | |
0.002598912000656128, | |
0.002590719938278198, | |
0.002597887992858887, | |
0.0026368000507354735, | |
0.0026019840240478517, | |
0.0026009600162506105, | |
0.0026112639904022216, | |
0.002569216012954712, | |
0.0026961920261383055, | |
0.0026603519916534426, | |
0.002642944097518921, | |
0.0026419200897216796, | |
0.0026470398902893066, | |
0.0026408960819244384, | |
0.0026132800579071044, | |
0.0026072640419006346, | |
0.002579456090927124, | |
0.002597887992858887, | |
0.002628607988357544, | |
0.002580480098724365, | |
0.0025835518836975096, | |
0.0025722880363464357, | |
0.002603008031845093, | |
0.002610176086425781, | |
0.002584575891494751, | |
0.002632704019546509, | |
0.0025886719226837157, | |
0.0025477120876312258, | |
0.0025876479148864745, | |
0.0025754239559173586, | |
0.0025528318881988523, | |
0.0025815041065216063, | |
0.0026112000942230223, | |
0.002569216012954712, | |
0.0025538558959960936, | |
0.002585599899291992, | |
0.002623487949371338, | |
0.0026265599727630616, | |
0.0025917439460754394, | |
0.002594815969467163, | |
0.002603008031845093, | |
0.0025958399772644043, | |
0.002573312044143677, | |
0.0025763840675354006, | |
0.0026019840240478517, | |
0.002573312044143677, | |
0.0025917439460754394, | |
0.0026019840240478517, | |
0.0025886719226837157, | |
0.0025958399772644043, | |
0.0025753600597381594, | |
0.002598912000656128, | |
0.002581439971923828, | |
0.002577440023422241, | |
0.002580480098724365, | |
0.002593791961669922, | |
0.002589695930480957, | |
0.002592832088470459, | |
0.002597887992858887, | |
0.002585599899291992, | |
0.002569216012954712, | |
0.0026276159286499024, | |
0.0025835518836975096, | |
0.002577408075332642, | |
0.0025968639850616456, | |
0.002555903911590576, | |
0.0025579519271850585, | |
0.002632704019546509, | |
0.002584575891494751, | |
0.0025671679973602295, | |
0.0025763840675354006, | |
0.0025763840675354006, | |
0.0025620479583740234, | |
0.0025569279193878173, | |
0.0026265599727630616, | |
0.002579456090927124, | |
0.0025866239070892333, | |
0.002613248109817505, | |
0.0025937280654907227, | |
0.002555903911590576, | |
0.0026009600162506105, | |
0.002590719938278198, | |
0.002577408075332642, | |
0.0025967679023742676, | |
0.0026029438972473146, | |
0.0025753600597381594, | |
0.0025876479148864745, | |
0.002594815969467163, | |
0.0026050560474395754, | |
0.0026112000942230223, | |
0.0026071040630340574, | |
0.002593791961669922, | |
0.002579456090927124, | |
0.002585599899291992, | |
0.0025620479583740234, | |
0.002579456090927124, | |
0.0025886719226837157, | |
0.0025518081188201903, | |
0.0025763840675354006, | |
0.002590719938278198, | |
0.002597887992858887, | |
0.0025784320831298826, | |
0.002577408075332642, | |
0.0025825281143188475, | |
0.0025681920051574708, | |
0.0025835518836975096, | |
0.0025958399772644043, | |
0.002566080093383789, | |
0.002554879903793335, | |
0.0025784320831298826, | |
0.002615295886993408, | |
0.0025724160671234133, | |
0.0025550079345703124, | |
0.002560096025466919, | |
0.0025560638904571532, | |
0.002579456090927124, | |
0.002593791961669922, | |
0.002549599885940552, | |
0.002577408075332642, | |
0.002603008031845093, | |
0.0025866239070892333, | |
0.002632704019546509, | |
0.0026183040142059326, | |
0.002632704019546509, | |
0.002585599899291992, | |
0.002590719938278198, | |
0.0026808319091796875, | |
0.002580480098724365, | |
0.0026939840316772463, | |
0.0026614079475402834, | |
0.002591775894165039, | |
0.002578495979309082, | |
0.0026408960819244384, | |
0.0025866239070892333, | |
0.0025917439460754394, | |
0.0026112000942230223, | |
0.0025938239097595215, | |
0.002585599899291992, | |
0.002590719938278198, | |
0.0025999360084533693, | |
0.0025671679973602295, | |
0.0025866239070892333, | |
0.002577408075332642, | |
0.002564095973968506, | |
0.0025661439895629883, | |
0.0026081280708312986, | |
0.002590719938278198, | |
0.002598912000656128, | |
0.002594815969467163, | |
0.0025579519271850585, | |
0.0025876801013946533, | |
0.0025968639850616456, | |
0.002573312044143677, | |
0.003299328088760376, | |
0.0026214399337768555, | |
0.002590719938278198, | |
0.002607072114944458, | |
0.002619391918182373, | |
0.0025968639850616456, | |
0.002597887992858887, | |
0.002628607988357544, | |
0.0025783998966217043, | |
0.002580480098724365, | |
0.0026019840240478517, | |
0.002589695930480957, | |
0.0026788480281829835, | |
0.002614272117614746, | |
0.002576319932937622, | |
0.002610176086425781, | |
0.0026306560039520265, | |
0.00265830397605896, | |
0.0026112000942230223, | |
0.002623487949371338, | |
0.002580480098724365, | |
0.002593791961669922, | |
0.0026081280708312986, | |
0.0025763840675354006, | |
0.002593791961669922, | |
0.0027392001152038575, | |
0.0026839039325714112, | |
0.002674623966217041, | |
0.002673664093017578, | |
0.002583424091339111, | |
0.0026224639415740967, | |
0.002628607988357544, | |
0.0025927679538726807, | |
0.002634752035140991, | |
0.0026306560039520265, | |
0.002610176086425781, | |
0.0026746881008148193, | |
0.0026183679103851318, | |
0.002585599899291992, | |
0.0026081280708312986, | |
0.002579456090927124, | |
0.0026255359649658204, | |
0.0026183679103851318, | |
0.002574336051940918, | |
0.002598912000656128, | |
0.002589695930480957, | |
0.0025927679538726807, | |
0.0026009600162506105, | |
0.002664448022842407, | |
0.002580480098724365, | |
0.0026204159259796142, | |
0.0026378240585327147, | |
0.002565119981765747, | |
0.0025855679512023924, | |
0.0025927679538726807, | |
0.0025825281143188475, | |
0.002615295886993408, | |
0.0026214399337768555, | |
0.002589695930480957, | |
0.0026009600162506105, | |
0.002579456090927124, | |
0.0025733439922332765, | |
0.0025917439460754394, | |
0.0025999360084533693, | |
0.002554879903793335, | |
0.002574336051940918, | |
0.0026122241020202636, | |
0.002559999942779541, | |
0.002580480098724365, | |
0.0026071040630340574, | |
0.0025938239097595215, | |
0.002584575891494751, | |
0.0025773439407348634, | |
0.0026173439025878906, | |
0.0028334081172943113, | |
0.002679840087890625, | |
0.0026019840240478517, | |
0.0026122241020202636, | |
0.0025712640285491944, | |
0.0026214399337768555, | |
0.0026122241020202636, | |
0.002580480098724365, | |
0.002627583980560303, | |
0.002586656093597412, | |
0.002585632085800171, | |
0.002614272117614746, | |
0.0026173439025878906, | |
0.0025948479175567627, | |
0.002594752073287964, | |
0.002574336051940918, | |
0.0025466880798339846, | |
0.0026009600162506105, | |
0.0026357760429382322, | |
0.0025917439460754394, | |
0.002584575891494751, | |
0.002619391918182373, | |
0.002594815969467163, | |
0.0025763840675354006, | |
0.00263372802734375, | |
0.0025579519271850585, | |
0.002580480098724365, | |
0.0026050560474395754, | |
0.0025712640285491944, | |
0.002584575891494751, | |
0.0025753600597381594, | |
0.002569119930267334, | |
0.0025999360084533693, | |
0.002611232042312622, | |
0.002800640106201172, | |
0.002597887992858887, | |
0.0026163198947906493, | |
0.0025999360084533693, | |
0.0025712640285491944, | |
0.002589695930480957, | |
0.002606080055236816, | |
0.0025886719226837157, | |
0.002593791961669922, | |
0.0026214399337768555, | |
0.002594815969467163, | |
0.0025968639850616456, | |
0.002590719938278198, | |
0.0025569279193878173, | |
0.002577375888824463, | |
0.002615295886993408, | |
0.0025927679538726807, | |
0.0025681920051574708, | |
0.0025712640285491944, | |
0.0026265599727630616, | |
0.0025753600597381594, | |
0.0025591039657592773, | |
0.002574336051940918, | |
0.0025753600597381594, | |
0.0025722880363464357, | |
0.002573312044143677, | |
0.0025465281009674073, | |
0.002596895933151245, | |
0.0025958399772644043, | |
0.0026265599727630616, | |
0.0025784320831298826, | |
0.0025671679973602295, | |
0.0025825281143188475, | |
0.002577408075332642, | |
0.0025527360439300535, | |
0.0025958399772644043, | |
0.002574336051940918, | |
0.0025671679973602295, | |
0.0025917439460754394, | |
0.0025815041065216063, | |
0.0025384960174560547, | |
0.0025763840675354006, | |
0.0025783679485321047, | |
0.002542655944824219, | |
0.002556960105895996, | |
0.0025999360084533693, | |
0.002565119981765747, | |
0.002554879903793335, | |
0.002594815969467163, | |
0.0025753600597381594, | |
0.002584575891494751, | |
0.002579456090927124, | |
0.0025999360084533693, | |
0.0025886719226837157, | |
0.002580480098724365, | |
0.0026071040630340574, | |
0.0025825281143188475, | |
0.0025753600597381594, | |
0.0025927679538726807, | |
0.002585599899291992, | |
0.0025712640285491944, | |
0.002593791961669922 | |
], | |
"count": 380, | |
"total": 0.9894730877876273, | |
"mean": 0.002603876546809548, | |
"p50": 0.002593791961669922, | |
"p90": 0.002637926459312439, | |
"p95": 0.00267462717294693, | |
"p99": 0.0028075213885307305, | |
"stdev": 5.498779872530704e-05, | |
"stdev_": 2.1117667345897 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 768.0855693602449 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 3.1507201570767315e-08, | |
"ram": 1.7137055143132095e-08, | |
"gpu": 4.4331311185184674e-08, | |
"total": 9.297556789908406e-08 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 21511027.52252942 | |
} | |
} | |
} | |
} |