IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
07e6e47 verified
raw
history blame
12.1 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.007168,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 171,
"total": 0.996670401573181,
"mean": 0.005828481880544919,
"stdev": 0.00016089225625755239,
"p50": 0.005784575939178467,
"p90": 0.006093823909759521,
"p95": 0.006151679992675781,
"p99": 0.0063618048667907715,
"values": [
0.006396927833557129,
0.006180863857269287,
0.0062494721412658695,
0.0062197761535644535,
0.006205440044403076,
0.006227968215942382,
0.005917695999145508,
0.005905471801757813,
0.005819392204284668,
0.005827583789825439,
0.005819392204284668,
0.005988351821899414,
0.005792768001556397,
0.005859327793121338,
0.0058091521263122555,
0.005810175895690918,
0.00571289587020874,
0.005676032066345215,
0.005718016147613526,
0.00577023983001709,
0.006093823909759521,
0.005823488235473633,
0.005882880210876465,
0.005824512004852295,
0.005889023780822754,
0.005831679821014404,
0.005789696216583252,
0.005768191814422607,
0.0057918400764465335,
0.005850111961364746,
0.005850111961364746,
0.0058429441452026365,
0.005825535774230957,
0.005839871883392334,
0.005814239978790283,
0.005795839786529541,
0.0057794561386108395,
0.005853184223175049,
0.005837823867797852,
0.005843967914581299,
0.005801983833312988,
0.005702655792236328,
0.005661695957183838,
0.00570470380783081,
0.005747712135314941,
0.005775360107421875,
0.005684224128723145,
0.005891071796417236,
0.0061296639442443845,
0.006032383918762207,
0.0061296639442443845,
0.006144000053405762,
0.006128640174865723,
0.005808127880096436,
0.005836800098419189,
0.005794816017150879,
0.0057794561386108395,
0.005747712135314941,
0.005834752082824707,
0.00582041597366333,
0.005796864032745362,
0.005780479907989502,
0.005837855815887451,
0.005751872062683105,
0.005746687889099121,
0.005740543842315674,
0.005790719985961914,
0.005784607887268066,
0.005758944034576416,
0.005853184223175049,
0.005851136207580566,
0.0057292799949646,
0.005684224128723145,
0.005760000228881836,
0.005755904197692871,
0.005735424041748047,
0.005784575939178467,
0.005746687889099121,
0.005834752082824707,
0.005731328010559082,
0.005776319980621338,
0.005832704067230224,
0.005900288105010986,
0.005818272113800049,
0.006148096084594727,
0.006669312000274658,
0.006346752166748047,
0.006090752124786377,
0.006155263900756836,
0.005988351821899414,
0.006094848155975342,
0.006069248199462891,
0.005966847896575928,
0.005948416233062744,
0.0057784318923950195,
0.005803008079528809,
0.005996543884277344,
0.006136832237243653,
0.005798912048339844,
0.005750783920288086,
0.005783552169799804,
0.005750783920288086,
0.005912511825561523,
0.005814271926879883,
0.005943391799926758,
0.00587059211730957,
0.005923840045928955,
0.006012928009033203,
0.006136832237243653,
0.005817344188690185,
0.005827583789825439,
0.005768191814422607,
0.005866496086120605,
0.005766143798828125,
0.005784512042999268,
0.005860352039337159,
0.005755871772766113,
0.005772287845611572,
0.005732351779937744,
0.005760000228881836,
0.00572108793258667,
0.005791744232177734,
0.00571289587020874,
0.00568832015991211,
0.00573747205734253,
0.005681151866912842,
0.005720064163208007,
0.005700607776641845,
0.005732351779937744,
0.005705728054046631,
0.005713920116424561,
0.005720064163208007,
0.005691391944885254,
0.005730303764343261,
0.005698560237884521,
0.00572211217880249,
0.005724160194396972,
0.005706751823425293,
0.00572211217880249,
0.005605343818664551,
0.0057292799949646,
0.005703680038452149,
0.005650432109832764,
0.00567193603515625,
0.0056483840942382815,
0.0056145920753479005,
0.005818367958068848,
0.005656576156616211,
0.0056258559226989744,
0.005753856182098388,
0.005717919826507568,
0.0057118721008300784,
0.005815296173095703,
0.005692416191101074,
0.005738495826721191,
0.005710847854614258,
0.005726208209991455,
0.0057077760696411135,
0.005733376026153565,
0.00570470380783081,
0.0057415680885314945,
0.005725183963775635,
0.005713920116424561,
0.00572211217880249,
0.005797887802124023,
0.00572211217880249,
0.00572108793258667,
0.005731328010559082,
0.005739583969116211,
0.0057077760696411135,
0.005713920116424561
]
},
"throughput": {
"unit": "samples/s",
"value": 171.57126340873305
},
"energy": {
"unit": "kWh",
"cpu": 6.844921339125861e-08,
"ram": 3.701333939950148e-08,
"gpu": 3.714875987771407e-07,
"total": 4.769501515679007e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2096655.167657779
}
}
}
}