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
b20e148
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.1", | |
"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.664256, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 173, | |
"total": 0.998016094684601, | |
"mean": 0.005768879160026595, | |
"stdev": 0.00026233386350873024, | |
"p50": 0.0057794561386108395, | |
"p90": 0.006139699172973633, | |
"p95": 0.006193971157073975, | |
"p99": 0.00627580924987793, | |
"values": [ | |
0.0064778242111206055, | |
0.006106112003326416, | |
0.006238207817077636, | |
0.006195199966430664, | |
0.006205440044403076, | |
0.006184959888458252, | |
0.006223872184753418, | |
0.006139904022216797, | |
0.0061931519508361815, | |
0.006200319766998291, | |
0.006120448112487793, | |
0.006115327835083008, | |
0.006254591941833496, | |
0.006140927791595459, | |
0.006136799812316894, | |
0.0060928001403808595, | |
0.005989376068115234, | |
0.005996543884277344, | |
0.006011903762817383, | |
0.006154240131378174, | |
0.005889023780822754, | |
0.005924863815307617, | |
0.006096896171569824, | |
0.006330368041992188, | |
0.006114304065704346, | |
0.006093823909759521, | |
0.0060917119979858395, | |
0.00608358383178711, | |
0.006142975807189942, | |
0.006110239982604981, | |
0.00611737585067749, | |
0.0060702719688415525, | |
0.006115327835083008, | |
0.005826560020446778, | |
0.0058388481140136715, | |
0.005834752082824707, | |
0.005858304023742676, | |
0.0058726401329040525, | |
0.005889023780822754, | |
0.005781504154205322, | |
0.005735424041748047, | |
0.005751808166503906, | |
0.005728256225585937, | |
0.005854207992553711, | |
0.005747712135314941, | |
0.0057794561386108395, | |
0.005833727836608887, | |
0.005848063945770264, | |
0.005850111961364746, | |
0.0058787841796875, | |
0.005897215843200684, | |
0.005895232200622559, | |
0.0058715839385986325, | |
0.005891071796417236, | |
0.00582041597366333, | |
0.005781504154205322, | |
0.006023168087005615, | |
0.006168575763702393, | |
0.006138879776000977, | |
0.0061532797813415524, | |
0.006107135772705078, | |
0.006187007904052734, | |
0.0060282878875732426, | |
0.0060087361335754395, | |
0.006031360149383545, | |
0.006085631847381592, | |
0.005812255859375, | |
0.005866496086120605, | |
0.005881855964660645, | |
0.00577023983001709, | |
0.005735455989837646, | |
0.005795839786529541, | |
0.0057794561386108395, | |
0.005799935817718506, | |
0.005774335861206055, | |
0.005742591857910156, | |
0.005781504154205322, | |
0.005753856182098388, | |
0.0058122239112854005, | |
0.005865471839904785, | |
0.005912576198577881, | |
0.005880832195281982, | |
0.005883903980255127, | |
0.005858304023742676, | |
0.005830656051635743, | |
0.005834752082824707, | |
0.0058419198989868165, | |
0.005739520072937012, | |
0.005742591857910156, | |
0.005873663902282715, | |
0.005705728054046631, | |
0.005716991901397705, | |
0.005591040134429932, | |
0.005549088001251221, | |
0.005657599925994873, | |
0.00570470380783081, | |
0.005598207950592041, | |
0.005478400230407715, | |
0.005497856140136719, | |
0.005477375984191894, | |
0.00550707197189331, | |
0.00552243185043335, | |
0.005706751823425293, | |
0.005957632064819336, | |
0.005940224170684814, | |
0.006025216102600098, | |
0.00606822395324707, | |
0.006196224212646485, | |
0.005915711879730225, | |
0.005928959846496582, | |
0.005837823867797852, | |
0.00572108793258667, | |
0.0055797758102417, | |
0.005527552127838135, | |
0.005550079822540284, | |
0.005542912006378174, | |
0.005518335819244385, | |
0.005485568046569824, | |
0.005489664077758789, | |
0.005513216018676758, | |
0.005493760108947754, | |
0.005499904155731201, | |
0.005504000186920166, | |
0.005485631942749023, | |
0.005499904155731201, | |
0.005472256183624268, | |
0.00546611213684082, | |
0.005494783878326416, | |
0.005493760108947754, | |
0.005492735862731934, | |
0.005480447769165039, | |
0.005465087890625, | |
0.005497856140136719, | |
0.005468160152435303, | |
0.005469120025634765, | |
0.005502975940704345, | |
0.00548963212966919, | |
0.005493760108947754, | |
0.005464064121246338, | |
0.005480447769165039, | |
0.005493760108947754, | |
0.005472256183624268, | |
0.005473279953002929, | |
0.005478400230407715, | |
0.005500959873199463, | |
0.0054906878471374515, | |
0.005496831893920898, | |
0.00546611213684082, | |
0.005497856140136719, | |
0.005489664077758789, | |
0.005472256183624268, | |
0.005470208168029785, | |
0.005476352214813233, | |
0.00550707197189331, | |
0.005506048202514649, | |
0.0054579200744628905, | |
0.005500927925109863, | |
0.005475327968597412, | |
0.005492735862731934, | |
0.005477375984191894, | |
0.005485568046569824, | |
0.005488639831542969, | |
0.005480447769165039, | |
0.005485568046569824, | |
0.005492735862731934, | |
0.005505023956298828, | |
0.005432320117950439, | |
0.005393407821655274, | |
0.005468160152435303, | |
0.005488639831542969, | |
0.005485568046569824, | |
0.005455872058868408, | |
0.005505023956298828 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 173.34389788039692 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.780996303709727e-08, | |
"ram": 3.707497627328849e-08, | |
"gpu": 3.419748767542851e-07, | |
"total": 4.468598160646709e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2237838.2751141735 | |
} | |
} | |
} | |
} |