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
cb25093
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", | |
"model": "google/vit-base-patch16-224", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 912.125952, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 166, | |
"total": 0.9951754860877988, | |
"mean": 0.005995033048721681, | |
"stdev": 0.000413973572564616, | |
"p50": 0.00587011194229126, | |
"p90": 0.00622438406944275, | |
"p95": 0.006475008130073547, | |
"p99": 0.008065075159072876, | |
"values": [ | |
0.008598527908325194, | |
0.008133631706237793, | |
0.008028160095214844, | |
0.007241727828979493, | |
0.006312960147857666, | |
0.0062156801223754886, | |
0.006316031932830811, | |
0.006499328136444092, | |
0.00586137580871582, | |
0.00586956787109375, | |
0.005836800098419189, | |
0.005788671970367432, | |
0.006030335903167725, | |
0.005814271926879883, | |
0.0058726401329040525, | |
0.0057487359046936035, | |
0.005747712135314941, | |
0.005680223941802978, | |
0.0057784318923950195, | |
0.005768191814422607, | |
0.005869631767272949, | |
0.005857279777526855, | |
0.0060661759376525876, | |
0.006198272228240966, | |
0.006191103935241699, | |
0.006131711959838867, | |
0.006137856006622314, | |
0.0061337599754333495, | |
0.006239232063293457, | |
0.006164447784423828, | |
0.00622489595413208, | |
0.006220799922943115, | |
0.006190080165863037, | |
0.006176767826080322, | |
0.006135807991027832, | |
0.0062044157981872555, | |
0.006153215885162353, | |
0.0062341117858886715, | |
0.006169600009918213, | |
0.00607539176940918, | |
0.006047743797302246, | |
0.006071296215057373, | |
0.00611737585067749, | |
0.006105088233947754, | |
0.006054912090301514, | |
0.006121471881866455, | |
0.006187007904052734, | |
0.006111231803894043, | |
0.006212607860565185, | |
0.006161407947540283, | |
0.00620851182937622, | |
0.006181888103485108, | |
0.00617574405670166, | |
0.006135807991027832, | |
0.006069248199462891, | |
0.006155295848846436, | |
0.006147071838378906, | |
0.006196224212646485, | |
0.006107135772705078, | |
0.006153215885162353, | |
0.006094848155975342, | |
0.006212607860565185, | |
0.00608460807800293, | |
0.0061541438102722164, | |
0.006113279819488526, | |
0.00608358383178711, | |
0.0061972479820251464, | |
0.006169600009918213, | |
0.0060917119979858395, | |
0.006055935859680176, | |
0.006244351863861084, | |
0.006089727878570556, | |
0.006119423866271972, | |
0.006087679862976075, | |
0.006106112003326416, | |
0.006079487800598145, | |
0.006137887954711914, | |
0.006223872184753418, | |
0.0058787841796875, | |
0.005855231761932373, | |
0.005858304023742676, | |
0.005840864181518555, | |
0.00586137580871582, | |
0.005799935817718506, | |
0.005847040176391601, | |
0.005738495826721191, | |
0.005767168045043946, | |
0.005797887802124023, | |
0.005752799987792968, | |
0.005696544170379639, | |
0.005639167785644531, | |
0.005502975940704345, | |
0.005586880207061768, | |
0.00575596809387207, | |
0.0056145920753479005, | |
0.005508096218109131, | |
0.005471231937408447, | |
0.005444608211517334, | |
0.005774335861206055, | |
0.00582147216796875, | |
0.005932032108306885, | |
0.005916672229766846, | |
0.00592793607711792, | |
0.005931007862091065, | |
0.00608460807800293, | |
0.0062648639678955075, | |
0.006976511955261231, | |
0.0068351998329162595, | |
0.0068055038452148435, | |
0.00679423999786377, | |
0.006131711959838867, | |
0.00587059211730957, | |
0.005907455921173096, | |
0.006402048110961914, | |
0.0061265921592712404, | |
0.0057497601509094234, | |
0.005856256008148194, | |
0.0057794561386108395, | |
0.005768191814422607, | |
0.005713920116424561, | |
0.00572108793258667, | |
0.005744639873504639, | |
0.005709824085235596, | |
0.005745664119720459, | |
0.005709824085235596, | |
0.005735424041748047, | |
0.005683199882507324, | |
0.0056442880630493165, | |
0.005662655830383301, | |
0.005695487976074219, | |
0.005963776111602783, | |
0.005725183963775635, | |
0.005767168045043946, | |
0.0057149438858032225, | |
0.005756927967071533, | |
0.005698560237884521, | |
0.005742591857910156, | |
0.005724160194396972, | |
0.005713920116424561, | |
0.0057292799949646, | |
0.005725183963775635, | |
0.005761023998260498, | |
0.005747712135314941, | |
0.005716991901397705, | |
0.005705728054046631, | |
0.005710847854614258, | |
0.0056555519104003905, | |
0.005640192031860352, | |
0.005665791988372803, | |
0.005684224128723145, | |
0.005772287845611572, | |
0.005694464206695556, | |
0.005730303764343261, | |
0.005754879951477051, | |
0.005769216060638428, | |
0.005760000228881836, | |
0.00572108793258667, | |
0.005784575939178467, | |
0.005705728054046631, | |
0.005751808166503906, | |
0.005692416191101074, | |
0.005815264225006104, | |
0.005766176223754883, | |
0.005735424041748047, | |
0.005817344188690185, | |
0.005730368137359619 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 166.8047518459018 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.698104696160058e-08, | |
"ram": 3.662138751370564e-08, | |
"gpu": 3.6391428987570933e-07, | |
"total": 4.675167243510155e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2138960.913939822 | |
} | |
} | |
} | |
} |