cuda
/
cuda_inference_transformers_image-classification_google
/vit-base-patch16-224
/benchmark.json

IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
e644f19
verified
{ | |
"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": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 860.008448, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.11359744262695312 | |
], | |
"count": 1, | |
"total": 0.11359744262695312, | |
"mean": 0.11359744262695312, | |
"p50": 0.11359744262695312, | |
"p90": 0.11359744262695312, | |
"p95": 0.11359744262695312, | |
"p99": 0.11359744262695312, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1050.259456, | |
"max_global_vram": 1073.217536, | |
"max_process_vram": 0.0, | |
"max_reserved": 423.624704, | |
"max_allocated": 377.056256 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007388160228729248, | |
0.0069253120422363285, | |
0.006924287796020508, | |
0.006936575889587402, | |
0.006930431842803955, | |
0.0069283838272094726, | |
0.00693452787399292, | |
0.006905856132507324, | |
0.006906879901885986, | |
0.006903808116912841, | |
0.006899712085723877, | |
0.0069027838706970214, | |
0.0069550080299377445, | |
0.006974463939666748, | |
0.006972415924072266, | |
0.006986752033233643, | |
0.006978559970855713, | |
0.006975488185882568, | |
0.0069816322326660156, | |
0.006977536201477051, | |
0.006973440170288086, | |
0.006980607986450196, | |
0.006956031799316406, | |
0.006969344139099121, | |
0.006975488185882568, | |
0.0069632000923156735, | |
0.0069621758460998535, | |
0.006960127830505371, | |
0.006965248107910156, | |
0.006957056045532227, | |
0.006972415924072266, | |
0.007000063896179199, | |
0.006999040126800537, | |
0.006958079814910889, | |
0.006964223861694336, | |
0.006970367908477783, | |
0.006970367908477783, | |
0.006975488185882568, | |
0.006977536201477051, | |
0.006977536201477051, | |
0.006960127830505371, | |
0.006960127830505371, | |
0.0069632000923156735, | |
0.006960127830505371, | |
0.006968319892883301, | |
0.006982656002044678, | |
0.006982656002044678, | |
0.006982656002044678, | |
0.006978559970855713, | |
0.0069816322326660156, | |
0.0069632000923156735, | |
0.006952960014343262, | |
0.006977536201477051, | |
0.006970367908477783, | |
0.006973440170288086, | |
0.006982656002044678, | |
0.006977536201477051, | |
0.006980607986450196, | |
0.006988800048828125, | |
0.006972415924072266, | |
0.006968319892883301, | |
0.0069847040176391605, | |
0.006972415924072266, | |
0.006975488185882568, | |
0.006960127830505371, | |
0.006969344139099121, | |
0.006979584217071533, | |
0.0069632000923156735, | |
0.006958079814910889, | |
0.006970367908477783, | |
0.006971392154693603, | |
0.006960127830505371, | |
0.006978559970855713, | |
0.006966271877288818, | |
0.006965248107910156, | |
0.006967296123504638, | |
0.006977536201477051, | |
0.006972415924072266, | |
0.006961152076721191, | |
0.006974463939666748, | |
0.006973440170288086, | |
0.0069816322326660156, | |
0.006975488185882568, | |
0.006976511955261231, | |
0.006964223861694336, | |
0.006968319892883301, | |
0.006971392154693603, | |
0.006978559970855713, | |
0.006969344139099121, | |
0.006969344139099121, | |
0.0069632000923156735, | |
0.0069632000923156735, | |
0.006975488185882568, | |
0.007012351989746094, | |
0.007011328220367432, | |
0.007002111911773682, | |
0.007005184173583984, | |
0.007010303974151612, | |
0.007000063896179199, | |
0.007013376235961914, | |
0.007014400005340577, | |
0.007010303974151612, | |
0.007021567821502686, | |
0.007011328220367432, | |
0.007009280204772949, | |
0.007002111911773682, | |
0.007008255958557129, | |
0.007010303974151612, | |
0.007005184173583984, | |
0.0069959678649902345, | |
0.007006207942962647, | |
0.007005184173583984, | |
0.007000063896179199, | |
0.007015423774719238, | |
0.007005184173583984, | |
0.007016448020935059, | |
0.007003136157989502, | |
0.007008255958557129, | |
0.007013408184051514, | |
0.007014400005340577, | |
0.007009376049041748, | |
0.007015423774719238, | |
0.006996992111206054, | |
0.006993919849395752, | |
0.006988800048828125, | |
0.006999040126800537, | |
0.006990848064422607, | |
0.0069816322326660156, | |
0.0069959678649902345, | |
0.006998015880584717, | |
0.006993919849395752, | |
0.006993919849395752, | |
0.006999040126800537, | |
0.007003136157989502, | |
0.007003136157989502, | |
0.007005184173583984, | |
0.007014400005340577, | |
0.007016448020935059, | |
0.007010303974151612, | |
0.007008255958557129, | |
0.007017471790313721, | |
0.007009280204772949, | |
0.007014400005340577, | |
0.007014400005340577, | |
0.007017471790313721, | |
0.007011328220367432, | |
0.0069918718338012695, | |
0.006993919849395752, | |
0.007000063896179199 | |
], | |
"count": 149, | |
"total": 1.0405213465690615, | |
"mean": 0.006983364742074238, | |
"p50": 0.006978559970855713, | |
"p90": 0.007012556838989258, | |
"p95": 0.007015014266967773, | |
"p99": 0.0070196017265319825, | |
"stdev": 4.198564821663e-05, | |
"stdev_": 0.6012237620021432 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 286.3948932740335 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.359510862230185e-08, | |
"ram": 4.5393858267080146e-08, | |
"gpu": 5.359959545234936e-07, | |
"total": 6.649849214128756e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 3007586.9927255698 | |
} | |
} | |
} | |
} |