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
607c404
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": 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.224-212.876.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.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 841.25696, | |
"max_global_vram": 1037.565952, | |
"max_process_vram": 0.0, | |
"max_reserved": 400.556032, | |
"max_allocated": 346.271744 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.90684765625, | |
"mean": 7.90684765625, | |
"stdev": 0.0, | |
"p50": 7.90684765625, | |
"p90": 7.90684765625, | |
"p95": 7.90684765625, | |
"p99": 7.90684765625, | |
"values": [ | |
7.90684765625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.475042093050484e-06, | |
"ram": 7.894948002377412e-07, | |
"gpu": 1.6583346599957638e-06, | |
"total": 3.92287155328399e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1050.660864, | |
"max_global_vram": 1056.44032, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 186, | |
"total": 0.9974731531143187, | |
"mean": 0.005362758887711392, | |
"stdev": 0.00033315831316422335, | |
"p50": 0.005476864099502564, | |
"p90": 0.005659136056900025, | |
"p95": 0.005720064163208007, | |
"p99": 0.0064435102939605715, | |
"values": [ | |
0.00568832015991211, | |
0.00566476821899414, | |
0.005756927967071533, | |
0.005656576156616211, | |
0.005399551868438721, | |
0.005406720161437988, | |
0.005370880126953125, | |
0.005352447986602784, | |
0.0053678078651428224, | |
0.005361663818359375, | |
0.005509119987487793, | |
0.005533696174621582, | |
0.005586944103240967, | |
0.005591040134429932, | |
0.005550079822540284, | |
0.00553056001663208, | |
0.0056780800819396975, | |
0.005527552127838135, | |
0.005447679996490478, | |
0.005401599884033203, | |
0.005414912223815918, | |
0.005409791946411133, | |
0.005493760108947754, | |
0.005499904155731201, | |
0.005618656158447265, | |
0.005561376094818115, | |
0.005581823825836182, | |
0.0055214080810546875, | |
0.005591040134429932, | |
0.005541888236999512, | |
0.005725183963775635, | |
0.005553152084350586, | |
0.005654528141021729, | |
0.005636096000671387, | |
0.0056258559226989744, | |
0.005618783950805664, | |
0.005581823825836182, | |
0.0057077760696411135, | |
0.005596159934997558, | |
0.0055808000564575196, | |
0.005529600143432617, | |
0.005495808124542236, | |
0.005543935775756836, | |
0.005532671928405761, | |
0.005526527881622314, | |
0.00555622386932373, | |
0.00568012809753418, | |
0.005431263923645019, | |
0.005472256183624268, | |
0.00538316822052002, | |
0.005411839962005615, | |
0.005479423999786377, | |
0.005505023956298828, | |
0.005475327968597412, | |
0.005471231937408447, | |
0.00553984022140503, | |
0.005479423999786377, | |
0.005478400230407715, | |
0.005508096218109131, | |
0.00562278413772583, | |
0.005538815975189209, | |
0.006469567775726318, | |
0.005738495826721191, | |
0.005618688106536865, | |
0.005578752040863037, | |
0.005518335819244385, | |
0.005504000186920166, | |
0.005502975940704345, | |
0.0055203838348388675, | |
0.005526527881622314, | |
0.00556441593170166, | |
0.005796864032745362, | |
0.006251520156860352, | |
0.00643891191482544, | |
0.006590464115142822, | |
0.005640192031860352, | |
0.005504000186920166, | |
0.005419007778167725, | |
0.005430272102355957, | |
0.005643263816833496, | |
0.005472256183624268, | |
0.005566463947296142, | |
0.005575679779052735, | |
0.005401599884033203, | |
0.005695487976074219, | |
0.005565440177917481, | |
0.005563392162322998, | |
0.005485568046569824, | |
0.0055285758972167965, | |
0.0055285758972167965, | |
0.005545983791351319, | |
0.005563392162322998, | |
0.005534719944000244, | |
0.005570559978485107, | |
0.005661695957183838, | |
0.005645311832427978, | |
0.005701632022857666, | |
0.005611519813537597, | |
0.005566463947296142, | |
0.005569536209106446, | |
0.005617663860321045, | |
0.005567488193511963, | |
0.005571584224700928, | |
0.005561344146728516, | |
0.005459904193878174, | |
0.005403647899627686, | |
0.005552127838134766, | |
0.005462016105651855, | |
0.005361663818359375, | |
0.005430304050445557, | |
0.005347328186035156, | |
0.005222400188446045, | |
0.005272575855255127, | |
0.005688255786895752, | |
0.005724160194396972, | |
0.005241856098175048, | |
0.005164031982421875, | |
0.005187551975250244, | |
0.005189631938934326, | |
0.005509119987487793, | |
0.0053637118339538575, | |
0.005405695915222168, | |
0.005436448097229004, | |
0.005452799797058106, | |
0.0054609918594360355, | |
0.005504960060119629, | |
0.005586944103240967, | |
0.005724160194396972, | |
0.005480512142181397, | |
0.005645311832427978, | |
0.0050206718444824215, | |
0.005028831958770752, | |
0.004974592208862305, | |
0.004944896221160889, | |
0.004971519947052002, | |
0.004946944236755371, | |
0.004971519947052002, | |
0.004969471931457519, | |
0.004985856056213379, | |
0.004955135822296143, | |
0.005033984184265137, | |
0.004955135822296143, | |
0.004965375900268554, | |
0.004936704158782959, | |
0.004988927841186524, | |
0.004969471931457519, | |
0.00491315221786499, | |
0.004884479999542236, | |
0.00491212797164917, | |
0.004915200233459473, | |
0.004905983924865722, | |
0.004921343803405762, | |
0.00491212797164917, | |
0.004918272018432617, | |
0.004917247772216797, | |
0.0049203200340270994, | |
0.004905983924865722, | |
0.004917247772216797, | |
0.004928512096405029, | |
0.004899839878082276, | |
0.004905983924865722, | |
0.0049428482055664065, | |
0.004931583881378174, | |
0.004914175987243652, | |
0.004931583881378174, | |
0.004915200233459473, | |
0.004922368049621582, | |
0.004915200233459473, | |
0.004907008171081543, | |
0.0049192957878112795, | |
0.004907008171081543, | |
0.004910079956054687, | |
0.004917247772216797, | |
0.0049162240028381345, | |
0.0049162240028381345, | |
0.0049192957878112795, | |
0.004910079956054687, | |
0.0048568320274353025, | |
0.0048558077812194825, | |
0.004883520126342774, | |
0.004853759765625, | |
0.0048527359962463375, | |
0.004839424133300781, | |
0.004857855796813965, | |
0.004872191905975342, | |
0.004843520164489746 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 186.4711841308904 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.8242143402746176e-08, | |
"ram": 3.1829979726034785e-08, | |
"gpu": 3.644637991960887e-07, | |
"total": 4.5453592232486966e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2200046.1369151627 | |
} | |
} | |
} | |
} |