IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
ec681c7 verified
raw
history blame
14 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.4.1+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.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.224-212.876.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.5.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.0",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 844.361728,
"max_global_vram": 1037.565952,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"count": 1,
"total": 0.26019534301757813,
"mean": 0.26019534301757813,
"stdev": 0.0,
"p50": 0.26019534301757813,
"p90": 0.26019534301757813,
"p95": 0.26019534301757813,
"p99": 0.26019534301757813,
"values": [
0.26019534301757813
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 3.0603127053028507e-06,
"ram": 1.6583531579253895e-06,
"gpu": 5.5336155380114604e-06,
"total": 1.0252281401239702e-05
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1053.175808,
"max_global_vram": 1056.44032,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 189,
"total": 0.9981441297531128,
"mean": 0.0052811858717095915,
"stdev": 0.00022347648937540832,
"p50": 0.005356544017791748,
"p90": 0.005530419349670411,
"p95": 0.005554380893707275,
"p99": 0.005581660194396973,
"values": [
0.005381120204925537,
0.005386271953582764,
0.005430272102355957,
0.005389311790466309,
0.005435391902923584,
0.005388288021087646,
0.005384160041809082,
0.005347328186035156,
0.0053647360801696775,
0.00532480001449585,
0.005390336036682129,
0.005268479824066162,
0.005265408039093018,
0.005215167999267578,
0.00519375991821289,
0.005210112094879151,
0.005237760066986084,
0.005259263992309571,
0.005216256141662597,
0.005119999885559082,
0.00511897611618042,
0.005061632156372071,
0.005126143932342529,
0.005227519989013672,
0.005157887935638428,
0.00542310380935669,
0.0055203838348388675,
0.005578752040863037,
0.0055214080810546875,
0.005571648120880127,
0.0055101442337036136,
0.005469183921813964,
0.005419007778167725,
0.005455872058868408,
0.005497856140136719,
0.005552127838134766,
0.005496831893920898,
0.005547008037567139,
0.005570591926574707,
0.0055511040687561035,
0.0055808000564575196,
0.005529600143432617,
0.005471199989318848,
0.005518335819244385,
0.005492735862731934,
0.00546611213684082,
0.005488639831542969,
0.005494783878326416,
0.0054579200744628905,
0.005347328186035156,
0.005305344104766845,
0.005311488151550293,
0.005356544017791748,
0.0054579200744628905,
0.00542310380935669,
0.005444608211517334,
0.005409791946411133,
0.005417984008789062,
0.005506144046783447,
0.005445631980895996,
0.005444640159606933,
0.005565440177917481,
0.005547008037567139,
0.005587967872619629,
0.005459968090057373,
0.00551423978805542,
0.005533696174621582,
0.005494783878326416,
0.005434368133544922,
0.005356544017791748,
0.005443583965301513,
0.00550707197189331,
0.0055214080810546875,
0.005476352214813233,
0.00547430419921875,
0.0055337600708007815,
0.005526527881622314,
0.005463039875030518,
0.0053637118339538575,
0.00538316822052002,
0.005379072189331055,
0.005493760108947754,
0.00542310380935669,
0.005473279953002929,
0.0055623679161071774,
0.005435391902923584,
0.005410783767700196,
0.0054241280555725096,
0.005378047943115235,
0.005430304050445557,
0.005429247856140137,
0.005445631980895996,
0.005410816192626953,
0.005467135906219483,
0.005449728012084961,
0.005553152084350586,
0.005500927925109863,
0.0055552000999450684,
0.005597184181213379,
0.005574656009674072,
0.005545983791351319,
0.005533696174621582,
0.005471231937408447,
0.005511168003082275,
0.0054988799095153805,
0.00547430419921875,
0.00546611213684082,
0.005322751998901368,
0.005463039875030518,
0.005481472015380859,
0.005356544017791748,
0.005390336036682129,
0.005312511920928955,
0.005286911964416504,
0.0051998720169067385,
0.005347328186035156,
0.005416959762573242,
0.00526643180847168,
0.005150720119476319,
0.005117951869964599,
0.005137407779693603,
0.005092351913452148,
0.005173247814178467,
0.005321728229522705,
0.005161983966827393,
0.005119999885559082,
0.005111807823181152,
0.005248000144958496,
0.005479423999786377,
0.005501952171325684,
0.005433343887329102,
0.005273600101470947,
0.005231616020202637,
0.00517632007598877,
0.005111807823181152,
0.005097472190856934,
0.005141503810882568,
0.0050954241752624516,
0.0050841598510742185,
0.005093376159667969,
0.005155839920043945,
0.005096447944641113,
0.0050769920349121095,
0.005125152111053467,
0.005071872234344482,
0.005086143970489502,
0.005092351913452148,
0.005146624088287354,
0.005075967788696289,
0.0050954241752624516,
0.005108672142028809,
0.00515993595123291,
0.005088255882263183,
0.005088255882263183,
0.005086175918579102,
0.005061632156372071,
0.005079040050506592,
0.005074944019317627,
0.0050954241752624516,
0.005058559894561767,
0.005004288196563721,
0.004896768093109131,
0.004901887893676758,
0.004874239921569825,
0.004900864124298096,
0.004881408214569092,
0.004902912139892578,
0.004900864124298096,
0.004887551784515381,
0.004891647815704346,
0.004883456230163574,
0.004910079956054687,
0.0048855037689208985,
0.0049090561866760255,
0.004878335952758789,
0.004904960155487061,
0.004893695831298828,
0.004875296115875244,
0.004890624046325683,
0.00487116813659668,
0.00491315221786499,
0.004880383968353271,
0.004883456230163574,
0.0049090561866760255,
0.0048895998001098635,
0.00487014389038086,
0.004887551784515381,
0.004907008171081543,
0.004897791862487793
]
},
"throughput": {
"unit": "samples/s",
"value": 189.35141165108934
},
"energy": {
"unit": "kWh",
"cpu": 6.015580172660825e-08,
"ram": 3.287242967139212e-08,
"gpu": 3.509125762737748e-07,
"total": 4.439408076717751e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2252552.553671398
}
}
}
}