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
cc444e7
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": 827.752448, | |
"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.40271533203125, | |
"mean": 7.40271533203125, | |
"stdev": 0.0, | |
"p50": 7.40271533203125, | |
"p90": 7.40271533203125, | |
"p95": 7.40271533203125, | |
"p99": 7.40271533203125, | |
"values": [ | |
7.40271533203125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4448881423599385e-06, | |
"ram": 7.762711781569872e-07, | |
"gpu": 1.7452791739999349e-06, | |
"total": 3.966438494516861e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.845056, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 190, | |
"total": 0.9950168313980101, | |
"mean": 0.005236930691568474, | |
"stdev": 0.0001710198790244584, | |
"p50": 0.005208063840866089, | |
"p90": 0.005481779193878174, | |
"p95": 0.005551308870315552, | |
"p99": 0.005754962058067321, | |
"values": [ | |
0.005608448028564453, | |
0.005549056053161621, | |
0.0055848960876464845, | |
0.005526527881622314, | |
0.005535744190216065, | |
0.005563392162322998, | |
0.005536767959594726, | |
0.005543968200683594, | |
0.005481472015380859, | |
0.005459968090057373, | |
0.005484543800354004, | |
0.005430272102355957, | |
0.005442527770996094, | |
0.005413887977600097, | |
0.0054876160621643065, | |
0.005434368133544922, | |
0.005390336036682129, | |
0.005296127796173096, | |
0.0053002238273620605, | |
0.005298175811767578, | |
0.00537395191192627, | |
0.005392384052276611, | |
0.005389311790466309, | |
0.0054568958282470706, | |
0.0054579200744628905, | |
0.005443583965301513, | |
0.005452799797058106, | |
0.005396480083465576, | |
0.005356480121612548, | |
0.005396480083465576, | |
0.005440512180328369, | |
0.005484543800354004, | |
0.00552243185043335, | |
0.005452864170074463, | |
0.005281792163848877, | |
0.005277696132659912, | |
0.005272575855255127, | |
0.005232704162597656, | |
0.005244927883148193, | |
0.0052295680046081545, | |
0.0052971520423889164, | |
0.005249023914337158, | |
0.005245952129364013, | |
0.005232704162597656, | |
0.005161983966827393, | |
0.005082111835479736, | |
0.005081088066101074, | |
0.0050769920349121095, | |
0.005181439876556396, | |
0.005190656185150146, | |
0.005212160110473632, | |
0.005250048160552978, | |
0.0052070398330688475, | |
0.0052070398330688475, | |
0.005279744148254394, | |
0.005285888195037842, | |
0.005366720199584961, | |
0.005355519771575928, | |
0.005283840179443359, | |
0.005286975860595703, | |
0.005257215976715088, | |
0.005230591773986816, | |
0.005206016063690186, | |
0.0051773438453674315, | |
0.005254144191741943, | |
0.005280767917633057, | |
0.005453824043273926, | |
0.005246975898742676, | |
0.005251071929931641, | |
0.005296127796173096, | |
0.005243904113769531, | |
0.005154816150665284, | |
0.005128191947937012, | |
0.0051968002319335935, | |
0.005213183879852295, | |
0.005188608169555664, | |
0.005288959980010987, | |
0.005299232006072998, | |
0.005206016063690186, | |
0.00517526388168335, | |
0.005178368091583252, | |
0.00521830415725708, | |
0.005190656185150146, | |
0.005146624088287354, | |
0.005195775985717774, | |
0.005232639789581299, | |
0.005179391860961914, | |
0.00521727991104126, | |
0.0053002238273620605, | |
0.005259263992309571, | |
0.005294079780578613, | |
0.005568511962890625, | |
0.005306367874145508, | |
0.005278719902038574, | |
0.005321728229522705, | |
0.0052295680046081545, | |
0.005243904113769531, | |
0.0052705278396606445, | |
0.005198847770690918, | |
0.005107711791992187, | |
0.005165056228637695, | |
0.005314591884613037, | |
0.005171199798583984, | |
0.00510975980758667, | |
0.005154816150665284, | |
0.005085184097290039, | |
0.004997119903564453, | |
0.004940800189971924, | |
0.005145599842071533, | |
0.005067776203155518, | |
0.005039103984832764, | |
0.005239808082580567, | |
0.005032959938049316, | |
0.005149695873260498, | |
0.005093376159667969, | |
0.005837823867797852, | |
0.0053534722328186036, | |
0.005394368171691894, | |
0.005275648117065429, | |
0.00530841588973999, | |
0.005691391944885254, | |
0.005780479907989502, | |
0.005751808166503906, | |
0.0053340158462524415, | |
0.005096447944641113, | |
0.005438464164733887, | |
0.0050841598510742185, | |
0.005087232112884522, | |
0.005305312156677246, | |
0.005294047832489014, | |
0.005070847988128662, | |
0.005091328144073487, | |
0.005105728149414062, | |
0.005073919773101807, | |
0.005089280128479004, | |
0.00506879997253418, | |
0.0051036162376403805, | |
0.005061632156372071, | |
0.005183487892150879, | |
0.005112832069396973, | |
0.005057536125183106, | |
0.005088255882263183, | |
0.00506879997253418, | |
0.00505241584777832, | |
0.0050124797821044925, | |
0.005064703941345215, | |
0.005041152000427246, | |
0.005059584140777588, | |
0.005056511878967285, | |
0.005071872234344482, | |
0.0050728960037231445, | |
0.005038080215454102, | |
0.005090303897857666, | |
0.005078015804290771, | |
0.005066751956939697, | |
0.005062655925750732, | |
0.00505241584777832, | |
0.005051392078399658, | |
0.005386240005493164, | |
0.005086207866668701, | |
0.005061632156372071, | |
0.005089280128479004, | |
0.005055488109588623, | |
0.005608448028564453, | |
0.00506883192062378, | |
0.005047296047210693, | |
0.0050503678321838375, | |
0.005082111835479736, | |
0.005057536125183106, | |
0.005553152084350586, | |
0.005137407779693603, | |
0.00520908784866333, | |
0.005157887935638428, | |
0.005107711791992187, | |
0.005144576072692871, | |
0.00506982421875, | |
0.005112832069396973, | |
0.005066751956939697, | |
0.00511075210571289, | |
0.005078015804290771, | |
0.005082111835479736, | |
0.005061632156372071, | |
0.005089280128479004, | |
0.005066783905029297, | |
0.005073919773101807, | |
0.005072927951812744, | |
0.005074944019317627, | |
0.005064703941345215, | |
0.005086175918579102, | |
0.00506982421875 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 190.951543737253 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.032958513818688e-08, | |
"ram": 3.294528924796081e-08, | |
"gpu": 3.427653616345164e-07, | |
"total": 4.3604023602066405e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2293366.339597637 | |
} | |
} | |
} | |
} |