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
d4e0553
verified
{ | |
"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.34944, | |
"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.25953280639648435, | |
"mean": 0.25953280639648435, | |
"stdev": 0.0, | |
"p50": 0.25953280639648435, | |
"p90": 0.25953280639648435, | |
"p95": 0.25953280639648435, | |
"p99": 0.25953280639648435, | |
"values": [ | |
0.25953280639648435 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 3.0525752735937004e-06, | |
"ram": 1.6539233921500808e-06, | |
"gpu": 3.7325029860757475e-06, | |
"total": 8.439001651819528e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.913088, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 194, | |
"total": 0.9990890250205989, | |
"mean": 0.005149943427941234, | |
"stdev": 9.736962406128133e-05, | |
"p50": 0.005143039941787719, | |
"p90": 0.005231001615524292, | |
"p95": 0.005312256073951721, | |
"p99": 0.0054248652744293205, | |
"values": [ | |
0.005303296089172363, | |
0.005208064079284668, | |
0.005249023914337158, | |
0.005208064079284668, | |
0.005272543907165527, | |
0.0052111358642578124, | |
0.005224448204040527, | |
0.005260287761688232, | |
0.005193727970123291, | |
0.005181439876556396, | |
0.0052408318519592285, | |
0.005188608169555664, | |
0.0052295680046081545, | |
0.005195775985717774, | |
0.005125120162963868, | |
0.005174272060394287, | |
0.0051701760292053225, | |
0.0053637118339538575, | |
0.005173247814178467, | |
0.005099487781524658, | |
0.00506879997253418, | |
0.005021696090698242, | |
0.005047296047210693, | |
0.005054463863372802, | |
0.005138432025909424, | |
0.005114880084991455, | |
0.0051773438453674315, | |
0.005210112094879151, | |
0.005222400188446045, | |
0.005192704200744629, | |
0.005222400188446045, | |
0.005185535907745361, | |
0.005089280128479004, | |
0.005070816040039063, | |
0.005141503810882568, | |
0.005181439876556396, | |
0.0051773438453674315, | |
0.005210112094879151, | |
0.005203968048095703, | |
0.005180480003356934, | |
0.005182464122772217, | |
0.005215231895446777, | |
0.005152703762054444, | |
0.005116928100585938, | |
0.005163008213043213, | |
0.005178368091583252, | |
0.005135359764099121, | |
0.005182464122772217, | |
0.005187615871429443, | |
0.005159872055053711, | |
0.005101568222045898, | |
0.005064703941345215, | |
0.005051392078399658, | |
0.00501145601272583, | |
0.0051066880226135255, | |
0.0051333122253417966, | |
0.005096447944641113, | |
0.0050841598510742185, | |
0.005116928100585938, | |
0.00510975980758667, | |
0.005089280128479004, | |
0.005099520206451416, | |
0.005178368091583252, | |
0.005203904151916504, | |
0.005336063861846924, | |
0.005222400188446045, | |
0.005181439876556396, | |
0.005223423957824707, | |
0.00521727991104126, | |
0.005183487892150879, | |
0.0051712322235107425, | |
0.005231616020202637, | |
0.005207007884979248, | |
0.005157887935638428, | |
0.005202943801879883, | |
0.005202943801879883, | |
0.005155839920043945, | |
0.005163040161132813, | |
0.0051404800415039064, | |
0.005152768135070801, | |
0.005169151782989502, | |
0.005144576072692871, | |
0.005059584140777588, | |
0.0050094079971313476, | |
0.005073919773101807, | |
0.005098495960235596, | |
0.005096447944641113, | |
0.0052633600234985355, | |
0.00520908784866333, | |
0.005135359764099121, | |
0.005058559894561767, | |
0.005081088066101074, | |
0.005097472190856934, | |
0.0050800638198852536, | |
0.005092351913452148, | |
0.005132287979125977, | |
0.0050800638198852536, | |
0.005070847988128662, | |
0.0050954241752624516, | |
0.005156864166259765, | |
0.0051671361923217776, | |
0.005180416107177735, | |
0.005219327926635742, | |
0.0051968002319335935, | |
0.00516096019744873, | |
0.0052336640357971195, | |
0.0051998720169067385, | |
0.005128191947937012, | |
0.005149695873260498, | |
0.005129216194152832, | |
0.005150688171386719, | |
0.005134335994720459, | |
0.005127168178558349, | |
0.0050135040283203125, | |
0.005172224044799805, | |
0.005115903854370117, | |
0.00506982421875, | |
0.00499507188796997, | |
0.005163008213043213, | |
0.004987904071807861, | |
0.004896768093109131, | |
0.004930560111999512, | |
0.005073919773101807, | |
0.005082111835479736, | |
0.0048895998001098635, | |
0.004860928058624267, | |
0.0048261117935180665, | |
0.004827136039733886, | |
0.004894720077514648, | |
0.005259263992309571, | |
0.0053606400489807126, | |
0.005406720161437988, | |
0.005362688064575195, | |
0.005413919925689697, | |
0.005516287803649903, | |
0.005610496044158936, | |
0.005417984008789062, | |
0.005243904113769531, | |
0.005180416107177735, | |
0.005158912181854248, | |
0.005175295829772949, | |
0.005135359764099121, | |
0.0051363840103149415, | |
0.005150720119476319, | |
0.005144576072692871, | |
0.005128191947937012, | |
0.005163008213043213, | |
0.005328896045684814, | |
0.005137407779693603, | |
0.005142528057098389, | |
0.0052295680046081545, | |
0.005130239963531494, | |
0.005125120162963868, | |
0.005148672103881836, | |
0.005144576072692871, | |
0.00511897611618042, | |
0.0051363840103149415, | |
0.005124095916748047, | |
0.005125120162963868, | |
0.005104640007019043, | |
0.005128191947937012, | |
0.005114880084991455, | |
0.0051036162376403805, | |
0.005189631938934326, | |
0.005126143932342529, | |
0.005131264209747314, | |
0.005141503810882568, | |
0.005153791904449463, | |
0.005125120162963868, | |
0.005119999885559082, | |
0.005132287979125977, | |
0.005144576072692871, | |
0.005141503810882568, | |
0.005105663776397705, | |
0.005150720119476319, | |
0.005135359764099121, | |
0.005116928100585938, | |
0.0051435518264770505, | |
0.005144576072692871, | |
0.005134335994720459, | |
0.005116928100585938, | |
0.005142528057098389, | |
0.005116928100585938, | |
0.0051138558387756345, | |
0.0051435518264770505, | |
0.0051363840103149415, | |
0.00511897611618042, | |
0.005119999885559082, | |
0.005131264209747314, | |
0.005129216194152832, | |
0.005122047901153564, | |
0.005141503810882568, | |
0.00515993595123291, | |
0.005114880084991455 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 194.17689028863074 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.7430785470011106e-08, | |
"ram": 3.13814759810465e-08, | |
"gpu": 3.468615227921509e-07, | |
"total": 4.356737842432085e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2295295.324544395 | |
} | |
} | |
} | |
} |