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
3fceff0
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", | |
"library": "transformers", | |
"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": {}, | |
"hub_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, | |
"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.1", | |
"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": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 910.389248, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 169, | |
"total": 0.9971954555511473, | |
"mean": 0.005900564825746435, | |
"stdev": 0.00039330663828438, | |
"p50": 0.005837823867797852, | |
"p90": 0.0060942337036132815, | |
"p95": 0.006205836868286133, | |
"p99": 0.008097382621765136, | |
"values": [ | |
0.008548319816589356, | |
0.008095744132995606, | |
0.00810086441040039, | |
0.007914495944976807, | |
0.0068392958641052244, | |
0.006044672012329101, | |
0.00602623987197876, | |
0.005948448181152343, | |
0.005957632064819336, | |
0.005909503936767578, | |
0.0059391999244689945, | |
0.005890048027038574, | |
0.006116352081298828, | |
0.005935135841369629, | |
0.00597811222076416, | |
0.005886975765228271, | |
0.005853184223175049, | |
0.005893119812011719, | |
0.00591871976852417, | |
0.005922815799713135, | |
0.0059361281394958495, | |
0.005985280036926269, | |
0.00588595199584961, | |
0.005889023780822754, | |
0.005901311874389649, | |
0.005869503974914551, | |
0.005865471839904785, | |
0.005852159976959229, | |
0.005844927787780761, | |
0.005874688148498535, | |
0.005917695999145508, | |
0.005868544101715088, | |
0.0058716158866882326, | |
0.005912576198577881, | |
0.005860352039337159, | |
0.005867519855499268, | |
0.005873663902282715, | |
0.005940224170684814, | |
0.005849088191986084, | |
0.005901311874389649, | |
0.0057712640762329105, | |
0.005703680038452149, | |
0.005761023998260498, | |
0.005766143798828125, | |
0.0058429441452026365, | |
0.005823488235473633, | |
0.00581324815750122, | |
0.005836800098419189, | |
0.005811200141906738, | |
0.005835775852203369, | |
0.005894144058227539, | |
0.0058716158866882326, | |
0.00592793607711792, | |
0.005836800098419189, | |
0.0059688639640808104, | |
0.005858304023742676, | |
0.005866496086120605, | |
0.005817344188690185, | |
0.005896192073822021, | |
0.005957632064819336, | |
0.0058419198989868165, | |
0.005856256008148194, | |
0.0058429441452026365, | |
0.005836800098419189, | |
0.005765120029449463, | |
0.005867519855499268, | |
0.005857279777526855, | |
0.005801983833312988, | |
0.00582041597366333, | |
0.005949376106262207, | |
0.005810175895690918, | |
0.005763072013854981, | |
0.005798912048339844, | |
0.005780416011810303, | |
0.005788671970367432, | |
0.005837823867797852, | |
0.005793727874755859, | |
0.005773312091827393, | |
0.0058122239112854005, | |
0.005773312091827393, | |
0.005880832195281982, | |
0.005851136207580566, | |
0.005893119812011719, | |
0.005955584049224853, | |
0.006264832019805908, | |
0.006149119853973388, | |
0.006164480209350586, | |
0.0061910719871521, | |
0.00613478422164917, | |
0.006088704109191895, | |
0.0062156801223754886, | |
0.006042623996734619, | |
0.00602623987197876, | |
0.005949440002441406, | |
0.005900288105010986, | |
0.00612556791305542, | |
0.0060415358543396, | |
0.00589731216430664, | |
0.005810175895690918, | |
0.005810175895690918, | |
0.005830656051635743, | |
0.005952544212341308, | |
0.00603545618057251, | |
0.006045695781707764, | |
0.0060364799499511715, | |
0.006151167869567871, | |
0.006136832237243653, | |
0.006336512088775635, | |
0.006065152168273926, | |
0.005890048027038574, | |
0.005815296173095703, | |
0.0063498239517211915, | |
0.005691391944885254, | |
0.005601280212402344, | |
0.0055244798660278325, | |
0.005533696174621582, | |
0.00555622386932373, | |
0.00550707197189331, | |
0.00551423978805542, | |
0.005512191772460938, | |
0.005489664077758789, | |
0.005817344188690185, | |
0.0057415680885314945, | |
0.005738495826721191, | |
0.005694464206695556, | |
0.005705728054046631, | |
0.005740543842315674, | |
0.005713920116424561, | |
0.005727231979370117, | |
0.005736447811126709, | |
0.005797887802124023, | |
0.0057415680885314945, | |
0.005757952213287353, | |
0.005703680038452149, | |
0.005734399795532226, | |
0.005733376026153565, | |
0.005709824085235596, | |
0.005697535991668701, | |
0.0056852478981018065, | |
0.005699584007263184, | |
0.005689343929290771, | |
0.005691391944885254, | |
0.005754879951477051, | |
0.00571289587020874, | |
0.005701632022857666, | |
0.005694464206695556, | |
0.005725183963775635, | |
0.0056780800819396975, | |
0.005895167827606201, | |
0.005683199882507324, | |
0.005706751823425293, | |
0.0057190399169921875, | |
0.005702655792236328, | |
0.005740543842315674, | |
0.005698527812957764, | |
0.005702655792236328, | |
0.005693376064300537, | |
0.00572108793258667, | |
0.005706751823425293, | |
0.005686272144317627, | |
0.005703680038452149, | |
0.0056679039001464844, | |
0.0057118721008300784, | |
0.005684224128723145, | |
0.005705728054046631, | |
0.005739520072937012, | |
0.00571289587020874, | |
0.005702655792236328, | |
0.005699584007263184 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 169.4753010146783 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.494089173923208e-08, | |
"ram": 3.550797864591004e-08, | |
"gpu": 3.553160098142065e-07, | |
"total": 4.5576488019934864e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2194113.7710360796 | |
} | |
} | |
} | |
} |