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
5d9dfe2
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.991936, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 170, | |
"total": 0.9968906579017642, | |
"mean": 0.005864062693539789, | |
"stdev": 0.00018141726676956611, | |
"p50": 0.005851136207580566, | |
"p90": 0.0059588606357574465, | |
"p95": 0.006003660869598389, | |
"p99": 0.006862643094062805, | |
"values": [ | |
0.006202367782592774, | |
0.005985280036926269, | |
0.0059391999244689945, | |
0.006007808208465576, | |
0.005985280036926269, | |
0.00601907205581665, | |
0.005955584049224853, | |
0.0059985918998718265, | |
0.005970943927764893, | |
0.005986303806304932, | |
0.00597811222076416, | |
0.005902400016784668, | |
0.006020063877105713, | |
0.005958655834197998, | |
0.005911551952362061, | |
0.005898240089416504, | |
0.005832704067230224, | |
0.005798912048339844, | |
0.005736447811126709, | |
0.005827648162841797, | |
0.005828544139862061, | |
0.005901311874389649, | |
0.005924863815307617, | |
0.00591871976852417, | |
0.005923840045928955, | |
0.0059023361206054685, | |
0.0058419198989868165, | |
0.005883903980255127, | |
0.005837823867797852, | |
0.005879807949066162, | |
0.005911551952362061, | |
0.0059064321517944334, | |
0.005960703849792481, | |
0.005929984092712402, | |
0.005942272186279297, | |
0.005925888061523437, | |
0.005851136207580566, | |
0.005851136207580566, | |
0.005941247940063477, | |
0.005859295845031739, | |
0.005914624214172363, | |
0.00581324815750122, | |
0.005753856182098388, | |
0.00572211217880249, | |
0.005756927967071533, | |
0.005766143798828125, | |
0.005735231876373291, | |
0.005733376026153565, | |
0.0057990398406982425, | |
0.005819392204284668, | |
0.005777408123016357, | |
0.005796864032745362, | |
0.005840896129608154, | |
0.005886047840118408, | |
0.005897215843200684, | |
0.006009856224060059, | |
0.005864480018615723, | |
0.005892064094543457, | |
0.005832704067230224, | |
0.005851136207580566, | |
0.005790719985961914, | |
0.005876736164093017, | |
0.005890048027038574, | |
0.005891071796417236, | |
0.005859327793121338, | |
0.0058295679092407226, | |
0.0058726401329040525, | |
0.0057712640762329105, | |
0.005766143798828125, | |
0.0058787841796875, | |
0.005836800098419189, | |
0.0057794561386108395, | |
0.005868544101715088, | |
0.0059064321517944334, | |
0.005772287845611572, | |
0.005732351779937744, | |
0.005739520072937012, | |
0.005795839786529541, | |
0.0058091521263122555, | |
0.005796800136566162, | |
0.005765120029449463, | |
0.005780479907989502, | |
0.005776383876800537, | |
0.005839903831481933, | |
0.005874688148498535, | |
0.005893119812011719, | |
0.005890079975128174, | |
0.005892096042633056, | |
0.005880832195281982, | |
0.00588595199584961, | |
0.005826560020446778, | |
0.005806079864501953, | |
0.005835775852203369, | |
0.005785600185394287, | |
0.0057712640762329105, | |
0.005857279777526855, | |
0.005803008079528809, | |
0.0057149438858032225, | |
0.0056780800819396975, | |
0.005545983791351319, | |
0.005635072231292724, | |
0.005748672008514404, | |
0.0056780800819396975, | |
0.005535744190216065, | |
0.005504000186920166, | |
0.005478400230407715, | |
0.005504000186920166, | |
0.005535679817199707, | |
0.005755904197692871, | |
0.005754879951477051, | |
0.005718048095703125, | |
0.005724160194396972, | |
0.0058388481140136715, | |
0.005917727947235107, | |
0.006945792198181152, | |
0.006919167995452881, | |
0.006837247848510742, | |
0.006628352165222168, | |
0.005633024215698243, | |
0.00592793607711792, | |
0.005924863815307617, | |
0.005993472099304199, | |
0.005956607818603516, | |
0.005911551952362061, | |
0.005895167827606201, | |
0.0058798398971557616, | |
0.0058419198989868165, | |
0.005876736164093017, | |
0.005860352039337159, | |
0.0058757119178771975, | |
0.005854207992553711, | |
0.005909503936767578, | |
0.005944320201873779, | |
0.0058715839385986325, | |
0.005868544101715088, | |
0.0058419198989868165, | |
0.005882880210876465, | |
0.005850111961364746, | |
0.005895167827606201, | |
0.005843967914581299, | |
0.0059351038932800295, | |
0.005928959846496582, | |
0.0058419198989868165, | |
0.00581324815750122, | |
0.005883903980255127, | |
0.005817344188690185, | |
0.0058388481140136715, | |
0.005832640171051026, | |
0.0058644161224365235, | |
0.005819392204284668, | |
0.005866496086120605, | |
0.005835775852203369, | |
0.00582041597366333, | |
0.005888000011444092, | |
0.005852159976959229, | |
0.005839807987213135, | |
0.0058429441452026365, | |
0.005813151836395264, | |
0.005832767963409423, | |
0.005881855964660645, | |
0.00586240005493164, | |
0.005794816017150879, | |
0.00576204776763916, | |
0.005780479907989502, | |
0.005784575939178467, | |
0.005786623954772949, | |
0.005798975944519043, | |
0.005772384166717529, | |
0.005794976234436035, | |
0.005837823867797852 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 170.53023684444256 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.85970607007905e-08, | |
"ram": 3.7395178790983006e-08, | |
"gpu": 3.3843737164367717e-07, | |
"total": 4.4442961113545066e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2250075.0961331106 | |
} | |
} | |
} | |
} |