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
6f7ea4c
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.33.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": 826.875904, | |
"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.41857080078125, | |
"mean": 7.41857080078125, | |
"stdev": 0.0, | |
"p50": 7.41857080078125, | |
"p90": 7.41857080078125, | |
"p95": 7.41857080078125, | |
"p99": 7.41857080078125, | |
"values": [ | |
7.41857080078125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4870456986117457e-06, | |
"ram": 7.989791285171527e-07, | |
"gpu": 1.9572237879988963e-06, | |
"total": 4.2432486151277946e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1035.9808, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 194, | |
"total": 0.9973359346389772, | |
"mean": 0.005140906879582356, | |
"stdev": 0.0001891460882666054, | |
"p50": 0.005111295938491821, | |
"p90": 0.005255167961120606, | |
"p95": 0.005431091070175171, | |
"p99": 0.00592577540397644, | |
"values": [ | |
0.005951488018035888, | |
0.005862368106842041, | |
0.005826560020446778, | |
0.005839871883392334, | |
0.005837823867797852, | |
0.005923840045928955, | |
0.005879807949066162, | |
0.00511078405380249, | |
0.005024767875671386, | |
0.0050421757698059086, | |
0.00501145601272583, | |
0.0050124797821044925, | |
0.005018623828887939, | |
0.005008384227752686, | |
0.005005311965942383, | |
0.0050124478340148925, | |
0.005024767875671386, | |
0.005150720119476319, | |
0.0050094079971313476, | |
0.0051363840103149415, | |
0.0050206718444824215, | |
0.005017600059509277, | |
0.004996096134185791, | |
0.00501043176651001, | |
0.00501043176651001, | |
0.0050063362121582035, | |
0.004993023872375488, | |
0.005018623828887939, | |
0.005004288196563721, | |
0.0050063362121582035, | |
0.005008384227752686, | |
0.0050165758132934574, | |
0.005030911922454834, | |
0.00501043176651001, | |
0.004996096134185791, | |
0.005000192165374756, | |
0.005014527797698975, | |
0.005015552043914795, | |
0.005000192165374756, | |
0.005166016101837158, | |
0.005192704200744629, | |
0.004987904071807861, | |
0.0049909758567810054, | |
0.005024767875671386, | |
0.005037055969238281, | |
0.004984831809997559, | |
0.004977663993835449, | |
0.005005311965942383, | |
0.004999167919158935, | |
0.004994048118591309, | |
0.004993023872375488, | |
0.005054463863372802, | |
0.0050022401809692385, | |
0.005005311965942383, | |
0.004992000102996826, | |
0.004997119903564453, | |
0.005015552043914795, | |
0.004967423915863037, | |
0.004944896221160889, | |
0.0051476478576660155, | |
0.005259263992309571, | |
0.005255167961120606, | |
0.005164031982421875, | |
0.0050954241752624516, | |
0.005149695873260498, | |
0.005136320114135742, | |
0.006052864074707031, | |
0.005206016063690186, | |
0.005212160110473632, | |
0.005188608169555664, | |
0.005202943801879883, | |
0.005248000144958496, | |
0.005238783836364746, | |
0.005124095916748047, | |
0.005033984184265137, | |
0.005039103984832764, | |
0.005022719860076904, | |
0.005026815891265869, | |
0.005021696090698242, | |
0.005037055969238281, | |
0.0051404800415039064, | |
0.005111807823181152, | |
0.00502678394317627, | |
0.005045248031616211, | |
0.005097472190856934, | |
0.005220352172851562, | |
0.00522547197341919, | |
0.005220352172851562, | |
0.005192704200744629, | |
0.005210112094879151, | |
0.005213247776031494, | |
0.005178336143493652, | |
0.005171199798583984, | |
0.005156896114349365, | |
0.0051404800415039064, | |
0.005138432025909424, | |
0.005128191947937012, | |
0.0051066880226135255, | |
0.005102591991424561, | |
0.005449728012084961, | |
0.00537497615814209, | |
0.005161983966827393, | |
0.005393407821655274, | |
0.00517632007598877, | |
0.005184512138366699, | |
0.005191679954528809, | |
0.005188608169555664, | |
0.005179391860961914, | |
0.005158912181854248, | |
0.005032959938049316, | |
0.005014527797698975, | |
0.0049909758567810054, | |
0.00501043176651001, | |
0.005032000064849854, | |
0.00501043176651001, | |
0.005001215934753418, | |
0.005479423999786377, | |
0.005220352172851562, | |
0.005144576072692871, | |
0.005181439876556396, | |
0.005234687805175781, | |
0.005173247814178467, | |
0.005303296089172363, | |
0.005035007953643799, | |
0.00501145601272583, | |
0.005292031764984131, | |
0.005155839920043945, | |
0.005224448204040527, | |
0.0050769920349121095, | |
0.00506982421875, | |
0.005312511920928955, | |
0.005345280170440674, | |
0.00521727991104126, | |
0.005228544235229492, | |
0.005192704200744629, | |
0.0052111358642578124, | |
0.0052408318519592285, | |
0.005421055793762207, | |
0.0052111358642578124, | |
0.005219327926635742, | |
0.005119999885559082, | |
0.005111807823181152, | |
0.005130239963531494, | |
0.005148672103881836, | |
0.005411839962005615, | |
0.005139455795288086, | |
0.005179391860961914, | |
0.005131264209747314, | |
0.005134335994720459, | |
0.005206016063690186, | |
0.005194752216339111, | |
0.00522649621963501, | |
0.005197824001312256, | |
0.005184512138366699, | |
0.005149695873260498, | |
0.005152768135070801, | |
0.0050360321998596195, | |
0.005089280128479004, | |
0.005187583923339844, | |
0.0052008957862854, | |
0.00520908784866333, | |
0.005157887935638428, | |
0.0051660799980163576, | |
0.005255167961120606, | |
0.005025792121887207, | |
0.005000192165374756, | |
0.0050421757698059086, | |
0.005017600059509277, | |
0.004993023872375488, | |
0.005007359981536865, | |
0.0050503678321838375, | |
0.005022719860076904, | |
0.005008384227752686, | |
0.005022719860076904, | |
0.005023744106292725, | |
0.005018623828887939, | |
0.0050063362121582035, | |
0.0050135040283203125, | |
0.005025792121887207, | |
0.005004288196563721, | |
0.0050032639503479, | |
0.0050462718009948735, | |
0.005030911922454834, | |
0.005163008213043213, | |
0.005004288196563721, | |
0.005022719860076904, | |
0.005175295829772949, | |
0.004993023872375488, | |
0.005024703979492187, | |
0.005082111835479736, | |
0.005187583923339844, | |
0.0051701760292053225, | |
0.005191679954528809, | |
0.005194784164428711 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 194.51820922327994 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.352844344340682e-08, | |
"ram": 3.4596355668656694e-08, | |
"gpu": 3.6312972312765914e-07, | |
"total": 4.6125452223972263e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2168000.424460405 | |
} | |
} | |
} | |
} |