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
39b7354
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.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": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 910.168064, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 173, | |
"total": 0.9961511368751527, | |
"mean": 0.005758099057081806, | |
"stdev": 0.00020162812513794788, | |
"p50": 0.0057877120971679685, | |
"p90": 0.00586425609588623, | |
"p95": 0.006244518566131592, | |
"p99": 0.006382837734222413, | |
"values": [ | |
0.0065177597999572755, | |
0.006207488059997559, | |
0.006291456222534179, | |
0.0062576642036437985, | |
0.006330368041992188, | |
0.006266880035400391, | |
0.006255616188049316, | |
0.0062371201515197755, | |
0.00620851182937622, | |
0.006688767910003662, | |
0.0057877120971679685, | |
0.005591040134429932, | |
0.005708799839019775, | |
0.005594111919403076, | |
0.005563392162322998, | |
0.005536767959594726, | |
0.005559296131134033, | |
0.005536767959594726, | |
0.005542912006378174, | |
0.005530623912811279, | |
0.00553984022140503, | |
0.0055623679161071774, | |
0.005525536060333252, | |
0.00553984022140503, | |
0.005537792205810547, | |
0.005532671928405761, | |
0.005527552127838135, | |
0.005526527881622314, | |
0.005526495933532715, | |
0.0055552000999450684, | |
0.00555622386932373, | |
0.005584864139556884, | |
0.005536767959594726, | |
0.005529600143432617, | |
0.005530623912811279, | |
0.005545983791351319, | |
0.005544960021972656, | |
0.005534719944000244, | |
0.005518335819244385, | |
0.005540863990783691, | |
0.005534687995910645, | |
0.005542912006378174, | |
0.005500927925109863, | |
0.005517312049865723, | |
0.005534719944000244, | |
0.005549056053161621, | |
0.005544960021972656, | |
0.005506048202514649, | |
0.005533696174621582, | |
0.005674975872039795, | |
0.005830656051635743, | |
0.005909503936767578, | |
0.00582860803604126, | |
0.00586348819732666, | |
0.005833727836608887, | |
0.00583673620223999, | |
0.00582041597366333, | |
0.005830592155456543, | |
0.005846047878265381, | |
0.005821375846862793, | |
0.005848063945770264, | |
0.005798848152160645, | |
0.005847104072570801, | |
0.0058122239112854005, | |
0.005864448070526123, | |
0.005837823867797852, | |
0.005867519855499268, | |
0.0058009600639343266, | |
0.005852159976959229, | |
0.005829631805419922, | |
0.005818367958068848, | |
0.005801983833312988, | |
0.0058122239112854005, | |
0.00582860803604126, | |
0.005810175895690918, | |
0.005811200141906738, | |
0.005789728164672852, | |
0.005815296173095703, | |
0.0058091521263122555, | |
0.005837823867797852, | |
0.005803008079528809, | |
0.00582041597366333, | |
0.005809216022491455, | |
0.005826560020446778, | |
0.00582144021987915, | |
0.005808127880096436, | |
0.0058419198989868165, | |
0.005824512004852295, | |
0.005849023818969726, | |
0.005795839786529541, | |
0.005772287845611572, | |
0.00582147216796875, | |
0.005829631805419922, | |
0.005793791770935058, | |
0.005840896129608154, | |
0.005797887802124023, | |
0.005793791770935058, | |
0.0058091521263122555, | |
0.005801951885223389, | |
0.00581324815750122, | |
0.005815296173095703, | |
0.005819392204284668, | |
0.005836800098419189, | |
0.005803008079528809, | |
0.0057292799949646, | |
0.005752831935882568, | |
0.005706751823425293, | |
0.0057292799949646, | |
0.00573747205734253, | |
0.005715968132019043, | |
0.005761023998260498, | |
0.005708799839019775, | |
0.00572211217880249, | |
0.005703680038452149, | |
0.0057487359046936035, | |
0.005733376026153565, | |
0.005897280216217041, | |
0.0058419198989868165, | |
0.005790719985961914, | |
0.005896192073822021, | |
0.005814271926879883, | |
0.005827583789825439, | |
0.005806079864501953, | |
0.005824512004852295, | |
0.005790688037872314, | |
0.005824512004852295, | |
0.005805056095123291, | |
0.005784575939178467, | |
0.0058009600639343266, | |
0.005792768001556397, | |
0.00582144021987915, | |
0.0058122239112854005, | |
0.005808127880096436, | |
0.005786623954772949, | |
0.0058121919631958004, | |
0.005772255897521973, | |
0.005786623954772949, | |
0.0057784318923950195, | |
0.005803967952728271, | |
0.0057712640762329105, | |
0.005773312091827393, | |
0.005784575939178467, | |
0.005787648200988769, | |
0.006327360153198242, | |
0.005810175895690918, | |
0.005578752040863037, | |
0.005560319900512695, | |
0.005563392162322998, | |
0.0055797758102417, | |
0.005549056053161621, | |
0.00553984022140503, | |
0.00550707197189331, | |
0.005537792205810547, | |
0.00628223991394043, | |
0.005539872169494629, | |
0.005553152084350586, | |
0.005553152084350586, | |
0.0055808000564575196, | |
0.005550079822540284, | |
0.005529600143432617, | |
0.005543935775756836, | |
0.005508096218109131, | |
0.005518335819244385, | |
0.005757952213287353, | |
0.006042623996734619, | |
0.00577023983001709, | |
0.005756927967071533, | |
0.005754816055297852, | |
0.005804031848907471, | |
0.005766208171844482, | |
0.005776383876800537, | |
0.0057825279235839844, | |
0.005769216060638428 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 173.66842600078473 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.76580516118852e-08, | |
"ram": 3.6982873576302414e-08, | |
"gpu": 3.4132090797713805e-07, | |
"total": 4.459618331653256e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2242344.356920075 | |
} | |
} | |
} | |
} |