IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
970dfc2 verified
raw
history blame
12.4 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.5.1+cu124",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "image-classification",
"library": "transformers",
"model_type": "vit",
"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": {},
"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": 2,
"sequence_length": 16,
"num_choices": 2
},
"new_tokens": null,
"memory": true,
"latency": 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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.248768,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.228-219.884.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.5.0.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 865.50528,
"max_global_vram": 1037.565952,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"values": [
0.12408627319335938
],
"count": 1,
"total": 0.12408627319335938,
"mean": 0.12408627319335938,
"p50": 0.12408627319335938,
"p90": 0.12408627319335938,
"p95": 0.12408627319335938,
"p99": 0.12408627319335938,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 0.00010632012041944469,
"ram": 5.825294394500747e-05,
"gpu": 0.0001439790040719995,
"total": 0.0003085520684364516
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1057.759232,
"max_global_vram": 1073.217536,
"max_process_vram": 0.0,
"max_reserved": 423.624704,
"max_allocated": 377.056256
},
"latency": {
"unit": "s",
"values": [
0.007361536026000977,
0.006895616054534912,
0.0068986878395080565,
0.006914048194885254,
0.006986752033233643,
0.00698367977142334,
0.007020544052124023,
0.007107583999633789,
0.00709939193725586,
0.007096320152282715,
0.00709939193725586,
0.007106560230255127,
0.007104512214660645,
0.007104512214660645,
0.007106560230255127,
0.007102464199066162,
0.00709119987487793,
0.007093247890472412,
0.007090176105499267,
0.00709222412109375,
0.007093247890472412,
0.00709119987487793,
0.007101439952850342,
0.007087103843688965,
0.007093247890472412,
0.007093247890472412,
0.007097343921661377,
0.007093247890472412,
0.007088128089904785,
0.007112703800201416,
0.007127039909362793,
0.007078911781311035,
0.007085055828094483,
0.007073791980743408,
0.007071743965148926,
0.007068672180175781,
0.007078911781311035,
0.007076863765716553,
0.007076863765716553,
0.007069695949554444,
0.007070720195770264,
0.00707583999633789,
0.007070720195770264,
0.00707583999633789,
0.007070720195770264,
0.007078911781311035,
0.007067647933959961,
0.00707583999633789,
0.007069695949554444,
0.007023615837097168,
0.007046144008636474,
0.00704307222366333,
0.007036928176879883,
0.007038976192474365,
0.007028736114501953,
0.007038976192474365,
0.007036928176879883,
0.007037951946258545,
0.0070348801612854,
0.007041024208068848,
0.0070266880989074704,
0.007031807899475098,
0.007031807899475098,
0.00704307222366333,
0.00704204797744751,
0.0070348801612854,
0.00704307222366333,
0.007044095993041993,
0.007044095993041993,
0.007037951946258545,
0.007028736114501953,
0.007035903930664063,
0.007030784130096435,
0.007039999961853028,
0.007047167778015137,
0.00704204797744751,
0.007037951946258545,
0.007035903930664063,
0.007041024208068848,
0.007047167778015137,
0.00704204797744751,
0.0070348801612854,
0.007038976192474365,
0.007046144008636474,
0.007027711868286133,
0.007035903930664063,
0.007029759883880615,
0.0070348801612854,
0.007036928176879883,
0.007044095993041993,
0.007041024208068848,
0.007044095993041993,
0.007041024208068848,
0.007069695949554444,
0.007057407855987549,
0.007041024208068848,
0.00704204797744751,
0.007076863765716553,
0.00709939193725586,
0.00709939193725586,
0.007106560230255127,
0.007105535984039306,
0.007096320152282715,
0.007090176105499267,
0.00709119987487793,
0.007095295906066895,
0.007095295906066895,
0.007094272136688232,
0.007096320152282715,
0.007096320152282715,
0.00709119987487793,
0.007087103843688965,
0.00709939193725586,
0.0070860800743103025,
0.00710041618347168,
0.007093247890472412,
0.007104512214660645,
0.007095295906066895,
0.007101439952850342,
0.007098368167877197,
0.007103487968444824,
0.007103487968444824,
0.007103487968444824,
0.007090176105499267,
0.007085055828094483,
0.007096320152282715,
0.007106560230255127,
0.007098368167877197,
0.007097343921661377,
0.007103487968444824,
0.007098368167877197,
0.007104512214660645,
0.00710041618347168,
0.00709222412109375,
0.007097343921661377,
0.007108607769012451,
0.007096320152282715,
0.007107583999633789,
0.007107583999633789,
0.007097343921661377,
0.007102464199066162,
0.00709939193725586,
0.007094272136688232,
0.007098368167877197,
0.007102464199066162,
0.007098368167877197,
0.007096320152282715,
0.007101439952850342
],
"count": 148,
"total": 1.0466416673660281,
"mean": 0.007071903157878567,
"p50": 0.007085567951202392,
"p90": 0.007104512214660645,
"p95": 0.007106560230255127,
"p99": 0.007120301938056946,
"stdev": 4.486638527719062e-05,
"stdev_": 0.6344315564786334
},
"throughput": {
"unit": "samples/s",
"value": 282.8093025809987
},
"energy": {
"unit": "kWh",
"cpu": 8.406727309145795e-08,
"ram": 4.594376726151595e-08,
"gpu": 5.760907858911645e-07,
"total": 7.061018262441384e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2832452.6656987993
}
}
}
}