IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
1f3a0d6 verified
raw
history blame
13.2 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.3.1+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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.293824,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.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.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 876.593152,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 196,
"total": 1.0000388207435609,
"mean": 0.005102238881344698,
"stdev": 0.00016139082089526284,
"p50": 0.005104640007019043,
"p90": 0.0052567200660705565,
"p95": 0.005331456065177917,
"p99": 0.005748377704620363,
"values": [
0.005894144058227539,
0.005328896045684814,
0.005437439918518067,
0.005367839813232422,
0.00536575984954834,
0.005377024173736572,
0.005384191989898681,
0.005339136123657226,
0.005375999927520752,
0.005320703983306885,
0.005745664119720459,
0.005203968048095703,
0.0051998720169067385,
0.004988927841186524,
0.004977727890014648,
0.004974592208862305,
0.004951039791107178,
0.004968448162078858,
0.004976640224456787,
0.004964352130889893,
0.0049387521743774416,
0.005319680213928223,
0.005100543975830078,
0.004967423915863037,
0.004946944236755371,
0.004952064037322998,
0.004957183837890625,
0.004978687763214112,
0.0049428482055664065,
0.004936768054962158,
0.0049530878067016604,
0.0049909758567810054,
0.004944896221160889,
0.004974592208862305,
0.004960256099700928,
0.004985856056213379,
0.0049489917755126955,
0.004946944236755371,
0.004932608127593994,
0.00497049617767334,
0.004922368049621582,
0.004974592208862305,
0.0049725441932678225,
0.005017600059509277,
0.004958208084106445,
0.004922368049621582,
0.004966400146484375,
0.004984831809997559,
0.004986879825592041,
0.004930560111999512,
0.004974592208862305,
0.004958208084106445,
0.004964352130889893,
0.004964352130889893,
0.004974592208862305,
0.004958303928375244,
0.004971519947052002,
0.005047296047210693,
0.004933631896972656,
0.004974592208862305,
0.004981760025024414,
0.004947968006134033,
0.005007359981536865,
0.004989952087402344,
0.0050165758132934574,
0.004960256099700928,
0.004965375900268554,
0.004984831809997559,
0.004978752136230469,
0.004965375900268554,
0.004989952087402344,
0.0049489917755126955,
0.0049827837944030765,
0.004944992065429687,
0.004960256099700928,
0.004934656143188477,
0.004978687763214112,
0.00495411205291748,
0.004955135822296143,
0.004927487850189209,
0.0050503678321838375,
0.0049725441932678225,
0.00496230411529541,
0.004944896221160889,
0.004980735778808594,
0.0049500160217285155,
0.0049459199905395506,
0.004956160068511963,
0.004964352130889893,
0.004965375900268554,
0.004968448162078858,
0.0049459199905395506,
0.004959231853485108,
0.004975615978240967,
0.0049428482055664065,
0.00495411205291748,
0.004940800189971924,
0.004959231853485108,
0.004940800189971924,
0.004959231853485108,
0.004929535865783692,
0.004971519947052002,
0.004940800189971924,
0.004937727928161621,
0.004935679912567138,
0.004981760025024414,
0.004951039791107178,
0.004971519947052002,
0.004966400146484375,
0.00497049617767334,
0.004947968006134033,
0.005067776203155518,
0.0052091522216796875,
0.005248000144958496,
0.005220352172851562,
0.0052070398330688475,
0.005262335777282715,
0.005201920032501221,
0.0052070398330688475,
0.005243904113769531,
0.005213183879852295,
0.005228544235229492,
0.005257247924804687,
0.005184512138366699,
0.005191679954528809,
0.005222400188446045,
0.005234687805175781,
0.005221375942230225,
0.005127168178558349,
0.005145599842071533,
0.005108736038208008,
0.005123072147369385,
0.005158912181854248,
0.005111807823181152,
0.0051363840103149415,
0.005187583923339844,
0.00522649621963501,
0.005197824001312256,
0.005288959980010987,
0.00522649621963501,
0.005224448204040527,
0.005799935817718506,
0.0052930560111999515,
0.00520908784866333,
0.0051875200271606445,
0.005291007995605469,
0.005188608169555664,
0.005184512138366699,
0.00530841588973999,
0.005189631938934326,
0.005206016063690186,
0.005232639789581299,
0.005187551975250244,
0.005201920032501221,
0.00521727991104126,
0.005230591773986816,
0.005208064079284668,
0.005193664073944092,
0.005220352172851562,
0.005206016063690186,
0.005186528205871582,
0.0052111358642578124,
0.005186560153961181,
0.005161983966827393,
0.005216256141662597,
0.0051660799980163576,
0.005172224044799805,
0.005180416107177735,
0.005281792163848877,
0.005165056228637695,
0.005192704200744629,
0.005234687805175781,
0.005179391860961914,
0.005180416107177735,
0.005214208126068115,
0.00516099214553833,
0.005171199798583984,
0.005221375942230225,
0.00516812801361084,
0.0051701760292053225,
0.005190720081329345,
0.005212160110473632,
0.005187583923339844,
0.00521830415725708,
0.005256192207336426,
0.005185535907745361,
0.005248000144958496,
0.00521830415725708,
0.005185535907745361,
0.005182464122772217,
0.005191679954528809,
0.005165120124816894,
0.005230591773986816,
0.005202879905700683,
0.005194752216339111,
0.005238783836364746
]
},
"throughput": {
"unit": "samples/s",
"value": 195.99239142963245
},
"energy": {
"unit": "kWh",
"cpu": 5.944516426987118e-08,
"ram": 3.25015305837951e-08,
"gpu": 3.4258638517999875e-07,
"total": 4.345330800336651e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2301320.7646297626
}
}
}
}