cuda
/
cuda_inference_transformers_image-classification_google
/vit-base-patch16-224
/benchmark.json

IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
8c14a2d
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_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": {}, | |
"hub_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, | |
"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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 882.733056, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.85792 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 196, | |
"total": 1.0013831367492674, | |
"mean": 0.0051090976364758555, | |
"stdev": 0.00020211331454782918, | |
"p50": 0.005134799957275391, | |
"p90": 0.005319695949554443, | |
"p95": 0.0054215677976608275, | |
"p99": 0.005715874981880188, | |
"values": [ | |
0.005712959766387939, | |
0.005295008182525635, | |
0.005310463905334473, | |
0.005419007778167725, | |
0.005472256183624268, | |
0.005327871799468994, | |
0.005365664005279541, | |
0.005455872058868408, | |
0.005370880126953125, | |
0.005311520099639893, | |
0.005244927883148193, | |
0.006020095825195313, | |
0.005255167961120606, | |
0.005214208126068115, | |
0.00522649621963501, | |
0.005185535907745361, | |
0.005248127937316894, | |
0.005274623870849609, | |
0.005174272060394287, | |
0.0051333122253417966, | |
0.0051363840103149415, | |
0.005093376159667969, | |
0.0051426877975463865, | |
0.005182464122772217, | |
0.005269504070281982, | |
0.005302271842956543, | |
0.005439487934112549, | |
0.0053534722328186036, | |
0.005471231937408447, | |
0.005241856098175048, | |
0.005193727970123291, | |
0.005132287979125977, | |
0.005198847770690918, | |
0.005303296089172363, | |
0.005240928173065185, | |
0.0052971520423889164, | |
0.0053012480735778805, | |
0.005247968196868897, | |
0.005272575855255127, | |
0.005257215976715088, | |
0.0051701760292053225, | |
0.005158912181854248, | |
0.005252096176147461, | |
0.00521017599105835, | |
0.005260128021240235, | |
0.005260287761688232, | |
0.00522547197341919, | |
0.005349376201629639, | |
0.005089280128479004, | |
0.005071872234344482, | |
0.005062655925750732, | |
0.005101568222045898, | |
0.005362688064575195, | |
0.0051404800415039064, | |
0.005081088066101074, | |
0.0051435518264770505, | |
0.0051701760292053225, | |
0.005172224044799805, | |
0.005261312007904053, | |
0.005278719902038574, | |
0.005359615802764893, | |
0.00526643180847168, | |
0.005282815933227539, | |
0.005242879867553711, | |
0.0052173762321472165, | |
0.005228544235229492, | |
0.005130047798156738, | |
0.00510975980758667, | |
0.005283008098602295, | |
0.005265408039093018, | |
0.005242879867553711, | |
0.0053647360801696775, | |
0.005429247856140137, | |
0.00522431993484497, | |
0.005239808082580567, | |
0.005154816150665284, | |
0.005057536125183106, | |
0.005082111835479736, | |
0.005179423809051514, | |
0.0051435518264770505, | |
0.005237760066986084, | |
0.005265471935272217, | |
0.005169055938720703, | |
0.00516096019744873, | |
0.005190656185150146, | |
0.005165088176727295, | |
0.0051792960166931155, | |
0.005157887935638428, | |
0.005212160110473632, | |
0.005134335994720459, | |
0.0051476478576660155, | |
0.00535756778717041, | |
0.005264383792877197, | |
0.005285952091217041, | |
0.005464064121246338, | |
0.005236767768859864, | |
0.005273600101470947, | |
0.0052930560111999515, | |
0.0052152638435363765, | |
0.005185535907745361, | |
0.00522649621963501, | |
0.005253119945526123, | |
0.005179391860961914, | |
0.005119999885559082, | |
0.005107711791992187, | |
0.0051660799980163576, | |
0.005167103767395019, | |
0.005090303897857666, | |
0.005075967788696289, | |
0.004973567962646484, | |
0.004896768093109131, | |
0.00499507188796997, | |
0.005135263919830322, | |
0.005251071929931641, | |
0.004904960155487061, | |
0.004893695831298828, | |
0.0048496642112731934, | |
0.004846591949462891, | |
0.004896768093109131, | |
0.00487116813659668, | |
0.004980735778808594, | |
0.005121024131774903, | |
0.005063680171966553, | |
0.00502784013748169, | |
0.005141503810882568, | |
0.0050954241752624516, | |
0.005184512138366699, | |
0.0050432000160217285, | |
0.004976640224456787, | |
0.0048558077812194825, | |
0.004848639965057373, | |
0.004848639965057373, | |
0.004845600128173828, | |
0.004850687980651855, | |
0.0048496642112731934, | |
0.0057712640762329105, | |
0.005044223785400391, | |
0.0050022401809692385, | |
0.005568511962890625, | |
0.00511894416809082, | |
0.0050124797821044925, | |
0.004923391819000244, | |
0.004872191905975342, | |
0.004900864124298096, | |
0.005017600059509277, | |
0.004872191905975342, | |
0.004965375900268554, | |
0.004872191905975342, | |
0.004911104202270508, | |
0.004851712226867676, | |
0.004851712226867676, | |
0.0049090561866760255, | |
0.004899839878082276, | |
0.0050206718444824215, | |
0.005092351913452148, | |
0.00501043176651001, | |
0.00487014389038086, | |
0.004888576030731201, | |
0.004882431983947754, | |
0.004908031940460205, | |
0.004890624046325683, | |
0.00488972806930542, | |
0.004881408214569092, | |
0.004903935909271241, | |
0.004910079956054687, | |
0.004923391819000244, | |
0.0050063362121582035, | |
0.004959231853485108, | |
0.004975615978240967, | |
0.004848639965057373, | |
0.004915200233459473, | |
0.004887551784515381, | |
0.0048496642112731934, | |
0.004865024089813232, | |
0.0048496642112731934, | |
0.0048496642112731934, | |
0.004860928058624267, | |
0.004847616195678711, | |
0.004869120121002197, | |
0.0048496642112731934, | |
0.004850687980651855, | |
0.004848639965057373, | |
0.0048558077812194825, | |
0.004850687980651855, | |
0.004850687980651855, | |
0.004857855796813965, | |
0.0048496642112731934, | |
0.004866047859191895, | |
0.00496127986907959, | |
0.004853759765625, | |
0.004846591949462891, | |
0.004964352130889893, | |
0.0048496642112731934, | |
0.004850687980651855, | |
0.004851712226867676, | |
0.004850687980651855 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 195.72927964042165 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.79086791973104e-08, | |
"ram": 3.153997908458459e-08, | |
"gpu": 3.3720274474881723e-07, | |
"total": 4.266514030307122e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2343833.8486561025 | |
} | |
} | |
} | |
} |