IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
4babb5d 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",
"library": "transformers",
"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": {},
"hub_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,
"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": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 910.401536,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 168,
"total": 0.9967216644287106,
"mean": 0.005932867050170899,
"stdev": 0.00020597042988183947,
"p50": 0.005881344079971314,
"p90": 0.005983232021331787,
"p95": 0.006430259132385254,
"p99": 0.006916771378517155,
"values": [
0.007153664112091064,
0.0064471039772033695,
0.00657919979095459,
0.006425600051879882,
0.006540287971496582,
0.006501408100128174,
0.006384640216827392,
0.006473663806915283,
0.006392831802368164,
0.006432767868041992,
0.006816768169403077,
0.006024191856384278,
0.006089727878570556,
0.005910528182983398,
0.005922815799713135,
0.005920703887939453,
0.0059361281394958495,
0.0058787841796875,
0.005912576198577881,
0.005880832195281982,
0.005900288105010986,
0.005857279777526855,
0.005915647983551026,
0.005888000011444092,
0.005934080123901367,
0.0058726401329040525,
0.005942207813262939,
0.00586137580871582,
0.005895167827606201,
0.005865471839904785,
0.0059054079055786135,
0.005849088191986084,
0.005890048027038574,
0.005890048027038574,
0.005883903980255127,
0.005900288105010986,
0.005876736164093017,
0.005890048027038574,
0.005903359889984131,
0.00591871976852417,
0.0059064321517944334,
0.005982143878936768,
0.005896192073822021,
0.005909503936767578,
0.005860352039337159,
0.005922815799713135,
0.005868544101715088,
0.005933055877685547,
0.0058716158866882326,
0.005893119812011719,
0.00587059211730957,
0.005892096042633056,
0.005844992160797119,
0.005892096042633056,
0.005865471839904785,
0.005869599819183349,
0.005866496086120605,
0.005882880210876465,
0.005882880210876465,
0.0058757119178771975,
0.0059064321517944334,
0.005901311874389649,
0.005901311874389649,
0.0058930559158325195,
0.005917632102966309,
0.0058757119178771975,
0.005964799880981446,
0.005881855964660645,
0.005908480167388916,
0.005874688148498535,
0.005904384136199951,
0.005858367919921875,
0.005916672229766846,
0.005859327793121338,
0.005891071796417236,
0.005836800098419189,
0.0058787841796875,
0.00582041597366333,
0.005849088191986084,
0.005835775852203369,
0.005866496086120605,
0.0058726401329040525,
0.005851136207580566,
0.00587059211730957,
0.005833727836608887,
0.005871679782867432,
0.005865536212921143,
0.005893119812011719,
0.005825535774230957,
0.005857279777526855,
0.00586137580871582,
0.005986303806304932,
0.005827648162841797,
0.005913599967956543,
0.005829664230346679,
0.005907487869262695,
0.005846015930175781,
0.005842912197113037,
0.00586240005493164,
0.005855231761932373,
0.0058726401329040525,
0.005848063945770264,
0.005797887802124023,
0.005760000228881836,
0.005808127880096436,
0.005781504154205322,
0.0058429760932922365,
0.005777408123016357,
0.005827583789825439,
0.0057825279235839844,
0.0057794561386108395,
0.005791744232177734,
0.005776383876800537,
0.005792768001556397,
0.005961696147918701,
0.0059023361206054685,
0.0058757119178771975,
0.005983232021331787,
0.005895167827606201,
0.005945343971252442,
0.005929984092712402,
0.005983232021331787,
0.005908480167388916,
0.005934080123901367,
0.005890048027038574,
0.005938176155090332,
0.005848063945770264,
0.005901311874389649,
0.0058716158866882326,
0.0059023361206054685,
0.005834752082824707,
0.005884928226470947,
0.00588595199584961,
0.005855231761932373,
0.005855231761932373,
0.0058757119178771975,
0.005892096042633056,
0.0058726401329040525,
0.005874688148498535,
0.005833727836608887,
0.005850111961364746,
0.0058122239112854005,
0.005922815799713135,
0.005839871883392334,
0.00591974401473999,
0.005851136207580566,
0.0058757119178771975,
0.006207488059997559,
0.007119808197021484,
0.005944320201873779,
0.005903359889984131,
0.00588595199584961,
0.005907455921173096,
0.0058419198989868165,
0.005868607997894287,
0.0058215360641479495,
0.00585209608078003,
0.005848063945770264,
0.0058716158866882326,
0.005851136207580566,
0.00587059211730957,
0.005819392204284668,
0.005928959846496582,
0.005857279777526855,
0.005849088191986084,
0.005806079864501953,
0.005849088191986084,
0.005904384136199951
]
},
"throughput": {
"unit": "samples/s",
"value": 168.552571892066
},
"energy": {
"unit": "kWh",
"cpu": 6.911356184987751e-08,
"ram": 3.778851540245828e-08,
"gpu": 3.5255680659302564e-07,
"total": 4.594588838453614e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2176473.3149366346
}
}
}
}