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
92583f0
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", | |
"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": 912.019456, | |
"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.9955691227912906, | |
"mean": 0.0057881925743679665, | |
"stdev": 0.00023792351056834798, | |
"p50": 0.005733312129974365, | |
"p90": 0.005976269006729126, | |
"p95": 0.00626288640499115, | |
"p99": 0.006822692360877991, | |
"values": [ | |
0.006468607902526856, | |
0.006141952037811279, | |
0.0061337599754333495, | |
0.006209536075592041, | |
0.006136832237243653, | |
0.006304768085479737, | |
0.006254591941833496, | |
0.006199295997619629, | |
0.006150144100189209, | |
0.006056960105895996, | |
0.006273024082183838, | |
0.006842368125915528, | |
0.005866496086120605, | |
0.00551423978805542, | |
0.005559296131134033, | |
0.005504000186920166, | |
0.005545023918151855, | |
0.005512224197387695, | |
0.005455872058868408, | |
0.00553059196472168, | |
0.005499904155731201, | |
0.005492735862731934, | |
0.00552345609664917, | |
0.005504000186920166, | |
0.005543935775756836, | |
0.005510079860687256, | |
0.005750783920288086, | |
0.005751808166503906, | |
0.005693439960479736, | |
0.005751840114593506, | |
0.005726272106170654, | |
0.005760000228881836, | |
0.005687295913696289, | |
0.005777408123016357, | |
0.005758975982666016, | |
0.005751808166503906, | |
0.005785600185394287, | |
0.005753856182098388, | |
0.005715968132019043, | |
0.0058787841796875, | |
0.005795839786529541, | |
0.005722271919250488, | |
0.0056943998336792, | |
0.005675007820129394, | |
0.005691391944885254, | |
0.0057127361297607425, | |
0.005693439960479736, | |
0.005706751823425293, | |
0.005673791885375977, | |
0.005694464206695556, | |
0.005672959804534912, | |
0.0056483840942382815, | |
0.00568832015991211, | |
0.005699584007263184, | |
0.005724063873291016, | |
0.0057487359046936035, | |
0.005917695999145508, | |
0.005692416191101074, | |
0.005666880130767822, | |
0.005687295913696289, | |
0.005665823936462402, | |
0.005823488235473633, | |
0.005730303764343261, | |
0.0058091521263122555, | |
0.0057487359046936035, | |
0.005818367958068848, | |
0.005758944034576416, | |
0.005738495826721191, | |
0.005768191814422607, | |
0.005734399795532226, | |
0.00577023983001709, | |
0.005636096000671387, | |
0.005709760189056397, | |
0.005659808158874511, | |
0.0058787841796875, | |
0.005703680038452149, | |
0.005743616104125977, | |
0.005780479907989502, | |
0.0058419198989868165, | |
0.005768223762512207, | |
0.005731328010559082, | |
0.005733376026153565, | |
0.005658624172210694, | |
0.0057066879272460935, | |
0.005749695777893067, | |
0.005694464206695556, | |
0.005699584007263184, | |
0.005744639873504639, | |
0.005777408123016357, | |
0.005833727836608887, | |
0.005758975982666016, | |
0.005923840045928955, | |
0.0057415680885314945, | |
0.0058468799591064454, | |
0.005658624172210694, | |
0.0057825279235839844, | |
0.005754879951477051, | |
0.005784512042999268, | |
0.005686272144317627, | |
0.005755904197692871, | |
0.00571395206451416, | |
0.005725152015686035, | |
0.00568832015991211, | |
0.005725183963775635, | |
0.005731328010559082, | |
0.005682176113128662, | |
0.005733248233795166, | |
0.005924863815307617, | |
0.005739520072937012, | |
0.005672959804534912, | |
0.0067358717918396, | |
0.007224287986755371, | |
0.006814655780792237, | |
0.00591974401473999, | |
0.005699584007263184, | |
0.006325151920318604, | |
0.006330175876617432, | |
0.005867680072784424, | |
0.00597811222076416, | |
0.005740608215332031, | |
0.005712063789367676, | |
0.005754720211029052, | |
0.005684224128723145, | |
0.005762015819549561, | |
0.005732351779937744, | |
0.005687295913696289, | |
0.0057365760803222655, | |
0.005664735794067383, | |
0.0057704000473022465, | |
0.0056514558792114256, | |
0.005744639873504639, | |
0.005740543842315674, | |
0.0056902399063110355, | |
0.005705567836761474, | |
0.005695487976074219, | |
0.005747744083404541, | |
0.005834752082824707, | |
0.005757952213287353, | |
0.005677055835723877, | |
0.005853024005889893, | |
0.005740543842315674, | |
0.005727231979370117, | |
0.005751808166503906, | |
0.005776480197906494, | |
0.005715968132019043, | |
0.00563097620010376, | |
0.005680223941802978, | |
0.005655519962310791, | |
0.005698560237884521, | |
0.005739520072937012, | |
0.005669888019561768, | |
0.005676032066345215, | |
0.005723135948181152, | |
0.00577132797241211, | |
0.005723135948181152, | |
0.005769216060638428, | |
0.005677984237670898, | |
0.005853184223175049, | |
0.005755904197692871, | |
0.005699552059173584, | |
0.005696512222290039, | |
0.005692416191101074, | |
0.005769216060638428, | |
0.005723135948181152, | |
0.005732351779937744, | |
0.005777503967285156, | |
0.0056483840942382815, | |
0.005959680080413818, | |
0.005681280136108398, | |
0.005691391944885254, | |
0.00570470380783081, | |
0.005884928226470947 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 172.76550272849096 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.459422391537884e-08, | |
"ram": 3.531733129677931e-08, | |
"gpu": 3.65809471391308e-07, | |
"total": 4.657210266034661e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2147208.1844641315 | |
} | |
} | |
} | |
} |