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
646618d
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 800.837632, | |
"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.5139072265625, | |
"mean": 7.5139072265625, | |
"stdev": 0.0, | |
"p50": 7.5139072265625, | |
"p90": 7.5139072265625, | |
"p95": 7.5139072265625, | |
"p99": 7.5139072265625, | |
"values": [ | |
7.5139072265625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5769917659720849e-06, | |
"ram": 8.482947131268022e-07, | |
"gpu": 1.6827791239999376e-06, | |
"total": 4.1080656030988246e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 934.346752, | |
"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.9988586883544919, | |
"mean": 0.005284966605050223, | |
"stdev": 0.00024035114473750028, | |
"p50": 0.005375999927520752, | |
"p90": 0.005526527881622315, | |
"p95": 0.0055552000999450684, | |
"p99": 0.005679034996032716, | |
"values": [ | |
0.005610496044158936, | |
0.005629951953887939, | |
0.005563392162322998, | |
0.0055552000999450684, | |
0.005577727794647217, | |
0.005544960021972656, | |
0.0055797758102417, | |
0.005535679817199707, | |
0.005585919857025146, | |
0.005519360065460205, | |
0.005454847812652588, | |
0.005430272102355957, | |
0.005480447769165039, | |
0.005455872058868408, | |
0.005484543800354004, | |
0.005473279953002929, | |
0.005362688064575195, | |
0.005339136123657226, | |
0.005320703983306885, | |
0.005387263774871826, | |
0.005417984008789062, | |
0.005430272102355957, | |
0.00551526403427124, | |
0.0054793920516967775, | |
0.005476352214813233, | |
0.005534719944000244, | |
0.005480447769165039, | |
0.005378047943115235, | |
0.005422080039978027, | |
0.005442560195922852, | |
0.005481472015380859, | |
0.005500927925109863, | |
0.005475327968597412, | |
0.005537792205810547, | |
0.005485568046569824, | |
0.005448703765869141, | |
0.0055552000999450684, | |
0.005395455837249756, | |
0.005439487934112549, | |
0.005453824043273926, | |
0.0054609918594360355, | |
0.005479423999786377, | |
0.005431295871734619, | |
0.00536681604385376, | |
0.005311488151550293, | |
0.0052705278396606445, | |
0.005298175811767578, | |
0.005408768177032471, | |
0.005368896007537842, | |
0.005413887977600097, | |
0.005451776027679443, | |
0.005355519771575928, | |
0.005417984008789062, | |
0.005416959762573242, | |
0.0054917120933532714, | |
0.005513216018676758, | |
0.005462016105651855, | |
0.0055101442337036136, | |
0.0054876160621643065, | |
0.005462016105651855, | |
0.005421023845672607, | |
0.005377024173736572, | |
0.005412831783294678, | |
0.005545983791351319, | |
0.005508096218109131, | |
0.005411839962005615, | |
0.006220799922943115, | |
0.005450751781463623, | |
0.0055244798660278325, | |
0.005327871799468994, | |
0.005314559936523438, | |
0.00550707197189331, | |
0.0053985600471496585, | |
0.005395455837249756, | |
0.005540863990783691, | |
0.00546611213684082, | |
0.005398528099060058, | |
0.005385216236114502, | |
0.0053944320678710935, | |
0.005462016105651855, | |
0.005934080123901367, | |
0.00550601577758789, | |
0.005454847812652588, | |
0.005398528099060058, | |
0.005439487934112549, | |
0.005509119987487793, | |
0.005502975940704345, | |
0.00551526403427124, | |
0.005493760108947754, | |
0.005552127838134766, | |
0.005472256183624268, | |
0.0054906878471374515, | |
0.005490719795227051, | |
0.00546611213684082, | |
0.005483520030975342, | |
0.005392384052276611, | |
0.0053309440612792965, | |
0.005463039875030518, | |
0.005395455837249756, | |
0.005375999927520752, | |
0.0053678078651428224, | |
0.005239808082580567, | |
0.005165056228637695, | |
0.005251071929931641, | |
0.0052930560111999515, | |
0.005348351955413819, | |
0.005268479824066162, | |
0.005093376159667969, | |
0.0051036162376403805, | |
0.005104640007019043, | |
0.0052705278396606445, | |
0.005243904113769531, | |
0.005279744148254394, | |
0.005517312049865723, | |
0.005495808124542236, | |
0.005386240005493164, | |
0.005370880126953125, | |
0.005431295871734619, | |
0.005537792205810547, | |
0.005426176071166992, | |
0.005288959980010987, | |
0.005283840179443359, | |
0.0056442561149597165, | |
0.0052111358642578124, | |
0.00510975980758667, | |
0.005028863906860351, | |
0.004983808040618896, | |
0.005005311965942383, | |
0.005032959938049316, | |
0.005033984184265137, | |
0.005001215934753418, | |
0.004987904071807861, | |
0.004985856056213379, | |
0.0049090561866760255, | |
0.004896768093109131, | |
0.004932608127593994, | |
0.00495411205291748, | |
0.0048793601989746095, | |
0.0048752641677856446, | |
0.005039103984832764, | |
0.004895743846893311, | |
0.0049459199905395506, | |
0.004944896221160889, | |
0.004968448162078858, | |
0.005001215934753418, | |
0.00499507188796997, | |
0.004959231853485108, | |
0.004966400146484375, | |
0.004959231853485108, | |
0.004996096134185791, | |
0.004956160068511963, | |
0.004974592208862305, | |
0.004984831809997559, | |
0.00499507188796997, | |
0.0050503678321838375, | |
0.005028863906860351, | |
0.00497049617767334, | |
0.004998144149780274, | |
0.0049909758567810054, | |
0.0049725441932678225, | |
0.0050032639503479, | |
0.005007359981536865, | |
0.004987904071807861, | |
0.005026815891265869, | |
0.004964352130889893, | |
0.004985856056213379, | |
0.0049530878067016604, | |
0.005037055969238281, | |
0.004964352130889893, | |
0.004992000102996826, | |
0.004973567962646484, | |
0.005005311965942383, | |
0.004975615978240967, | |
0.005015552043914795, | |
0.005039103984832764, | |
0.004958208084106445, | |
0.004957183837890625, | |
0.0050063362121582035, | |
0.0049827837944030765, | |
0.005054463863372802, | |
0.004983808040618896, | |
0.005004288196563721, | |
0.004988927841186524, | |
0.004976640224456787, | |
0.0050360321998596195, | |
0.005299200057983398, | |
0.005059584140777588, | |
0.00501964807510376, | |
0.005014527797698975 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 189.21595437224093 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.767229202737279e-08, | |
"ram": 3.153222336780072e-08, | |
"gpu": 3.455099851456319e-07, | |
"total": 4.347145005408054e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2300360.3485872974 | |
} | |
} | |
} | |
} |