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
c7bf350
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"library": "transformers", | |
"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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 905.039872, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 178, | |
"total": 0.9980926094055176, | |
"mean": 0.0056072618505927955, | |
"stdev": 0.0001812279333278747, | |
"p50": 0.005572096109390259, | |
"p90": 0.005838745546340942, | |
"p95": 0.00587253749370575, | |
"p99": 0.0059661240005493155, | |
"values": [ | |
0.0059361281394958495, | |
0.005559296131134033, | |
0.005676032066345215, | |
0.005607423782348633, | |
0.00566476821899414, | |
0.005653503894805908, | |
0.005637119770050049, | |
0.005940224170684814, | |
0.00588595199584961, | |
0.005859327793121338, | |
0.006073344230651856, | |
0.005832704067230224, | |
0.005814271926879883, | |
0.005840896129608154, | |
0.00586956787109375, | |
0.005857279777526855, | |
0.005757952213287353, | |
0.005700607776641845, | |
0.005691391944885254, | |
0.0057487359046936035, | |
0.00576204776763916, | |
0.005785600185394287, | |
0.005854207992553711, | |
0.005856256008148194, | |
0.005923840045928955, | |
0.005789696216583252, | |
0.005816319942474365, | |
0.005735424041748047, | |
0.00581324815750122, | |
0.005822463989257813, | |
0.005859327793121338, | |
0.005837823867797852, | |
0.0058716158866882326, | |
0.005815231800079345, | |
0.005538815975189209, | |
0.00551526403427124, | |
0.005494783878326416, | |
0.0055848960876464845, | |
0.00551526403427124, | |
0.005534719944000244, | |
0.005497856140136719, | |
0.00551423978805542, | |
0.005763072013854981, | |
0.0057077760696411135, | |
0.005697535991668701, | |
0.005765120029449463, | |
0.005696576118469238, | |
0.005752831935882568, | |
0.005726208209991455, | |
0.005855231761932373, | |
0.005787648200988769, | |
0.005834784030914307, | |
0.005824512004852295, | |
0.005776383876800537, | |
0.005826560020446778, | |
0.005775392055511475, | |
0.005805056095123291, | |
0.005731296062469482, | |
0.005781504154205322, | |
0.005910528182983398, | |
0.005822463989257813, | |
0.005765120029449463, | |
0.005753856182098388, | |
0.005697535991668701, | |
0.005662720203399658, | |
0.005736447811126709, | |
0.0057190399169921875, | |
0.00570470380783081, | |
0.005781439781188965, | |
0.005834752082824707, | |
0.005796864032745362, | |
0.005733376026153565, | |
0.005751808166503906, | |
0.005728256225585937, | |
0.005744639873504639, | |
0.005529600143432617, | |
0.005784575939178467, | |
0.005791744232177734, | |
0.005750783920288086, | |
0.005759935855865478, | |
0.00587775993347168, | |
0.0058091521263122555, | |
0.005831679821014404, | |
0.005819392204284668, | |
0.005545983791351319, | |
0.0055285758972167965, | |
0.005523519992828369, | |
0.005532671928405761, | |
0.005405695915222168, | |
0.005690368175506591, | |
0.005760992050170898, | |
0.005667840003967285, | |
0.005660607814788819, | |
0.005495808124542236, | |
0.005616640090942383, | |
0.005715968132019043, | |
0.006052832126617432, | |
0.005912576198577881, | |
0.005502975940704345, | |
0.00546611213684082, | |
0.005498816013336181, | |
0.005452799797058106, | |
0.005601280212402344, | |
0.005554207801818848, | |
0.00555622386932373, | |
0.005595136165618897, | |
0.005634047985076904, | |
0.005701663970947265, | |
0.005701632022857666, | |
0.005511168003082275, | |
0.005404672145843506, | |
0.005385216236114502, | |
0.005596159934997558, | |
0.005422080039978027, | |
0.005387263774871826, | |
0.005414912223815918, | |
0.005402560234069824, | |
0.0054436478614807125, | |
0.005408768177032471, | |
0.005410816192626953, | |
0.005422080039978027, | |
0.005419007778167725, | |
0.005421055793762207, | |
0.005437439918518067, | |
0.005414912223815918, | |
0.005402624130249023, | |
0.0054241280555725096, | |
0.005425151824951172, | |
0.005430272102355957, | |
0.005464064121246338, | |
0.005402656078338623, | |
0.005468128204345703, | |
0.005438464164733887, | |
0.005401599884033203, | |
0.005414912223815918, | |
0.0054271998405456545, | |
0.005391359806060791, | |
0.00542310380935669, | |
0.00541593599319458, | |
0.005404672145843506, | |
0.005393407821655274, | |
0.0054241280555725096, | |
0.005463039875030518, | |
0.005402624130249023, | |
0.005386240005493164, | |
0.005412864208221436, | |
0.005408768177032471, | |
0.00538316822052002, | |
0.005447679996490478, | |
0.005419007778167725, | |
0.005433343887329102, | |
0.005422080039978027, | |
0.005410816192626953, | |
0.005437439918518067, | |
0.005393407821655274, | |
0.005403647899627686, | |
0.005447679996490478, | |
0.005403647899627686, | |
0.0053975038528442385, | |
0.005451776027679443, | |
0.005390336036682129, | |
0.005399551868438721, | |
0.005451776027679443, | |
0.005426176071166992, | |
0.005433375835418701, | |
0.005401599884033203, | |
0.005411839962005615, | |
0.0054282240867614745, | |
0.005411839962005615, | |
0.005413887977600097, | |
0.005408768177032471, | |
0.005472256183624268, | |
0.005422080039978027, | |
0.005449728012084961, | |
0.005430272102355957, | |
0.005408703804016113, | |
0.005420032024383545, | |
0.005407743930816651 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 178.34016435210364 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.514185168513158e-08, | |
"ram": 3.5614991816396214e-08, | |
"gpu": 3.4007200587913006e-07, | |
"total": 4.408288493806579e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2268454.0755555113 | |
} | |
} | |
} | |
} |