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
1fdedec
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.223-212.873.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.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 828.076032, | |
"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.38692724609375, | |
"mean": 7.38692724609375, | |
"stdev": 0.0, | |
"p50": 7.38692724609375, | |
"p90": 7.38692724609375, | |
"p95": 7.38692724609375, | |
"p99": 7.38692724609375, | |
"values": [ | |
7.38692724609375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5059816680555118e-06, | |
"ram": 7.960904577212079e-07, | |
"gpu": 1.6869457940002844e-06, | |
"total": 3.989017919777004e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1037.991936, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 189, | |
"total": 0.9987705893516536, | |
"mean": 0.005284500472760074, | |
"stdev": 0.00016570764803330718, | |
"p50": 0.005255167961120606, | |
"p90": 0.005540044784545899, | |
"p95": 0.005576703929901123, | |
"p99": 0.005642485809326172, | |
"values": [ | |
0.005563392162322998, | |
0.005593088150024414, | |
0.005538815975189209, | |
0.00551529598236084, | |
0.005560319900512695, | |
0.005516287803649903, | |
0.0055808000564575196, | |
0.00526643180847168, | |
0.005272575855255127, | |
0.005362688064575195, | |
0.0052930560111999515, | |
0.005273600101470947, | |
0.00535859203338623, | |
0.005323775768280029, | |
0.005362688064575195, | |
0.005556287765502929, | |
0.005544960021972656, | |
0.0053975038528442385, | |
0.005320703983306885, | |
0.005278719902038574, | |
0.005642240047454834, | |
0.005429247856140137, | |
0.005467135906219483, | |
0.005604351997375488, | |
0.005309408187866211, | |
0.005242976188659668, | |
0.005306303977966309, | |
0.005256192207336426, | |
0.005173247814178467, | |
0.005145599842071533, | |
0.005151711940765381, | |
0.005277696132659912, | |
0.005327871799468994, | |
0.005277696132659912, | |
0.005288959980010987, | |
0.005426176071166992, | |
0.005278719902038574, | |
0.005249023914337158, | |
0.005253119945526123, | |
0.005198847770690918, | |
0.0052111358642578124, | |
0.005246975898742676, | |
0.005255167961120606, | |
0.005237760066986084, | |
0.005631999969482422, | |
0.005156864166259765, | |
0.005095359802246094, | |
0.005086207866668701, | |
0.00511078405380249, | |
0.005119999885559082, | |
0.005182464122772217, | |
0.005206016063690186, | |
0.005210112094879151, | |
0.005187583923339844, | |
0.005314559936523438, | |
0.005237760066986084, | |
0.005340159893035889, | |
0.005392384052276611, | |
0.005323775768280029, | |
0.005261312007904053, | |
0.005367743968963623, | |
0.005288000106811523, | |
0.005280767917633057, | |
0.005272575855255127, | |
0.005215231895446777, | |
0.005260287761688232, | |
0.0055285758972167965, | |
0.005296127796173096, | |
0.005288959980010987, | |
0.0054241280555725096, | |
0.0056442880630493165, | |
0.005537792205810547, | |
0.005527552127838135, | |
0.005485568046569824, | |
0.005467103958129883, | |
0.005430272102355957, | |
0.005453824043273926, | |
0.005471231937408447, | |
0.005468160152435303, | |
0.005537792205810547, | |
0.005408768177032471, | |
0.005417920112609863, | |
0.005453824043273926, | |
0.005409791946411133, | |
0.005407743930816651, | |
0.0054876160621643065, | |
0.005398528099060058, | |
0.005449728012084961, | |
0.005479423999786377, | |
0.005495808124542236, | |
0.005595136165618897, | |
0.005578752040863037, | |
0.005550111770629883, | |
0.005544991970062256, | |
0.005559296131134033, | |
0.005602303981781006, | |
0.005459968090057373, | |
0.0055582718849182125, | |
0.005573631763458252, | |
0.005504000186920166, | |
0.005437439918518067, | |
0.005451776027679443, | |
0.005533696174621582, | |
0.00542310380935669, | |
0.005342175960540771, | |
0.005369855880737305, | |
0.005275648117065429, | |
0.005142528057098389, | |
0.005288959980010987, | |
0.0054917120933532714, | |
0.005239808082580567, | |
0.00510975980758667, | |
0.005128191947937012, | |
0.005180480003356934, | |
0.005116928100585938, | |
0.005341248035430908, | |
0.005219327926635742, | |
0.005213183879852295, | |
0.005274591922760009, | |
0.00521727991104126, | |
0.005278656005859375, | |
0.00541593599319458, | |
0.005508096218109131, | |
0.005320703983306885, | |
0.0051701760292053225, | |
0.0051404800415039064, | |
0.005121024131774903, | |
0.005122047901153564, | |
0.005221375942230225, | |
0.00511078405380249, | |
0.005121024131774903, | |
0.005148672103881836, | |
0.0051476478576660155, | |
0.005132287979125977, | |
0.005161983966827393, | |
0.005143519878387451, | |
0.005130239963531494, | |
0.005087232112884522, | |
0.00516096019744873, | |
0.005093376159667969, | |
0.005126143932342529, | |
0.005127168178558349, | |
0.005130239963531494, | |
0.005101568222045898, | |
0.0051178879737854, | |
0.005156864166259765, | |
0.00510975980758667, | |
0.00511078405380249, | |
0.005139455795288086, | |
0.005122047901153564, | |
0.005094399929046631, | |
0.005111807823181152, | |
0.005130239963531494, | |
0.005092351913452148, | |
0.00510975980758667, | |
0.00511897611618042, | |
0.005107711791992187, | |
0.005099520206451416, | |
0.005105663776397705, | |
0.005138432025909424, | |
0.005108736038208008, | |
0.005112832069396973, | |
0.005136447906494141, | |
0.005681151866912842, | |
0.005116928100585938, | |
0.005135359764099121, | |
0.0051333122253417966, | |
0.00515993595123291, | |
0.005104640007019043, | |
0.005125120162963868, | |
0.005094399929046631, | |
0.005099520206451416, | |
0.005129216194152832, | |
0.005115903854370117, | |
0.005104640007019043, | |
0.005105663776397705, | |
0.005149695873260498, | |
0.00510975980758667, | |
0.005111807823181152, | |
0.005111807823181152, | |
0.005108736038208008, | |
0.005092351913452148, | |
0.00510975980758667, | |
0.005171199798583984, | |
0.005131264209747314, | |
0.0051138558387756345, | |
0.00515174388885498, | |
0.005153759956359864, | |
0.005130239963531494 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 189.2326446283207 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.7424953639961186e-08, | |
"ram": 3.139361089296822e-08, | |
"gpu": 3.325700459806789e-07, | |
"total": 4.213886105136083e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2373106.379835831 | |
} | |
} | |
} | |
} |