IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
032b726 verified
raw
history blame
14.2 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.25696,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.220-209.869.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.0",
"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": 827.26912,
"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.46134033203125,
"mean": 7.46134033203125,
"stdev": 0.0,
"p50": 7.46134033203125,
"p90": 7.46134033203125,
"p95": 7.46134033203125,
"p99": 7.46134033203125,
"values": [
7.46134033203125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.4571563694434847e-06,
"ram": 7.829513956243275e-07,
"gpu": 1.8397236940005668e-06,
"total": 4.079831459068379e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1036.619776,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 194,
"total": 1.0002515802383423,
"mean": 0.005155935980610012,
"stdev": 0.00017839444106018633,
"p50": 0.005128175973892212,
"p90": 0.00521256947517395,
"p95": 0.005398528146743773,
"p99": 0.005841551222801208,
"values": [
0.00582144021987915,
0.005818399906158447,
0.005808127880096436,
0.0057784318923950195,
0.005835807800292968,
0.005837823867797852,
0.005804031848907471,
0.0062494721412658695,
0.0052367358207702636,
0.005057536125183106,
0.004957183837890625,
0.004955135822296143,
0.004915200233459473,
0.005126143932342529,
0.005183487892150879,
0.005094399929046631,
0.005082111835479736,
0.005128255844116211,
0.005091328144073487,
0.005090303897857666,
0.0051036162376403805,
0.005094399929046631,
0.005169151782989502,
0.00506774377822876,
0.00510975980758667,
0.005098495960235596,
0.005108736038208008,
0.005089280128479004,
0.005099520206451416,
0.00510975980758667,
0.005074944019317627,
0.00510975980758667,
0.005096479892730713,
0.005116928100585938,
0.005074944019317627,
0.005116928100585938,
0.005108736038208008,
0.005057536125183106,
0.005122047901153564,
0.005094399929046631,
0.005074944019317627,
0.005074944019317627,
0.0051435518264770505,
0.005208064079284668,
0.0051138558387756345,
0.005150720119476319,
0.005571584224700928,
0.005155839920043945,
0.005155839920043945,
0.005107711791992187,
0.005104640007019043,
0.005130239963531494,
0.005167103767395019,
0.005257215976715088,
0.005128191947937012,
0.005121024131774903,
0.005075967788696289,
0.00506982421875,
0.005082111835479736,
0.005093376159667969,
0.005097472190856934,
0.005099520206451416,
0.005112832069396973,
0.005108736038208008,
0.00506982421875,
0.005047296047210693,
0.005891071796417236,
0.0050165758132934574,
0.004983808040618896,
0.004944928169250488,
0.0049387521743774416,
0.00491315221786499,
0.004936704158782959,
0.004925439834594727,
0.0049909758567810054,
0.004997119903564453,
0.005005375862121582,
0.004905983924865722,
0.0049162240028381345,
0.0048865280151367185,
0.004892672061920166,
0.004884479999542236,
0.005111807823181152,
0.005144639968872071,
0.00511078405380249,
0.005142528057098389,
0.005135359764099121,
0.005112832069396973,
0.005127168178558349,
0.0051476478576660155,
0.005146624088287354,
0.0051660799980163576,
0.005164031982421875,
0.005146624088287354,
0.005128191947937012,
0.005121024131774903,
0.00515174388885498,
0.005121024131774903,
0.005129216194152832,
0.005178368091583252,
0.0051138558387756345,
0.0051404800415039064,
0.005149695873260498,
0.005169151782989502,
0.005116991996765137,
0.005111807823181152,
0.0051435518264770505,
0.0051036162376403805,
0.005107711791992187,
0.005152768135070801,
0.005162943840026855,
0.005154816150665284,
0.005122047901153564,
0.005179391860961914,
0.0051138558387756345,
0.005115903854370117,
0.005173247814178467,
0.005239808082580567,
0.005193727970123291,
0.005167103767395019,
0.005201920032501221,
0.005157887935638428,
0.005182464122772217,
0.005213183879852295,
0.005114880084991455,
0.005137407779693603,
0.005169151782989502,
0.005122047901153564,
0.005112832069396973,
0.005210112094879151,
0.005203968048095703,
0.005099520206451416,
0.005305344104766845,
0.0051968002319335935,
0.005173215866088867,
0.00511897611618042,
0.005189631938934326,
0.005137407779693603,
0.005135359764099121,
0.00511897611618042,
0.005213183879852295,
0.005169151782989502,
0.005152768135070801,
0.005156864166259765,
0.005099520206451416,
0.005167103767395019,
0.005148672103881836,
0.005148672103881836,
0.005122047901153564,
0.005090303897857666,
0.005179391860961914,
0.005111807823181152,
0.005130239963531494,
0.005129248142242432,
0.005135359764099121,
0.00510975980758667,
0.0051363840103149415,
0.005180416107177735,
0.005127168178558349,
0.005144576072692871,
0.0051404800415039064,
0.005148672103881836,
0.005280767917633057,
0.005190656185150146,
0.0052111358642578124,
0.005129216194152832,
0.005261312007904053,
0.005236767768859864,
0.0051281599998474125,
0.005173247814178467,
0.005173247814178467,
0.005134335994720459,
0.005123007774353028,
0.00510975980758667,
0.005130239963531494,
0.005091328144073487,
0.005119999885559082,
0.005163008213043213,
0.005155839920043945,
0.005156864166259765,
0.005169151782989502,
0.005206016063690186,
0.005139455795288086,
0.005144512176513672,
0.005213183879852295,
0.005108736038208008,
0.005119999885559082,
0.00515993595123291,
0.005171199798583984,
0.005098495960235596,
0.005116960048675537,
0.005123072147369385,
0.005099520206451416,
0.005104640007019043
]
},
"throughput": {
"unit": "samples/s",
"value": 193.95120570944084
},
"energy": {
"unit": "kWh",
"cpu": 6.050278225977641e-08,
"ram": 3.307930646983851e-08,
"gpu": 3.5787727042856873e-07,
"total": 4.5145935915818367e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2215038.806294006
}
}
}
}