IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
b1b2798 verified
raw
history blame
13.8 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.4.1+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-212.873.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.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 833.26976,
"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.66964453125,
"mean": 7.66964453125,
"stdev": 0.0,
"p50": 7.66964453125,
"p90": 7.66964453125,
"p95": 7.66964453125,
"p99": 7.66964453125,
"values": [
7.66964453125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.965953343749956e-06,
"ram": 1.609900794084752e-06,
"gpu": 3.1119469340000483e-06,
"total": 7.687801071834757e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1042.161664,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 186,
"total": 0.9970593323707577,
"mean": 0.005360534045004075,
"stdev": 0.0002284536061678488,
"p50": 0.005396479845046997,
"p90": 0.005599232196807862,
"p95": 0.005688320159912109,
"p99": 0.006049075245857238,
"values": [
0.005692416191101074,
0.005602303981781006,
0.005748672008514404,
0.005573631763458252,
0.005694464206695556,
0.0056360321044921875,
0.005602303981781006,
0.005682176113128662,
0.005596127986907959,
0.005654528141021729,
0.005583871841430664,
0.005599232196807862,
0.005532671928405761,
0.005483520030975342,
0.00552243185043335,
0.005505023956298828,
0.005690368175506591,
0.0053975038528442385,
0.005350399971008301,
0.005407743930816651,
0.005435391902923584,
0.0054579200744628905,
0.005573631763458252,
0.005550079822540284,
0.0059391999244689945,
0.006048768043518066,
0.005595136165618897,
0.005465087890625,
0.005390336036682129,
0.0054568638801574705,
0.005489664077758789,
0.005545983791351319,
0.005618688106536865,
0.005529600143432617,
0.005807104110717773,
0.00550707197189331,
0.005540863990783691,
0.005506048202514649,
0.005440512180328369,
0.005527552127838135,
0.005543935775756836,
0.006213632106781006,
0.005502975940704345,
0.005501952171325684,
0.005458943843841553,
0.0053309440612792965,
0.005385280132293701,
0.005433343887329102,
0.0054200000762939455,
0.005462016105651855,
0.005472256183624268,
0.0054477438926696774,
0.005516287803649903,
0.005444608211517334,
0.00550707197189331,
0.005593088150024414,
0.005541888236999512,
0.005934080123901367,
0.005499904155731201,
0.005519360065460205,
0.005576704025268555,
0.0055101442337036136,
0.00552243185043335,
0.0054568958282470706,
0.0055296320915222165,
0.005599232196807862,
0.0054784960746765135,
0.005519360065460205,
0.0054876160621643065,
0.0055316481590271,
0.005420032024383545,
0.0053002238273620605,
0.005366720199584961,
0.005478400230407715,
0.005488639831542969,
0.0055101442337036136,
0.005520319938659668,
0.005477375984191894,
0.005409791946411133,
0.005464064121246338,
0.005618720054626465,
0.0054651198387145996,
0.005392384052276611,
0.005448703765869141,
0.0053944320678710935,
0.005434368133544922,
0.005544960021972656,
0.005477375984191894,
0.005538815975189209,
0.005628928184509278,
0.005465087890625,
0.005567488193511963,
0.005534719944000244,
0.006050816059112549,
0.005468160152435303,
0.005493728160858155,
0.00551526403427124,
0.005447679996490478,
0.005450751781463623,
0.005476352214813233,
0.005385216236114502,
0.005390336036682129,
0.00531763219833374,
0.0052633600234985355,
0.005206016063690186,
0.005197824001312256,
0.005344255924224854,
0.005395455837249756,
0.005198847770690918,
0.0051036162376403805,
0.005108736038208008,
0.005131264209747314,
0.0052408318519592285,
0.005213183879852295,
0.0052715520858764645,
0.005336063861846924,
0.005252096176147461,
0.005244927883148193,
0.005311488151550293,
0.005380095958709717,
0.00553984022140503,
0.005183487892150879,
0.005148672103881836,
0.005175295829772949,
0.0051435518264770505,
0.005238783836364746,
0.005193727970123291,
0.0051363840103149415,
0.005156864166259765,
0.005169151782989502,
0.0050769920349121095,
0.005144512176513672,
0.005182464122772217,
0.005164031982421875,
0.005125120162963868,
0.005141503810882568,
0.005123072147369385,
0.005089280128479004,
0.0050360321998596195,
0.0050954241752624516,
0.005122047901153564,
0.005054463863372802,
0.00506982421875,
0.00506883192062378,
0.005091328144073487,
0.005100543975830078,
0.005071872234344482,
0.005108672142028809,
0.005111807823181152,
0.00510975980758667,
0.005095456123352051,
0.005083136081695557,
0.005081088066101074,
0.005047296047210693,
0.005101568222045898,
0.00506879997253418,
0.005098495960235596,
0.005037055969238281,
0.005086207866668701,
0.005079040050506592,
0.005093376159667969,
0.005107711791992187,
0.005097472190856934,
0.005048319816589355,
0.005094399929046631,
0.005127168178558349,
0.0050769920349121095,
0.005092288017272949,
0.005129216194152832,
0.00511897611618042,
0.005119999885559082,
0.005096447944641113,
0.005062655925750732,
0.005026815891265869,
0.0051701760292053225,
0.005089280128479004,
0.005174272060394287,
0.005089280128479004,
0.005070847988128662,
0.005132287979125977,
0.005265408039093018,
0.005152768135070801,
0.005130239963531494,
0.005145599842071533,
0.0052551040649414064,
0.005075967788696289
]
},
"throughput": {
"unit": "samples/s",
"value": 186.54857736273172
},
"energy": {
"unit": "kWh",
"cpu": 6.029015793700888e-08,
"ram": 3.28317665263469e-08,
"gpu": 3.4455414769696804e-07,
"total": 4.3767607216032383e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2284794.768569603
}
}
}
}