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
2f8faaa
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.225-213.878.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.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.13.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 842.645504, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.43717578125, | |
"mean": 8.43717578125, | |
"stdev": 0.0, | |
"p50": 8.43717578125, | |
"p90": 8.43717578125, | |
"p95": 8.43717578125, | |
"p99": 8.43717578125, | |
"values": [ | |
8.43717578125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 3.1588823888890424e-06, | |
"ram": 1.7021993382134717e-06, | |
"gpu": 3.577225084000317e-06, | |
"total": 8.438306811102831e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1051.172864, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 185, | |
"total": 0.9969730553627018, | |
"mean": 0.005389043542501089, | |
"stdev": 0.00016911658390549546, | |
"p50": 0.005346303939819336, | |
"p90": 0.005585305690765381, | |
"p95": 0.005622323036193848, | |
"p99": 0.005895403327941895, | |
"values": [ | |
0.005612607955932617, | |
0.0057415680885314945, | |
0.005594111919403076, | |
0.0055552000999450684, | |
0.005659647941589355, | |
0.005288896083831787, | |
0.005278719902038574, | |
0.005299200057983398, | |
0.0052581758499145505, | |
0.005243904113769531, | |
0.005310463905334473, | |
0.005249023914337158, | |
0.005235712051391602, | |
0.005276671886444092, | |
0.005237760066986084, | |
0.005295104026794434, | |
0.005345280170440674, | |
0.005281792163848877, | |
0.0052008957862854, | |
0.005137407779693603, | |
0.005074944019317627, | |
0.005077951908111572, | |
0.005438464164733887, | |
0.005617663860321045, | |
0.005516287803649903, | |
0.005561344146728516, | |
0.0055214080810546875, | |
0.005586944103240967, | |
0.0055244798660278325, | |
0.005542912006378174, | |
0.005552127838134766, | |
0.0054271998405456545, | |
0.0054609918594360355, | |
0.005540863990783691, | |
0.005517312049865723, | |
0.005622719764709473, | |
0.005553152084350586, | |
0.005559232234954834, | |
0.005338111877441406, | |
0.005385216236114502, | |
0.0053463678359985355, | |
0.005239808082580567, | |
0.005227519989013672, | |
0.005338111877441406, | |
0.005281792163848877, | |
0.005260287761688232, | |
0.005338111877441406, | |
0.005297215938568115, | |
0.0051968002319335935, | |
0.005112832069396973, | |
0.005117951869964599, | |
0.005091328144073487, | |
0.005124095916748047, | |
0.005272575855255127, | |
0.005197792053222656, | |
0.005173247814178467, | |
0.005208064079284668, | |
0.005194752216339111, | |
0.005288991928100586, | |
0.005596159934997558, | |
0.00551423978805542, | |
0.005550079822540284, | |
0.005629951953887939, | |
0.005532671928405761, | |
0.005627903938293457, | |
0.005582848072052002, | |
0.005523519992828369, | |
0.005595136165618897, | |
0.005464064121246338, | |
0.0055101442337036136, | |
0.005500864028930664, | |
0.005525504112243652, | |
0.005565440177917481, | |
0.005500864028930664, | |
0.00553984022140503, | |
0.0056442880630493165, | |
0.005543935775756836, | |
0.005599232196807862, | |
0.005450751781463623, | |
0.005372928142547607, | |
0.005431263923645019, | |
0.005439551830291748, | |
0.005481472015380859, | |
0.005511168003082275, | |
0.005547008037567139, | |
0.005568511962890625, | |
0.0053975038528442385, | |
0.005538815975189209, | |
0.005461984157562256, | |
0.005453824043273926, | |
0.00551423978805542, | |
0.005463039875030518, | |
0.005441535949707031, | |
0.0055582718849182125, | |
0.005479423999786377, | |
0.00530841588973999, | |
0.00531660795211792, | |
0.005303296089172363, | |
0.005381120204925537, | |
0.0053678078651428224, | |
0.005246975898742676, | |
0.00532480001449585, | |
0.005283840179443359, | |
0.0052633600234985355, | |
0.005296127796173096, | |
0.005223423957824707, | |
0.005223423957824707, | |
0.005232639789581299, | |
0.005511104106903076, | |
0.005481472015380859, | |
0.00572108793258667, | |
0.005620672225952149, | |
0.0054906878471374515, | |
0.005471231937408447, | |
0.005449728012084961, | |
0.005407743930816651, | |
0.005310463905334473, | |
0.005421055793762207, | |
0.00557263994216919, | |
0.005378047943115235, | |
0.005250048160552978, | |
0.005379072189331055, | |
0.0052705278396606445, | |
0.005235712051391602, | |
0.005356544017791748, | |
0.005322751998901368, | |
0.005350399971008301, | |
0.005380095958709717, | |
0.005351424217224121, | |
0.005928895950317383, | |
0.005578752040863037, | |
0.005620736122131348, | |
0.005468160152435303, | |
0.005406688213348389, | |
0.005389311790466309, | |
0.005346303939819336, | |
0.005305344104766845, | |
0.005429279804229736, | |
0.005430208206176758, | |
0.0053637118339538575, | |
0.005436416149139404, | |
0.0053309440612792965, | |
0.005220352172851562, | |
0.005889023780822754, | |
0.005561344146728516, | |
0.005260287761688232, | |
0.005292031764984131, | |
0.0052715840339660645, | |
0.0052633600234985355, | |
0.005331967830657959, | |
0.00530841588973999, | |
0.005260287761688232, | |
0.005307392120361328, | |
0.005286880016326904, | |
0.005232639789581299, | |
0.005273600101470947, | |
0.005533696174621582, | |
0.006348800182342529, | |
0.005283840179443359, | |
0.005248000144958496, | |
0.005305344104766845, | |
0.005261312007904053, | |
0.005259263992309571, | |
0.005269504070281982, | |
0.0052367358207702636, | |
0.005265408039093018, | |
0.0052971520423889164, | |
0.005329919815063477, | |
0.005258240222930908, | |
0.005276671886444092, | |
0.005241792201995849, | |
0.005264351844787598, | |
0.005569536209106446, | |
0.005254144191741943, | |
0.005235712051391602, | |
0.00526643180847168, | |
0.0052336640357971195, | |
0.0052295680046081545, | |
0.005256192207336426, | |
0.0052408318519592285, | |
0.0052408318519592285, | |
0.005258240222930908, | |
0.005239808082580567, | |
0.005230591773986816, | |
0.005252096176147461 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 185.56168494713882 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.951064973827604e-08, | |
"ram": 3.252010771903772e-08, | |
"gpu": 3.3492628692462447e-07, | |
"total": 4.2695704438193825e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2342155.992408082 | |
} | |
} | |
} | |
} |