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
b886bb4
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_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.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 757.481472, | |
"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.2260361328125, | |
"mean": 7.2260361328125, | |
"stdev": 0.0, | |
"p50": 7.2260361328125, | |
"p90": 7.2260361328125, | |
"p95": 7.2260361328125, | |
"p99": 7.2260361328125, | |
"values": [ | |
7.2260361328125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.555726594395108e-06, | |
"ram": 8.367738430920705e-07, | |
"gpu": 1.585556824000231e-06, | |
"total": 3.97805726148741e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 888.950784, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 196, | |
"total": 0.999416801452637, | |
"mean": 0.005099065313533861, | |
"stdev": 0.00018321282456748903, | |
"p50": 0.005149696111679078, | |
"p90": 0.005307904005050659, | |
"p95": 0.005363967895507813, | |
"p99": 0.00544850072860718, | |
"values": [ | |
0.005188608169555664, | |
0.005254144191741943, | |
0.005439487934112549, | |
0.0053637118339538575, | |
0.005343167781829834, | |
0.00536575984954834, | |
0.00530944013595581, | |
0.00530944013595581, | |
0.00538316822052002, | |
0.005304384231567383, | |
0.005347328186035156, | |
0.0053647360801696775, | |
0.005284863948822022, | |
0.005213183879852295, | |
0.0053095040321350095, | |
0.0052367358207702636, | |
0.005132287979125977, | |
0.005146624088287354, | |
0.005159872055053711, | |
0.0051773438453674315, | |
0.005194752216339111, | |
0.005257215976715088, | |
0.005319680213928223, | |
0.005384191989898681, | |
0.00530841588973999, | |
0.005256192207336426, | |
0.005202943801879883, | |
0.0052008957862854, | |
0.005172224044799805, | |
0.005254144191741943, | |
0.005619743824005127, | |
0.005262335777282715, | |
0.005252096176147461, | |
0.0052971520423889164, | |
0.005307392120361328, | |
0.005220352172851562, | |
0.005268447875976563, | |
0.005220352172851562, | |
0.005191679954528809, | |
0.005279744148254394, | |
0.0052111358642578124, | |
0.005252096176147461, | |
0.005189631938934326, | |
0.005134335994720459, | |
0.00510975980758667, | |
0.005135359764099121, | |
0.0051701760292053225, | |
0.005189631938934326, | |
0.00531660795211792, | |
0.005201920032501221, | |
0.005215231895446777, | |
0.005213183879852295, | |
0.005254144191741943, | |
0.005219327926635742, | |
0.005311488151550293, | |
0.005302271842956543, | |
0.005260287761688232, | |
0.005260287761688232, | |
0.0052930560111999515, | |
0.005164031982421875, | |
0.005154816150665284, | |
0.0052336640357971195, | |
0.0052633600234985355, | |
0.0052674560546875, | |
0.005239808082580567, | |
0.005195775985717774, | |
0.005253119945526123, | |
0.0052336640357971195, | |
0.005202943801879883, | |
0.005824512004852295, | |
0.00522649621963501, | |
0.0051998720169067385, | |
0.005195807933807373, | |
0.0053012480735778805, | |
0.005158912181854248, | |
0.005189631938934326, | |
0.005145599842071533, | |
0.00520908784866333, | |
0.005390336036682129, | |
0.005201920032501221, | |
0.005223423957824707, | |
0.005212128162384033, | |
0.005219327926635742, | |
0.005368832111358642, | |
0.0052674560546875, | |
0.005173247814178467, | |
0.005246975898742676, | |
0.005257215976715088, | |
0.0052715520858764645, | |
0.0052971520423889164, | |
0.005237760066986084, | |
0.0052715520858764645, | |
0.005288928031921387, | |
0.005163008213043213, | |
0.005117951869964599, | |
0.005224448204040527, | |
0.0052347202301025395, | |
0.005122047901153564, | |
0.005131264209747314, | |
0.005152768135070801, | |
0.005045248031616211, | |
0.0050165758132934574, | |
0.0051701760292053225, | |
0.005156832218170166, | |
0.005047296047210693, | |
0.0049489917755126955, | |
0.004918272018432617, | |
0.0049459199905395506, | |
0.004907008171081543, | |
0.0050657281875610355, | |
0.005128191947937012, | |
0.005122047901153564, | |
0.005124095916748047, | |
0.005178368091583252, | |
0.005201920032501221, | |
0.005208064079284668, | |
0.0053975038528442385, | |
0.005194752216339111, | |
0.005039103984832764, | |
0.0050032639503479, | |
0.00496127986907959, | |
0.004888576030731201, | |
0.004910079956054687, | |
0.004872191905975342, | |
0.004893695831298828, | |
0.004867072105407715, | |
0.004951039791107178, | |
0.004897791862487793, | |
0.0049090561866760255, | |
0.004914175987243652, | |
0.0049489917755126955, | |
0.00491315221786499, | |
0.004897791862487793, | |
0.004876287937164306, | |
0.004858880043029785, | |
0.004895743846893311, | |
0.004873216152191162, | |
0.004901887893676758, | |
0.0048793601989746095, | |
0.004915200233459473, | |
0.0048793601989746095, | |
0.004971519947052002, | |
0.004998144149780274, | |
0.0048793601989746095, | |
0.004907008171081543, | |
0.004858880043029785, | |
0.004869120121002197, | |
0.0048865280151367185, | |
0.0049162240028381345, | |
0.0048793601989746095, | |
0.004999167919158935, | |
0.00487116813659668, | |
0.004894720077514648, | |
0.004884479999542236, | |
0.004857855796813965, | |
0.004874239921569825, | |
0.004877312183380127, | |
0.004955135822296143, | |
0.004900864124298096, | |
0.004866047859191895, | |
0.004880383968353271, | |
0.004893695831298828, | |
0.004876287937164306, | |
0.004876287937164306, | |
0.004859903812408447, | |
0.004893695831298828, | |
0.004917247772216797, | |
0.004888576030731201, | |
0.004893695831298828, | |
0.0049459199905395506, | |
0.004893695831298828, | |
0.004883456230163574, | |
0.0049203200340270994, | |
0.004883456230163574, | |
0.005054463863372802, | |
0.004904960155487061, | |
0.004892672061920166, | |
0.004890624046325683, | |
0.004905983924865722, | |
0.004930560111999512, | |
0.004882431983947754, | |
0.004944896221160889, | |
0.00491315221786499, | |
0.004902912139892578, | |
0.004895743846893311, | |
0.004876287937164306, | |
0.004887551784515381, | |
0.004877312183380127, | |
0.004917247772216797, | |
0.00486297607421875, | |
0.004927487850189209, | |
0.00491315221786499, | |
0.0049428482055664065, | |
0.0048895998001098635, | |
0.004859903812408447, | |
0.004888576030731201 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 196.11437361781097 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.762297990049526e-08, | |
"ram": 3.150564838707409e-08, | |
"gpu": 3.449345217874407e-07, | |
"total": 4.3406315007500996e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2303812.2444330766 | |
} | |
} | |
} | |
} |