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
33ea36c
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "image-classification", | |
"library": "transformers", | |
"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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.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.2.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 910.15168, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 164, | |
"total": 0.9947111344337464, | |
"mean": 0.006065311795327722, | |
"stdev": 0.00027818872714891916, | |
"p50": 0.00610097599029541, | |
"p90": 0.006250188779830933, | |
"p95": 0.00657607684135437, | |
"p99": 0.007022898740768432, | |
"values": [ | |
0.006252543926239014, | |
0.005903359889984131, | |
0.005958655834197998, | |
0.0059361281394958495, | |
0.00603545618057251, | |
0.006914048194885254, | |
0.0065177597999572755, | |
0.006306816101074219, | |
0.00624128007888794, | |
0.00621062421798706, | |
0.006146048069000244, | |
0.006146048069000244, | |
0.0062975997924804685, | |
0.006174719810485839, | |
0.0061511039733886715, | |
0.006106112003326416, | |
0.0060364799499511715, | |
0.006123519897460937, | |
0.006172607898712159, | |
0.0061645441055297855, | |
0.006250495910644531, | |
0.006144000053405762, | |
0.006301631927490234, | |
0.006193183898925782, | |
0.006176767826080322, | |
0.0061265921592712404, | |
0.006140927791595459, | |
0.0062156801223754886, | |
0.006182911872863769, | |
0.0062156801223754886, | |
0.006179840087890625, | |
0.006174719810485839, | |
0.006231040000915527, | |
0.006140927791595459, | |
0.006114304065704346, | |
0.006171648025512695, | |
0.00620851182937622, | |
0.006235136032104492, | |
0.006153215885162353, | |
0.006975488185882568, | |
0.007236608028411865, | |
0.006586368083953857, | |
0.006207488059997559, | |
0.006119423866271972, | |
0.006100992202758789, | |
0.006157311916351318, | |
0.00622489595413208, | |
0.006230016231536865, | |
0.0062494721412658695, | |
0.006225855827331543, | |
0.0062228479385375976, | |
0.00623308801651001, | |
0.0062044157981872555, | |
0.006182911872863769, | |
0.006104063987731933, | |
0.006161312103271485, | |
0.006244351863861084, | |
0.0062156801223754886, | |
0.006178815841674804, | |
0.006184991836547852, | |
0.006307839870452881, | |
0.0060999679565429685, | |
0.006160319805145264, | |
0.0061265921592712404, | |
0.006114304065704346, | |
0.006120448112487793, | |
0.00623308801651001, | |
0.006088704109191895, | |
0.006072319984436035, | |
0.006096896171569824, | |
0.0061082239151000976, | |
0.006106112003326416, | |
0.006155263900756836, | |
0.006100959777832031, | |
0.006072319984436035, | |
0.006089727878570556, | |
0.006120448112487793, | |
0.006213632106781006, | |
0.006206399917602539, | |
0.006201280117034912, | |
0.0062044157981872555, | |
0.006209536075592041, | |
0.006207488059997559, | |
0.006130688190460205, | |
0.006131711959838867, | |
0.006057983875274659, | |
0.006172671794891358, | |
0.006033408164978027, | |
0.006021120071411133, | |
0.005922815799713135, | |
0.005879807949066162, | |
0.005964799880981446, | |
0.0060364799499511715, | |
0.005868544101715088, | |
0.005824512004852295, | |
0.005761023998260498, | |
0.005793791770935058, | |
0.00582144021987915, | |
0.00602726411819458, | |
0.005992447853088379, | |
0.0062873601913452145, | |
0.006094848155975342, | |
0.0060845441818237304, | |
0.006130688190460205, | |
0.007006239891052246, | |
0.007051263809204102, | |
0.006781951904296875, | |
0.006815743923187256, | |
0.006841343879699707, | |
0.006201344013214111, | |
0.005777408123016357, | |
0.005889023780822754, | |
0.00597811222076416, | |
0.005848063945770264, | |
0.00586240005493164, | |
0.005760000228881836, | |
0.005835775852203369, | |
0.005794784069061279, | |
0.005833727836608887, | |
0.005772287845611572, | |
0.005798912048339844, | |
0.005948416233062744, | |
0.005767168045043946, | |
0.0057825279235839844, | |
0.005784575939178467, | |
0.005750783920288086, | |
0.005781504154205322, | |
0.005784575939178467, | |
0.005763072013854981, | |
0.005792736053466797, | |
0.00577023983001709, | |
0.005765120029449463, | |
0.005775360107421875, | |
0.005765120029449463, | |
0.005793791770935058, | |
0.005900288105010986, | |
0.005772287845611572, | |
0.005883903980255127, | |
0.005843967914581299, | |
0.005801983833312988, | |
0.005817344188690185, | |
0.005796864032745362, | |
0.005814271926879883, | |
0.005751808166503906, | |
0.005775360107421875, | |
0.005786623954772949, | |
0.00577023983001709, | |
0.005761023998260498, | |
0.005760000228881836, | |
0.005777408123016357, | |
0.005822463989257813, | |
0.0057712640762329105, | |
0.00577023983001709, | |
0.005784575939178467, | |
0.005783552169799804, | |
0.005738495826721191, | |
0.0057825279235839844, | |
0.005746687889099121, | |
0.005760000228881836, | |
0.005736447811126709, | |
0.0057794561386108395, | |
0.005764095783233642, | |
0.005796864032745362, | |
0.005734399795532226 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 164.87198576837017 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.736947336431707e-08, | |
"ram": 3.682352073610673e-08, | |
"gpu": 3.6782068567045624e-07, | |
"total": 4.7201367977088003e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2118582.665835892 | |
} | |
} | |
} | |
} |