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
7eeff51
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": 841.125888, | |
"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.964015625, | |
"mean": 7.964015625, | |
"stdev": 0.0, | |
"p50": 7.964015625, | |
"p90": 7.964015625, | |
"p95": 7.964015625, | |
"p99": 7.964015625, | |
"values": [ | |
7.964015625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.47844722846868e-06, | |
"ram": 7.914464023288011e-07, | |
"gpu": 1.7275013819983975e-06, | |
"total": 3.997395012795878e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1050.259456, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 194, | |
"total": 0.9965851821899413, | |
"mean": 0.005137037021597636, | |
"stdev": 0.0002004710050221438, | |
"p50": 0.005192736148834228, | |
"p90": 0.00527915210723877, | |
"p95": 0.005332377672195434, | |
"p99": 0.005727938394546507, | |
"values": [ | |
0.005315584182739258, | |
0.005258240222930908, | |
0.005259263992309571, | |
0.005248000144958496, | |
0.005311488151550293, | |
0.005243904113769531, | |
0.005232639789581299, | |
0.005273600101470947, | |
0.0052070398330688475, | |
0.0052295680046081545, | |
0.005261343955993652, | |
0.0051968002319335935, | |
0.0052008957862854, | |
0.005708799839019775, | |
0.005144576072692871, | |
0.004891647815704346, | |
0.004857855796813965, | |
0.004872191905975342, | |
0.004860928058624267, | |
0.004841472148895264, | |
0.0048455681800842285, | |
0.0048261117935180665, | |
0.004868095874786377, | |
0.004851712226867676, | |
0.004815968036651611, | |
0.0048261117935180665, | |
0.0048527359962463375, | |
0.004891647815704346, | |
0.004848639965057373, | |
0.004853759765625, | |
0.004831232070922851, | |
0.004838399887084961, | |
0.004848703861236572, | |
0.004827136039733886, | |
0.004923391819000244, | |
0.004860928058624267, | |
0.004924416065216064, | |
0.004867072105407715, | |
0.0048855037689208985, | |
0.00487014389038086, | |
0.0048865280151367185, | |
0.00486195182800293, | |
0.0048865280151367185, | |
0.004844543933868409, | |
0.004828159809112549, | |
0.004933631896972656, | |
0.004872191905975342, | |
0.004880383968353271, | |
0.004835328102111816, | |
0.004839424133300781, | |
0.004897791862487793, | |
0.004843520164489746, | |
0.004863999843597412, | |
0.004830207824707031, | |
0.004837376117706299, | |
0.004832255840301514, | |
0.00486195182800293, | |
0.00481382417678833, | |
0.0048527359962463375, | |
0.0048558077812194825, | |
0.004827136039733886, | |
0.004858880043029785, | |
0.004829184055328369, | |
0.004882431983947754, | |
0.004884479999542236, | |
0.004820991992950439, | |
0.0049827837944030765, | |
0.005442560195922852, | |
0.005216256141662597, | |
0.005173247814178467, | |
0.005186560153961181, | |
0.005202943801879883, | |
0.005187583923339844, | |
0.005172224044799805, | |
0.005203968048095703, | |
0.005212160110473632, | |
0.005202943801879883, | |
0.005233727931976319, | |
0.005164031982421875, | |
0.005189631938934326, | |
0.005201920032501221, | |
0.005183487892150879, | |
0.005197824001312256, | |
0.005188608169555664, | |
0.005185535907745361, | |
0.00517632007598877, | |
0.005193727970123291, | |
0.0052295680046081545, | |
0.005193727970123291, | |
0.005169151782989502, | |
0.00521830415725708, | |
0.005191679954528809, | |
0.005192704200744629, | |
0.005203968048095703, | |
0.005231679916381836, | |
0.005291007995605469, | |
0.005425151824951172, | |
0.006200319766998291, | |
0.005602303981781006, | |
0.005412864208221436, | |
0.005279776096343994, | |
0.005197824001312256, | |
0.005295104026794434, | |
0.00537497615814209, | |
0.005982207775115967, | |
0.005422080039978027, | |
0.005210112094879151, | |
0.005303296089172363, | |
0.005202943801879883, | |
0.00519484806060791, | |
0.005240799903869629, | |
0.005156864166259765, | |
0.005204991817474365, | |
0.005174272060394287, | |
0.0051773438453674315, | |
0.0053350400924682614, | |
0.005242879867553711, | |
0.0053309440612792965, | |
0.005203968048095703, | |
0.00522649621963501, | |
0.005252096176147461, | |
0.005197824001312256, | |
0.0052204160690307614, | |
0.005242879867553711, | |
0.005185535907745361, | |
0.005239808082580567, | |
0.0052408318519592285, | |
0.005178368091583252, | |
0.005158912181854248, | |
0.005142528057098389, | |
0.005212255954742432, | |
0.005149695873260498, | |
0.005203968048095703, | |
0.005173247814178467, | |
0.0051968002319335935, | |
0.005182464122772217, | |
0.005201920032501221, | |
0.0052336640357971195, | |
0.0051476478576660155, | |
0.005184512138366699, | |
0.005165056228637695, | |
0.0051476478576660155, | |
0.00521830415725708, | |
0.005281792163848877, | |
0.005272575855255127, | |
0.00526035213470459, | |
0.005277696132659912, | |
0.005232639789581299, | |
0.005238783836364746, | |
0.005285855770111084, | |
0.005249023914337158, | |
0.005237760066986084, | |
0.005307392120361328, | |
0.005260287761688232, | |
0.005216256141662597, | |
0.005253119945526123, | |
0.0051988158226013185, | |
0.005213183879852295, | |
0.005219327926635742, | |
0.0051794562339782715, | |
0.005212160110473632, | |
0.005184512138366699, | |
0.005238783836364746, | |
0.005195775985717774, | |
0.0051660799980163576, | |
0.005234687805175781, | |
0.005183487892150879, | |
0.005208064079284668, | |
0.00521727991104126, | |
0.005148672103881836, | |
0.005223423957824707, | |
0.005182432174682617, | |
0.005193727970123291, | |
0.005189631938934326, | |
0.005180416107177735, | |
0.005210112094879151, | |
0.005194752216339111, | |
0.005191679954528809, | |
0.0052367358207702636, | |
0.005169151782989502, | |
0.005219327926635742, | |
0.005210112094879151, | |
0.0051998720169067385, | |
0.00516812801361084, | |
0.0051660799980163576, | |
0.005231616020202637, | |
0.005171199798583984, | |
0.005213183879852295, | |
0.005201920032501221, | |
0.00516812801361084, | |
0.005184576034545898, | |
0.005192704200744629, | |
0.005191679954528809, | |
0.005192768096923828 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 194.66474463697688 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.904830746270226e-08, | |
"ram": 3.226756949518521e-08, | |
"gpu": 3.3368324096517764e-07, | |
"total": 4.249991179230651e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2352946.0599516435 | |
} | |
} | |
} | |
} |