IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
024c50b verified
raw
history blame
11.9 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "image-classification",
"model": "google/vit-base-patch16-224",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 912.15872,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 166,
"total": 0.9950853109359744,
"mean": 0.005994489824915506,
"stdev": 0.00024171840140222532,
"p50": 0.006017535924911499,
"p90": 0.006278656005859375,
"p95": 0.006374215960502624,
"p99": 0.006617139267921447,
"values": [
0.006685696125030518,
0.006168704032897949,
0.006252543926239014,
0.006273056030273437,
0.006243328094482422,
0.006406144142150879,
0.006177792072296143,
0.006900735855102539,
0.0063498239517211915,
0.005894144058227539,
0.005980160236358643,
0.005847040176391601,
0.006106112003326416,
0.006077439785003662,
0.006456319808959961,
0.006136832237243653,
0.00619212818145752,
0.005996672153472901,
0.006025216102600098,
0.006057983875274659,
0.006121471881866455,
0.006202367782592774,
0.006288288116455078,
0.006418432235717773,
0.006127615928649902,
0.006158527851104737,
0.006045695781707764,
0.006121471881866455,
0.006065152168273926,
0.006170623779296875,
0.006352896213531494,
0.0058716158866882326,
0.005962751865386963,
0.005893119812011719,
0.006131711959838867,
0.0060999679565429685,
0.006114304065704346,
0.006162432193756104,
0.00623635196685791,
0.006102015972137451,
0.006175776004791259,
0.006111231803894043,
0.0060928001403808595,
0.005966847896575928,
0.006039552211761475,
0.006089632034301758,
0.006312960147857666,
0.006017024040222168,
0.00591974401473999,
0.00613478422164917,
0.006057983875274659,
0.0063610877990722655,
0.006261760234832763,
0.00621670389175415,
0.006174719810485839,
0.006254591941833496,
0.0061265921592712404,
0.005793791770935058,
0.005780479907989502,
0.006378592014312744,
0.006165503978729248,
0.006299647808074951,
0.006166528224945069,
0.006079487800598145,
0.006205567836761475,
0.005970943927764893,
0.006090816020965576,
0.006277120113372803,
0.006280191898345947,
0.006158336162567139,
0.006145023822784424,
0.006198272228240966,
0.00601804780960083,
0.0060366721153259275,
0.006071296215057373,
0.006141952037811279,
0.006081535816192627,
0.006100992202758789,
0.006091775894165039,
0.006107135772705078,
0.006053887844085694,
0.006207488059997559,
0.006180768013000488,
0.006023039817810058,
0.006319168090820312,
0.006448128223419189,
0.006177792072296143,
0.006071296215057373,
0.006110208034515381,
0.006131711959838867,
0.006077439785003662,
0.005983232021331787,
0.005908480167388916,
0.00572211217880249,
0.005736447811126709,
0.005602208137512207,
0.005594111919403076,
0.0056514558792114256,
0.005693439960479736,
0.00568012809753418,
0.00551423978805542,
0.005500927925109863,
0.005605375766754151,
0.005766143798828125,
0.005805056095123291,
0.005773375988006592,
0.006135807991027832,
0.005944320201873779,
0.006003712177276611,
0.0059985918998718265,
0.006203392028808594,
0.00611846399307251,
0.00658022403717041,
0.005865471839904785,
0.00586137580871582,
0.005881855964660645,
0.005827583789825439,
0.005867519855499268,
0.005844992160797119,
0.005937151908874512,
0.005848063945770264,
0.005851136207580566,
0.005818367958068848,
0.005966847896575928,
0.006437888145446777,
0.005982207775115967,
0.005765024185180664,
0.005773344039916992,
0.0057825279235839844,
0.005757952213287353,
0.0057712640762329105,
0.0058297600746154785,
0.005833727836608887,
0.005829631805419922,
0.005795872211456299,
0.00573961591720581,
0.005799935817718506,
0.005722047805786133,
0.005735424041748047,
0.0058009600639343266,
0.005727231979370117,
0.005774400234222412,
0.005901311874389649,
0.005983232021331787,
0.005745696067810059,
0.005780384063720703,
0.005694623947143555,
0.0057118721008300784,
0.005639167785644531,
0.005675007820129394,
0.00570143985748291,
0.005669727802276612,
0.005718016147613526,
0.005691359996795655,
0.005718016147613526,
0.005661695957183838,
0.005675007820129394,
0.005691391944885254,
0.00566476821899414,
0.005702847957611084,
0.005817344188690185,
0.0056945281028747555,
0.005873663902282715,
0.00570470380783081,
0.005698560237884521,
0.005691391944885254
]
},
"throughput": {
"unit": "samples/s",
"value": 166.81986777983985
},
"energy": {
"unit": "kWh",
"cpu": 6.57637122972512e-08,
"ram": 3.595706279459894e-08,
"gpu": 3.5708979184444596e-07,
"total": 4.5881056693629614e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2179548.7551158466
}
}
}
}