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
c4d92ac
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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-211.872.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.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"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.580416, | |
"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.41570361328125, | |
"mean": 7.41570361328125, | |
"stdev": 0.0, | |
"p50": 7.41570361328125, | |
"p90": 7.41570361328125, | |
"p95": 7.41570361328125, | |
"p99": 7.41570361328125, | |
"values": [ | |
7.41570361328125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.49081864791722e-06, | |
"ram": 7.776119987216131e-07, | |
"gpu": 1.7452791739999349e-06, | |
"total": 4.0137098206387686e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.095488, | |
"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.9963342084884645, | |
"mean": 0.0052996500451514056, | |
"stdev": 0.00017210073829744042, | |
"p50": 0.005270015954971313, | |
"p90": 0.005536675310134888, | |
"p95": 0.005599959945678711, | |
"p99": 0.006091084103584289, | |
"values": [ | |
0.005455872058868408, | |
0.0055511040687561035, | |
0.005587999820709229, | |
0.005627903938293457, | |
0.005587967872619629, | |
0.005618688106536865, | |
0.0055848960876464845, | |
0.005606400012969971, | |
0.005345280170440674, | |
0.0052899842262268066, | |
0.005396416187286377, | |
0.0052705278396606445, | |
0.005259263992309571, | |
0.005344255924224854, | |
0.005302271842956543, | |
0.0052960958480834965, | |
0.005295008182525635, | |
0.005285888195037842, | |
0.005393407821655274, | |
0.005535744190216065, | |
0.005482495784759522, | |
0.0054906878471374515, | |
0.005343232154846191, | |
0.005318655967712403, | |
0.005307392120361328, | |
0.005405695915222168, | |
0.005349376201629639, | |
0.0052705278396606445, | |
0.005222400188446045, | |
0.005198847770690918, | |
0.005252096176147461, | |
0.005387263774871826, | |
0.005299200057983398, | |
0.005386240005493164, | |
0.0053637118339538575, | |
0.0053678078651428224, | |
0.005296127796173096, | |
0.005306367874145508, | |
0.005314527988433838, | |
0.005276671886444092, | |
0.00526854419708252, | |
0.00526643180847168, | |
0.0053309440612792965, | |
0.0053309440612792965, | |
0.005182464122772217, | |
0.005114816188812256, | |
0.00521727991104126, | |
0.005146624088287354, | |
0.005154816150665284, | |
0.005286911964416504, | |
0.005311488151550293, | |
0.005268383979797364, | |
0.005332992076873779, | |
0.005246975898742676, | |
0.0052408318519592285, | |
0.005361663818359375, | |
0.005355519771575928, | |
0.005328896045684814, | |
0.005368832111358642, | |
0.005282847881317138, | |
0.005303296089172363, | |
0.005315584182739258, | |
0.005222400188446045, | |
0.005174272060394287, | |
0.005299200057983398, | |
0.005291007995605469, | |
0.00616755199432373, | |
0.005282815933227539, | |
0.005310463905334473, | |
0.00532480001449585, | |
0.005286911964416504, | |
0.005174272060394287, | |
0.005173247814178467, | |
0.005540863990783691, | |
0.005255167961120606, | |
0.0052715520858764645, | |
0.0053340158462524415, | |
0.005349376201629639, | |
0.005287936210632324, | |
0.0051968002319335935, | |
0.005255167961120606, | |
0.005283840179443359, | |
0.005310463905334473, | |
0.00521727991104126, | |
0.005269504070281982, | |
0.005287936210632324, | |
0.0052008957862854, | |
0.005235743999481201, | |
0.0053309440612792965, | |
0.005338111877441406, | |
0.005352447986602784, | |
0.00581324815750122, | |
0.005615615844726562, | |
0.005626880168914795, | |
0.006161407947540283, | |
0.006080575942993164, | |
0.005535744190216065, | |
0.0056780800819396975, | |
0.005567488193511963, | |
0.005434463977813721, | |
0.005538847923278809, | |
0.005544960021972656, | |
0.005484543800354004, | |
0.0053606400489807126, | |
0.005361663818359375, | |
0.005350368022918701, | |
0.005249023914337158, | |
0.00535756778717041, | |
0.005535744190216065, | |
0.005340159893035889, | |
0.005180416107177735, | |
0.005210112094879151, | |
0.005262335777282715, | |
0.005174272060394287, | |
0.005439487934112549, | |
0.005264383792877197, | |
0.005305344104766845, | |
0.0053606400489807126, | |
0.005284863948822022, | |
0.005349408149719239, | |
0.005499904155731201, | |
0.005561344146728516, | |
0.005321728229522705, | |
0.005265408039093018, | |
0.005191679954528809, | |
0.005206016063690186, | |
0.005242879867553711, | |
0.005206016063690186, | |
0.005204991817474365, | |
0.005292031764984131, | |
0.005276671886444092, | |
0.005174272060394287, | |
0.005239744186401368, | |
0.00517632007598877, | |
0.0052295680046081545, | |
0.005139455795288086, | |
0.0051968002319335935, | |
0.005137407779693603, | |
0.005123072147369385, | |
0.0051957440376281736, | |
0.005212160110473632, | |
0.005125120162963868, | |
0.005174272060394287, | |
0.00515174388885498, | |
0.005138432025909424, | |
0.005143487930297851, | |
0.005188608169555664, | |
0.005192704200744629, | |
0.005153791904449463, | |
0.005228544235229492, | |
0.005125120162963868, | |
0.005122047901153564, | |
0.005153759956359864, | |
0.005153791904449463, | |
0.005139455795288086, | |
0.005123072147369385, | |
0.005180416107177735, | |
0.005131264209747314, | |
0.005123072147369385, | |
0.005157887935638428, | |
0.005135359764099121, | |
0.005145599842071533, | |
0.005134335994720459, | |
0.005193727970123291, | |
0.005199903964996338, | |
0.005152768135070801, | |
0.005222400188446045, | |
0.0051773438453674315, | |
0.005135359764099121, | |
0.0051701760292053225, | |
0.005169151782989502, | |
0.005172224044799805, | |
0.005146624088287354, | |
0.005215231895446777, | |
0.00515174388885498, | |
0.005131264209747314, | |
0.005215231895446777, | |
0.005131264209747314, | |
0.0051333122253417966, | |
0.005148672103881836, | |
0.0051773438453674315, | |
0.00515993595123291, | |
0.005132287979125977, | |
0.005204991817474365, | |
0.005152703762054444, | |
0.005133247852325439, | |
0.005179391860961914, | |
0.0051281280517578125 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 188.6917044484644 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.994524163860812e-08, | |
"ram": 3.2775053664904136e-08, | |
"gpu": 3.4677496877777757e-07, | |
"total": 4.394952640812898e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2275337.373863119 | |
} | |
} | |
} | |
} |