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
175e6d1
verified
{ | |
"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", | |
"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.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": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 909.565952, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 172, | |
"total": 0.9990000643730157, | |
"mean": 0.005808139909145444, | |
"stdev": 0.00016542888290475656, | |
"p50": 0.005788671970367432, | |
"p90": 0.005888000011444092, | |
"p95": 0.005929830384254455, | |
"p99": 0.006688982882499694, | |
"values": [ | |
0.006156223773956299, | |
0.005859327793121338, | |
0.005888000011444092, | |
0.005883903980255127, | |
0.005910528182983398, | |
0.005923840045928955, | |
0.005896192073822021, | |
0.005856256008148194, | |
0.005912576198577881, | |
0.005849088191986084, | |
0.005894144058227539, | |
0.005804031848907471, | |
0.006042623996734619, | |
0.006352896213531494, | |
0.005690368175506591, | |
0.00547430419921875, | |
0.005662720203399658, | |
0.005783552169799804, | |
0.005880832195281982, | |
0.005823488235473633, | |
0.005823488235473633, | |
0.005811200141906738, | |
0.00588595199584961, | |
0.005855231761932373, | |
0.005808127880096436, | |
0.005814271926879883, | |
0.0058429441452026365, | |
0.005808127880096436, | |
0.0057866559028625485, | |
0.005816319942474365, | |
0.005788671970367432, | |
0.005808127880096436, | |
0.005788671970367432, | |
0.005801983833312988, | |
0.005883903980255127, | |
0.005859327793121338, | |
0.005793791770935058, | |
0.005774335861206055, | |
0.005823488235473633, | |
0.005761023998260498, | |
0.005808191776275635, | |
0.005773312091827393, | |
0.005799935817718506, | |
0.005758975982666016, | |
0.005876736164093017, | |
0.0057794561386108395, | |
0.005798912048339844, | |
0.005808159828186035, | |
0.005796895980834961, | |
0.005837823867797852, | |
0.005804031848907471, | |
0.005811200141906738, | |
0.005786623954772949, | |
0.005830656051635743, | |
0.005818367958068848, | |
0.005814271926879883, | |
0.005801983833312988, | |
0.005797887802124023, | |
0.005788671970367432, | |
0.0057784318923950195, | |
0.005796864032745362, | |
0.005817344188690185, | |
0.005818367958068848, | |
0.005805056095123291, | |
0.0058091521263122555, | |
0.0057825279235839844, | |
0.005798912048339844, | |
0.005757952213287353, | |
0.005859327793121338, | |
0.005834752082824707, | |
0.0057794561386108395, | |
0.005889023780822754, | |
0.005888000011444092, | |
0.005806079864501953, | |
0.005808127880096436, | |
0.005799935817718506, | |
0.0057487359046936035, | |
0.005793791770935058, | |
0.00574560022354126, | |
0.0057825279235839844, | |
0.00576204776763916, | |
0.005766143798828125, | |
0.005795839786529541, | |
0.0057497601509094234, | |
0.005803008079528809, | |
0.005736447811126709, | |
0.005788671970367432, | |
0.005753856182098388, | |
0.005783552169799804, | |
0.005766143798828125, | |
0.005780479907989502, | |
0.005779520034790039, | |
0.0057497601509094234, | |
0.00586956787109375, | |
0.005809055805206299, | |
0.005854207992553711, | |
0.005815296173095703, | |
0.0057149438858032225, | |
0.005673984050750733, | |
0.005690336227416992, | |
0.005781504154205322, | |
0.005768288135528565, | |
0.005699584007263184, | |
0.005724160194396972, | |
0.005763072013854981, | |
0.005747712135314941, | |
0.005796927928924561, | |
0.005819392204284668, | |
0.005792768001556397, | |
0.005770304203033447, | |
0.005801983833312988, | |
0.005765056133270264, | |
0.0057712640762329105, | |
0.005792768001556397, | |
0.005776383876800537, | |
0.005796864032745362, | |
0.005811200141906738, | |
0.0066744318008422855, | |
0.00679423999786377, | |
0.006724607944488525, | |
0.006662144184112549, | |
0.005942272186279297, | |
0.005922815799713135, | |
0.005892096042633056, | |
0.005937151908874512, | |
0.005754879951477051, | |
0.005825535774230957, | |
0.0057292799949646, | |
0.005768191814422607, | |
0.0057190399169921875, | |
0.005774335861206055, | |
0.00572211217880249, | |
0.005783552169799804, | |
0.0057067198753356935, | |
0.005673984050750733, | |
0.005649407863616943, | |
0.005595136165618897, | |
0.005650432109832764, | |
0.005697535991668701, | |
0.005607423782348633, | |
0.005653439998626709, | |
0.005615615844726562, | |
0.0058009600639343266, | |
0.00568012809753418, | |
0.005739520072937012, | |
0.005724160194396972, | |
0.00573747205734253, | |
0.005702655792236328, | |
0.005695487976074219, | |
0.005738495826721191, | |
0.005727231979370117, | |
0.0057190399169921875, | |
0.005682176113128662, | |
0.005752831935882568, | |
0.005773312091827393, | |
0.00568832015991211, | |
0.0057702078819274905, | |
0.0056780800819396975, | |
0.0057374401092529295, | |
0.005703680038452149, | |
0.005819392204284668, | |
0.005758975982666016, | |
0.005756927967071533, | |
0.005698560237884521, | |
0.005688352108001709, | |
0.005732351779937744, | |
0.005767168045043946, | |
0.005725183963775635, | |
0.005694464206695556, | |
0.005735424041748047, | |
0.0057077760696411135, | |
0.005693439960479736 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 172.17216107783648 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.697160114077601e-08, | |
"ram": 3.661104193748018e-08, | |
"gpu": 3.6456243854237175e-07, | |
"total": 4.681450816206279e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2136089.941473257 | |
} | |
} | |
} | |
} |