IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
76fdcc4 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": 839.602176,
"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.85788427734375,
"mean": 7.85788427734375,
"stdev": 0.0,
"p50": 7.85788427734375,
"p90": 7.85788427734375,
"p95": 7.85788427734375,
"p99": 7.85788427734375,
"values": [
7.85788427734375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.4501542701382498e-06,
"ram": 7.791044615936069e-07,
"gpu": 3.848058633999438e-06,
"total": 6.077317365731294e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1049.268224,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 185,
"total": 0.9950803532600404,
"mean": 0.005378812720324542,
"stdev": 0.00017668001245216202,
"p50": 0.005455872058868408,
"p90": 0.005577932834625244,
"p95": 0.005616844844818115,
"p99": 0.005668613300323486,
"values": [
0.005699584007263184,
0.005662720203399658,
0.005643263816833496,
0.005661695957183838,
0.0056514558792114256,
0.0056483840942382815,
0.005587967872619629,
0.0055582718849182125,
0.005602303981781006,
0.005628928184509278,
0.005557248115539551,
0.005483520030975342,
0.005497856140136719,
0.005495808124542236,
0.005496831893920898,
0.005576704025268555,
0.00551526403427124,
0.005455872058868408,
0.00537395191192627,
0.005313536167144775,
0.005336031913757324,
0.005444608211517334,
0.005403647899627686,
0.005452799797058106,
0.0054876160621643065,
0.005489664077758789,
0.005587967872619629,
0.00551423978805542,
0.005526527881622314,
0.00556441593170166,
0.005410816192626953,
0.005488639831542969,
0.005467135906219483,
0.005575679779052735,
0.005540863990783691,
0.005486623764038086,
0.005544960021972656,
0.005544960021972656,
0.005500895977020264,
0.005570559978485107,
0.005455872058868408,
0.005484543800354004,
0.005479423999786377,
0.005499904155731201,
0.005518335819244385,
0.005464064121246338,
0.005477375984191894,
0.0053821439743042,
0.005332992076873779,
0.00532480001449585,
0.005384191989898681,
0.005451776027679443,
0.005471231937408447,
0.005489664077758789,
0.005476352214813233,
0.005699552059173584,
0.005458943843841553,
0.005430304050445557,
0.005602303981781006,
0.005488639831542969,
0.005602303981781006,
0.005477375984191894,
0.005499904155731201,
0.005549056053161621,
0.005541952133178711,
0.00550707197189331,
0.005608448028564453,
0.005411839962005615,
0.005549056053161621,
0.005533696174621582,
0.005541888236999512,
0.0055244798660278325,
0.005455872058868408,
0.005563392162322998,
0.005529600143432617,
0.005501952171325684,
0.005409791946411133,
0.005342207908630371,
0.005499904155731201,
0.0054876160621643065,
0.005431295871734619,
0.005624832153320313,
0.00546611213684082,
0.005469183921813964,
0.005462016105651855,
0.005470208168029785,
0.005482463836669922,
0.005425183773040771,
0.005455872058868408,
0.00551423978805542,
0.005420032024383545,
0.0054579200744628905,
0.005548031806945801,
0.005540863990783691,
0.005618688106536865,
0.005488639831542969,
0.005537792205810547,
0.005527552127838135,
0.005511199951171875,
0.005549056053161621,
0.005492800235748291,
0.005544960021972656,
0.005609471797943116,
0.00546611213684082,
0.005443583965301513,
0.0054579200744628905,
0.005578752040863037,
0.005499904155731201,
0.005337088108062744,
0.005351424217224121,
0.0053309440612792965,
0.005214208126068115,
0.005352447986602784,
0.005421055793762207,
0.005298175811767578,
0.005150720119476319,
0.005157887935638428,
0.005125120162963868,
0.005186560153961181,
0.005175295829772949,
0.0052367358207702636,
0.005495808124542236,
0.00535756778717041,
0.005320703983306885,
0.005340159893035889,
0.00546611213684082,
0.005495808124542236,
0.005560319900512695,
0.0055808000564575196,
0.00522649621963501,
0.005180416107177735,
0.005223423957824707,
0.0051363840103149415,
0.005150720119476319,
0.005156864166259765,
0.005172224044799805,
0.005137407779693603,
0.00521830415725708,
0.00515993595123291,
0.0051363840103149415,
0.00516812801361084,
0.005131264209747314,
0.005142560005187988,
0.005102591991424561,
0.005163008213043213,
0.005104640007019043,
0.005128191947937012,
0.005142528057098389,
0.005180416107177735,
0.005141471862792969,
0.005164031982421875,
0.005150720119476319,
0.005124095916748047,
0.005142528057098389,
0.005149695873260498,
0.005119999885559082,
0.005145599842071533,
0.005179391860961914,
0.005179391860961914,
0.005157887935638428,
0.0051773438453674315,
0.00516096019744873,
0.005112832069396973,
0.005153791904449463,
0.0051066880226135255,
0.005173247814178467,
0.00510972785949707,
0.005169151782989502,
0.005123072147369385,
0.005139455795288086,
0.005128191947937012,
0.005102591991424561,
0.005163008213043213,
0.0050954241752624516,
0.005144576072692871,
0.005137407779693603,
0.005194752216339111,
0.005141568183898926,
0.005202943801879883,
0.005153791904449463,
0.005122047901153564,
0.005165056228637695,
0.005156864166259765,
0.005121024131774903,
0.005198847770690918
]
},
"throughput": {
"unit": "samples/s",
"value": 185.91463432466614
},
"energy": {
"unit": "kWh",
"cpu": 6.009678347786095e-08,
"ram": 3.285733442189861e-08,
"gpu": 3.7221828987817053e-07,
"total": 4.6517240777793007e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2149740.576352914
}
}
}
}