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
aad3fbf
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.224-212.876.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.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.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 840.859648, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.92515380859375, | |
"mean": 7.92515380859375, | |
"stdev": 0.0, | |
"p50": 7.92515380859375, | |
"p90": 7.92515380859375, | |
"p95": 7.92515380859375, | |
"p99": 7.92515380859375, | |
"values": [ | |
7.92515380859375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5215337756940372e-06, | |
"ram": 8.149677315916729e-07, | |
"gpu": 3.511391698000736e-06, | |
"total": 5.8478932052864455e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1050.238976, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 192, | |
"total": 0.9965236816406245, | |
"mean": 0.005190227508544923, | |
"stdev": 0.00011601361733975076, | |
"p50": 0.005174783945083618, | |
"p90": 0.00529162220954895, | |
"p95": 0.005470326495170593, | |
"p99": 0.005622681498527527, | |
"values": [ | |
0.005467072010040284, | |
0.005344255924224854, | |
0.005492735862731934, | |
0.005574656009674072, | |
0.005326848030090332, | |
0.005343232154846191, | |
0.005323775768280029, | |
0.005319680213928223, | |
0.005774400234222412, | |
0.00517632007598877, | |
0.004939775943756103, | |
0.004955135822296143, | |
0.0049203200340270994, | |
0.004934656143188477, | |
0.004880383968353271, | |
0.005175295829772949, | |
0.0051773438453674315, | |
0.0051363520622253415, | |
0.005149695873260498, | |
0.0051660799980163576, | |
0.005155839920043945, | |
0.005152736186981201, | |
0.005139455795288086, | |
0.005187583923339844, | |
0.0051363840103149415, | |
0.005154816150665284, | |
0.00517632007598877, | |
0.005208064079284668, | |
0.005178368091583252, | |
0.005093376159667969, | |
0.00547430419921875, | |
0.0056217598915100095, | |
0.005223423957824707, | |
0.005174272060394287, | |
0.0051476478576660155, | |
0.005214208126068115, | |
0.005174272060394287, | |
0.005210112094879151, | |
0.005189631938934326, | |
0.005285888195037842, | |
0.005206016063690186, | |
0.005142528057098389, | |
0.005319680213928223, | |
0.005631999969482422, | |
0.005248000144958496, | |
0.005184512138366699, | |
0.005194752216339111, | |
0.0050657281875610355, | |
0.005098495960235596, | |
0.00506982421875, | |
0.005095456123352051, | |
0.005174272060394287, | |
0.005210112094879151, | |
0.005135359764099121, | |
0.005189631938934326, | |
0.005138432025909424, | |
0.005186560153961181, | |
0.005135359764099121, | |
0.005193727970123291, | |
0.005144576072692871, | |
0.005146560192108155, | |
0.005124095916748047, | |
0.005191679954528809, | |
0.005188608169555664, | |
0.005122047901153564, | |
0.005179391860961914, | |
0.005190656185150146, | |
0.004922368049621582, | |
0.004947968006134033, | |
0.00511897611618042, | |
0.005173247814178467, | |
0.005142528057098389, | |
0.005201920032501221, | |
0.005163008213043213, | |
0.005194719791412354, | |
0.005125120162963868, | |
0.005206016063690186, | |
0.005156864166259765, | |
0.005165056228637695, | |
0.005203968048095703, | |
0.005164031982421875, | |
0.0051988158226013185, | |
0.005183487892150879, | |
0.005203968048095703, | |
0.005152768135070801, | |
0.005168159961700439, | |
0.005181439876556396, | |
0.005144576072692871, | |
0.0051773438453674315, | |
0.005563392162322998, | |
0.0052008957862854, | |
0.005188608169555664, | |
0.005216288089752197, | |
0.005189631938934326, | |
0.005114880084991455, | |
0.005235712051391602, | |
0.0053534722328186036, | |
0.0051875200271606445, | |
0.0052111358642578124, | |
0.005181344032287598, | |
0.005381120204925537, | |
0.005496831893920898, | |
0.005537792205810547, | |
0.005169151782989502, | |
0.005171199798583984, | |
0.005081088066101074, | |
0.005055456161499023, | |
0.0050800638198852536, | |
0.005201920032501221, | |
0.005169151782989502, | |
0.005204991817474365, | |
0.005214208126068115, | |
0.005292031764984131, | |
0.005154784202575684, | |
0.005190591812133789, | |
0.005139455795288086, | |
0.005144576072692871, | |
0.005125120162963868, | |
0.005180416107177735, | |
0.005144576072692871, | |
0.005124095916748047, | |
0.005194752216339111, | |
0.005287936210632324, | |
0.005160927772521973, | |
0.0051660799980163576, | |
0.005164031982421875, | |
0.005169151782989502, | |
0.005156864166259765, | |
0.0052111358642578124, | |
0.005146624088287354, | |
0.005163968086242676, | |
0.005193727970123291, | |
0.005186560153961181, | |
0.005126143932342529, | |
0.005191743850708008, | |
0.005171199798583984, | |
0.005146624088287354, | |
0.005164031982421875, | |
0.005174272060394287, | |
0.0051559038162231445, | |
0.0051476478576660155, | |
0.005193727970123291, | |
0.005175295829772949, | |
0.005122047901153564, | |
0.005552127838134766, | |
0.00521830415725708, | |
0.005105663776397705, | |
0.005053440093994141, | |
0.005128191947937012, | |
0.0051578240394592285, | |
0.005161983966827393, | |
0.005234687805175781, | |
0.00516096019744873, | |
0.005148672103881836, | |
0.005202943801879883, | |
0.0052070398330688475, | |
0.00520908784866333, | |
0.005165056228637695, | |
0.005219327926635742, | |
0.005187583923339844, | |
0.005222400188446045, | |
0.005181439876556396, | |
0.005173247814178467, | |
0.0051968002319335935, | |
0.005190688133239746, | |
0.005194752216339111, | |
0.0051435518264770505, | |
0.005183487892150879, | |
0.005171264171600342, | |
0.005144576072692871, | |
0.0051998720169067385, | |
0.0051773438453674315, | |
0.005175295829772949, | |
0.005136320114135742, | |
0.00520908784866333, | |
0.005155839920043945, | |
0.005185535907745361, | |
0.005206016063690186, | |
0.005145599842071533, | |
0.005152768135070801, | |
0.005134335994720459, | |
0.0051701760292053225, | |
0.0051363840103149415, | |
0.005155839920043945, | |
0.005169151782989502, | |
0.005175327777862549, | |
0.005190656185150146, | |
0.0051333122253417966, | |
0.005190656185150146, | |
0.0051333122253417966, | |
0.0051660799980163576, | |
0.005156864166259765 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 192.66978149872074 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.777842721883377e-08, | |
"ram": 3.157360498168018e-08, | |
"gpu": 3.236994459512239e-07, | |
"total": 4.130514781517378e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2421005.7411600444 | |
} | |
} | |
} | |
} |