IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
038a458 verified
raw
history blame
13.9 kB
{
"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.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 827.04384,
"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.48086376953125,
"mean": 7.48086376953125,
"stdev": 0.0,
"p50": 7.48086376953125,
"p90": 7.48086376953125,
"p95": 7.48086376953125,
"p99": 7.48086376953125,
"values": [
7.48086376953125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.4901708180555634e-06,
"ram": 7.889666662433563e-07,
"gpu": 1.789445876000488e-06,
"total": 4.068583360299408e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1036.65664,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 187,
"total": 0.9975503406524664,
"mean": 0.005334493800280566,
"stdev": 0.0001801231550884526,
"p50": 0.00531763219833374,
"p90": 0.005546374320983887,
"p95": 0.005561344146728516,
"p99": 0.0056899585056304925,
"values": [
0.0055582718849182125,
0.005571584224700928,
0.005534719944000244,
0.0055541439056396484,
0.0055552000999450684,
0.005541888236999512,
0.005541888236999512,
0.005504000186920166,
0.005543935775756836,
0.005544960021972656,
0.005527552127838135,
0.005445631980895996,
0.005445631980895996,
0.005725183963775635,
0.005684224128723145,
0.005575679779052735,
0.0054579200744628905,
0.005339136123657226,
0.005339136123657226,
0.005436416149139404,
0.005420032024383545,
0.005517312049865723,
0.005548031806945801,
0.005516287803649903,
0.005288959980010987,
0.005307392120361328,
0.005246975898742676,
0.005180416107177735,
0.005216256141662597,
0.005447679996490478,
0.00551423978805542,
0.005565440177917481,
0.0055244798660278325,
0.0055214080810546875,
0.005516287803649903,
0.005499904155731201,
0.005506048202514649,
0.005455935955047607,
0.00547430419921875,
0.00546611213684082,
0.0054906878471374515,
0.005561344146728516,
0.005494783878326416,
0.005408768177032471,
0.005379072189331055,
0.00531763219833374,
0.005462016105651855,
0.00537500810623169,
0.005495872020721436,
0.005444608211517334,
0.005445631980895996,
0.005437439918518067,
0.005468160152435303,
0.0054568958282470706,
0.0055244798660278325,
0.005560319900512695,
0.005547008037567139,
0.005517312049865723,
0.0055101442337036136,
0.00552243185043335,
0.005464064121246338,
0.005420095920562744,
0.005434368133544922,
0.005484608173370362,
0.005482495784759522,
0.0054917120933532714,
0.0062156801223754886,
0.005545951843261719,
0.005500927925109863,
0.005407743930816651,
0.005348351955413819,
0.005408768177032471,
0.005212160110473632,
0.0053647360801696775,
0.005516287803649903,
0.005649407863616943,
0.005451776027679443,
0.005388288021087646,
0.005467135906219483,
0.005446656227111817,
0.005438464164733887,
0.005473279953002929,
0.005446720123291016,
0.005483520030975342,
0.005448703765869141,
0.005496831893920898,
0.005561344146728516,
0.005552159786224365,
0.005631999969482422,
0.005550079822540284,
0.005541920185089111,
0.005593088150024414,
0.005506048202514649,
0.005202943801879883,
0.005283840179443359,
0.0052336640357971195,
0.005171199798583984,
0.005107711791992187,
0.0052295680046081545,
0.005202943801879883,
0.005175295829772949,
0.005117951869964599,
0.005114880084991455,
0.005083136081695557,
0.005037055969238281,
0.005319680213928223,
0.0054241280555725096,
0.005359615802764893,
0.005134335994720459,
0.005147615909576416,
0.005155839920043945,
0.005244927883148193,
0.005210112094879151,
0.005275648117065429,
0.005255167961120606,
0.005302207946777344,
0.005257215976715088,
0.005315584182739258,
0.005337088108062744,
0.005472256183624268,
0.00546611213684082,
0.005276671886444092,
0.005243904113769531,
0.005210112094879151,
0.005185535907745361,
0.005206016063690186,
0.005186560153961181,
0.005214208126068115,
0.0052070398330688475,
0.005210112094879151,
0.005146624088287354,
0.005186560153961181,
0.005208064079284668,
0.005145535945892334,
0.00516096019744873,
0.005186560153961181,
0.0051363840103149415,
0.005356544017791748,
0.005223392009735107,
0.005172224044799805,
0.005156864166259765,
0.005141471862792969,
0.005149695873260498,
0.005108736038208008,
0.005141503810882568,
0.005155839920043945,
0.005114880084991455,
0.005114880084991455,
0.005138432025909424,
0.005146624088287354,
0.005116928100585938,
0.005149695873260498,
0.005164031982421875,
0.005299200057983398,
0.005174272060394287,
0.005223423957824707,
0.005158912181854248,
0.005180416107177735,
0.005201920032501221,
0.005173247814178467,
0.0051968002319335935,
0.0051743040084838866,
0.00516096019744873,
0.005148672103881836,
0.005128191947937012,
0.0051404800415039064,
0.005119999885559082,
0.005108736038208008,
0.005108736038208008,
0.005165056228637695,
0.00511897611618042,
0.005174272060394287,
0.005157887935638428,
0.005131264209747314,
0.0051363840103149415,
0.005123072147369385,
0.005129216194152832,
0.0051138877868652345,
0.005137407779693603,
0.0051333122253417966,
0.005111807823181152,
0.005121024131774903,
0.0051221117973327636,
0.005192704200744629,
0.005165056228637695,
0.005158912181854248,
0.005153791904449463
]
},
"throughput": {
"unit": "samples/s",
"value": 187.45921120901957
},
"energy": {
"unit": "kWh",
"cpu": 5.760040112257289e-08,
"ram": 3.149244679844077e-08,
"gpu": 3.417761633883495e-07,
"total": 4.3086901130936307e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2320890.9755684473
}
}
}
}