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
53cdc89
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.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.363328, | |
"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.471326171875, | |
"mean": 7.471326171875, | |
"stdev": 0.0, | |
"p50": 7.471326171875, | |
"p90": 7.471326171875, | |
"p95": 7.471326171875, | |
"p99": 7.471326171875, | |
"values": [ | |
7.471326171875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.462915627083403e-06, | |
"ram": 7.861156795576182e-07, | |
"gpu": 1.6583346600001006e-06, | |
"total": 3.907365966641121e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1037.25056, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 189, | |
"total": 0.9955410223007202, | |
"mean": 0.005267412816405927, | |
"stdev": 0.0002933243647085975, | |
"p50": 0.005256192207336426, | |
"p90": 0.005494169521331788, | |
"p95": 0.005626035404205322, | |
"p99": 0.006518947887420654, | |
"values": [ | |
0.005612480163574219, | |
0.005649407863616943, | |
0.005635072231292724, | |
0.005673984050750733, | |
0.005451776027679443, | |
0.005425151824951172, | |
0.005446656227111817, | |
0.005411839962005615, | |
0.005414912223815918, | |
0.005502975940704345, | |
0.005341184139251709, | |
0.005409791946411133, | |
0.005310463905334473, | |
0.005313536167144775, | |
0.005389311790466309, | |
0.0053002238273620605, | |
0.00533292818069458, | |
0.005273600101470947, | |
0.005175295829772949, | |
0.005144576072692871, | |
0.0053606400489807126, | |
0.005253119945526123, | |
0.005241856098175048, | |
0.005377024173736572, | |
0.005349376201629639, | |
0.005371903896331787, | |
0.005359583854675293, | |
0.005346303939819336, | |
0.0053975038528442385, | |
0.005261312007904053, | |
0.005195775985717774, | |
0.005353536128997803, | |
0.005468160152435303, | |
0.005398528099060058, | |
0.005342207908630371, | |
0.005574656009674072, | |
0.00552345609664917, | |
0.005546016216278076, | |
0.005499904155731201, | |
0.005492735862731934, | |
0.005547008037567139, | |
0.005305344104766845, | |
0.005314559936523438, | |
0.005369855880737305, | |
0.00530944013595581, | |
0.005249023914337158, | |
0.005476352214813233, | |
0.005198847770690918, | |
0.005198847770690918, | |
0.005264383792877197, | |
0.005265408039093018, | |
0.005221375942230225, | |
0.005311488151550293, | |
0.00527561616897583, | |
0.005250048160552978, | |
0.005583871841430664, | |
0.00535859203338623, | |
0.005356544017791748, | |
0.005370880126953125, | |
0.005349376201629639, | |
0.005372928142547607, | |
0.005340159893035889, | |
0.005303296089172363, | |
0.0053043198585510255, | |
0.005203968048095703, | |
0.0053637118339538575, | |
0.006279200077056885, | |
0.00536575984954834, | |
0.005346303939819336, | |
0.005350399971008301, | |
0.0053637118339538575, | |
0.005342207908630371, | |
0.005261312007904053, | |
0.005216256141662597, | |
0.0052674560546875, | |
0.005306367874145508, | |
0.005276735782623291, | |
0.005277728080749512, | |
0.005391359806060791, | |
0.0053043198585510255, | |
0.005212160110473632, | |
0.005256192207336426, | |
0.005272575855255127, | |
0.005326848030090332, | |
0.005253119945526123, | |
0.005234687805175781, | |
0.005259263992309571, | |
0.005286911964416504, | |
0.005272575855255127, | |
0.005304351806640625, | |
0.0054568958282470706, | |
0.0053821439743042, | |
0.005416959762573242, | |
0.005390336036682129, | |
0.00537395191192627, | |
0.005426176071166992, | |
0.005312511920928955, | |
0.005305344104766845, | |
0.005401599884033203, | |
0.005328896045684814, | |
0.00521830415725708, | |
0.005238783836364746, | |
0.005389311790466309, | |
0.005251071929931641, | |
0.0052295680046081545, | |
0.005223423957824707, | |
0.005258240222930908, | |
0.005048319816589355, | |
0.005097472190856934, | |
0.005223487854003906, | |
0.005190656185150146, | |
0.005124095916748047, | |
0.00501964807510376, | |
0.0050032639503479, | |
0.00501964807510376, | |
0.005030911922454834, | |
0.005548031806945801, | |
0.0064204797744750975, | |
0.006427648067474365, | |
0.006510591983795166, | |
0.006516736030578613, | |
0.006540287971496582, | |
0.006535168170928955, | |
0.0052899842262268066, | |
0.005186560153961181, | |
0.005228544235229492, | |
0.00516812801361084, | |
0.005145599842071533, | |
0.005238783836364746, | |
0.0051363840103149415, | |
0.0051660799980163576, | |
0.005234687805175781, | |
0.005107711791992187, | |
0.0050124478340148925, | |
0.005049312114715576, | |
0.005066751956939697, | |
0.005014527797698975, | |
0.005005311965942383, | |
0.005018623828887939, | |
0.005033984184265137, | |
0.004985856056213379, | |
0.005008384227752686, | |
0.005000192165374756, | |
0.005049344062805176, | |
0.005011519908905029, | |
0.0050094079971313476, | |
0.005022719860076904, | |
0.005017600059509277, | |
0.005000192165374756, | |
0.004977663993835449, | |
0.004992000102996826, | |
0.0050206718444824215, | |
0.005000192165374756, | |
0.005008384227752686, | |
0.005017600059509277, | |
0.005018623828887939, | |
0.00499507188796997, | |
0.004996096134185791, | |
0.0050165758132934574, | |
0.005007359981536865, | |
0.004999167919158935, | |
0.0049909758567810054, | |
0.005004288196563721, | |
0.005041152000427246, | |
0.0049909758567810054, | |
0.0049909758567810054, | |
0.005017600059509277, | |
0.004996096134185791, | |
0.004986879825592041, | |
0.004977663993835449, | |
0.0050094079971313476, | |
0.004998112201690674, | |
0.004989952087402344, | |
0.0050001277923583986, | |
0.005017600059509277, | |
0.004997119903564453, | |
0.004998144149780274, | |
0.004997119903564453, | |
0.005018623828887939, | |
0.004997119903564453, | |
0.004997119903564453, | |
0.004989952087402344, | |
0.005024767875671386, | |
0.004989952087402344, | |
0.004984831809997559, | |
0.004988927841186524, | |
0.005018623828887939, | |
0.00499507188796997, | |
0.004992000102996826 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 189.84652140523175 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.023455802664903e-08, | |
"ram": 3.2932283308492147e-08, | |
"gpu": 3.598480036142143e-07, | |
"total": 4.530148449493555e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2207433.1804994037 | |
} | |
} | |
} | |
} |