IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
f3a9187 verified
raw
history blame
14.1 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.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.2",
"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.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 841.265152,
"max_global_vram": 1037.565952,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.943310546875,
"mean": 7.943310546875,
"stdev": 0.0,
"p50": 7.943310546875,
"p90": 7.943310546875,
"p95": 7.943310546875,
"p99": 7.943310546875,
"values": [
7.943310546875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.4663957868015763e-06,
"ram": 7.84505227372754e-07,
"gpu": 1.7658347459988122e-06,
"total": 4.016735760173143e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1050.140672,
"max_global_vram": 1056.44032,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 192,
"total": 0.9970257940292361,
"mean": 0.005192842677235603,
"stdev": 0.00024565055103731336,
"p50": 0.005203455924987793,
"p90": 0.0053816319942474366,
"p95": 0.005469564795494079,
"p99": 0.006209641728401184,
"values": [
0.005258240222930908,
0.005245952129364013,
0.005287936210632324,
0.005238783836364746,
0.005292031764984131,
0.005272575855255127,
0.005257215976715088,
0.005281792163848877,
0.0052295680046081545,
0.0052633600234985355,
0.005279744148254394,
0.005264383792877197,
0.005238815784454346,
0.005241856098175048,
0.005198847770690918,
0.005213183879852295,
0.0054579200744628905,
0.005462016105651855,
0.005414912223815918,
0.005377024173736572,
0.0052705278396606445,
0.005239808082580567,
0.005342207908630371,
0.00535756778717041,
0.005464064121246338,
0.0055101442337036136,
0.005250048160552978,
0.0052633600234985355,
0.005343232154846191,
0.005246943950653076,
0.005248000144958496,
0.005202943801879883,
0.005156864166259765,
0.005180416107177735,
0.005258240222930908,
0.005274623870849609,
0.005213183879852295,
0.005273632049560547,
0.00526643180847168,
0.00522547197341919,
0.005258240222930908,
0.005268479824066162,
0.0051773438453674315,
0.00521830415725708,
0.005232639789581299,
0.0055387520790100096,
0.005462016105651855,
0.005443583965301513,
0.0053821439743042,
0.005325823783874512,
0.0052705278396606445,
0.005219327926635742,
0.005326848030090332,
0.005163008213043213,
0.0051998720169067385,
0.005182464122772217,
0.005169151782989502,
0.0051773438453674315,
0.0051773757934570315,
0.005135359764099121,
0.005185535907745361,
0.00522547197341919,
0.005285888195037842,
0.005259263992309571,
0.005239808082580567,
0.005286911964416504,
0.005436416149139404,
0.006232063770294189,
0.005864448070526123,
0.005185535907745361,
0.005192736148834229,
0.005273600101470947,
0.005276671886444092,
0.005326848030090332,
0.005278719902038574,
0.005203968048095703,
0.005278719902038574,
0.005256192207336426,
0.005222400188446045,
0.005173215866088867,
0.005098495960235596,
0.005102591991424561,
0.005256192207336426,
0.005188608169555664,
0.005163072109222412,
0.005245952129364013,
0.0052971520423889164,
0.00510975980758667,
0.005163008213043213,
0.005182464122772217,
0.0052111358642578124,
0.00516096019744873,
0.005244927883148193,
0.0051701760292053225,
0.0051701760292053225,
0.005190656185150146,
0.005224448204040527,
0.005257215976715088,
0.005283840179443359,
0.005361663818359375,
0.005269504070281982,
0.005268479824066162,
0.00538316822052002,
0.0053002238273620605,
0.005250048160552978,
0.00521727991104126,
0.005231616020202637,
0.005220352172851562,
0.005256192207336426,
0.005123072147369385,
0.005079040050506592,
0.0052705278396606445,
0.005184512138366699,
0.005102591991424561,
0.005062655925750732,
0.0051066880226135255,
0.005045248031616211,
0.0049162240028381345,
0.005037055969238281,
0.005125120162963868,
0.005085184097290039,
0.004931583881378174,
0.004903935909271241,
0.0049387521743774416,
0.004922368049621582,
0.004894720077514648,
0.005235712051391602,
0.0052295360565185545,
0.005273600101470947,
0.0053012480735778805,
0.005348351955413819,
0.005405695915222168,
0.005476287841796875,
0.0062074241638183595,
0.0062975997924804685,
0.0061521921157836916,
0.006153215885162353,
0.006098944187164307,
0.005294079780578613,
0.005129216194152832,
0.0050841598510742185,
0.005121024131774903,
0.005122047901153564,
0.005073919773101807,
0.005044223785400391,
0.005040128231048584,
0.004932608127593994,
0.004935679912567138,
0.005186560153961181,
0.005102591991424561,
0.005057536125183106,
0.005053440093994141,
0.005074944019317627,
0.0050421757698059086,
0.0050165758132934574,
0.004934656143188477,
0.004911104202270508,
0.004935679912567138,
0.004917247772216797,
0.004899839878082276,
0.004930560111999512,
0.004985856056213379,
0.004928512096405029,
0.004936704158782959,
0.004898816108703613,
0.004928512096405029,
0.004917247772216797,
0.004931583881378174,
0.004914175987243652,
0.004895743846893311,
0.004929535865783692,
0.004905983924865722,
0.004902912139892578,
0.004905983924865722,
0.004915200233459473,
0.004910079956054687,
0.004898816108703613,
0.004902912139892578,
0.004910079956054687,
0.0049192957878112795,
0.004905983924865722,
0.004917247772216797,
0.004896768093109131,
0.004925536155700684,
0.004915200233459473,
0.004894720077514648,
0.004897791862487793,
0.004928512096405029,
0.004921343803405762,
0.004927487850189209,
0.004915200233459473,
0.004936704158782959
]
},
"throughput": {
"unit": "samples/s",
"value": 192.57275102590773
},
"energy": {
"unit": "kWh",
"cpu": 6.027543874787198e-08,
"ram": 3.293967276763344e-08,
"gpu": 3.3451944415228144e-07,
"total": 4.2773455566778684e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2337898.5558900707
}
}
}
}