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
779a8a2
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"model": "google/vit-base-patch16-224", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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, | |
"latency": true, | |
"memory": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.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.2.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 911.597568, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 176, | |
"total": 1.0002957110404966, | |
"mean": 0.00568349835818464, | |
"stdev": 0.0001969185255746421, | |
"p50": 0.005676031827926635, | |
"p90": 0.005817856073379517, | |
"p95": 0.005923327803611755, | |
"p99": 0.006506736040115356, | |
"values": [ | |
0.006465536117553711, | |
0.006246399879455566, | |
0.006187007904052734, | |
0.006127615928649902, | |
0.006630335807800293, | |
0.005636096000671387, | |
0.00547430419921875, | |
0.005433343887329102, | |
0.00537395191192627, | |
0.005569536209106446, | |
0.00571289587020874, | |
0.005922815799713135, | |
0.005656576156616211, | |
0.005727231979370117, | |
0.005705728054046631, | |
0.005649407863616943, | |
0.005638144016265869, | |
0.005631936073303223, | |
0.0056514558792114256, | |
0.005753759860992432, | |
0.00582041597366333, | |
0.005547008037567139, | |
0.005629951953887939, | |
0.00555622386932373, | |
0.00556547212600708, | |
0.00563097620010376, | |
0.0058009600639343266, | |
0.005710847854614258, | |
0.00566374397277832, | |
0.00566374397277832, | |
0.005695615768432617, | |
0.005668863773345947, | |
0.0056442880630493165, | |
0.005650432109832764, | |
0.0057190718650817875, | |
0.005616640090942383, | |
0.005792768001556397, | |
0.005727231979370117, | |
0.005823488235473633, | |
0.005681151866912842, | |
0.005658624172210694, | |
0.005855231761932373, | |
0.005617663860321045, | |
0.005521471977233887, | |
0.005436416149139404, | |
0.005338175773620606, | |
0.005350304126739502, | |
0.0053227200508117675, | |
0.005311488151550293, | |
0.005400576114654541, | |
0.005349376201629639, | |
0.005418975830078125, | |
0.005444608211517334, | |
0.005391359806060791, | |
0.005398528099060058, | |
0.0054785280227661135, | |
0.005438464164733887, | |
0.005480447769165039, | |
0.005431295871734619, | |
0.0055796799659729, | |
0.005413887977600097, | |
0.005417984008789062, | |
0.0054876160621643065, | |
0.005470208168029785, | |
0.005345280170440674, | |
0.005542912006378174, | |
0.005730368137359619, | |
0.00563097620010376, | |
0.005724160194396972, | |
0.0056146559715271, | |
0.005700607776641845, | |
0.005631999969482422, | |
0.0056514558792114256, | |
0.005742591857910156, | |
0.005722976207733154, | |
0.005744639873504639, | |
0.005645311832427978, | |
0.005683199882507324, | |
0.00571289587020874, | |
0.005801951885223389, | |
0.005716032028198243, | |
0.0056341118812561035, | |
0.00573747205734253, | |
0.005801983833312988, | |
0.00572108793258667, | |
0.0056145920753479005, | |
0.005724160194396972, | |
0.005815296173095703, | |
0.005721151828765869, | |
0.005689343929290771, | |
0.00568726396560669, | |
0.00572108793258667, | |
0.005673120021820069, | |
0.005679103851318359, | |
0.005705728054046631, | |
0.00564851188659668, | |
0.005761023998260498, | |
0.0056863360404968265, | |
0.00572211217880249, | |
0.005665823936462402, | |
0.005686272144317627, | |
0.005924863815307617, | |
0.005680223941802978, | |
0.005827455997467041, | |
0.006792191982269287, | |
0.00636518383026123, | |
0.006172671794891358, | |
0.005716896057128907, | |
0.005773215770721435, | |
0.005687456130981445, | |
0.00567193603515625, | |
0.005706751823425293, | |
0.005745664119720459, | |
0.005766111850738526, | |
0.005705728054046631, | |
0.005747712135314941, | |
0.005703680038452149, | |
0.005668863773345947, | |
0.005725183963775635, | |
0.0057118721008300784, | |
0.0057794561386108395, | |
0.005920767784118652, | |
0.005682240009307862, | |
0.00555622386932373, | |
0.005832704067230224, | |
0.005650432109832764, | |
0.005665791988372803, | |
0.005677055835723877, | |
0.005661695957183838, | |
0.005713920116424561, | |
0.005668863773345947, | |
0.005698560237884521, | |
0.005684288024902344, | |
0.005675007820129394, | |
0.0056780800819396975, | |
0.005641215801239013, | |
0.005743616104125977, | |
0.00566476821899414, | |
0.005692416191101074, | |
0.005658624172210694, | |
0.005685184001922607, | |
0.005724160194396972, | |
0.005788671970367432, | |
0.005686272144317627, | |
0.005654528141021729, | |
0.005723135948181152, | |
0.005829631805419922, | |
0.0056564159393310545, | |
0.005677055835723877, | |
0.0055920639038085935, | |
0.0057149438858032225, | |
0.005691391944885254, | |
0.005744639873504639, | |
0.005691391944885254, | |
0.005662720203399658, | |
0.005658656120300293, | |
0.00566476821899414, | |
0.005694464206695556, | |
0.005604351997375488, | |
0.0056555519104003905, | |
0.005665791988372803, | |
0.005653535842895508, | |
0.00572211217880249, | |
0.005641215801239013, | |
0.0058787841796875, | |
0.005569503784179687, | |
0.005619711875915527, | |
0.005691391944885254, | |
0.005593023777008057, | |
0.0055920639038085935, | |
0.005662720203399658, | |
0.005558432102203369, | |
0.0056195521354675294, | |
0.0055511040687561035, | |
0.005603360176086426, | |
0.005579808235168457 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 175.94797024264628 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.714316841497859e-08, | |
"ram": 3.671205729422242e-08, | |
"gpu": 3.26732841423745e-07, | |
"total": 4.305880671329461e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2322405.2785727694 | |
} | |
} | |
} | |
} |