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
c73cdc5
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.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": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 828.268544, | |
"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.41163623046875, | |
"mean": 7.41163623046875, | |
"stdev": 0.0, | |
"p50": 7.41163623046875, | |
"p90": 7.41163623046875, | |
"p95": 7.41163623046875, | |
"p99": 7.41163623046875, | |
"values": [ | |
7.41163623046875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4654970062500025e-06, | |
"ram": 7.841288521495743e-07, | |
"gpu": 1.6908346859995094e-06, | |
"total": 3.940460544399086e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1037.381632, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 188, | |
"total": 0.996070337772369, | |
"mean": 0.005298246477512604, | |
"stdev": 0.00023738054064131333, | |
"p50": 0.00523468804359436, | |
"p90": 0.005525401544570923, | |
"p95": 0.005619404673576355, | |
"p99": 0.006403829584121704, | |
"values": [ | |
0.005629951953887939, | |
0.005527552127838135, | |
0.0056258559226989744, | |
0.005305408000946045, | |
0.005276671886444092, | |
0.005359583854675293, | |
0.005489664077758789, | |
0.005502975940704345, | |
0.005662720203399658, | |
0.0055244798660278325, | |
0.005607423782348633, | |
0.005519360065460205, | |
0.005494783878326416, | |
0.005437439918518067, | |
0.0057292799949646, | |
0.006665215969085693, | |
0.005443583965301513, | |
0.0053534722328186036, | |
0.005288959980010987, | |
0.005255167961120606, | |
0.005396480083465576, | |
0.005362688064575195, | |
0.005411839962005615, | |
0.005518335819244385, | |
0.005452799797058106, | |
0.005501952171325684, | |
0.005527552127838135, | |
0.005443583965301513, | |
0.005408768177032471, | |
0.005299200057983398, | |
0.0053678078651428224, | |
0.005568511962890625, | |
0.005455872058868408, | |
0.005450751781463623, | |
0.005495808124542236, | |
0.005479423999786377, | |
0.005450751781463623, | |
0.005451776027679443, | |
0.005455872058868408, | |
0.005438464164733887, | |
0.0054282240867614745, | |
0.0053944320678710935, | |
0.005477375984191894, | |
0.005408768177032471, | |
0.005409791946411133, | |
0.005346271991729736, | |
0.0052367358207702636, | |
0.0063907837867736815, | |
0.005803008079528809, | |
0.006491136074066162, | |
0.005595104217529297, | |
0.005493760108947754, | |
0.005419007778167725, | |
0.005378047943115235, | |
0.0054774398803710935, | |
0.005438464164733887, | |
0.005493760108947754, | |
0.00526643180847168, | |
0.005197824001312256, | |
0.005220352172851562, | |
0.005235712051391602, | |
0.005165056228637695, | |
0.005111807823181152, | |
0.005145599842071533, | |
0.005131264209747314, | |
0.005175295829772949, | |
0.0054282240867614745, | |
0.005215231895446777, | |
0.005156864166259765, | |
0.005406720161437988, | |
0.005227519989013672, | |
0.005129248142242432, | |
0.005085184097290039, | |
0.005099520206451416, | |
0.005123072147369385, | |
0.005137407779693603, | |
0.005134304046630859, | |
0.0052336640357971195, | |
0.005220352172851562, | |
0.0051333122253417966, | |
0.005082111835479736, | |
0.00511897611618042, | |
0.005105663776397705, | |
0.005154816150665284, | |
0.005124095916748047, | |
0.005258240222930908, | |
0.005117951869964599, | |
0.0051435518264770505, | |
0.005100543975830078, | |
0.005153791904449463, | |
0.005326784133911132, | |
0.005642240047454834, | |
0.005570559978485107, | |
0.0055214080810546875, | |
0.005488639831542969, | |
0.005595136165618897, | |
0.005442560195922852, | |
0.005497856140136719, | |
0.0054661440849304195, | |
0.005450751781463623, | |
0.00546611213684082, | |
0.005296127796173096, | |
0.005469183921813964, | |
0.005600255966186523, | |
0.005302271842956543, | |
0.005311488151550293, | |
0.0053309440612792965, | |
0.005157887935638428, | |
0.005187583923339844, | |
0.005380095958709717, | |
0.005372928142547607, | |
0.005192704200744629, | |
0.005130239963531494, | |
0.005088255882263183, | |
0.005094399929046631, | |
0.005318655967712403, | |
0.005348351955413819, | |
0.005407743930816651, | |
0.0054271998405456545, | |
0.005294079780578613, | |
0.005339136123657226, | |
0.005476352214813233, | |
0.005448703765869141, | |
0.005565440177917481, | |
0.005477375984191894, | |
0.00510975980758667, | |
0.0050769920349121095, | |
0.005125120162963868, | |
0.005091328144073487, | |
0.005089280128479004, | |
0.005131264209747314, | |
0.005116928100585938, | |
0.00510975980758667, | |
0.005093376159667969, | |
0.005150720119476319, | |
0.005088255882263183, | |
0.005125120162963868, | |
0.005121024131774903, | |
0.005105663776397705, | |
0.005089280128479004, | |
0.005079040050506592, | |
0.005135359764099121, | |
0.005130239963531494, | |
0.005121024131774903, | |
0.005173247814178467, | |
0.005144576072692871, | |
0.005088255882263183, | |
0.005105663776397705, | |
0.005122047901153564, | |
0.005071872234344482, | |
0.0051168642044067385, | |
0.005102591991424561, | |
0.005089344024658203, | |
0.0050728960037231445, | |
0.005079040050506592, | |
0.005134335994720459, | |
0.0051066880226135255, | |
0.00511078405380249, | |
0.0052408318519592285, | |
0.005112832069396973, | |
0.005086207866668701, | |
0.005092351913452148, | |
0.005122047901153564, | |
0.005633024215698243, | |
0.0051138558387756345, | |
0.005108736038208008, | |
0.005087232112884522, | |
0.005108704090118408, | |
0.00506879997253418, | |
0.005111807823181152, | |
0.005104640007019043, | |
0.005099520206451416, | |
0.0051066880226135255, | |
0.005082111835479736, | |
0.0050728960037231445, | |
0.005071872234344482, | |
0.0051363840103149415, | |
0.005257215976715088, | |
0.005096447944641113, | |
0.00511897611618042, | |
0.0051066880226135255, | |
0.0050841598510742185, | |
0.005105663776397705, | |
0.0051250882148742676, | |
0.005125120162963868, | |
0.0051404800415039064, | |
0.005125120162963868, | |
0.005071872234344482 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 188.74169109427226 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.994565000350636e-08, | |
"ram": 3.2728962727015204e-08, | |
"gpu": 3.713274575555526e-07, | |
"total": 4.640020702860742e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2155162.797837224 | |
} | |
} | |
} | |
} |