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
21e4930
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.252864, | |
"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.385088, | |
"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.9556259765625, | |
"mean": 7.9556259765625, | |
"stdev": 0.0, | |
"p50": 7.9556259765625, | |
"p90": 7.9556259765625, | |
"p95": 7.9556259765625, | |
"p99": 7.9556259765625, | |
"values": [ | |
7.9556259765625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5124950645812876e-06, | |
"ram": 8.084319691668668e-07, | |
"gpu": 3.5172250359982726e-06, | |
"total": 5.838152069746427e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.034752, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 184, | |
"total": 0.9938310065269477, | |
"mean": 0.005401255470255147, | |
"stdev": 0.0001225554523799094, | |
"p50": 0.005384752035140991, | |
"p90": 0.005542377471923828, | |
"p95": 0.005625063920021057, | |
"p99": 0.0057778174877166745, | |
"values": [ | |
0.005598207950592041, | |
0.005455872058868408, | |
0.0058787841796875, | |
0.005516511917114258, | |
0.005486623764038086, | |
0.00555622386932373, | |
0.005467135906219483, | |
0.0054906878471374515, | |
0.00550601577758789, | |
0.0053554558753967285, | |
0.0054651517868042, | |
0.005392320156097412, | |
0.005433248043060303, | |
0.00536575984954834, | |
0.005368832111358642, | |
0.005389311790466309, | |
0.005409791946411133, | |
0.005414944171905517, | |
0.005406720161437988, | |
0.005279744148254394, | |
0.0053534722328186036, | |
0.0053975038528442385, | |
0.005272672176361084, | |
0.005347328186035156, | |
0.005351424217224121, | |
0.005383327960968017, | |
0.005437439918518067, | |
0.005410816192626953, | |
0.005461952209472656, | |
0.005419007778167725, | |
0.005463039875030518, | |
0.005380191802978516, | |
0.005343071937561035, | |
0.005336063861846924, | |
0.005337088108062744, | |
0.0054271998405456545, | |
0.005535711765289306, | |
0.005418816089630127, | |
0.005409632205963135, | |
0.005617663860321045, | |
0.005407743930816651, | |
0.005527552127838135, | |
0.0055285758972167965, | |
0.005518335819244385, | |
0.005492800235748291, | |
0.005256192207336426, | |
0.005284863948822022, | |
0.005271743774414062, | |
0.005318655967712403, | |
0.005426176071166992, | |
0.005429215908050537, | |
0.005274623870849609, | |
0.0052008957862854, | |
0.005204991817474365, | |
0.005223423957824707, | |
0.005351424217224121, | |
0.005459968090057373, | |
0.0053842878341674805, | |
0.005356544017791748, | |
0.00536575984954834, | |
0.0053348798751831055, | |
0.005292960166931152, | |
0.005385216236114502, | |
0.005453824043273926, | |
0.0055615358352661135, | |
0.005473440170288086, | |
0.0056145920753479005, | |
0.005483520030975342, | |
0.005465023994445801, | |
0.005475327968597412, | |
0.005442560195922852, | |
0.005387263774871826, | |
0.005395455837249756, | |
0.00531660795211792, | |
0.005371744155883789, | |
0.005513216018676758, | |
0.005393407821655274, | |
0.005400576114654541, | |
0.005415840148925781, | |
0.0054241280555725096, | |
0.005416959762573242, | |
0.005430272102355957, | |
0.0052899842262268066, | |
0.005282911777496338, | |
0.005282815933227539, | |
0.00536575984954834, | |
0.005375999927520752, | |
0.005543903827667236, | |
0.005447616100311279, | |
0.005461152076721191, | |
0.005305503845214844, | |
0.005356544017791748, | |
0.005320703983306885, | |
0.005370880126953125, | |
0.00532480001449585, | |
0.005358463764190674, | |
0.005359615802764893, | |
0.005296127796173096, | |
0.005343232154846191, | |
0.005345280170440674, | |
0.005352447986602784, | |
0.0054241280555725096, | |
0.005412864208221436, | |
0.005464064121246338, | |
0.0054241280555725096, | |
0.005413887977600097, | |
0.005794816017150879, | |
0.005485568046569824, | |
0.0054222078323364255, | |
0.00536678409576416, | |
0.005436416149139404, | |
0.0055214080810546875, | |
0.005368832111358642, | |
0.0052458238601684574, | |
0.005326848030090332, | |
0.005368832111358642, | |
0.005331967830657959, | |
0.005325823783874512, | |
0.005235712051391602, | |
0.005287936210632324, | |
0.005096447944641113, | |
0.005113791942596435, | |
0.005284863948822022, | |
0.005264544010162354, | |
0.005084000110626221, | |
0.005235712051391602, | |
0.005204991817474365, | |
0.0050728960037231445, | |
0.005102591991424561, | |
0.005451776027679443, | |
0.005598207950592041, | |
0.00563097620010376, | |
0.005620575904846191, | |
0.005659743785858155, | |
0.005628928184509278, | |
0.005768191814422607, | |
0.005774335861206055, | |
0.005656576156616211, | |
0.00557260799407959, | |
0.005414912223815918, | |
0.005399551868438721, | |
0.0053740482330322265, | |
0.00541593599319458, | |
0.005434368133544922, | |
0.0056258559226989744, | |
0.005453824043273926, | |
0.005391295909881592, | |
0.005307392120361328, | |
0.005436416149139404, | |
0.005497791767120361, | |
0.005389311790466309, | |
0.005371903896331787, | |
0.005538815975189209, | |
0.00572211217880249, | |
0.005381120204925537, | |
0.0053340158462524415, | |
0.005384191989898681, | |
0.005338208198547363, | |
0.0053340158462524415, | |
0.005337088108062744, | |
0.00531660795211792, | |
0.005327871799468994, | |
0.005346303939819336, | |
0.005388288021087646, | |
0.005353375911712647, | |
0.00530841588973999, | |
0.005362783908843994, | |
0.005356383800506592, | |
0.005506048202514649, | |
0.005348351955413819, | |
0.005455872058868408, | |
0.005318655967712403, | |
0.005338143825531006, | |
0.005470208168029785, | |
0.005343167781829834, | |
0.005319680213928223, | |
0.00536678409576416, | |
0.005354496002197265, | |
0.005304351806640625, | |
0.005345280170440674, | |
0.00530131196975708, | |
0.00535756778717041, | |
0.005367743968963623, | |
0.005354688167572021 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 185.14214065730195 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.206328767815349e-08, | |
"ram": 3.3927666174533307e-08, | |
"gpu": 3.5008899443979103e-07, | |
"total": 4.460799482924779e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2241750.618533379 | |
} | |
} | |
} | |
} |