IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
85229fb 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.224-212.876.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.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"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": 841.035776,
"max_global_vram": 1037.565952,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.88278173828125,
"mean": 7.88278173828125,
"stdev": 0.0,
"p50": 7.88278173828125,
"p90": 7.88278173828125,
"p95": 7.88278173828125,
"p99": 7.88278173828125,
"values": [
7.88278173828125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.5217514937931914e-06,
"ram": 7.892413125371983e-07,
"gpu": 1.7305569399717058e-06,
"total": 4.041549746302096e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1049.317376,
"max_global_vram": 1056.44032,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 189,
"total": 0.9981804804801936,
"mean": 0.00528137820359891,
"stdev": 0.00019001429048926013,
"p50": 0.005235712051391602,
"p90": 0.00552161283493042,
"p95": 0.005579980945587158,
"p99": 0.005737594738006593,
"values": [
0.005646336078643799,
0.005540863990783691,
0.005637119770050049,
0.005595136165618897,
0.005315584182739258,
0.005320703983306885,
0.005277696132659912,
0.005302271842956543,
0.005303296089172363,
0.005244927883148193,
0.005250048160552978,
0.005372928142547607,
0.0052070398330688475,
0.005178368091583252,
0.005187583923339844,
0.005204991817474365,
0.005230591773986816,
0.005500927925109863,
0.005453824043273926,
0.005404672145843506,
0.0053678078651428224,
0.005351424217224121,
0.005403647899627686,
0.005442560195922852,
0.005708799839019775,
0.005530623912811279,
0.005506048202514649,
0.00552345609664917,
0.005569536209106446,
0.00550707197189331,
0.005421055793762207,
0.005407743930816651,
0.00542310380935669,
0.005519360065460205,
0.005533696174621582,
0.0055214080810546875,
0.005561344146728516,
0.00552243185043335,
0.005512191772460938,
0.005489664077758789,
0.005452703952789306,
0.005443583965301513,
0.005446656227111817,
0.00546611213684082,
0.00547430419921875,
0.005462016105651855,
0.005484543800354004,
0.005398528099060058,
0.005326848030090332,
0.0053340158462524415,
0.005327871799468994,
0.005396480083465576,
0.005639167785644531,
0.005469120025634765,
0.0051968002319335935,
0.005202943801879883,
0.005181439876556396,
0.0051773438453674315,
0.005172224044799805,
0.005194752216339111,
0.005232639789581299,
0.005310463905334473,
0.005239840030670166,
0.005265408039093018,
0.005287936210632324,
0.005227488040924072,
0.00538316822052002,
0.00516812801361084,
0.005175295829772949,
0.005235712051391602,
0.005275648117065429,
0.005294079780578613,
0.00522547197341919,
0.005193727970123291,
0.005230591773986816,
0.005214208126068115,
0.005216256141662597,
0.005129216194152832,
0.0050769920349121095,
0.005132319927215576,
0.005154816150665284,
0.005348351955413819,
0.005506048202514649,
0.005586944103240967,
0.005417984008789062,
0.005388288021087646,
0.0054609918594360355,
0.005445631980895996,
0.005144639968872071,
0.005193727970123291,
0.0051363520622253415,
0.005149695873260498,
0.005154816150665284,
0.0051456642150878905,
0.005184512138366699,
0.005239808082580567,
0.0052705278396606445,
0.005253119945526123,
0.0052295680046081545,
0.005275648117065429,
0.005260287761688232,
0.005244927883148193,
0.005219327926635742,
0.005189631938934326,
0.005186560153961181,
0.005234687805175781,
0.005141471862792969,
0.005097472190856934,
0.005189631938934326,
0.0051404800415039064,
0.0050954241752624516,
0.005431295871734619,
0.005541888236999512,
0.005246975898742676,
0.005190656185150146,
0.005426176071166992,
0.00538316822052002,
0.005273600101470947,
0.005134335994720459,
0.005128191947937012,
0.005112895965576172,
0.005661695957183838,
0.005502975940704345,
0.005311488151550293,
0.005311488151550293,
0.005343232154846191,
0.005291007995605469,
0.005378047943115235,
0.005378047943115235,
0.005444608211517334,
0.005496831893920898,
0.006343679904937744,
0.005278687953948974,
0.005139455795288086,
0.005135359764099121,
0.0051066880226135255,
0.0052111358642578124,
0.005082111835479736,
0.005114880084991455,
0.005077888011932373,
0.00515993595123291,
0.005417984008789062,
0.005253280162811279,
0.0052295680046081545,
0.005118015766143799,
0.005187583923339844,
0.005543935775756836,
0.0053340158462524415,
0.00571289587020874,
0.005256127834320068,
0.005131167888641357,
0.0050657281875610355,
0.0050800638198852536,
0.0050728960037231445,
0.005082304000854492,
0.0050657281875610355,
0.0051036481857299806,
0.005144576072692871,
0.005119008064270019,
0.005094399929046631,
0.005037055969238281,
0.005079040050506592,
0.0050360321998596195,
0.0050769920349121095,
0.005048319816589355,
0.005067776203155518,
0.0050637760162353515,
0.005048319816589355,
0.005070879936218262,
0.005088255882263183,
0.005122047901153564,
0.005105663776397705,
0.005108736038208008,
0.005061632156372071,
0.005044223785400391,
0.005037248134613037,
0.005046175956726074,
0.0050728960037231445,
0.0050524802207946775,
0.005066815853118896,
0.0050360321998596195,
0.005079040050506592,
0.005083136081695557,
0.00591871976852417,
0.00522649621963501,
0.005100543975830078,
0.005144576072692871,
0.005078144073486328,
0.005081088066101074
]
},
"throughput": {
"unit": "samples/s",
"value": 189.34451604290828
},
"energy": {
"unit": "kWh",
"cpu": 6.055464563135351e-08,
"ram": 3.301995958669849e-08,
"gpu": 3.332896657248332e-07,
"total": 4.268642709428852e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2342665.0297789876
}
}
}
}