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
98710c1
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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": 1, | |
"num_choices": 2, | |
"sequence_length": 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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-212.873.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 827.154432, | |
"max_global_vram": 1030.22592, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.43172705078125, | |
"mean": 7.43172705078125, | |
"stdev": 0.0, | |
"p50": 7.43172705078125, | |
"p90": 7.43172705078125, | |
"p95": 7.43172705078125, | |
"p99": 7.43172705078125, | |
"values": [ | |
7.43172705078125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.46705120763839e-06, | |
"ram": 7.88063599934043e-07, | |
"gpu": 1.7230569340003984e-06, | |
"total": 3.978171741572832e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.242944, | |
"max_global_vram": 1049.100288, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 193, | |
"total": 0.9973320994377138, | |
"mean": 0.005167523831283491, | |
"stdev": 0.00031890076405830496, | |
"p50": 0.005186560153961181, | |
"p90": 0.00537190408706665, | |
"p95": 0.0053968640327453615, | |
"p99": 0.006408437862396226, | |
"values": [ | |
0.007301119804382325, | |
0.007188479900360107, | |
0.006340608119964599, | |
0.005256192207336426, | |
0.00537497615814209, | |
0.005291039943695068, | |
0.005230591773986816, | |
0.0051968002319335935, | |
0.005189599990844726, | |
0.005116928100585938, | |
0.0051794881820678715, | |
0.005117951869964599, | |
0.005104640007019043, | |
0.0051404800415039064, | |
0.005135359764099121, | |
0.005116928100585938, | |
0.005101568222045898, | |
0.005135231971740722, | |
0.004963327884674072, | |
0.004976640224456787, | |
0.004964352130889893, | |
0.005105663776397705, | |
0.0051129918098449705, | |
0.005198719978332519, | |
0.005396416187286377, | |
0.005359615802764893, | |
0.005228320121765137, | |
0.005165056228637695, | |
0.005131328105926513, | |
0.005241856098175048, | |
0.005274623870849609, | |
0.005294079780578613, | |
0.005288959980010987, | |
0.00538316822052002, | |
0.0053637118339538575, | |
0.005381184101104736, | |
0.005337088108062744, | |
0.005294079780578613, | |
0.005314720153808594, | |
0.00526643180847168, | |
0.005340159893035889, | |
0.005286911964416504, | |
0.005397439956665039, | |
0.005312511920928955, | |
0.005283679962158203, | |
0.005311488151550293, | |
0.005214208126068115, | |
0.005132287979125977, | |
0.0051363840103149415, | |
0.005259168148040771, | |
0.00531763219833374, | |
0.005329919815063477, | |
0.005303296089172363, | |
0.005234687805175781, | |
0.005302271842956543, | |
0.005247968196868897, | |
0.005291007995605469, | |
0.005354496002197265, | |
0.005352352142333984, | |
0.00536678409576416, | |
0.005328800201416016, | |
0.005430272102355957, | |
0.005396480083465576, | |
0.005325856208801269, | |
0.005193727970123291, | |
0.005083136081695557, | |
0.006112256050109863, | |
0.00535862398147583, | |
0.005333216190338135, | |
0.005391295909881592, | |
0.005261280059814453, | |
0.005298175811767578, | |
0.005354559898376464, | |
0.005210112094879151, | |
0.00512608003616333, | |
0.005186560153961181, | |
0.0052399678230285645, | |
0.0052930560111999515, | |
0.0052696638107299805, | |
0.005309631824493408, | |
0.005349376201629639, | |
0.0053861761093139645, | |
0.0051968002319335935, | |
0.005245920181274414, | |
0.005269504070281982, | |
0.005228544235229492, | |
0.00521830415725708, | |
0.005243904113769531, | |
0.0052715520858764645, | |
0.005220352172851562, | |
0.005255167961120606, | |
0.005295040130615235, | |
0.005351424217224121, | |
0.005421055793762207, | |
0.0053678078651428224, | |
0.005393407821655274, | |
0.005372928142547607, | |
0.005392384052276611, | |
0.005313536167144775, | |
0.005286911964416504, | |
0.005305312156677246, | |
0.005318655967712403, | |
0.005331967830657959, | |
0.005135359764099121, | |
0.005236767768859864, | |
0.005341184139251709, | |
0.005232639789581299, | |
0.005163008213043213, | |
0.005180416107177735, | |
0.005122047901153564, | |
0.00501964807510376, | |
0.005064767837524414, | |
0.005273600101470947, | |
0.00515174388885498, | |
0.005017600059509277, | |
0.00501964807510376, | |
0.0050032639503479, | |
0.005001215934753418, | |
0.004951039791107178, | |
0.006007808208465576, | |
0.005184512138366699, | |
0.005238783836364746, | |
0.005278719902038574, | |
0.005217311859130859, | |
0.005189631938934326, | |
0.005336063861846924, | |
0.005420032024383545, | |
0.005178368091583252, | |
0.005091392040252686, | |
0.005599264144897461, | |
0.005259263992309571, | |
0.005029888153076172, | |
0.00486195182800293, | |
0.004873216152191162, | |
0.004884479999542236, | |
0.004888576030731201, | |
0.0048568320274353025, | |
0.0048793601989746095, | |
0.004887551784515381, | |
0.004835328102111816, | |
0.004884479999542236, | |
0.004860928058624267, | |
0.004843520164489746, | |
0.004840447902679444, | |
0.004843520164489746, | |
0.0049162240028381345, | |
0.004887551784515381, | |
0.0048220157623291016, | |
0.004810751914978028, | |
0.00481279993057251, | |
0.0048220157623291016, | |
0.004951039791107178, | |
0.004806655883789063, | |
0.004806655883789063, | |
0.00480460786819458, | |
0.004809728145599365, | |
0.004808703899383545, | |
0.0048056321144104, | |
0.0048056321144104, | |
0.004808703899383545, | |
0.004807680130004883, | |
0.004806655883789063, | |
0.004808703899383545, | |
0.004807680130004883, | |
0.004809728145599365, | |
0.004810751914978028, | |
0.004808703899383545, | |
0.0048056321144104, | |
0.00481382417678833, | |
0.004807680130004883, | |
0.004809728145599365, | |
0.004807680130004883, | |
0.00480460786819458, | |
0.004806655883789063, | |
0.004807712078094483, | |
0.004809728145599365, | |
0.0048148479461669925, | |
0.004809728145599365, | |
0.00481382417678833, | |
0.004810751914978028, | |
0.00495411205291748, | |
0.005121024131774903, | |
0.005113791942596435, | |
0.0051701760292053225, | |
0.00511897611618042, | |
0.005119808197021484, | |
0.005153728008270264, | |
0.005138432025909424, | |
0.005108928203582764, | |
0.005134367942810058, | |
0.005228544235229492, | |
0.005127168178558349, | |
0.005123072147369385 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 193.51628219808782 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.8945036162934676e-08, | |
"ram": 3.222937415237684e-08, | |
"gpu": 3.7219073445771084e-07, | |
"total": 4.6336514477302234e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2158125.209201582 | |
} | |
} | |
} | |
} |