IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
606378c verified
raw
history blame
14 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.4.1+cu124",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "image-classification",
"library": "transformers",
"model_type": "vit",
"model": "google/vit-base-patch16-224",
"processor": "google/vit-base-patch16-224",
"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": 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": true,
"device_isolation_action": "error",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.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.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 839.815168,
"max_global_vram": 1030.22592,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.8448935546875,
"mean": 7.8448935546875,
"stdev": 0.0,
"p50": 7.8448935546875,
"p90": 7.8448935546875,
"p95": 7.8448935546875,
"p99": 7.8448935546875,
"values": [
7.8448935546875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.455234472222126e-06,
"ram": 7.815627544881612e-07,
"gpu": 1.6611124400000427e-06,
"total": 3.89790966671033e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1048.383488,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 190,
"total": 0.9987478075027466,
"mean": 0.005256567407909194,
"stdev": 0.0001735410815847134,
"p50": 0.005240335941314697,
"p90": 0.005462220907211304,
"p95": 0.005549048089981079,
"p99": 0.005729512820243835,
"values": [
0.005570559978485107,
0.0055131521224975584,
0.005591040134429932,
0.00562278413772583,
0.005612544059753418,
0.005553152084350586,
0.005680160045623779,
0.005517312049865723,
0.005468160152435303,
0.005396480083465576,
0.005381120204925537,
0.005408927917480468,
0.005286911964416504,
0.0052377920150756836,
0.005329919815063477,
0.005462016105651855,
0.00573967981338501,
0.005443424224853516,
0.005426176071166992,
0.0053268160820007324,
0.005307392120361328,
0.0051495041847229,
0.00516918420791626,
0.005306367874145508,
0.005173247814178467,
0.005294079780578613,
0.005346303939819336,
0.005269311904907227,
0.005287936210632324,
0.005264383792877197,
0.00531660795211792,
0.005321728229522705,
0.0051773438453674315,
0.005252096176147461,
0.005248000144958496,
0.005410816192626953,
0.005427103996276855,
0.005393407821655274,
0.0053534722328186036,
0.005544032096862793,
0.005410816192626953,
0.005292064189910889,
0.0052367358207702636,
0.005193727970123291,
0.005252096176147461,
0.005258240222930908,
0.005274591922760009,
0.005368832111358642,
0.005446656227111817,
0.005422080039978027,
0.005212319850921631,
0.005075967788696289,
0.00506982421875,
0.005082047939300537,
0.00516096019744873,
0.005181439876556396,
0.005213183879852295,
0.005198847770690918,
0.005370880126953125,
0.0053647360801696775,
0.005378047943115235,
0.005303296089172363,
0.005325823783874512,
0.005320703983306885,
0.005244768142700195,
0.005336063861846924,
0.0055203838348388675,
0.0053534722328186036,
0.0055081920623779295,
0.005392384052276611,
0.00542409610748291,
0.005368800163269043,
0.005469183921813964,
0.005497856140136719,
0.0053821439743042,
0.005422239780426026,
0.005434368133544922,
0.005350399971008301,
0.0056258559226989744,
0.005327871799468994,
0.005197824001312256,
0.0051476478576660155,
0.005170303821563721,
0.005231616020202637,
0.005175295829772949,
0.005219327926635742,
0.005318655967712403,
0.005287903785705567,
0.0052070398330688475,
0.005181536197662353,
0.005155680179595948,
0.005202879905700683,
0.00531660795211792,
0.0053820481300354,
0.005450751781463623,
0.00526643180847168,
0.005173247814178467,
0.00537395191192627,
0.005251071929931641,
0.005299200057983398,
0.005408768177032471,
0.005444608211517334,
0.005260287761688232,
0.005351424217224121,
0.005401599884033203,
0.0053524160385131836,
0.005299200057983398,
0.0053340158462524415,
0.0053647360801696775,
0.005362783908843994,
0.005252096176147461,
0.0050841598510742185,
0.005303071975708008,
0.005370880126953125,
0.005180416107177735,
0.005111807823181152,
0.005108736038208008,
0.005051392078399658,
0.004965375900268554,
0.005057536125183106,
0.005269504070281982,
0.005179391860961914,
0.005021696090698242,
0.0049480957984924315,
0.004944896221160889,
0.004996096134185791,
0.005173247814178467,
0.0052008957862854,
0.0051138558387756345,
0.005180416107177735,
0.005148672103881836,
0.005215231895446777,
0.005242879867553711,
0.005451776027679443,
0.0053340158462524415,
0.00512505578994751,
0.005175295829772949,
0.0050718398094177245,
0.00511897611618042,
0.005121888160705567,
0.005157887935638428,
0.005728256225585937,
0.005347328186035156,
0.005135359764099121,
0.00511078405380249,
0.005183519840240479,
0.006112256050109863,
0.005464064121246338,
0.00510262393951416,
0.005064703941345215,
0.005070847988128662,
0.0050841598510742185,
0.005073919773101807,
0.004997119903564453,
0.004977663993835449,
0.0050503678321838375,
0.005068863868713379,
0.00505241584777832,
0.005064767837524414,
0.005127168178558349,
0.005178368091583252,
0.005102591991424561,
0.005135359764099121,
0.005098495960235596,
0.005130239963531494,
0.00506063985824585,
0.005087103843688965,
0.00510975980758667,
0.005038080215454102,
0.0050533761978149416,
0.005065695762634277,
0.005089280128479004,
0.0050728960037231445,
0.005128191947937012,
0.005058559894561767,
0.00506879997253418,
0.00506060791015625,
0.0051036162376403805,
0.005098495960235596,
0.005206016063690186,
0.005158912181854248,
0.005092351913452148,
0.005116928100585938,
0.005097472190856934,
0.005074944019317627,
0.005035007953643799,
0.0050698561668396,
0.0052336640357971195,
0.0051138558387756345,
0.005074048042297363
]
},
"throughput": {
"unit": "samples/s",
"value": 190.23821486534524
},
"energy": {
"unit": "kWh",
"cpu": 6.072571852564555e-08,
"ram": 3.320281022159441e-08,
"gpu": 3.5342051065640495e-07,
"total": 4.473490394036449e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2235390.9630231615
}
}
}
}