cuda
/
cuda_inference_transformers_image-classification_google
/vit-base-patch16-224
/benchmark.json

IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
e9a2064
verified
{ | |
"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": 840.994816, | |
"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.901197265625, | |
"mean": 7.901197265625, | |
"stdev": 0.0, | |
"p50": 7.901197265625, | |
"p90": 7.901197265625, | |
"p95": 7.901197265625, | |
"p99": 7.901197265625, | |
"values": [ | |
7.901197265625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4822602812504077e-06, | |
"ram": 7.934619134014188e-07, | |
"gpu": 1.6422235360018245e-06, | |
"total": 3.917945730653651e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.82528, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 193, | |
"total": 0.9960599684715272, | |
"mean": 0.005160932479127083, | |
"stdev": 0.0001171441110841403, | |
"p50": 0.005161983966827393, | |
"p90": 0.005245952129364013, | |
"p95": 0.005349785614013672, | |
"p99": 0.005599477920532226, | |
"values": [ | |
0.005465087890625, | |
0.00531763219833374, | |
0.005379072189331055, | |
0.0053975038528442385, | |
0.0053309440612792965, | |
0.005343232154846191, | |
0.005693439960479736, | |
0.005508096218109131, | |
0.005534719944000244, | |
0.005522367954254151, | |
0.0056258559226989744, | |
0.005597184181213379, | |
0.005025760173797607, | |
0.004958208084106445, | |
0.004960256099700928, | |
0.004926464080810547, | |
0.004937727928161621, | |
0.004921343803405762, | |
0.004967423915863037, | |
0.004933631896972656, | |
0.0049203200340270994, | |
0.0049203200340270994, | |
0.004951039791107178, | |
0.00496127986907959, | |
0.004922368049621582, | |
0.005017600059509277, | |
0.005112832069396973, | |
0.0050954241752624516, | |
0.005145599842071533, | |
0.005168191909790039, | |
0.005220352172851562, | |
0.005171199798583984, | |
0.005155871868133545, | |
0.0051773438453674315, | |
0.005155807971954346, | |
0.005161983966827393, | |
0.005164000034332275, | |
0.005160927772521973, | |
0.005155839920043945, | |
0.005173247814178467, | |
0.005194752216339111, | |
0.005157792091369629, | |
0.005153791904449463, | |
0.005210112094879151, | |
0.005138432025909424, | |
0.005153791904449463, | |
0.005144576072692871, | |
0.005149695873260498, | |
0.005158912181854248, | |
0.005152768135070801, | |
0.005185535907745361, | |
0.00531766414642334, | |
0.005182464122772217, | |
0.005231616020202637, | |
0.005194752216339111, | |
0.005153791904449463, | |
0.0051773438453674315, | |
0.005154816150665284, | |
0.005139455795288086, | |
0.005130239963531494, | |
0.005185535907745361, | |
0.005128191947937012, | |
0.005142496109008789, | |
0.005175295829772949, | |
0.0051333122253417966, | |
0.0051476478576660155, | |
0.005341184139251709, | |
0.005203968048095703, | |
0.005188608169555664, | |
0.005187583923339844, | |
0.0051998720169067385, | |
0.005156896114349365, | |
0.005185535907745361, | |
0.005212160110473632, | |
0.0051701760292053225, | |
0.005183487892150879, | |
0.005203968048095703, | |
0.005175295829772949, | |
0.005172224044799805, | |
0.005178368091583252, | |
0.005152768135070801, | |
0.005171199798583984, | |
0.005189631938934326, | |
0.005245952129364013, | |
0.005066751956939697, | |
0.005081088066101074, | |
0.005107776165008545, | |
0.005082111835479736, | |
0.005078015804290771, | |
0.0050432000160217285, | |
0.0050954241752624516, | |
0.00506982421875, | |
0.005040128231048584, | |
0.005059584140777588, | |
0.0050800638198852536, | |
0.005070847988128662, | |
0.005092319965362549, | |
0.005083136081695557, | |
0.005039103984832764, | |
0.0050728960037231445, | |
0.005067776203155518, | |
0.005079040050506592, | |
0.005048319816589355, | |
0.005061632156372071, | |
0.0050503678321838375, | |
0.005063680171966553, | |
0.005062655925750732, | |
0.0050657281875610355, | |
0.005123072147369385, | |
0.005079040050506592, | |
0.005058559894561767, | |
0.005066751956939697, | |
0.0051506562232971195, | |
0.005073919773101807, | |
0.005044223785400391, | |
0.005074016094207764, | |
0.005086207866668701, | |
0.005062655925750732, | |
0.005058559894561767, | |
0.005115903854370117, | |
0.005073919773101807, | |
0.005083072185516358, | |
0.005158912181854248, | |
0.005230591773986816, | |
0.005163008213043213, | |
0.005214240074157715, | |
0.005262335777282715, | |
0.005199935913085938, | |
0.0051833920478820805, | |
0.00521727991104126, | |
0.0051660799980163576, | |
0.005164031982421875, | |
0.005192704200744629, | |
0.005192704200744629, | |
0.005157887935638428, | |
0.0051753602027893066, | |
0.005203968048095703, | |
0.005152768135070801, | |
0.005173247814178467, | |
0.005227519989013672, | |
0.005153791904449463, | |
0.005244927883148193, | |
0.005273600101470947, | |
0.0052070398330688475, | |
0.0053361282348632815, | |
0.005245952129364013, | |
0.00517632007598877, | |
0.00517632007598877, | |
0.005268479824066162, | |
0.005238783836364746, | |
0.005195775985717774, | |
0.005184512138366699, | |
0.005234687805175781, | |
0.005197824001312256, | |
0.005215231895446777, | |
0.005235712051391602, | |
0.005092288017272949, | |
0.005094399929046631, | |
0.0051138558387756345, | |
0.00511897611618042, | |
0.005102591991424561, | |
0.005144576072692871, | |
0.0051701760292053225, | |
0.005092351913452148, | |
0.005055488109588623, | |
0.0050728960037231445, | |
0.005107711791992187, | |
0.005169055938720703, | |
0.005156864166259765, | |
0.005206016063690186, | |
0.00522649621963501, | |
0.005154816150665284, | |
0.005228576183319092, | |
0.005090303897857666, | |
0.005122047901153564, | |
0.005183487892150879, | |
0.005235680103302002, | |
0.005195775985717774, | |
0.0051435518264770505, | |
0.005359615802764893, | |
0.005178368091583252, | |
0.0051660799980163576, | |
0.005201856136322022, | |
0.005183487892150879, | |
0.0051957440376281736, | |
0.005185535907745361, | |
0.005178368091583252, | |
0.005167103767395019, | |
0.005182464122772217, | |
0.0052070398330688475, | |
0.005171199798583984, | |
0.005184576034545898, | |
0.005216288089752197 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 193.76343403917957 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.844270246987426e-08, | |
"ram": 3.193342999731962e-08, | |
"gpu": 3.3333496836454424e-07, | |
"total": 4.2371110083173817e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2360098.6569316117 | |
} | |
} | |
} | |
} |