IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
868f763 verified
raw
history blame
12.7 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.2.2",
"_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.14",
"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": 904.749056,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 184,
"total": 1.0002912659645087,
"mean": 0.005436365575894065,
"stdev": 0.0002299414006024986,
"p50": 0.005403647899627686,
"p90": 0.005625081682205201,
"p95": 0.006027775955200195,
"p99": 0.006210948967933654,
"values": [
0.006874112129211426,
0.006032383918762207,
0.00620851182937622,
0.006116352081298828,
0.006158336162567139,
0.0061265921592712404,
0.006107135772705078,
0.006070240020751953,
0.006111231803894043,
0.0062228479385375976,
0.005389311790466309,
0.005327871799468994,
0.005198847770690918,
0.005265408039093018,
0.005191679954528809,
0.005210112094879151,
0.00521017599105835,
0.0051701760292053225,
0.005193727970123291,
0.005203968048095703,
0.005180384159088135,
0.0051773438453674315,
0.005620736122131348,
0.005414912223815918,
0.005398528099060058,
0.005455872058868408,
0.005392384052276611,
0.005392384052276611,
0.005400576114654541,
0.005390336036682129,
0.005430272102355957,
0.005387263774871826,
0.005398528099060058,
0.00522438383102417,
0.005197824001312256,
0.005198847770690918,
0.005215231895446777,
0.005215231895446777,
0.005239808082580567,
0.005410816192626953,
0.005445631980895996,
0.005388288021087646,
0.00551526403427124,
0.005414912223815918,
0.005453824043273926,
0.005438464164733887,
0.005403647899627686,
0.005346303939819336,
0.005403647899627686,
0.005619647979736328,
0.0054271998405456545,
0.00542310380935669,
0.00542310380935669,
0.005231616020202637,
0.005314559936523438,
0.005192704200744629,
0.00522547197341919,
0.005208064079284668,
0.0051968002319335935,
0.005197824001312256,
0.005480447769165039,
0.0053944320678710935,
0.0054271998405456545,
0.005437439918518067,
0.005416959762573242,
0.0054282240867614745,
0.0054282240867614745,
0.0055214080810546875,
0.005431295871734619,
0.005403647899627686,
0.0054241280555725096,
0.005432320117950439,
0.005384128093719482,
0.005499904155731201,
0.005401599884033203,
0.00537497615814209,
0.0054651198387145996,
0.00541593599319458,
0.005404672145843506,
0.005406720161437988,
0.005411839962005615,
0.005441535949707031,
0.006001664161682129,
0.005670911788940429,
0.005607423782348633,
0.0055848960876464845,
0.0056269440650939945,
0.005597184181213379,
0.005599232196807862,
0.005732319831848145,
0.005709824085235596,
0.005769216060638428,
0.005285888195037842,
0.005182464122772217,
0.005191679954528809,
0.005155839920043945,
0.005158912181854248,
0.005185535907745361,
0.0051660799980163576,
0.005158912181854248,
0.005174272060394287,
0.005183487892150879,
0.005181439876556396,
0.005197824001312256,
0.00561359977722168,
0.005385248184204101,
0.0054282240867614745,
0.005443583965301513,
0.0053944320678710935,
0.0054282240867614745,
0.005354496002197265,
0.005381120204925537,
0.005396480083465576,
0.005390336036682129,
0.005407743930816651,
0.005408768177032471,
0.005362688064575195,
0.005385216236114502,
0.005400576114654541,
0.005391359806060791,
0.005403647899627686,
0.005413919925689697,
0.005434368133544922,
0.005387263774871826,
0.0053851838111877446,
0.005410816192626953,
0.005410816192626953,
0.005463039875030518,
0.005417984008789062,
0.005496831893920898,
0.005390336036682129,
0.005639167785644531,
0.005419007778167725,
0.005399551868438721,
0.0054876160621643065,
0.005408768177032471,
0.005412831783294678,
0.005414912223815918,
0.005391359806060791,
0.005398528099060058,
0.005414912223815918,
0.005390336036682129,
0.00542310380935669,
0.005362688064575195,
0.005319680213928223,
0.00532480001449585,
0.005338111877441406,
0.005312511920928955,
0.005321728229522705,
0.00532480001449585,
0.0053309440612792965,
0.005535744190216065,
0.005462016105651855,
0.005385216236114502,
0.0054579200744628905,
0.005437439918518067,
0.005371903896331787,
0.005412864208221436,
0.005745664119720459,
0.0054496641159057614,
0.005426176071166992,
0.005407743930816651,
0.005493760108947754,
0.005390336036682129,
0.0053944320678710935,
0.005403711795806885,
0.005656576156616211,
0.005495808124542236,
0.005444608211517334,
0.005392384052276611,
0.005453824043273926,
0.005387263774871826,
0.005409791946411133,
0.005375999927520752,
0.0053637118339538575,
0.005375999927520752,
0.005372928142547607,
0.005430272102355957,
0.005384223937988281,
0.005409791946411133,
0.0053821439743042,
0.005396480083465576,
0.005455872058868408,
0.005352447986602784
]
},
"throughput": {
"unit": "samples/s",
"value": 183.94642266778388
},
"energy": {
"unit": "kWh",
"cpu": 6.298004841128141e-08,
"ram": 3.4427910473978237e-08,
"gpu": 3.6340602358507294e-07,
"total": 4.608139824703326e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2170073.0404038476
}
}
}
}