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
84385ec
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.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": "1.22.0", | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.13.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 843.32544, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.873856 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
8.342474609375 | |
], | |
"count": 1, | |
"total": 8.342474609375, | |
"mean": 8.342474609375, | |
"p50": 8.342474609375, | |
"p90": 8.342474609375, | |
"p95": 8.342474609375, | |
"p99": 8.342474609375, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5133546743057657e-06, | |
"ram": 8.067423851786561e-07, | |
"gpu": 1.7513902900003278e-06, | |
"total": 4.07148734948475e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.77792, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.005519360065460205, | |
0.00521727991104126, | |
0.0052367358207702636, | |
0.0052930560111999515, | |
0.005314559936523438, | |
0.0052899842262268066, | |
0.0052367358207702636, | |
0.005243904113769531, | |
0.005230591773986816, | |
0.005238783836364746, | |
0.005249023914337158, | |
0.005198847770690918, | |
0.00520908784866333, | |
0.005254144191741943, | |
0.005269504070281982, | |
0.005243904113769531, | |
0.005243904113769531, | |
0.005154816150665284, | |
0.005108736038208008, | |
0.0051066880226135255, | |
0.005100543975830078, | |
0.005137407779693603, | |
0.005149695873260498, | |
0.005206016063690186, | |
0.005186560153961181, | |
0.005179327964782715, | |
0.005194752216339111, | |
0.005178368091583252, | |
0.005177279949188232, | |
0.005188608169555664, | |
0.005220352172851562, | |
0.005298240184783936, | |
0.005241856098175048, | |
0.005263423919677735, | |
0.005229599952697754, | |
0.005252096176147461, | |
0.005255167961120606, | |
0.005172224044799805, | |
0.005153791904449463, | |
0.005108736038208008, | |
0.005126143932342529, | |
0.005245952129364013, | |
0.005312511920928955, | |
0.00522547197341919, | |
0.005183487892150879, | |
0.005230591773986816, | |
0.005187583923339844, | |
0.0052295680046081545, | |
0.005186560153961181, | |
0.005115903854370117, | |
0.00506060791015625, | |
0.0051138558387756345, | |
0.0052008957862854, | |
0.005130239963531494, | |
0.005191679954528809, | |
0.005291007995605469, | |
0.005131264209747314, | |
0.005104640007019043, | |
0.005118912220001221, | |
0.005245952129364013, | |
0.0051404800415039064, | |
0.0051476478576660155, | |
0.005190656185150146, | |
0.005123072147369385, | |
0.005100543975830078, | |
0.005146624088287354, | |
0.005144576072692871, | |
0.005187583923339844, | |
0.005248000144958496, | |
0.005277696132659912, | |
0.005227519989013672, | |
0.005230559825897217, | |
0.005277599811553955, | |
0.005368832111358642, | |
0.005272575855255127, | |
0.0052336640357971195, | |
0.005202943801879883, | |
0.005277696132659912, | |
0.005265408039093018, | |
0.0051476478576660155, | |
0.005075967788696289, | |
0.005201920032501221, | |
0.005227519989013672, | |
0.005101568222045898, | |
0.00506982421875, | |
0.005085184097290039, | |
0.005093376159667969, | |
0.00497049617767334, | |
0.0049192957878112795, | |
0.005165056228637695, | |
0.005083136081695557, | |
0.0050094079971313476, | |
0.004901887893676758, | |
0.004914175987243652, | |
0.00496230411529541, | |
0.005033984184265137, | |
0.005071872234344482, | |
0.00511897611618042, | |
0.005107711791992187, | |
0.0051138558387756345, | |
0.005320703983306885, | |
0.005550079822540284, | |
0.0054282240867614745, | |
0.005713920116424561, | |
0.0062341117858886715, | |
0.005362688064575195, | |
0.0051435518264770505, | |
0.00511078405380249, | |
0.005144576072692871, | |
0.005115903854370117, | |
0.0051077442169189455, | |
0.005157887935638428, | |
0.005180416107177735, | |
0.00517632007598877, | |
0.005104640007019043, | |
0.0051333122253417966, | |
0.005114880084991455, | |
0.005101568222045898, | |
0.005111807823181152, | |
0.0050728960037231445, | |
0.005085184097290039, | |
0.005079040050506592, | |
0.005098495960235596, | |
0.005099552154541016, | |
0.005092351913452148, | |
0.005087232112884522, | |
0.00506982421875, | |
0.005066751956939697, | |
0.005096447944641113, | |
0.005111807823181152, | |
0.005104608058929443, | |
0.005107711791992187, | |
0.005115903854370117, | |
0.00506982421875, | |
0.005083136081695557, | |
0.005085184097290039, | |
0.0050360321998596195, | |
0.005009376049041748, | |
0.005051392078399658, | |
0.0050094079971313476, | |
0.005028863906860351, | |
0.005002272129058838, | |
0.004988927841186524, | |
0.005007359981536865, | |
0.005022719860076904, | |
0.0050063362121582035, | |
0.005001215934753418, | |
0.0050094079971313476, | |
0.00501145601272583, | |
0.0050032639503479, | |
0.0050032639503479, | |
0.005014527797698975, | |
0.005053440093994141, | |
0.00501043176651001, | |
0.0050135040283203125, | |
0.0050124797821044925, | |
0.004997119903564453, | |
0.004998144149780274, | |
0.004999167919158935, | |
0.0050094079971313476, | |
0.004996096134185791, | |
0.004989952087402344, | |
0.0049797120094299315, | |
0.0050094079971313476, | |
0.00501964807510376, | |
0.0050032639503479, | |
0.004997119903564453, | |
0.005001215934753418, | |
0.0050135040283203125, | |
0.005005311965942383, | |
0.00501043176651001, | |
0.0050206718444824215, | |
0.005244927883148193, | |
0.006102015972137451, | |
0.005706751823425293, | |
0.0064542717933654785, | |
0.005489664077758789, | |
0.005549056053161621, | |
0.005389311790466309, | |
0.0057149438858032225, | |
0.005260287761688232, | |
0.005164063930511474, | |
0.005158912181854248, | |
0.00511897611618042, | |
0.005071904182434082, | |
0.0050953922271728515, | |
0.005101535797119141, | |
0.005099520206451416, | |
0.005088255882263183, | |
0.005058559894561767, | |
0.005090303897857666, | |
0.005074944019317627, | |
0.0050954241752624516 | |
], | |
"count": 193, | |
"total": 0.9971393284797669, | |
"mean": 0.00516652501802988, | |
"p50": 0.00511897611618042, | |
"p90": 0.005290803241729736, | |
"p95": 0.0054528000831603985, | |
"p99": 0.006112583637237546, | |
"stdev": 0.0001926611331149287, | |
"stdev_": 3.729027391575373 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 193.55369353874224 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.083092297720918e-08, | |
"ram": 3.3236934402998755e-08, | |
"gpu": 3.564746441538447e-07, | |
"total": 4.5054250153405266e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2219546.4281285317 | |
} | |
} | |
} | |
} |