IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
26336db verified
raw
history blame
12.6 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "image-classification",
"model": "google/vit-base-patch16-224",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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.12",
"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.1",
"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": 911.867904,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 182,
"total": 0.997326368808746,
"mean": 0.00547981521323487,
"stdev": 0.00015516912350811,
"p50": 0.0054435842037200925,
"p90": 0.005702358436584473,
"p95": 0.005877657532691956,
"p99": 0.005990205435752868,
"values": [
0.006155263900756836,
0.005899199962615967,
0.005921792030334472,
0.005916672229766846,
0.005951488018035888,
0.005883903980255127,
0.005904384136199951,
0.0058757119178771975,
0.005888000011444092,
0.00587775993347168,
0.006550528049468994,
0.005607391834259033,
0.005715904235839844,
0.0054988799095153805,
0.0055071358680725095,
0.005465087890625,
0.005476352214813233,
0.005469183921813964,
0.005452799797058106,
0.00547430419921875,
0.0054783358573913575,
0.005451776027679443,
0.005441535949707031,
0.005406720161437988,
0.005407743930816651,
0.005428160190582275,
0.005388288021087646,
0.005414912223815918,
0.005421055793762207,
0.005379072189331055,
0.005380095958709717,
0.005405663967132568,
0.005390272140502929,
0.005362592220306397,
0.005401599884033203,
0.005406720161437988,
0.005464064121246338,
0.005412864208221436,
0.005410816192626953,
0.005405695915222168,
0.005392384052276611,
0.005399551868438721,
0.005431263923645019,
0.005380095958709717,
0.005403647899627686,
0.005449728012084961,
0.005573631763458252,
0.0054271998405456545,
0.005396480083465576,
0.005419007778167725,
0.005434368133544922,
0.0053975038528442385,
0.005400576114654541,
0.005408768177032471,
0.005400576114654541,
0.005430272102355957,
0.00550707197189331,
0.005395455837249756,
0.005391424179077149,
0.0054241280555725096,
0.005385216236114502,
0.005404672145843506,
0.005404640197753907,
0.005398528099060058,
0.005445631980895996,
0.005385216236114502,
0.0053944320678710935,
0.005416959762573242,
0.005390336036682129,
0.005396480083465576,
0.005421055793762207,
0.005427135944366455,
0.005398528099060058,
0.005404672145843506,
0.005386240005493164,
0.005379072189331055,
0.00536678409576416,
0.005391359806060791,
0.005410816192626953,
0.005378047943115235,
0.005401599884033203,
0.005406720161437988,
0.005390336036682129,
0.005411839962005615,
0.0054241280555725096,
0.005380095958709717,
0.0053647360801696775,
0.005394400119781494,
0.005380095958709717,
0.005390336036682129,
0.005349376201629639,
0.00536678409576416,
0.005384191989898681,
0.0053647360801696775,
0.0053637118339538575,
0.005389311790466309,
0.00535756778717041,
0.005421055793762207,
0.005517312049865723,
0.0054609918594360355,
0.0054568958282470706,
0.005498784065246582,
0.005447679996490478,
0.005450719833374023,
0.005430272102355957,
0.005447679996490478,
0.005477375984191894,
0.005453824043273926,
0.005453824043273926,
0.0054579200744628905,
0.005458943843841553,
0.0054568958282470706,
0.005436416149139404,
0.005450751781463623,
0.005453824043273926,
0.005429247856140137,
0.005453760147094726,
0.005489664077758789,
0.005451776027679443,
0.005413824081420898,
0.005452799797058106,
0.005454847812652588,
0.005462080001831055,
0.0056720318794250485,
0.005734399795532226,
0.005752831935882568,
0.0057292799949646,
0.005736447811126709,
0.00576204776763916,
0.005728256225585937,
0.005705728054046631,
0.005449728012084961,
0.005478400230407715,
0.005477375984191894,
0.005473279953002929,
0.005417984008789062,
0.00545692777633667,
0.005434368133544922,
0.005436416149139404,
0.005432320117950439,
0.005451776027679443,
0.005438464164733887,
0.005463039875030518,
0.005410816192626953,
0.005442560195922852,
0.0054609918594360355,
0.005446656227111817,
0.005448703765869141,
0.005458911895751953,
0.005431295871734619,
0.005455872058868408,
0.005447679996490478,
0.005454847812652588,
0.005458943843841553,
0.005419007778167725,
0.0054241280555725096,
0.005455872058868408,
0.005432320117950439,
0.005454847812652588,
0.005463103771209717,
0.005452799797058106,
0.005435391902923584,
0.005450751781463623,
0.005430272102355957,
0.005462016105651855,
0.005440512180328369,
0.005458943843841553,
0.005477375984191894,
0.005445631980895996,
0.005444608211517334,
0.005471231937408447,
0.005446656227111817,
0.005409791946411133,
0.005472256183624268,
0.005493760108947754,
0.005467135906219483,
0.005448703765869141,
0.005446656227111817,
0.00546611213684082,
0.005444608211517334,
0.0054733438491821286,
0.005432320117950439
]
},
"throughput": {
"unit": "samples/s",
"value": 182.48790535578578
},
"energy": {
"unit": "kWh",
"cpu": 6.558923925484083e-08,
"ram": 3.5842613425246986e-08,
"gpu": 3.7115437918231806e-07,
"total": 4.725862318624059e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2116015.940750367
}
}
}
}