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
ffb67e3
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"library": "transformers", | |
"model_type": "vit", | |
"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": {}, | |
"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, | |
"memory": true, | |
"latency": 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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-211.872.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 826.720256, | |
"max_global_vram": 1030.22592, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.44867041015625, | |
"mean": 7.44867041015625, | |
"stdev": 0.0, | |
"p50": 7.44867041015625, | |
"p90": 7.44867041015625, | |
"p95": 7.44867041015625, | |
"p99": 7.44867041015625, | |
"values": [ | |
7.44867041015625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4857508770834076e-06, | |
"ram": 7.984278042934066e-07, | |
"gpu": 1.6297235259990495e-06, | |
"total": 3.913902207375863e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1035.706368, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 179, | |
"total": 0.9988404750823972, | |
"mean": 0.005580114385935182, | |
"stdev": 0.00019075249048945768, | |
"p50": 0.005631999969482422, | |
"p90": 0.005769625473022461, | |
"p95": 0.00580648946762085, | |
"p99": 0.005987655658721924, | |
"values": [ | |
0.005891071796417236, | |
0.005825535774230957, | |
0.005941247940063477, | |
0.005806079864501953, | |
0.005825535774230957, | |
0.005793791770935058, | |
0.005833727836608887, | |
0.005752831935882568, | |
0.005822463989257813, | |
0.005701632022857666, | |
0.005736447811126709, | |
0.005628928184509278, | |
0.0057118721008300784, | |
0.005786623954772949, | |
0.005750783920288086, | |
0.00566476821899414, | |
0.0056217598915100095, | |
0.005639167785644531, | |
0.005616672039031982, | |
0.0057077760696411135, | |
0.005709824085235596, | |
0.005702655792236328, | |
0.005790719985961914, | |
0.0061521921157836916, | |
0.005777408123016357, | |
0.005727231979370117, | |
0.0056852478981018065, | |
0.005596159934997558, | |
0.0057487359046936035, | |
0.005810175895690918, | |
0.005707808017730713, | |
0.00573747205734253, | |
0.005693439960479736, | |
0.005795839786529541, | |
0.005743616104125977, | |
0.005702655792236328, | |
0.005666783809661865, | |
0.005730368137359619, | |
0.005660672187805176, | |
0.005752831935882568, | |
0.005716991901397705, | |
0.005695487976074219, | |
0.005568511962890625, | |
0.00555622386932373, | |
0.005545983791351319, | |
0.005628928184509278, | |
0.005728256225585937, | |
0.005683199882507324, | |
0.005629951953887939, | |
0.005693439960479736, | |
0.0056514558792114256, | |
0.005698560237884521, | |
0.005731328010559082, | |
0.005775360107421875, | |
0.005731328010559082, | |
0.0057569599151611325, | |
0.005764095783233642, | |
0.0057190399169921875, | |
0.0056442880630493165, | |
0.005609471797943116, | |
0.0057497601509094234, | |
0.005739520072937012, | |
0.005708799839019775, | |
0.005700607776641845, | |
0.005681151866912842, | |
0.00572108793258667, | |
0.006456319808959961, | |
0.005595136165618897, | |
0.0056483840942382815, | |
0.005690368175506591, | |
0.005695487976074219, | |
0.005731328010559082, | |
0.005768191814422607, | |
0.0056555519104003905, | |
0.005686272144317627, | |
0.005653503894805908, | |
0.005681151866912842, | |
0.005631999969482422, | |
0.00566374397277832, | |
0.005666751861572266, | |
0.005673984050750733, | |
0.005662720203399658, | |
0.005743616104125977, | |
0.005746687889099121, | |
0.005767168045043946, | |
0.005702688217163086, | |
0.005755871772766113, | |
0.005738495826721191, | |
0.005744639873504639, | |
0.005698560237884521, | |
0.00573747205734253, | |
0.005691391944885254, | |
0.005645311832427978, | |
0.00570470380783081, | |
0.005736447811126709, | |
0.0055797758102417, | |
0.0055552000999450684, | |
0.005559296131134033, | |
0.0054241280555725096, | |
0.005385216236114502, | |
0.005591040134429932, | |
0.005786623954772949, | |
0.005501952171325684, | |
0.005323775768280029, | |
0.005445631980895996, | |
0.005343232154846191, | |
0.005379072189331055, | |
0.005390336036682129, | |
0.005612512111663818, | |
0.005588992118835449, | |
0.005617663860321045, | |
0.005612512111663818, | |
0.005659647941589355, | |
0.005750783920288086, | |
0.005792768001556397, | |
0.00555622386932373, | |
0.005386240005493164, | |
0.0053606400489807126, | |
0.005412864208221436, | |
0.005344255924224854, | |
0.005368832111358642, | |
0.005378047943115235, | |
0.005342207908630371, | |
0.005334047794342041, | |
0.005425151824951172, | |
0.00536575984954834, | |
0.005381120204925537, | |
0.005357600212097168, | |
0.005380159854888916, | |
0.005345280170440674, | |
0.00536575984954834, | |
0.005380127906799316, | |
0.005398528099060058, | |
0.005321728229522705, | |
0.00535859203338623, | |
0.00572108793258667, | |
0.005425151824951172, | |
0.005332992076873779, | |
0.0053637118339538575, | |
0.00531660795211792, | |
0.005344287872314453, | |
0.005323775768280029, | |
0.005398528099060058, | |
0.005322751998901368, | |
0.005379072189331055, | |
0.00530944013595581, | |
0.005312511920928955, | |
0.005346303939819336, | |
0.005342207908630371, | |
0.005359615802764893, | |
0.005384191989898681, | |
0.005359615802764893, | |
0.005338111877441406, | |
0.005338111877441406, | |
0.005332992076873779, | |
0.005409791946411133, | |
0.0053002238273620605, | |
0.005354496002197265, | |
0.005403647899627686, | |
0.005336063861846924, | |
0.005320703983306885, | |
0.005370880126953125, | |
0.005339136123657226, | |
0.0056555519104003905, | |
0.00535756778717041, | |
0.0053534722328186036, | |
0.005426176071166992, | |
0.0055623679161071774, | |
0.005534719944000244, | |
0.005398528099060058, | |
0.005323775768280029, | |
0.00537395191192627, | |
0.005371903896331787, | |
0.005344255924224854, | |
0.005354496002197265, | |
0.005395455837249756, | |
0.00530841588973999, | |
0.005340127944946289, | |
0.005336063861846924 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 179.2077959047802 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.949720315117115e-08, | |
"ram": 3.252920057260077e-08, | |
"gpu": 3.2708987641205863e-07, | |
"total": 4.191162801358306e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2385972.6939643384 | |
} | |
} | |
} | |
} |