IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
9781898 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": 911.638528,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 165,
"total": 0.9972501130104068,
"mean": 0.006043940078850949,
"stdev": 0.00023768503533442602,
"p50": 0.005967872142791748,
"p90": 0.0062650366783142085,
"p95": 0.006341631984710693,
"p99": 0.006853406810760498,
"values": [
0.006482944011688232,
0.005889023780822754,
0.006003647804260254,
0.005957632064819336,
0.006069248199462891,
0.005949440002441406,
0.006004735946655273,
0.005924863815307617,
0.005986303806304932,
0.005924863815307617,
0.005964831829071045,
0.005900288105010986,
0.006144000053405762,
0.005921792030334472,
0.005955584049224853,
0.005882880210876465,
0.0058429441452026365,
0.005735392093658447,
0.005804031848907471,
0.005837887763977051,
0.005868544101715088,
0.005896192073822021,
0.0059361281394958495,
0.0059023361206054685,
0.005980160236358643,
0.006203392028808594,
0.006164480209350586,
0.006097951889038086,
0.0062781119346618655,
0.006259712219238281,
0.0062566399574279785,
0.006236192226409912,
0.006251520156860352,
0.006258687973022461,
0.006198272228240966,
0.00622489595413208,
0.0062044157981872555,
0.0062863359451293946,
0.0063539199829101565,
0.006161407947540283,
0.006098944187164307,
0.00613478422164917,
0.006252543926239014,
0.006179840087890625,
0.006200319766998291,
0.006147071838378906,
0.006276095867156982,
0.006161407947540283,
0.006214719772338867,
0.006275072097778321,
0.006223872184753418,
0.006271999835968017,
0.006230016231536865,
0.006220799922943115,
0.006148096084594727,
0.006180863857269287,
0.006252543926239014,
0.006236159801483154,
0.006260735988616943,
0.006159359931945801,
0.006258687973022461,
0.006140927791595459,
0.006127615928649902,
0.00612556791305542,
0.006211584091186524,
0.006184959888458252,
0.006221824169158936,
0.006275072097778321,
0.006140927791595459,
0.006145088195800781,
0.006132736206054688,
0.0062044157981872555,
0.0061521921157836916,
0.00621779203414917,
0.006206463813781738,
0.006132736206054688,
0.006217728137969971,
0.006199295997619629,
0.006292479991912842,
0.006218751907348633,
0.0062679038047790524,
0.006216639995574951,
0.005915647983551026,
0.005880832195281982,
0.0059361281394958495,
0.005836800098419189,
0.005815296173095703,
0.005901311874389649,
0.00581331205368042,
0.005756896018981933,
0.005723135948181152,
0.005892096042633056,
0.0060590081214904785,
0.006030335903167725,
0.006041600227355957,
0.005857247829437256,
0.005928959846496582,
0.005851136207580566,
0.005992447853088379,
0.005967872142791748,
0.006097919940948486,
0.006153215885162353,
0.006077439785003662,
0.00601804780960083,
0.0061634559631347655,
0.00612550401687622,
0.0064440321922302245,
0.007069695949554444,
0.00683622407913208,
0.006822912216186523,
0.006856704235076904,
0.006851552009582519,
0.0067870721817016606,
0.00602726411819458,
0.005894144058227539,
0.005903359889984131,
0.005824512004852295,
0.005855231761932373,
0.005806079864501953,
0.005954559803009033,
0.005842912197113037,
0.00586956787109375,
0.005904384136199951,
0.005865471839904785,
0.005815296173095703,
0.0058726401329040525,
0.005830592155456543,
0.005834752082824707,
0.005857279777526855,
0.005790719985961914,
0.0058429760932922365,
0.005831679821014404,
0.00586240005493164,
0.005824512004852295,
0.005847040176391601,
0.005873663902282715,
0.005855231761932373,
0.0058091521263122555,
0.0058542399406433104,
0.005799935817718506,
0.005846015930175781,
0.005803008079528809,
0.005832704067230224,
0.005835775852203369,
0.0058091521263122555,
0.005819424152374268,
0.005834752082824707,
0.005884928226470947,
0.005840896129608154,
0.005850111961364746,
0.005846015930175781,
0.005851136207580566,
0.005814271926879883,
0.005846015930175781,
0.005830656051635743,
0.00587059211730957,
0.005848063945770264,
0.005863423824310303,
0.005823488235473633,
0.005810175895690918,
0.005851136207580566,
0.005798912048339844,
0.0058716158866882326,
0.005837823867797852,
0.005858304023742676
]
},
"throughput": {
"unit": "samples/s",
"value": 165.45498250375047
},
"energy": {
"unit": "kWh",
"cpu": 6.8359998070265e-08,
"ram": 3.737577110549519e-08,
"gpu": 3.583878984597672e-07,
"total": 4.6412366763552736e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2154598.1593537093
}
}
}
}