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
2775c25
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.33.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": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 827.322368, | |
"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.44181884765625, | |
"mean": 7.44181884765625, | |
"stdev": 0.0, | |
"p50": 7.44181884765625, | |
"p90": 7.44181884765625, | |
"p95": 7.44181884765625, | |
"p99": 7.44181884765625, | |
"values": [ | |
7.44181884765625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5501177173607378e-06, | |
"ram": 7.833103421498859e-07, | |
"gpu": 3.722780756000056e-06, | |
"total": 6.0562088155106804e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.16512, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 185, | |
"total": 0.9986662411689758, | |
"mean": 0.00539819589821068, | |
"stdev": 0.00018810550583789, | |
"p50": 0.005426176071166992, | |
"p90": 0.00561704969406128, | |
"p95": 0.005656166553497315, | |
"p99": 0.005730099124908447, | |
"values": [ | |
0.005654528141021729, | |
0.005650432109832764, | |
0.005629951953887939, | |
0.005683199882507324, | |
0.005591040134429932, | |
0.005635072231292724, | |
0.005656576156616211, | |
0.005640192031860352, | |
0.005677055835723877, | |
0.0056145920753479005, | |
0.00565667200088501, | |
0.005504000186920166, | |
0.005508096218109131, | |
0.0055101442337036136, | |
0.005499904155731201, | |
0.005525536060333252, | |
0.005483520030975342, | |
0.005346303939819336, | |
0.005412864208221436, | |
0.005450751781463623, | |
0.005482495784759522, | |
0.005506048202514649, | |
0.0055214080810546875, | |
0.005553152084350586, | |
0.005658624172210694, | |
0.0055552000999450684, | |
0.005563392162322998, | |
0.005485568046569824, | |
0.005385216236114502, | |
0.005470208168029785, | |
0.005576704025268555, | |
0.0055582718849182125, | |
0.005530623912811279, | |
0.005548031806945801, | |
0.005578752040863037, | |
0.005493760108947754, | |
0.00555622386932373, | |
0.005537792205810547, | |
0.005577727794647217, | |
0.00557260799407959, | |
0.005658624172210694, | |
0.005586944103240967, | |
0.005543935775756836, | |
0.00547430419921875, | |
0.005399551868438721, | |
0.005349376201629639, | |
0.005388288021087646, | |
0.005426176071166992, | |
0.005469183921813964, | |
0.005478400230407715, | |
0.005798912048339844, | |
0.005505023956298828, | |
0.005502975940704345, | |
0.005475327968597412, | |
0.0055920639038085935, | |
0.005566463947296142, | |
0.005573631763458252, | |
0.005578752040863037, | |
0.005540863990783691, | |
0.00552953577041626, | |
0.00546611213684082, | |
0.005429247856140137, | |
0.005497856140136719, | |
0.0055316481590271, | |
0.005652480125427246, | |
0.00556441593170166, | |
0.006325247764587402, | |
0.005601280212402344, | |
0.005569536209106446, | |
0.005481472015380859, | |
0.005402624130249023, | |
0.005483520030975342, | |
0.005508096218109131, | |
0.005463007926940918, | |
0.005248000144958496, | |
0.005288959980010987, | |
0.005165056228637695, | |
0.005164000034332275, | |
0.005204991817474365, | |
0.005190656185150146, | |
0.00522547197341919, | |
0.005492735862731934, | |
0.005494783878326416, | |
0.00552345609664917, | |
0.005503007888793945, | |
0.005550079822540284, | |
0.005646336078643799, | |
0.005583871841430664, | |
0.005620736122131348, | |
0.005543935775756836, | |
0.005577727794647217, | |
0.005683199882507324, | |
0.0055203838348388675, | |
0.005536799907684326, | |
0.005544991970062256, | |
0.00556441593170166, | |
0.005495808124542236, | |
0.005413887977600097, | |
0.005602303981781006, | |
0.0055203838348388675, | |
0.005426176071166992, | |
0.00541593599319458, | |
0.0053606400489807126, | |
0.005212160110473632, | |
0.005342048168182373, | |
0.005448703765869141, | |
0.0053760318756103515, | |
0.005192704200744629, | |
0.0051701760292053225, | |
0.005310463905334473, | |
0.005228544235229492, | |
0.005388288021087646, | |
0.0053637118339538575, | |
0.005414912223815918, | |
0.005470208168029785, | |
0.005419007778167725, | |
0.005565440177917481, | |
0.005618688106536865, | |
0.0056145920753479005, | |
0.005716991901397705, | |
0.005265408039093018, | |
0.005234687805175781, | |
0.005165056228637695, | |
0.005204991817474365, | |
0.005254144191741943, | |
0.005188608169555664, | |
0.00520908784866333, | |
0.005252096176147461, | |
0.005269504070281982, | |
0.005209055900573731, | |
0.005212160110473632, | |
0.005230591773986816, | |
0.005172224044799805, | |
0.005183487892150879, | |
0.005245952129364013, | |
0.005204959869384766, | |
0.00520908784866333, | |
0.005516287803649903, | |
0.005261312007904053, | |
0.005232704162597656, | |
0.005253151893615722, | |
0.005183487892150879, | |
0.005206016063690186, | |
0.0052008957862854, | |
0.005189631938934326, | |
0.0051998720169067385, | |
0.005204991817474365, | |
0.005234687805175781, | |
0.005180384159088135, | |
0.005185535907745361, | |
0.0051968002319335935, | |
0.005150720119476319, | |
0.005164031982421875, | |
0.005207104206085205, | |
0.0051701760292053225, | |
0.005178368091583252, | |
0.005218239784240722, | |
0.005169151782989502, | |
0.005175295829772949, | |
0.00515993595123291, | |
0.0051968002319335935, | |
0.00517632007598877, | |
0.0052070398330688475, | |
0.005223423957824707, | |
0.005188608169555664, | |
0.005174272060394287, | |
0.0052008957862854, | |
0.005141503810882568, | |
0.005155839920043945, | |
0.005172224044799805, | |
0.005181439876556396, | |
0.0051701760292053225, | |
0.005198847770690918, | |
0.005203968048095703, | |
0.00517632007598877, | |
0.005243904113769531, | |
0.0052336640357971195, | |
0.005182464122772217, | |
0.005172224044799805, | |
0.0051998720169067385, | |
0.00516812801361084, | |
0.005161983966827393, | |
0.005205023765563965, | |
0.0052070398330688475, | |
0.005155839920043945 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 185.24707492209876 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.010389515651142e-08, | |
"ram": 3.286085949007682e-08, | |
"gpu": 3.356277360710656e-07, | |
"total": 4.2859249071765383e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2333218.667283593 | |
} | |
} | |
} | |
} |