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
23f2856
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.225-213.878.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.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"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.13.0", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 844.177408, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.12396134185791016 | |
], | |
"count": 1, | |
"total": 0.12396134185791016, | |
"mean": 0.12396134185791016, | |
"p50": 0.12396134185791016, | |
"p90": 0.12396134185791016, | |
"p95": 0.12396134185791016, | |
"p99": 0.12396134185791016, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1054.195712, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.005659647941589355, | |
0.005269504070281982, | |
0.00511078405380249, | |
0.005096447944641113, | |
0.005121024131774903, | |
0.005193727970123291, | |
0.0056863360404968265, | |
0.005497791767120361, | |
0.0055112638473510745, | |
0.005532671928405761, | |
0.005451776027679443, | |
0.005464064121246338, | |
0.005469024181365967, | |
0.005643263816833496, | |
0.0056483840942382815, | |
0.005425151824951172, | |
0.005352543830871582, | |
0.005443583965301513, | |
0.005434368133544922, | |
0.005463039875030518, | |
0.0054271998405456545, | |
0.0052633600234985355, | |
0.005232639789581299, | |
0.005248127937316894, | |
0.005319488048553467, | |
0.005275648117065429, | |
0.005292031764984131, | |
0.005328896045684814, | |
0.005354496002197265, | |
0.005312511920928955, | |
0.0054906878471374515, | |
0.005383264064788818, | |
0.005404672145843506, | |
0.00552243185043335, | |
0.005511007785797119, | |
0.0053637118339538575, | |
0.005468160152435303, | |
0.005696512222290039, | |
0.005583871841430664, | |
0.005588992118835449, | |
0.005548031806945801, | |
0.005477375984191894, | |
0.005310463905334473, | |
0.0052674560546875, | |
0.0051753602027893066, | |
0.00515174388885498, | |
0.00511078405380249, | |
0.005114880084991455, | |
0.005248000144958496, | |
0.0052408318519592285, | |
0.005230591773986816, | |
0.005230751991271973, | |
0.005311488151550293, | |
0.005255167961120606, | |
0.005379871845245361, | |
0.005212160110473632, | |
0.005116928100585938, | |
0.0050360321998596195, | |
0.005096447944641113, | |
0.005125120162963868, | |
0.005170239925384522, | |
0.005149695873260498, | |
0.005164063930511474, | |
0.005248928070068359, | |
0.005272575855255127, | |
0.005098495960235596, | |
0.005089280128479004, | |
0.005124256134033203, | |
0.005127168178558349, | |
0.005179391860961914, | |
0.0051333122253417966, | |
0.0051426877975463865, | |
0.0051363840103149415, | |
0.005928864002227783, | |
0.006310912132263183, | |
0.00560752010345459, | |
0.005542816162109375, | |
0.005544960021972656, | |
0.005612544059753418, | |
0.005565440177917481, | |
0.005518335819244385, | |
0.005682176113128662, | |
0.0056514558792114256, | |
0.00566476821899414, | |
0.005563488006591797, | |
0.005432511806488037, | |
0.0055214080810546875, | |
0.005607552051544189, | |
0.005547999858856201, | |
0.005407584190368652, | |
0.00536575984954834, | |
0.005526463985443115, | |
0.00547430419921875, | |
0.005571584224700928, | |
0.005472256183624268, | |
0.005340223789215088, | |
0.00522649621963501, | |
0.00520908784866333, | |
0.005408768177032471, | |
0.0054477758407592775, | |
0.005275712013244629, | |
0.005230591773986816, | |
0.005187583923339844, | |
0.005250048160552978, | |
0.0053637118339538575, | |
0.005173247814178467, | |
0.00526643180847168, | |
0.005272543907165527, | |
0.005248000144958496, | |
0.0052674560546875, | |
0.005292031764984131, | |
0.005344255924224854, | |
0.005786623954772949, | |
0.005682176113128662, | |
0.005375135898590088, | |
0.005213183879852295, | |
0.005122015953063965, | |
0.00521724796295166, | |
0.005150623798370361, | |
0.0052070398330688475, | |
0.005132351875305176, | |
0.005193727970123291, | |
0.005164031982421875, | |
0.005129216194152832, | |
0.005181439876556396, | |
0.005187679767608642, | |
0.005131264209747314, | |
0.005152768135070801, | |
0.005135359764099121, | |
0.0051333122253417966, | |
0.005100543975830078, | |
0.005045375823974609, | |
0.005178368091583252, | |
0.005139520168304443, | |
0.0051989760398864744, | |
0.005024767875671386, | |
0.005094399929046631, | |
0.005108736038208008, | |
0.005156864166259765, | |
0.005142528057098389, | |
0.005139455795288086, | |
0.005141568183898926, | |
0.005093247890472412, | |
0.005125120162963868, | |
0.005176352024078369, | |
0.005135359764099121, | |
0.005097472190856934, | |
0.005163008213043213, | |
0.005126143932342529, | |
0.00510975980758667, | |
0.005131264209747314, | |
0.005149695873260498, | |
0.005141503810882568, | |
0.005093311786651612, | |
0.005234752178192139, | |
0.005402624130249023, | |
0.005329919815063477, | |
0.005298175811767578, | |
0.0051404800415039064, | |
0.005089280128479004, | |
0.005091328144073487, | |
0.005099520206451416, | |
0.00511897611618042, | |
0.005098495960235596, | |
0.00510044813156128, | |
0.005126143932342529, | |
0.005087232112884522, | |
0.005091328144073487, | |
0.0050536317825317385, | |
0.005092351913452148, | |
0.005105663776397705, | |
0.005098495960235596, | |
0.005121024131774903, | |
0.005081151962280274, | |
0.0051066880226135255, | |
0.005087232112884522, | |
0.005153632164001465, | |
0.005272575855255127, | |
0.005154816150665284, | |
0.005260287761688232, | |
0.005111807823181152, | |
0.005051392078399658, | |
0.005079040050506592, | |
0.005059648036956787, | |
0.005087232112884522, | |
0.0051138558387756345, | |
0.005030911922454834, | |
0.004999167919158935, | |
0.005018623828887939 | |
], | |
"count": 189, | |
"total": 0.9978992304801936, | |
"mean": 0.005279890108360816, | |
"p50": 0.00521724796295166, | |
"p90": 0.005563878440856934, | |
"p95": 0.005650227165222168, | |
"p99": 0.00580369276046753, | |
"stdev": 0.0002020062605806101, | |
"stdev_": 3.8259557762524072 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 189.39788129614274 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.032327764801045e-08, | |
"ram": 3.28230826440496e-08, | |
"gpu": 3.3421182741416013e-07, | |
"total": 4.2735818770622026e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2339957.5081674396 | |
} | |
} | |
} | |
} |