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
f7974c7
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.43.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"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.673984, | |
"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.23799560546875, | |
"mean": 7.23799560546875, | |
"stdev": 0.0, | |
"p50": 7.23799560546875, | |
"p90": 7.23799560546875, | |
"p95": 7.23799560546875, | |
"p99": 7.23799560546875, | |
"values": [ | |
7.23799560546875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6358234816127354e-06, | |
"ram": 8.803500611576472e-07, | |
"gpu": 1.831945910000382e-06, | |
"total": 4.348119452770765e-06 | |
}, | |
"efficiency": null | |
}, | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 889.683968, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 363.853824 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 208, | |
"total": 1.0231984567642212, | |
"mean": 0.004919223349827986, | |
"stdev": 0.00010803316191942002, | |
"p50": 0.004859903812408447, | |
"p90": 0.005065420818328857, | |
"p95": 0.005113702392578125, | |
"p99": 0.005165076470375061, | |
"values": [ | |
0.005231616020202637, | |
0.00502784013748169, | |
0.005062655925750732, | |
0.005058559894561767, | |
0.005083136081695557, | |
0.005071872234344482, | |
0.005026815891265869, | |
0.005025792121887207, | |
0.005096447944641113, | |
0.00515174388885498, | |
0.0051333122253417966, | |
0.005094399929046631, | |
0.0051660799980163576, | |
0.005028863906860351, | |
0.00501145601272583, | |
0.00496230411529541, | |
0.004927487850189209, | |
0.004908031940460205, | |
0.004863999843597412, | |
0.004859903812408447, | |
0.00486195182800293, | |
0.004863999843597412, | |
0.004860928058624267, | |
0.004863999843597412, | |
0.0049192957878112795, | |
0.005001215934753418, | |
0.004897791862487793, | |
0.00506060791015625, | |
0.004989984035491943, | |
0.004890624046325683, | |
0.004863999843597412, | |
0.00486195182800293, | |
0.004877312183380127, | |
0.004998144149780274, | |
0.00506060791015625, | |
0.004958208084106445, | |
0.004931583881378174, | |
0.004975615978240967, | |
0.004996096134185791, | |
0.004937727928161621, | |
0.0048855037689208985, | |
0.004867072105407715, | |
0.004940832138061523, | |
0.004914175987243652, | |
0.004931583881378174, | |
0.004936704158782959, | |
0.004881408214569092, | |
0.004880383968353271, | |
0.004898816108703613, | |
0.004915200233459473, | |
0.004922368049621582, | |
0.004857855796813965, | |
0.00485478401184082, | |
0.0048568320274353025, | |
0.00486297607421875, | |
0.00486195182800293, | |
0.004858880043029785, | |
0.0048865280151367185, | |
0.005007359981536865, | |
0.00501964807510376, | |
0.00501964807510376, | |
0.004963327884674072, | |
0.004996096134185791, | |
0.005024767875671386, | |
0.0049500160217285155, | |
0.004902912139892578, | |
0.005062655925750732, | |
0.005128191947937012, | |
0.005142528057098389, | |
0.005790719985961914, | |
0.005107711791992187, | |
0.005091328144073487, | |
0.005102591991424561, | |
0.004978687763214112, | |
0.004939775943756103, | |
0.004857855796813965, | |
0.0048558077812194825, | |
0.004922368049621582, | |
0.005130239963531494, | |
0.005116928100585938, | |
0.005032959938049316, | |
0.004989952087402344, | |
0.0050728960037231445, | |
0.005017600059509277, | |
0.005054463863372802, | |
0.004969471931457519, | |
0.004858880043029785, | |
0.004860928058624267, | |
0.004857855796813965, | |
0.00485478401184082, | |
0.004932608127593994, | |
0.005029888153076172, | |
0.005024767875671386, | |
0.005116928100585938, | |
0.0051363840103149415, | |
0.005038080215454102, | |
0.005089280128479004, | |
0.005040128231048584, | |
0.005090303897857666, | |
0.004957183837890625, | |
0.004894720077514648, | |
0.004857855796813965, | |
0.0048568320274353025, | |
0.004941823959350586, | |
0.0048558077812194825, | |
0.004857855796813965, | |
0.00486195182800293, | |
0.00485478401184082, | |
0.004857855796813965, | |
0.0048568320274353025, | |
0.004857855796813965, | |
0.004858943939208984, | |
0.004860928058624267, | |
0.0048537921905517575, | |
0.004860928058624267, | |
0.00486297607421875, | |
0.004857855796813965, | |
0.0048558077812194825, | |
0.00485478401184082, | |
0.0048558077812194825, | |
0.0048568320274353025, | |
0.0048568639755249025, | |
0.004860928058624267, | |
0.0048527359962463375, | |
0.0048568320274353025, | |
0.0048558077812194825, | |
0.004858880043029785, | |
0.0048558077812194825, | |
0.004858880043029785, | |
0.004860928058624267, | |
0.004859903812408447, | |
0.004857855796813965, | |
0.004858880043029785, | |
0.004858880043029785, | |
0.0048568320274353025, | |
0.004859903812408447, | |
0.0048568320274353025, | |
0.0048568320274353025, | |
0.0048558077812194825, | |
0.004857855796813965, | |
0.0048558077812194825, | |
0.00485478401184082, | |
0.004863999843597412, | |
0.004858880043029785, | |
0.0048568320274353025, | |
0.004858880043029785, | |
0.00486297607421875, | |
0.00485584020614624, | |
0.004858880043029785, | |
0.004858880043029785, | |
0.004858880043029785, | |
0.00486195182800293, | |
0.004858880043029785, | |
0.0048568320274353025, | |
0.004860928058624267, | |
0.004858880043029785, | |
0.004858880043029785, | |
0.0048568320274353025, | |
0.0048568320274353025, | |
0.004848639965057373, | |
0.004811776161193848, | |
0.004810751914978028, | |
0.004819968223571777, | |
0.004844543933868409, | |
0.004847616195678711, | |
0.0048558077812194825, | |
0.004857855796813965, | |
0.0048558077812194825, | |
0.0048568320274353025, | |
0.004858880043029785, | |
0.0048568320274353025, | |
0.0048558077812194825, | |
0.00485478401184082, | |
0.004859903812408447, | |
0.0048568320274353025, | |
0.00485478401184082, | |
0.0048558077812194825, | |
0.0048568320274353025, | |
0.0048568320274353025, | |
0.0048568320274353025, | |
0.004859903812408447, | |
0.0048568320274353025, | |
0.004859903812408447, | |
0.004857855796813965, | |
0.004860928058624267, | |
0.00485478401184082, | |
0.004857855796813965, | |
0.0048568320274353025, | |
0.0048568320274353025, | |
0.0048558077812194825, | |
0.004857855796813965, | |
0.004858880043029785, | |
0.0048558077812194825, | |
0.004857855796813965, | |
0.0048578882217407224, | |
0.0048558077812194825, | |
0.0048568320274353025, | |
0.0048568320274353025, | |
0.0048558077812194825, | |
0.0048558077812194825, | |
0.004859903812408447, | |
0.004859903812408447, | |
0.004857855796813965, | |
0.004853759765625, | |
0.004857855796813965, | |
0.004857855796813965, | |
0.0048558077812194825, | |
0.0048558077812194825 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 203.28412208300475 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 5.76638537136637e-08, | |
"ram": 3.15169092409901e-08, | |
"gpu": 3.447198141545865e-07, | |
"total": 4.3390057710924027e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2304675.432013165 | |
} | |
} | |
} | |
} |