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
a01aa03
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.277312, | |
"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.41857666015625, | |
"mean": 7.41857666015625, | |
"stdev": 0.0, | |
"p50": 7.41857666015625, | |
"p90": 7.41857666015625, | |
"p95": 7.41857666015625, | |
"p99": 7.41857666015625, | |
"values": [ | |
7.41857666015625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4783335409711008e-06, | |
"ram": 7.945629377564644e-07, | |
"gpu": 3.4591694339988766e-06, | |
"total": 5.732065912726442e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.627968, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 185, | |
"total": 0.998776445388794, | |
"mean": 0.005398791596696183, | |
"stdev": 0.00026834544649412446, | |
"p50": 0.005352640151977539, | |
"p90": 0.005696307277679444, | |
"p95": 0.005804492855072021, | |
"p99": 0.006168739776611327, | |
"values": [ | |
0.005735424041748047, | |
0.005701632022857666, | |
0.005767199993133545, | |
0.00583187198638916, | |
0.005683167934417725, | |
0.005746687889099121, | |
0.005387167930603027, | |
0.00530944013595581, | |
0.005378047943115235, | |
0.005389311790466309, | |
0.0053309440612792965, | |
0.005331103801727295, | |
0.005361695766448974, | |
0.005472224235534668, | |
0.005811264038085937, | |
0.005618591785430908, | |
0.005681151866912842, | |
0.0055285758972167965, | |
0.005449728012084961, | |
0.005460031986236572, | |
0.006554624080657959, | |
0.005941247940063477, | |
0.005577727794647217, | |
0.00568832015991211, | |
0.005635072231292724, | |
0.005679103851318359, | |
0.00599235200881958, | |
0.006022143840789795, | |
0.005485568046569824, | |
0.005619711875915527, | |
0.005677055835723877, | |
0.005615615844726562, | |
0.005701632022857666, | |
0.005617663860321045, | |
0.005705728054046631, | |
0.005593088150024414, | |
0.0056258559226989744, | |
0.0055623679161071774, | |
0.005567488193511963, | |
0.005624735832214355, | |
0.005594111919403076, | |
0.005618688106536865, | |
0.005615615844726562, | |
0.005553152084350586, | |
0.005504000186920166, | |
0.005465087890625, | |
0.005453824043273926, | |
0.005573631763458252, | |
0.005543935775756836, | |
0.00558787202835083, | |
0.005550079822540284, | |
0.005603328227996827, | |
0.005566592216491699, | |
0.005607423782348633, | |
0.00571289587020874, | |
0.005686272144317627, | |
0.0057292799949646, | |
0.005657599925994873, | |
0.0056555519104003905, | |
0.005606272220611572, | |
0.005536767959594726, | |
0.005583871841430664, | |
0.00553984022140503, | |
0.005583871841430664, | |
0.005662655830383301, | |
0.005605375766754151, | |
0.006363135814666748, | |
0.005566463947296142, | |
0.005665791988372803, | |
0.005511104106903076, | |
0.005473279953002929, | |
0.005526400089263916, | |
0.005585824012756348, | |
0.005639167785644531, | |
0.005638144016265869, | |
0.005777408123016357, | |
0.0052531838417053224, | |
0.005189631938934326, | |
0.005253119945526123, | |
0.005302271842956543, | |
0.005296224117279052, | |
0.005287936210632324, | |
0.005252096176147461, | |
0.0052930560111999515, | |
0.005311488151550293, | |
0.005255167961120606, | |
0.005386367797851562, | |
0.005463039875030518, | |
0.005470208168029785, | |
0.005480447769165039, | |
0.005385056018829346, | |
0.005563392162322998, | |
0.00536575984954834, | |
0.005389472007751465, | |
0.0052930560111999515, | |
0.005311552047729492, | |
0.005327871799468994, | |
0.00516918420791626, | |
0.0052633600234985355, | |
0.005352640151977539, | |
0.005185728073120117, | |
0.005174272060394287, | |
0.005196640014648438, | |
0.005087232112884522, | |
0.005021696090698242, | |
0.005096447944641113, | |
0.0052336640357971195, | |
0.005135359764099121, | |
0.005022719860076904, | |
0.004992000102996826, | |
0.00496230411529541, | |
0.00496230411529541, | |
0.0050657281875610355, | |
0.005512191772460938, | |
0.0053350400924682614, | |
0.005436416149139404, | |
0.005504000186920166, | |
0.005874688148498535, | |
0.005903359889984131, | |
0.005522624015808105, | |
0.005611519813537597, | |
0.005684224128723145, | |
0.00541593599319458, | |
0.006131711959838867, | |
0.005318655967712403, | |
0.005206016063690186, | |
0.0051669120788574215, | |
0.005145599842071533, | |
0.005143455982208252, | |
0.0052008957862854, | |
0.005148672103881836, | |
0.005174464225769043, | |
0.005204991817474365, | |
0.005187583923339844, | |
0.0053350400924682614, | |
0.005190847873687744, | |
0.00514576005935669, | |
0.005130239963531494, | |
0.005180255889892578, | |
0.005175295829772949, | |
0.0051435518264770505, | |
0.0051435518264770505, | |
0.005204991817474365, | |
0.005182464122772217, | |
0.005191679954528809, | |
0.005190624237060547, | |
0.00517632007598877, | |
0.005129087924957276, | |
0.0051660480499267575, | |
0.005158912181854248, | |
0.005163936138153076, | |
0.005489759922027588, | |
0.00520908784866333, | |
0.00515993595123291, | |
0.005153791904449463, | |
0.0051814718246459964, | |
0.005192704200744629, | |
0.005183487892150879, | |
0.00521727991104126, | |
0.005015552043914795, | |
0.005001215934753418, | |
0.004952064037322998, | |
0.004971519947052002, | |
0.004997119903564453, | |
0.004955135822296143, | |
0.005246047973632813, | |
0.005192704200744629, | |
0.005188608169555664, | |
0.005193727970123291, | |
0.005227519989013672, | |
0.005146624088287354, | |
0.005119999885559082, | |
0.005112864017486572, | |
0.005152768135070801, | |
0.0051660799980163576, | |
0.005173247814178467, | |
0.005221471786499023, | |
0.005139455795288086, | |
0.00516812801361084, | |
0.0051671361923217776, | |
0.005142528057098389, | |
0.005184512138366699, | |
0.005171199798583984, | |
0.005210112094879151, | |
0.005275648117065429 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 185.22663490325408 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.120309366408548e-08, | |
"ram": 3.3447481091753626e-08, | |
"gpu": 3.290323365360851e-07, | |
"total": 4.2368291129192426e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2360255.6849666853 | |
} | |
} | |
} | |
} |