IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
8493f90 verified
raw
history blame
11.9 kB
{
"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.207872,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 167,
"total": 0.9973683834075925,
"mean": 0.005972265768907741,
"stdev": 0.0002571085105072753,
"p50": 0.005971968173980713,
"p90": 0.006288793563842774,
"p95": 0.006328012657165527,
"p99": 0.00648763388633728,
"values": [
0.0066713600158691405,
0.006253568172454834,
0.006377471923828125,
0.006474751949310303,
0.006307839870452881,
0.006347775936126709,
0.006301695823669433,
0.006331391811370849,
0.006449151992797852,
0.006240255832672119,
0.0062740478515625,
0.006188032150268555,
0.0064133119583129885,
0.006250463962554932,
0.006311935901641846,
0.00616755199432373,
0.00613478422164917,
0.006154240131378174,
0.006150144100189209,
0.006207488059997559,
0.006246399879455566,
0.006251520156860352,
0.006232063770294189,
0.006137856006622314,
0.006346752166748047,
0.006298624038696289,
0.0063201279640197755,
0.006203392028808594,
0.006215775966644287,
0.006242303848266601,
0.0062791681289672855,
0.006247424125671387,
0.006266816139221192,
0.006250527858734131,
0.006236159801483154,
0.006284287929534912,
0.006292479991912842,
0.006228991985321045,
0.006231040000915527,
0.006180863857269287,
0.006252543926239014,
0.006138879776000977,
0.00620851182937622,
0.006169600009918213,
0.006260735988616943,
0.006240255832672119,
0.006189055919647217,
0.006296576023101807,
0.006294528007507324,
0.0062679038047790524,
0.0062863359451293946,
0.006203392028808594,
0.006194176197052002,
0.006200319766998291,
0.005997600078582764,
0.005723135948181152,
0.0060098237991333,
0.005868544101715088,
0.00585529613494873,
0.006270976066589356,
0.006190080165863037,
0.00602623987197876,
0.005982207775115967,
0.006176767826080322,
0.005876832008361817,
0.00582144021987915,
0.005849088191986084,
0.005888000011444092,
0.00581324815750122,
0.005731328010559082,
0.005819392204284668,
0.005778528213500976,
0.0058009600639343266,
0.006011903762817383,
0.006071296215057373,
0.006027232170104981,
0.006093823909759521,
0.006046720027923584,
0.006190080165863037,
0.006112256050109863,
0.0062187199592590335,
0.006105088233947754,
0.0062044157981872555,
0.006512639999389648,
0.006094848155975342,
0.006176767826080322,
0.006009856224060059,
0.006090752124786377,
0.006062079906463623,
0.005777408123016357,
0.005692416191101074,
0.0055511040687561035,
0.005488639831542969,
0.00559932804107666,
0.005745664119720459,
0.005566463947296142,
0.0055552000999450684,
0.005790719985961914,
0.005730303764343261,
0.005751808166503906,
0.005744639873504639,
0.00602623987197876,
0.005971968173980713,
0.006007808208465576,
0.006004735946655273,
0.006163551807403565,
0.006150144100189209,
0.006172704219818115,
0.005864480018615723,
0.005776256084442139,
0.0057803521156311035,
0.0058388481140136715,
0.0057784318923950195,
0.005827583789825439,
0.005760000228881836,
0.005767168045043946,
0.005716991901397705,
0.005796864032745362,
0.005754879951477051,
0.00566374397277832,
0.005765120029449463,
0.005731328010559082,
0.005740543842315674,
0.00572108793258667,
0.005760000228881836,
0.005705728054046631,
0.005713920116424561,
0.005730303764343261,
0.005710847854614258,
0.005739520072937012,
0.005732351779937744,
0.005710912227630615,
0.0056555519104003905,
0.005713024139404297,
0.0056442880630493165,
0.005661695957183838,
0.005734399795532226,
0.005681151866912842,
0.005727231979370117,
0.005733376026153565,
0.005817344188690185,
0.005746687889099121,
0.005725183963775635,
0.00566480016708374,
0.005700607776641845,
0.0057292799949646,
0.005669888019561768,
0.005732351779937744,
0.005755904197692871,
0.005734399795532226,
0.005750783920288086,
0.00566374397277832,
0.005708799839019775,
0.005691391944885254,
0.005757952213287353,
0.005697535991668701,
0.005743616104125977,
0.005697535991668701,
0.005725247859954834,
0.005730303764343261,
0.00570576000213623,
0.00587059211730957,
0.005690432071685791,
0.005726175785064697,
0.005649407863616943,
0.005725183963775635,
0.005718016147613526
]
},
"throughput": {
"unit": "samples/s",
"value": 167.44063956532338
},
"energy": {
"unit": "kWh",
"cpu": 6.619145750333477e-08,
"ram": 3.618679448110071e-08,
"gpu": 3.7692922767597377e-07,
"total": 4.793074796604093e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2086343.4067594833
}
}
}
}