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
29b0506
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.252864, | |
"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.33.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.383808, | |
"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.50238720703125, | |
"mean": 7.50238720703125, | |
"stdev": 0.0, | |
"p50": 7.50238720703125, | |
"p90": 7.50238720703125, | |
"p95": 7.50238720703125, | |
"p99": 7.50238720703125, | |
"values": [ | |
7.50238720703125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4709116125006163e-06, | |
"ram": 7.90683868446106e-07, | |
"gpu": 1.6911124639997638e-06, | |
"total": 3.952707944946486e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.644352, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 182, | |
"total": 0.9978951983451848, | |
"mean": 0.005482940650248266, | |
"stdev": 0.00022378673969043414, | |
"p50": 0.005461503982543945, | |
"p90": 0.005709721660614014, | |
"p95": 0.005735380840301514, | |
"p99": 0.006520483717918396, | |
"values": [ | |
0.005795839786529541, | |
0.005708799839019775, | |
0.005713759899139404, | |
0.005734560012817383, | |
0.00568012809753418, | |
0.00582144021987915, | |
0.005728256225585937, | |
0.005746687889099121, | |
0.005693439960479736, | |
0.005735424041748047, | |
0.00568012809753418, | |
0.005669888019561768, | |
0.0056863040924072265, | |
0.005600255966186523, | |
0.005682176113128662, | |
0.00542310380935669, | |
0.005342207908630371, | |
0.0053637118339538575, | |
0.005291007995605469, | |
0.005369823932647705, | |
0.005435391902923584, | |
0.0053647360801696775, | |
0.005421088218688965, | |
0.0053821439743042, | |
0.005398528099060058, | |
0.005413887977600097, | |
0.005375999927520752, | |
0.0053309440612792965, | |
0.005328896045684814, | |
0.005221375942230225, | |
0.005316703796386719, | |
0.005384128093719482, | |
0.005345280170440674, | |
0.005777408123016357, | |
0.005713920116424561, | |
0.005631999969482422, | |
0.005665791988372803, | |
0.005577760219573975, | |
0.005563392162322998, | |
0.005601280212402344, | |
0.0055920639038085935, | |
0.0056514558792114256, | |
0.005657599925994873, | |
0.005615615844726562, | |
0.005499904155731201, | |
0.005431295871734619, | |
0.005794816017150879, | |
0.006621151924133301, | |
0.006615039825439453, | |
0.005646336078643799, | |
0.005629951953887939, | |
0.005586944103240967, | |
0.005615615844726562, | |
0.005590015888214111, | |
0.005733312129974365, | |
0.005672959804534912, | |
0.0055797758102417, | |
0.005641215801239013, | |
0.005628928184509278, | |
0.0056483840942382815, | |
0.005537792205810547, | |
0.005512191772460938, | |
0.00556441593170166, | |
0.005587967872619629, | |
0.005713920116424561, | |
0.005552127838134766, | |
0.006498303890228272, | |
0.005669888019561768, | |
0.005698560237884521, | |
0.005544960021972656, | |
0.005480447769165039, | |
0.005599232196807862, | |
0.005561344146728516, | |
0.0057487359046936035, | |
0.005723135948181152, | |
0.005734399795532226, | |
0.005582848072052002, | |
0.005560319900512695, | |
0.00567193603515625, | |
0.005582848072052002, | |
0.005599199771881103, | |
0.005570559978485107, | |
0.005505023956298828, | |
0.005604288101196289, | |
0.0055327038764953615, | |
0.005640192031860352, | |
0.00566476821899414, | |
0.005638175964355468, | |
0.005638144016265869, | |
0.005646304130554199, | |
0.005677055835723877, | |
0.005636096000671387, | |
0.005628928184509278, | |
0.00566374397277832, | |
0.005619711875915527, | |
0.005607423782348633, | |
0.005473279953002929, | |
0.005658624172210694, | |
0.005579840183258056, | |
0.005468160152435303, | |
0.005545983791351319, | |
0.005438464164733887, | |
0.0053012480735778805, | |
0.005463039875030518, | |
0.005549056053161621, | |
0.005443583965301513, | |
0.005240767955780029, | |
0.005220352172851562, | |
0.0053095040321350095, | |
0.005259263992309571, | |
0.0053043198585510255, | |
0.00541593599319458, | |
0.005369855880737305, | |
0.005525504112243652, | |
0.0055203838348388675, | |
0.005485568046569824, | |
0.005586944103240967, | |
0.005709824085235596, | |
0.00555622386932373, | |
0.0055203838348388675, | |
0.005459968090057373, | |
0.005351424217224121, | |
0.005408768177032471, | |
0.005306431770324707, | |
0.005322751998901368, | |
0.005344255924224854, | |
0.005290016174316407, | |
0.0053002238273620605, | |
0.005323775768280029, | |
0.005327839851379395, | |
0.005303296089172363, | |
0.005325823783874512, | |
0.005246975898742676, | |
0.005276671886444092, | |
0.005307392120361328, | |
0.0052971520423889164, | |
0.005273600101470947, | |
0.005298175811767578, | |
0.005272575855255127, | |
0.005285888195037842, | |
0.005294079780578613, | |
0.005227519989013672, | |
0.005286911964416504, | |
0.005299263954162597, | |
0.005253087997436523, | |
0.005292031764984131, | |
0.005325823783874512, | |
0.0054271998405456545, | |
0.0052674560546875, | |
0.00530944013595581, | |
0.005281792163848877, | |
0.005256192207336426, | |
0.0052930560111999515, | |
0.0052705278396606445, | |
0.0052674560546875, | |
0.005315584182739258, | |
0.0052715520858764645, | |
0.005262335777282715, | |
0.005278719902038574, | |
0.005265408039093018, | |
0.005244927883148193, | |
0.005312511920928955, | |
0.005245952129364013, | |
0.005254144191741943, | |
0.005246975898742676, | |
0.0052336640357971195, | |
0.0052367358207702636, | |
0.0052622718811035155, | |
0.0052633600234985355, | |
0.005277696132659912, | |
0.005274623870849609, | |
0.005257215976715088, | |
0.005214208126068115, | |
0.005256192207336426, | |
0.005311488151550293, | |
0.005203968048095703, | |
0.0052715520858764645, | |
0.005318655967712403, | |
0.005264383792877197, | |
0.005255167961120606, | |
0.005244927883148193, | |
0.005262335777282715 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 182.38388189642728 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.824932754629783e-08, | |
"ram": 3.1724956797922785e-08, | |
"gpu": 3.4361547097059423e-07, | |
"total": 4.3358975531481485e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2306327.5544274193 | |
} | |
} | |
} | |
} |