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
79110a6
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": {}, | |
"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.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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 757.538816, | |
"max_global_vram": 1030.22592, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.2073525390625, | |
"mean": 7.2073525390625, | |
"stdev": 0.0, | |
"p50": 7.2073525390625, | |
"p90": 7.2073525390625, | |
"p95": 7.2073525390625, | |
"p99": 7.2073525390625, | |
"values": [ | |
7.2073525390625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6145361794365777e-06, | |
"ram": 8.68682735876026e-07, | |
"gpu": 1.763612521999379e-06, | |
"total": 4.246831437311983e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 889.360384, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 202, | |
"total": 1.0104467883110049, | |
"mean": 0.005002211823321805, | |
"stdev": 0.00013799817006838723, | |
"p50": 0.004976639986038207, | |
"p90": 0.005175808048248291, | |
"p95": 0.0051987965822219845, | |
"p99": 0.005264312114715576, | |
"values": [ | |
0.005257215976715088, | |
0.0052295680046081545, | |
0.005202943801879883, | |
0.004989952087402344, | |
0.004917247772216797, | |
0.004925439834594727, | |
0.004989952087402344, | |
0.004977663993835449, | |
0.004966400146484375, | |
0.0052008957862854, | |
0.00522649621963501, | |
0.005163008213043213, | |
0.005154816150665284, | |
0.005148672103881836, | |
0.005098495960235596, | |
0.005116928100585938, | |
0.00511897611618042, | |
0.00517632007598877, | |
0.005044223785400391, | |
0.0049530878067016604, | |
0.0049489917755126955, | |
0.005025792121887207, | |
0.0050728960037231445, | |
0.0050800638198852536, | |
0.005148672103881836, | |
0.005165056228637695, | |
0.005135359764099121, | |
0.005153791904449463, | |
0.005198847770690918, | |
0.005049344062805176, | |
0.005051392078399658, | |
0.0051066880226135255, | |
0.00521830415725708, | |
0.005125120162963868, | |
0.005171199798583984, | |
0.005184512138366699, | |
0.005167103767395019, | |
0.0051476478576660155, | |
0.005135359764099121, | |
0.005094399929046631, | |
0.0051066880226135255, | |
0.005111807823181152, | |
0.005108736038208008, | |
0.005135359764099121, | |
0.005139455795288086, | |
0.005070847988128662, | |
0.005001215934753418, | |
0.005039103984832764, | |
0.004998144149780274, | |
0.0051404800415039064, | |
0.005188608169555664, | |
0.005029888153076172, | |
0.0050135040283203125, | |
0.005108736038208008, | |
0.005119999885559082, | |
0.005105663776397705, | |
0.005169151782989502, | |
0.005214208126068115, | |
0.005264383792877197, | |
0.005128191947937012, | |
0.005197824001312256, | |
0.005117951869964599, | |
0.005056511878967285, | |
0.005016608238220215, | |
0.005062655925750732, | |
0.005107711791992187, | |
0.005157887935638428, | |
0.005117951869964599, | |
0.005121024131774903, | |
0.005816319942474365, | |
0.005152768135070801, | |
0.005112832069396973, | |
0.004960256099700928, | |
0.004992000102996826, | |
0.005071872234344482, | |
0.005083136081695557, | |
0.005089280128479004, | |
0.00517632007598877, | |
0.005090303897857666, | |
0.0050094079971313476, | |
0.005056511878967285, | |
0.0050432000160217285, | |
0.005062655925750732, | |
0.005062655925750732, | |
0.005067776203155518, | |
0.005181439876556396, | |
0.0050841598510742185, | |
0.005149695873260498, | |
0.0051435518264770505, | |
0.005269504070281982, | |
0.005181439876556396, | |
0.00515174388885498, | |
0.005188543796539307, | |
0.005189631938934326, | |
0.005083136081695557, | |
0.005119999885559082, | |
0.005129216194152832, | |
0.005131328105926513, | |
0.004998144149780274, | |
0.005081088066101074, | |
0.005148672103881836, | |
0.005035007953643799, | |
0.004944896221160889, | |
0.005048319816589355, | |
0.00487014389038086, | |
0.0048793601989746095, | |
0.004926464080810547, | |
0.0050657281875610355, | |
0.004936704158782959, | |
0.004874239921569825, | |
0.00487116813659668, | |
0.004880383968353271, | |
0.004874239921569825, | |
0.0048752641677856446, | |
0.004874239921569825, | |
0.004872255802154541, | |
0.004874303817749024, | |
0.004877312183380127, | |
0.004873216152191162, | |
0.004892672061920166, | |
0.005114880084991455, | |
0.005178368091583252, | |
0.004932608127593994, | |
0.004911104202270508, | |
0.0048752641677856446, | |
0.004914175987243652, | |
0.004877312183380127, | |
0.004998144149780274, | |
0.004975615978240967, | |
0.0048752641677856446, | |
0.004876287937164306, | |
0.004876287937164306, | |
0.004877312183380127, | |
0.004872191905975342, | |
0.004873216152191162, | |
0.00487116813659668, | |
0.004877376079559326, | |
0.004876287937164306, | |
0.004878335952758789, | |
0.004873216152191162, | |
0.004872191905975342, | |
0.004877376079559326, | |
0.004877312183380127, | |
0.0048793601989746095, | |
0.004873216152191162, | |
0.004878335952758789, | |
0.004873216152191162, | |
0.004872191905975342, | |
0.004874239921569825, | |
0.004872191905975342, | |
0.0048752641677856446, | |
0.004873216152191162, | |
0.004877312183380127, | |
0.0048752641677856446, | |
0.004873216152191162, | |
0.0048752641677856446, | |
0.004876287937164306, | |
0.0048793601989746095, | |
0.004874239921569825, | |
0.004873216152191162, | |
0.004874239921569825, | |
0.00487014389038086, | |
0.0048752641677856446, | |
0.004873216152191162, | |
0.004873216152191162, | |
0.004876287937164306, | |
0.004877312183380127, | |
0.004872191905975342, | |
0.004874239921569825, | |
0.004873216152191162, | |
0.004876287937164306, | |
0.004873248100280761, | |
0.004873248100280761, | |
0.004877312183380127, | |
0.00487116813659668, | |
0.004876287937164306, | |
0.004873216152191162, | |
0.004875328063964844, | |
0.004877312183380127, | |
0.0048793601989746095, | |
0.0048752641677856446, | |
0.004877312183380127, | |
0.004877312183380127, | |
0.004872191905975342, | |
0.004874271869659424, | |
0.0048752641677856446, | |
0.00487116813659668, | |
0.004873216152191162, | |
0.0048752641677856446, | |
0.004876287937164306, | |
0.004874239921569825, | |
0.004876287937164306, | |
0.0048752641677856446, | |
0.004874239921569825, | |
0.004874239921569825, | |
0.004872191905975342, | |
0.004873216152191162, | |
0.0048752641677856446, | |
0.004876287937164306, | |
0.004868095874786377, | |
0.004874239921569825, | |
0.004873216152191162 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 199.91156618712174 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.822229410485885e-08, | |
"ram": 3.157168089203776e-08, | |
"gpu": 3.509218183886222e-07, | |
"total": 4.407157933855188e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2269035.9978210353 | |
} | |
} | |
} | |
} |