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
30cf1e4
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-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.34.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.326464, | |
"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.4653623046875, | |
"mean": 7.4653623046875, | |
"stdev": 0.0, | |
"p50": 7.4653623046875, | |
"p90": 7.4653623046875, | |
"p95": 7.4653623046875, | |
"p99": 7.4653623046875, | |
"values": [ | |
7.4653623046875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4920650312493286e-06, | |
"ram": 7.82901679199863e-07, | |
"gpu": 3.5180583699999032e-06, | |
"total": 5.793025080449095e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.1856, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 196, | |
"total": 0.9977674579620361, | |
"mean": 0.005090650295724673, | |
"stdev": 0.00019871197781397501, | |
"p50": 0.005000192165374756, | |
"p90": 0.005265919923782348, | |
"p95": 0.005559039950370788, | |
"p99": 0.005848576164245606, | |
"values": [ | |
0.005601280212402344, | |
0.005561344146728516, | |
0.005803103923797607, | |
0.005399551868438721, | |
0.005563392162322998, | |
0.005544960021972656, | |
0.0055582718849182125, | |
0.005410816192626953, | |
0.005506048202514649, | |
0.005844992160797119, | |
0.005119999885559082, | |
0.0050094079971313476, | |
0.004966400146484375, | |
0.004965375900268554, | |
0.004921343803405762, | |
0.004926464080810547, | |
0.004957183837890625, | |
0.004955135822296143, | |
0.004946944236755371, | |
0.00497049617767334, | |
0.004955135822296143, | |
0.004987904071807861, | |
0.0049459199905395506, | |
0.004943871974945068, | |
0.004930560111999512, | |
0.004943871974945068, | |
0.004930560111999512, | |
0.004928512096405029, | |
0.004936704158782959, | |
0.005172224044799805, | |
0.005126143932342529, | |
0.005144576072692871, | |
0.005164095878601074, | |
0.005533696174621582, | |
0.005192704200744629, | |
0.005173247814178467, | |
0.005125120162963868, | |
0.005117951869964599, | |
0.005133279800415039, | |
0.0051435518264770505, | |
0.005096447944641113, | |
0.005109792232513428, | |
0.0051660799980163576, | |
0.005131264209747314, | |
0.005107679843902588, | |
0.005115903854370117, | |
0.00516096019744873, | |
0.005096384048461914, | |
0.005127168178558349, | |
0.005134335994720459, | |
0.00510368013381958, | |
0.005128191947937012, | |
0.005114880084991455, | |
0.005138432025909424, | |
0.005094399929046631, | |
0.005090303897857666, | |
0.005159967899322509, | |
0.005025792121887207, | |
0.004988927841186524, | |
0.004966400146484375, | |
0.0049797120094299315, | |
0.004959231853485108, | |
0.004933631896972656, | |
0.004934656143188477, | |
0.004975615978240967, | |
0.004937727928161621, | |
0.005064703941345215, | |
0.004984831809997559, | |
0.00501964807510376, | |
0.004973631858825683, | |
0.004980735778808594, | |
0.00497049617767334, | |
0.004992000102996826, | |
0.004980735778808594, | |
0.004966400146484375, | |
0.004952064037322998, | |
0.0049827837944030765, | |
0.004973567962646484, | |
0.004958208084106445, | |
0.004966400146484375, | |
0.005005311965942383, | |
0.005000192165374756, | |
0.004965375900268554, | |
0.004976640224456787, | |
0.005000192165374756, | |
0.004985856056213379, | |
0.004942880153656006, | |
0.004969471931457519, | |
0.004986879825592041, | |
0.004986879825592041, | |
0.004957183837890625, | |
0.004955135822296143, | |
0.004978687763214112, | |
0.005000192165374756, | |
0.004978687763214112, | |
0.004943871974945068, | |
0.004952064037322998, | |
0.004993023872375488, | |
0.00496127986907959, | |
0.004944896221160889, | |
0.005029888153076172, | |
0.005063680171966553, | |
0.004992000102996826, | |
0.004976640224456787, | |
0.004975615978240967, | |
0.005135392189025879, | |
0.0051701760292053225, | |
0.005156864166259765, | |
0.005063648223876953, | |
0.004989952087402344, | |
0.00491315221786499, | |
0.004924416065216064, | |
0.0049428482055664065, | |
0.0049459199905395506, | |
0.004931583881378174, | |
0.00495411205291748, | |
0.00496230411529541, | |
0.0049909758567810054, | |
0.0049459199905395506, | |
0.0049428482055664065, | |
0.0049725441932678225, | |
0.005000192165374756, | |
0.004958208084106445, | |
0.004952064037322998, | |
0.004968448162078858, | |
0.0049827837944030765, | |
0.004966400146484375, | |
0.00495411205291748, | |
0.004980735778808594, | |
0.0049909758567810054, | |
0.004977663993835449, | |
0.0051066880226135255, | |
0.005306367874145508, | |
0.00515993595123291, | |
0.005119999885559082, | |
0.005931007862091065, | |
0.005639167785644531, | |
0.0051660799980163576, | |
0.005128191947937012, | |
0.005104640007019043, | |
0.005093376159667969, | |
0.005122047901153564, | |
0.005127168178558349, | |
0.005115903854370117, | |
0.005213183879852295, | |
0.005203968048095703, | |
0.005148672103881836, | |
0.005118015766143799, | |
0.005161983966827393, | |
0.0051968002319335935, | |
0.005126143932342529, | |
0.0055316481590271, | |
0.00582041597366333, | |
0.005164031982421875, | |
0.005204991817474365, | |
0.0051363840103149415, | |
0.005121024131774903, | |
0.005126143932342529, | |
0.00510975980758667, | |
0.00499507188796997, | |
0.004933631896972656, | |
0.004993023872375488, | |
0.005378047943115235, | |
0.005669919967651367, | |
0.0051916160583496095, | |
0.005399551868438721, | |
0.005916672229766846, | |
0.00522547197341919, | |
0.005146624088287354, | |
0.00511897611618042, | |
0.0051701760292053225, | |
0.005132287979125977, | |
0.005121024131774903, | |
0.005124095916748047, | |
0.005152768135070801, | |
0.005114880084991455, | |
0.005180416107177735, | |
0.005173247814178467, | |
0.00511897611618042, | |
0.0050206718444824215, | |
0.00501964807510376, | |
0.004998144149780274, | |
0.004963327884674072, | |
0.0049725441932678225, | |
0.004964352130889893, | |
0.004946944236755371, | |
0.004937727928161621, | |
0.004932608127593994, | |
0.0049192957878112795, | |
0.004935679912567138, | |
0.0049459199905395506, | |
0.004923391819000244, | |
0.004921343803405762, | |
0.004943871974945068, | |
0.004944896221160889, | |
0.004914175987243652 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 196.43855733713215 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.044597760856789e-08, | |
"ram": 3.291311927289801e-08, | |
"gpu": 3.469884332588884e-07, | |
"total": 4.4034753014035435e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2270933.595747124 | |
} | |
} | |
} | |
} |