IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
fd3b289 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.958016,
"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.9997681307792665,
"mean": 0.006022699583007629,
"stdev": 0.00021880081048040827,
"p50": 0.0059658241271972655,
"p90": 0.00624179196357727,
"p95": 0.006298624038696289,
"p99": 0.0068574209928512556,
"values": [
0.006340608119964599,
0.006024191856384278,
0.006004735946655273,
0.006120448112487793,
0.006050816059112549,
0.006128640174865723,
0.006048768043518066,
0.006023168087005615,
0.006055935859680176,
0.006503424167633057,
0.006328320026397705,
0.006157311916351318,
0.006396927833557129,
0.006181888103485108,
0.0059996161460876465,
0.0059688959121704105,
0.005846015930175781,
0.005807104110717773,
0.005888000011444092,
0.005910528182983398,
0.0059688959121704105,
0.006046720027923584,
0.006062079906463623,
0.0059658241271972655,
0.006011871814727783,
0.0059391999244689945,
0.005971968173980713,
0.005913599967956543,
0.006065152168273926,
0.005973023891448975,
0.00603545618057251,
0.006002751827239991,
0.006244351863861084,
0.00624128007888794,
0.006200319766998291,
0.006236159801483154,
0.006201344013214111,
0.006252543926239014,
0.006206463813781738,
0.0061521921157836916,
0.006111231803894043,
0.005904352188110352,
0.00590444803237915,
0.005974016189575195,
0.005938176155090332,
0.005884928226470947,
0.005990399837493897,
0.005938176155090332,
0.0059658241271972655,
0.0060026879310607914,
0.006082560062408447,
0.0060364799499511715,
0.006043647766113281,
0.006014976024627685,
0.005987328052520752,
0.006136864185333252,
0.0062259202003479,
0.006190080165863037,
0.006293504238128662,
0.006151167869567871,
0.006248447895050049,
0.006190080165863037,
0.006116352081298828,
0.006100959777832031,
0.006181888103485108,
0.006182911872863769,
0.006154240131378174,
0.00628326416015625,
0.0060293121337890625,
0.005940224170684814,
0.005890048027038574,
0.005985280036926269,
0.005914624214172363,
0.005953536033630371,
0.005950463771820068,
0.005931007862091065,
0.005950463771820068,
0.005954559803009033,
0.006159359931945801,
0.006298624038696289,
0.006238272190093994,
0.00670307207107544,
0.007098368167877197,
0.007456768035888672,
0.006211584091186524,
0.006262784004211426,
0.006146048069000244,
0.0061337599754333495,
0.006242303848266601,
0.006067200183868408,
0.006096896171569824,
0.005940224170684814,
0.005944320201873779,
0.006077439785003662,
0.006143968105316162,
0.005911551952362061,
0.0058726401329040525,
0.005818367958068848,
0.005910528182983398,
0.005948416233062744,
0.00603545618057251,
0.0060590081214904785,
0.006085631847381592,
0.0060631041526794435,
0.00622489595413208,
0.006298624038696289,
0.006172671794891358,
0.005937151908874512,
0.005933055877685547,
0.005829631805419922,
0.005911551952362061,
0.005859327793121338,
0.005974080085754395,
0.0067276802062988285,
0.006088704109191895,
0.0059064321517944334,
0.005892096042633056,
0.005896192073822021,
0.005880832195281982,
0.005855231761932373,
0.005914624214172363,
0.00582860803604126,
0.0058726401329040525,
0.005835775852203369,
0.005852159976959229,
0.0057998719215393065,
0.005839871883392334,
0.005804031848907471,
0.005859263896942139,
0.005844992160797119,
0.005868544101715088,
0.005863423824310303,
0.005858304023742676,
0.005834784030914307,
0.0058419198989868165,
0.005881855964660645,
0.005843967914581299,
0.005883903980255127,
0.005826560020446778,
0.005897215843200684,
0.005840896129608154,
0.0058716158866882326,
0.0058388481140136715,
0.0058716158866882326,
0.005849088191986084,
0.005846015930175781,
0.005853184223175049,
0.005860352039337159,
0.005868544101715088,
0.005856256008148194,
0.005874688148498535,
0.005808127880096436,
0.005857279777526855,
0.005850111961364746,
0.005897215843200684,
0.0058388481140136715,
0.005903359889984131,
0.005825535774230957,
0.005874688148498535,
0.005853184223175049,
0.00587059211730957,
0.00581324815750122,
0.005863423824310303,
0.005839871883392334,
0.005849088191986084,
0.005815296173095703
]
},
"throughput": {
"unit": "samples/s",
"value": 166.03849921742534
},
"energy": {
"unit": "kWh",
"cpu": 6.80183884741246e-08,
"ram": 3.718930128311983e-08,
"gpu": 3.569575014023018e-07,
"total": 4.6216519115954627e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2163728.509044692
}
}
}
}